@pulumi/databricks
Version:
A Pulumi package for creating and managing databricks cloud resources.
78 lines • 5.6 kB
JavaScript
// *** 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.Provider = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* The provider type for the databricks package. By default, resources use package-wide configuration
* settings, however an explicit `Provider` instance may be created and passed during resource
* construction to achieve fine-grained programmatic control over provider settings. See the
* [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
*/
class Provider extends pulumi.ProviderResource {
/**
* Returns true if the given object is an instance of Provider. 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'] === "pulumi:providers:" + Provider.__pulumiType;
}
/**
* Create a Provider resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name, args, opts) {
let resourceInputs = {};
opts = opts || {};
{
resourceInputs["accountId"] = args ? args.accountId : undefined;
resourceInputs["actionsIdTokenRequestToken"] = args ? args.actionsIdTokenRequestToken : undefined;
resourceInputs["actionsIdTokenRequestUrl"] = args ? args.actionsIdTokenRequestUrl : undefined;
resourceInputs["authType"] = args ? args.authType : undefined;
resourceInputs["azureClientId"] = args ? args.azureClientId : undefined;
resourceInputs["azureClientSecret"] = (args === null || args === void 0 ? void 0 : args.azureClientSecret) ? pulumi.secret(args.azureClientSecret) : undefined;
resourceInputs["azureEnvironment"] = args ? args.azureEnvironment : undefined;
resourceInputs["azureLoginAppId"] = args ? args.azureLoginAppId : undefined;
resourceInputs["azureTenantId"] = args ? args.azureTenantId : undefined;
resourceInputs["azureUseMsi"] = pulumi.output(args ? args.azureUseMsi : undefined).apply(JSON.stringify);
resourceInputs["azureWorkspaceResourceId"] = args ? args.azureWorkspaceResourceId : undefined;
resourceInputs["clientId"] = args ? args.clientId : undefined;
resourceInputs["clientSecret"] = (args === null || args === void 0 ? void 0 : args.clientSecret) ? pulumi.secret(args.clientSecret) : undefined;
resourceInputs["clusterId"] = args ? args.clusterId : undefined;
resourceInputs["configFile"] = args ? args.configFile : undefined;
resourceInputs["databricksCliPath"] = args ? args.databricksCliPath : undefined;
resourceInputs["debugHeaders"] = pulumi.output(args ? args.debugHeaders : undefined).apply(JSON.stringify);
resourceInputs["debugTruncateBytes"] = pulumi.output(args ? args.debugTruncateBytes : undefined).apply(JSON.stringify);
resourceInputs["googleCredentials"] = (args === null || args === void 0 ? void 0 : args.googleCredentials) ? pulumi.secret(args.googleCredentials) : undefined;
resourceInputs["googleServiceAccount"] = args ? args.googleServiceAccount : undefined;
resourceInputs["host"] = args ? args.host : undefined;
resourceInputs["httpTimeoutSeconds"] = pulumi.output(args ? args.httpTimeoutSeconds : undefined).apply(JSON.stringify);
resourceInputs["metadataServiceUrl"] = (args === null || args === void 0 ? void 0 : args.metadataServiceUrl) ? pulumi.secret(args.metadataServiceUrl) : undefined;
resourceInputs["password"] = (args === null || args === void 0 ? void 0 : args.password) ? pulumi.secret(args.password) : undefined;
resourceInputs["profile"] = args ? args.profile : undefined;
resourceInputs["rateLimit"] = pulumi.output(args ? args.rateLimit : undefined).apply(JSON.stringify);
resourceInputs["retryTimeoutSeconds"] = pulumi.output(args ? args.retryTimeoutSeconds : undefined).apply(JSON.stringify);
resourceInputs["serverlessComputeId"] = args ? args.serverlessComputeId : undefined;
resourceInputs["skipVerify"] = pulumi.output(args ? args.skipVerify : undefined).apply(JSON.stringify);
resourceInputs["token"] = (args === null || args === void 0 ? void 0 : args.token) ? pulumi.secret(args.token) : undefined;
resourceInputs["username"] = args ? args.username : undefined;
resourceInputs["warehouseId"] = args ? args.warehouseId : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
const secretOpts = { additionalSecretOutputs: ["azureClientSecret", "clientSecret", "googleCredentials", "metadataServiceUrl", "password", "token"] };
opts = pulumi.mergeOptions(opts, secretOpts);
super(Provider.__pulumiType, name, resourceInputs, opts);
}
}
exports.Provider = Provider;
/** @internal */
Provider.__pulumiType = 'databricks';
//# sourceMappingURL=provider.js.map
;