@pulumi/databricks
Version:
A Pulumi package for creating and managing databricks cloud resources.
125 lines • 6.23 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");
/**
* [](https://docs.databricks.com/aws/en/release-notes/release-types)
*
* Setting is a configurable value or control that determines how a feature or behavior works within the databricks platform.
*
* [//]: # (todo: add public link to metadata api after production doc link available)
* See settings-metadata api for list of settings that can be modified using this resource.
*
* ## Example Usage
*
* Getting an account level setting:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const _this = new databricks.AccountSettingV2("this", {
* name: "llm_proxy_partner_powered",
* booleanVal: {
* value: false,
* },
* });
* ```
*
* ## 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 this "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["effectiveAibiDashboardEmbeddingAccessPolicy"] = state?.effectiveAibiDashboardEmbeddingAccessPolicy;
resourceInputs["effectiveAibiDashboardEmbeddingApprovedDomains"] = state?.effectiveAibiDashboardEmbeddingApprovedDomains;
resourceInputs["effectiveAutomaticClusterUpdateWorkspace"] = state?.effectiveAutomaticClusterUpdateWorkspace;
resourceInputs["effectiveBooleanVal"] = state?.effectiveBooleanVal;
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["effectiveAibiDashboardEmbeddingAccessPolicy"] = args?.effectiveAibiDashboardEmbeddingAccessPolicy;
resourceInputs["effectiveAibiDashboardEmbeddingApprovedDomains"] = args?.effectiveAibiDashboardEmbeddingApprovedDomains;
resourceInputs["effectiveAutomaticClusterUpdateWorkspace"] = args?.effectiveAutomaticClusterUpdateWorkspace;
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