UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

76 lines 3.67 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.Mount = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * ## Import * * !> Importing this resource is not currently supported. */ class Mount extends pulumi.CustomResource { /** * Get an existing Mount resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name, id, state, opts) { return new Mount(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Mount. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj) { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === Mount.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["abfs"] = state ? state.abfs : undefined; resourceInputs["adl"] = state ? state.adl : undefined; resourceInputs["clusterId"] = state ? state.clusterId : undefined; resourceInputs["encryptionType"] = state ? state.encryptionType : undefined; resourceInputs["extraConfigs"] = state ? state.extraConfigs : undefined; resourceInputs["gs"] = state ? state.gs : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["resourceId"] = state ? state.resourceId : undefined; resourceInputs["s3"] = state ? state.s3 : undefined; resourceInputs["source"] = state ? state.source : undefined; resourceInputs["uri"] = state ? state.uri : undefined; resourceInputs["wasb"] = state ? state.wasb : undefined; } else { const args = argsOrState; resourceInputs["abfs"] = args ? args.abfs : undefined; resourceInputs["adl"] = args ? args.adl : undefined; resourceInputs["clusterId"] = args ? args.clusterId : undefined; resourceInputs["encryptionType"] = args ? args.encryptionType : undefined; resourceInputs["extraConfigs"] = args ? args.extraConfigs : undefined; resourceInputs["gs"] = args ? args.gs : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["resourceId"] = args ? args.resourceId : undefined; resourceInputs["s3"] = args ? args.s3 : undefined; resourceInputs["uri"] = args ? args.uri : undefined; resourceInputs["wasb"] = args ? args.wasb : undefined; resourceInputs["source"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Mount.__pulumiType, name, resourceInputs, opts); } } exports.Mount = Mount; /** @internal */ Mount.__pulumiType = 'databricks:index/mount:Mount'; //# sourceMappingURL=mount.js.map