@pulumi/databricks
Version:
A Pulumi package for creating and managing databricks cloud resources.
108 lines • 5.99 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.WorkspaceSettingV2 = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* ## Import
*
* As of Pulumi v1.5, resources can be imported through configuration.
*
* hcl
*
* import {
*
* id = "name"
*
* to = databricks_workspace_setting_v2.this
*
* }
*
* If you are using an older version of Pulumi, import the resource using the `pulumi import` command as follows:
*
* ```sh
* $ pulumi import databricks:index/workspaceSettingV2:WorkspaceSettingV2 databricks_workspace_setting_v2 "name"
* ```
*/
class WorkspaceSettingV2 extends pulumi.CustomResource {
/**
* Get an existing WorkspaceSettingV2 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 WorkspaceSettingV2(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of WorkspaceSettingV2. 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'] === WorkspaceSettingV2.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["aibiDashboardEmbeddingAccessPolicy"] = state?.aibiDashboardEmbeddingAccessPolicy;
resourceInputs["aibiDashboardEmbeddingApprovedDomains"] = state?.aibiDashboardEmbeddingApprovedDomains;
resourceInputs["automaticClusterUpdateWorkspace"] = state?.automaticClusterUpdateWorkspace;
resourceInputs["booleanVal"] = state?.booleanVal;
resourceInputs["defaultDataSecurityMode"] = state?.defaultDataSecurityMode;
resourceInputs["effectiveAibiDashboardEmbeddingAccessPolicy"] = state?.effectiveAibiDashboardEmbeddingAccessPolicy;
resourceInputs["effectiveAibiDashboardEmbeddingApprovedDomains"] = state?.effectiveAibiDashboardEmbeddingApprovedDomains;
resourceInputs["effectiveAutomaticClusterUpdateWorkspace"] = state?.effectiveAutomaticClusterUpdateWorkspace;
resourceInputs["effectiveBooleanVal"] = state?.effectiveBooleanVal;
resourceInputs["effectiveDefaultDataSecurityMode"] = state?.effectiveDefaultDataSecurityMode;
resourceInputs["effectiveIntegerVal"] = state?.effectiveIntegerVal;
resourceInputs["effectivePersonalCompute"] = state?.effectivePersonalCompute;
resourceInputs["effectiveRestrictWorkspaceAdmins"] = state?.effectiveRestrictWorkspaceAdmins;
resourceInputs["effectiveStringVal"] = state?.effectiveStringVal;
resourceInputs["integerVal"] = state?.integerVal;
resourceInputs["name"] = state?.name;
resourceInputs["personalCompute"] = state?.personalCompute;
resourceInputs["restrictWorkspaceAdmins"] = state?.restrictWorkspaceAdmins;
resourceInputs["stringVal"] = state?.stringVal;
resourceInputs["workspaceId"] = state?.workspaceId;
}
else {
const args = argsOrState;
resourceInputs["aibiDashboardEmbeddingAccessPolicy"] = args?.aibiDashboardEmbeddingAccessPolicy;
resourceInputs["aibiDashboardEmbeddingApprovedDomains"] = args?.aibiDashboardEmbeddingApprovedDomains;
resourceInputs["automaticClusterUpdateWorkspace"] = args?.automaticClusterUpdateWorkspace;
resourceInputs["booleanVal"] = args?.booleanVal;
resourceInputs["defaultDataSecurityMode"] = args?.defaultDataSecurityMode;
resourceInputs["effectiveAibiDashboardEmbeddingAccessPolicy"] = args?.effectiveAibiDashboardEmbeddingAccessPolicy;
resourceInputs["effectiveAibiDashboardEmbeddingApprovedDomains"] = args?.effectiveAibiDashboardEmbeddingApprovedDomains;
resourceInputs["effectiveAutomaticClusterUpdateWorkspace"] = args?.effectiveAutomaticClusterUpdateWorkspace;
resourceInputs["effectiveDefaultDataSecurityMode"] = args?.effectiveDefaultDataSecurityMode;
resourceInputs["effectivePersonalCompute"] = args?.effectivePersonalCompute;
resourceInputs["effectiveRestrictWorkspaceAdmins"] = args?.effectiveRestrictWorkspaceAdmins;
resourceInputs["integerVal"] = args?.integerVal;
resourceInputs["name"] = args?.name;
resourceInputs["personalCompute"] = args?.personalCompute;
resourceInputs["restrictWorkspaceAdmins"] = args?.restrictWorkspaceAdmins;
resourceInputs["stringVal"] = args?.stringVal;
resourceInputs["workspaceId"] = args?.workspaceId;
resourceInputs["effectiveBooleanVal"] = undefined /*out*/;
resourceInputs["effectiveIntegerVal"] = undefined /*out*/;
resourceInputs["effectiveStringVal"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(WorkspaceSettingV2.__pulumiType, name, resourceInputs, opts);
}
}
exports.WorkspaceSettingV2 = WorkspaceSettingV2;
/** @internal */
WorkspaceSettingV2.__pulumiType = 'databricks:index/workspaceSettingV2:WorkspaceSettingV2';
//# sourceMappingURL=workspaceSettingV2.js.map