@pulumi/databricks
Version: 
A Pulumi package for creating and managing databricks cloud resources.
106 lines • 5.83 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.AccountSettingV2 = 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_account_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/accountSettingV2:AccountSettingV2 databricks_account_setting_v2 "name"
 * ```
 */
class AccountSettingV2 extends pulumi.CustomResource {
    /**
     * Get an existing AccountSettingV2 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 AccountSettingV2(name, state, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of AccountSettingV2.  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'] === AccountSettingV2.__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;
        }
        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["effectiveBooleanVal"] = undefined /*out*/;
            resourceInputs["effectiveIntegerVal"] = undefined /*out*/;
            resourceInputs["effectiveStringVal"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        super(AccountSettingV2.__pulumiType, name, resourceInputs, opts);
    }
}
exports.AccountSettingV2 = AccountSettingV2;
/** @internal */
AccountSettingV2.__pulumiType = 'databricks:index/accountSettingV2:AccountSettingV2';
//# sourceMappingURL=accountSettingV2.js.map