UNPKG

@cdktf/provider-databricks

Version:

Prebuilt databricks Provider for Terraform CDK (cdktf)

1,310 lines 171 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g; Object.defineProperty(exports, "__esModule", { value: true }); exports.Mount = exports.MountWasbOutputReference = exports.MountTimeoutsOutputReference = exports.MountS3OutputReference = exports.MountGsOutputReference = exports.MountAdlOutputReference = exports.MountAbfsOutputReference = void 0; exports.mountAbfsToTerraform = mountAbfsToTerraform; exports.mountAbfsToHclTerraform = mountAbfsToHclTerraform; exports.mountAdlToTerraform = mountAdlToTerraform; exports.mountAdlToHclTerraform = mountAdlToHclTerraform; exports.mountGsToTerraform = mountGsToTerraform; exports.mountGsToHclTerraform = mountGsToHclTerraform; exports.mountS3ToTerraform = mountS3ToTerraform; exports.mountS3ToHclTerraform = mountS3ToHclTerraform; exports.mountTimeoutsToTerraform = mountTimeoutsToTerraform; exports.mountTimeoutsToHclTerraform = mountTimeoutsToHclTerraform; exports.mountWasbToTerraform = mountWasbToTerraform; exports.mountWasbToHclTerraform = mountWasbToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function mountAbfsToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { client_id: cdktf.stringToTerraform(struct.clientId), client_secret_key: cdktf.stringToTerraform(struct.clientSecretKey), client_secret_scope: cdktf.stringToTerraform(struct.clientSecretScope), container_name: cdktf.stringToTerraform(struct.containerName), directory: cdktf.stringToTerraform(struct.directory), initialize_file_system: cdktf.booleanToTerraform(struct.initializeFileSystem), storage_account_name: cdktf.stringToTerraform(struct.storageAccountName), tenant_id: cdktf.stringToTerraform(struct.tenantId), }; } function mountAbfsToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { client_id: { value: cdktf.stringToHclTerraform(struct.clientId), isBlock: false, type: "simple", storageClassType: "string", }, client_secret_key: { value: cdktf.stringToHclTerraform(struct.clientSecretKey), isBlock: false, type: "simple", storageClassType: "string", }, client_secret_scope: { value: cdktf.stringToHclTerraform(struct.clientSecretScope), isBlock: false, type: "simple", storageClassType: "string", }, container_name: { value: cdktf.stringToHclTerraform(struct.containerName), isBlock: false, type: "simple", storageClassType: "string", }, directory: { value: cdktf.stringToHclTerraform(struct.directory), isBlock: false, type: "simple", storageClassType: "string", }, initialize_file_system: { value: cdktf.booleanToHclTerraform(struct.initializeFileSystem), isBlock: false, type: "simple", storageClassType: "boolean", }, storage_account_name: { value: cdktf.stringToHclTerraform(struct.storageAccountName), isBlock: false, type: "simple", storageClassType: "string", }, tenant_id: { value: cdktf.stringToHclTerraform(struct.tenantId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class MountAbfsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._clientId !== undefined) { hasAnyValues = true; internalValueResult.clientId = this._clientId; } if (this._clientSecretKey !== undefined) { hasAnyValues = true; internalValueResult.clientSecretKey = this._clientSecretKey; } if (this._clientSecretScope !== undefined) { hasAnyValues = true; internalValueResult.clientSecretScope = this._clientSecretScope; } if (this._containerName !== undefined) { hasAnyValues = true; internalValueResult.containerName = this._containerName; } if (this._directory !== undefined) { hasAnyValues = true; internalValueResult.directory = this._directory; } if (this._initializeFileSystem !== undefined) { hasAnyValues = true; internalValueResult.initializeFileSystem = this._initializeFileSystem; } if (this._storageAccountName !== undefined) { hasAnyValues = true; internalValueResult.storageAccountName = this._storageAccountName; } if (this._tenantId !== undefined) { hasAnyValues = true; internalValueResult.tenantId = this._tenantId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._clientId = undefined; this._clientSecretKey = undefined; this._clientSecretScope = undefined; this._containerName = undefined; this._directory = undefined; this._initializeFileSystem = undefined; this._storageAccountName = undefined; this._tenantId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._clientId = value.clientId; this._clientSecretKey = value.clientSecretKey; this._clientSecretScope = value.clientSecretScope; this._containerName = value.containerName; this._directory = value.directory; this._initializeFileSystem = value.initializeFileSystem; this._storageAccountName = value.storageAccountName; this._tenantId = value.tenantId; } } get clientId() { return this.getStringAttribute('client_id'); } set clientId(value) { this._clientId = value; } // Temporarily expose input value. Use with caution. get clientIdInput() { return this._clientId; } get clientSecretKey() { return this.getStringAttribute('client_secret_key'); } set clientSecretKey(value) { this._clientSecretKey = value; } // Temporarily expose input value. Use with caution. get clientSecretKeyInput() { return this._clientSecretKey; } get clientSecretScope() { return this.getStringAttribute('client_secret_scope'); } set clientSecretScope(value) { this._clientSecretScope = value; } // Temporarily expose input value. Use with caution. get clientSecretScopeInput() { return this._clientSecretScope; } get containerName() { return this.getStringAttribute('container_name'); } set containerName(value) { this._containerName = value; } resetContainerName() { this._containerName = undefined; } // Temporarily expose input value. Use with caution. get containerNameInput() { return this._containerName; } get directory() { return this.getStringAttribute('directory'); } set directory(value) { this._directory = value; } resetDirectory() { this._directory = undefined; } // Temporarily expose input value. Use with caution. get directoryInput() { return this._directory; } get initializeFileSystem() { return this.getBooleanAttribute('initialize_file_system'); } set initializeFileSystem(value) { this._initializeFileSystem = value; } // Temporarily expose input value. Use with caution. get initializeFileSystemInput() { return this._initializeFileSystem; } get storageAccountName() { return this.getStringAttribute('storage_account_name'); } set storageAccountName(value) { this._storageAccountName = value; } resetStorageAccountName() { this._storageAccountName = undefined; } // Temporarily expose input value. Use with caution. get storageAccountNameInput() { return this._storageAccountName; } get tenantId() { return this.getStringAttribute('tenant_id'); } set tenantId(value) { this._tenantId = value; } resetTenantId() { this._tenantId = undefined; } // Temporarily expose input value. Use with caution. get tenantIdInput() { return this._tenantId; } } exports.MountAbfsOutputReference = MountAbfsOutputReference; _a = JSII_RTTI_SYMBOL_1; MountAbfsOutputReference[_a] = { fqn: "@cdktf/provider-databricks.mount.MountAbfsOutputReference", version: "15.16.1" }; function mountAdlToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { client_id: cdktf.stringToTerraform(struct.clientId), client_secret_key: cdktf.stringToTerraform(struct.clientSecretKey), client_secret_scope: cdktf.stringToTerraform(struct.clientSecretScope), directory: cdktf.stringToTerraform(struct.directory), spark_conf_prefix: cdktf.stringToTerraform(struct.sparkConfPrefix), storage_resource_name: cdktf.stringToTerraform(struct.storageResourceName), tenant_id: cdktf.stringToTerraform(struct.tenantId), }; } function mountAdlToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { client_id: { value: cdktf.stringToHclTerraform(struct.clientId), isBlock: false, type: "simple", storageClassType: "string", }, client_secret_key: { value: cdktf.stringToHclTerraform(struct.clientSecretKey), isBlock: false, type: "simple", storageClassType: "string", }, client_secret_scope: { value: cdktf.stringToHclTerraform(struct.clientSecretScope), isBlock: false, type: "simple", storageClassType: "string", }, directory: { value: cdktf.stringToHclTerraform(struct.directory), isBlock: false, type: "simple", storageClassType: "string", }, spark_conf_prefix: { value: cdktf.stringToHclTerraform(struct.sparkConfPrefix), isBlock: false, type: "simple", storageClassType: "string", }, storage_resource_name: { value: cdktf.stringToHclTerraform(struct.storageResourceName), isBlock: false, type: "simple", storageClassType: "string", }, tenant_id: { value: cdktf.stringToHclTerraform(struct.tenantId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class MountAdlOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._clientId !== undefined) { hasAnyValues = true; internalValueResult.clientId = this._clientId; } if (this._clientSecretKey !== undefined) { hasAnyValues = true; internalValueResult.clientSecretKey = this._clientSecretKey; } if (this._clientSecretScope !== undefined) { hasAnyValues = true; internalValueResult.clientSecretScope = this._clientSecretScope; } if (this._directory !== undefined) { hasAnyValues = true; internalValueResult.directory = this._directory; } if (this._sparkConfPrefix !== undefined) { hasAnyValues = true; internalValueResult.sparkConfPrefix = this._sparkConfPrefix; } if (this._storageResourceName !== undefined) { hasAnyValues = true; internalValueResult.storageResourceName = this._storageResourceName; } if (this._tenantId !== undefined) { hasAnyValues = true; internalValueResult.tenantId = this._tenantId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._clientId = undefined; this._clientSecretKey = undefined; this._clientSecretScope = undefined; this._directory = undefined; this._sparkConfPrefix = undefined; this._storageResourceName = undefined; this._tenantId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._clientId = value.clientId; this._clientSecretKey = value.clientSecretKey; this._clientSecretScope = value.clientSecretScope; this._directory = value.directory; this._sparkConfPrefix = value.sparkConfPrefix; this._storageResourceName = value.storageResourceName; this._tenantId = value.tenantId; } } get clientId() { return this.getStringAttribute('client_id'); } set clientId(value) { this._clientId = value; } // Temporarily expose input value. Use with caution. get clientIdInput() { return this._clientId; } get clientSecretKey() { return this.getStringAttribute('client_secret_key'); } set clientSecretKey(value) { this._clientSecretKey = value; } // Temporarily expose input value. Use with caution. get clientSecretKeyInput() { return this._clientSecretKey; } get clientSecretScope() { return this.getStringAttribute('client_secret_scope'); } set clientSecretScope(value) { this._clientSecretScope = value; } // Temporarily expose input value. Use with caution. get clientSecretScopeInput() { return this._clientSecretScope; } get directory() { return this.getStringAttribute('directory'); } set directory(value) { this._directory = value; } resetDirectory() { this._directory = undefined; } // Temporarily expose input value. Use with caution. get directoryInput() { return this._directory; } get sparkConfPrefix() { return this.getStringAttribute('spark_conf_prefix'); } set sparkConfPrefix(value) { this._sparkConfPrefix = value; } resetSparkConfPrefix() { this._sparkConfPrefix = undefined; } // Temporarily expose input value. Use with caution. get sparkConfPrefixInput() { return this._sparkConfPrefix; } get storageResourceName() { return this.getStringAttribute('storage_resource_name'); } set storageResourceName(value) { this._storageResourceName = value; } resetStorageResourceName() { this._storageResourceName = undefined; } // Temporarily expose input value. Use with caution. get storageResourceNameInput() { return this._storageResourceName; } get tenantId() { return this.getStringAttribute('tenant_id'); } set tenantId(value) { this._tenantId = value; } resetTenantId() { this._tenantId = undefined; } // Temporarily expose input value. Use with caution. get tenantIdInput() { return this._tenantId; } } exports.MountAdlOutputReference = MountAdlOutputReference; _b = JSII_RTTI_SYMBOL_1; MountAdlOutputReference[_b] = { fqn: "@cdktf/provider-databricks.mount.MountAdlOutputReference", version: "15.16.1" }; function mountGsToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { bucket_name: cdktf.stringToTerraform(struct.bucketName), service_account: cdktf.stringToTerraform(struct.serviceAccount), }; } function mountGsToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { bucket_name: { value: cdktf.stringToHclTerraform(struct.bucketName), isBlock: false, type: "simple", storageClassType: "string", }, service_account: { value: cdktf.stringToHclTerraform(struct.serviceAccount), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class MountGsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._bucketName !== undefined) { hasAnyValues = true; internalValueResult.bucketName = this._bucketName; } if (this._serviceAccount !== undefined) { hasAnyValues = true; internalValueResult.serviceAccount = this._serviceAccount; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._bucketName = undefined; this._serviceAccount = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._bucketName = value.bucketName; this._serviceAccount = value.serviceAccount; } } get bucketName() { return this.getStringAttribute('bucket_name'); } set bucketName(value) { this._bucketName = value; } // Temporarily expose input value. Use with caution. get bucketNameInput() { return this._bucketName; } get serviceAccount() { return this.getStringAttribute('service_account'); } set serviceAccount(value) { this._serviceAccount = value; } resetServiceAccount() { this._serviceAccount = undefined; } // Temporarily expose input value. Use with caution. get serviceAccountInput() { return this._serviceAccount; } } exports.MountGsOutputReference = MountGsOutputReference; _c = JSII_RTTI_SYMBOL_1; MountGsOutputReference[_c] = { fqn: "@cdktf/provider-databricks.mount.MountGsOutputReference", version: "15.16.1" }; function mountS3ToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { bucket_name: cdktf.stringToTerraform(struct.bucketName), instance_profile: cdktf.stringToTerraform(struct.instanceProfile), }; } function mountS3ToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { bucket_name: { value: cdktf.stringToHclTerraform(struct.bucketName), isBlock: false, type: "simple", storageClassType: "string", }, instance_profile: { value: cdktf.stringToHclTerraform(struct.instanceProfile), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class MountS3OutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._bucketName !== undefined) { hasAnyValues = true; internalValueResult.bucketName = this._bucketName; } if (this._instanceProfile !== undefined) { hasAnyValues = true; internalValueResult.instanceProfile = this._instanceProfile; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._bucketName = undefined; this._instanceProfile = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._bucketName = value.bucketName; this._instanceProfile = value.instanceProfile; } } get bucketName() { return this.getStringAttribute('bucket_name'); } set bucketName(value) { this._bucketName = value; } // Temporarily expose input value. Use with caution. get bucketNameInput() { return this._bucketName; } get instanceProfile() { return this.getStringAttribute('instance_profile'); } set instanceProfile(value) { this._instanceProfile = value; } resetInstanceProfile() { this._instanceProfile = undefined; } // Temporarily expose input value. Use with caution. get instanceProfileInput() { return this._instanceProfile; } } exports.MountS3OutputReference = MountS3OutputReference; _d = JSII_RTTI_SYMBOL_1; MountS3OutputReference[_d] = { fqn: "@cdktf/provider-databricks.mount.MountS3OutputReference", version: "15.16.1" }; function mountTimeoutsToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { default: cdktf.stringToTerraform(struct.default), }; } function mountTimeoutsToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { default: { value: cdktf.stringToHclTerraform(struct.default), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class MountTimeoutsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false); this.isEmptyObject = false; } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._default !== undefined) { hasAnyValues = true; internalValueResult.default = this._default; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._default = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._default = value.default; } } get default() { return this.getStringAttribute('default'); } set default(value) { this._default = value; } resetDefault() { this._default = undefined; } // Temporarily expose input value. Use with caution. get defaultInput() { return this._default; } } exports.MountTimeoutsOutputReference = MountTimeoutsOutputReference; _e = JSII_RTTI_SYMBOL_1; MountTimeoutsOutputReference[_e] = { fqn: "@cdktf/provider-databricks.mount.MountTimeoutsOutputReference", version: "15.16.1" }; function mountWasbToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { auth_type: cdktf.stringToTerraform(struct.authType), container_name: cdktf.stringToTerraform(struct.containerName), directory: cdktf.stringToTerraform(struct.directory), storage_account_name: cdktf.stringToTerraform(struct.storageAccountName), token_secret_key: cdktf.stringToTerraform(struct.tokenSecretKey), token_secret_scope: cdktf.stringToTerraform(struct.tokenSecretScope), }; } function mountWasbToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { auth_type: { value: cdktf.stringToHclTerraform(struct.authType), isBlock: false, type: "simple", storageClassType: "string", }, container_name: { value: cdktf.stringToHclTerraform(struct.containerName), isBlock: false, type: "simple", storageClassType: "string", }, directory: { value: cdktf.stringToHclTerraform(struct.directory), isBlock: false, type: "simple", storageClassType: "string", }, storage_account_name: { value: cdktf.stringToHclTerraform(struct.storageAccountName), isBlock: false, type: "simple", storageClassType: "string", }, token_secret_key: { value: cdktf.stringToHclTerraform(struct.tokenSecretKey), isBlock: false, type: "simple", storageClassType: "string", }, token_secret_scope: { value: cdktf.stringToHclTerraform(struct.tokenSecretScope), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class MountWasbOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._authType !== undefined) { hasAnyValues = true; internalValueResult.authType = this._authType; } if (this._containerName !== undefined) { hasAnyValues = true; internalValueResult.containerName = this._containerName; } if (this._directory !== undefined) { hasAnyValues = true; internalValueResult.directory = this._directory; } if (this._storageAccountName !== undefined) { hasAnyValues = true; internalValueResult.storageAccountName = this._storageAccountName; } if (this._tokenSecretKey !== undefined) { hasAnyValues = true; internalValueResult.tokenSecretKey = this._tokenSecretKey; } if (this._tokenSecretScope !== undefined) { hasAnyValues = true; internalValueResult.tokenSecretScope = this._tokenSecretScope; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._authType = undefined; this._containerName = undefined; this._directory = undefined; this._storageAccountName = undefined; this._tokenSecretKey = undefined; this._tokenSecretScope = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._authType = value.authType; this._containerName = value.containerName; this._directory = value.directory; this._storageAccountName = value.storageAccountName; this._tokenSecretKey = value.tokenSecretKey; this._tokenSecretScope = value.tokenSecretScope; } } get authType() { return this.getStringAttribute('auth_type'); } set authType(value) { this._authType = value; } // Temporarily expose input value. Use with caution. get authTypeInput() { return this._authType; } get containerName() { return this.getStringAttribute('container_name'); } set containerName(value) { this._containerName = value; } resetContainerName() { this._containerName = undefined; } // Temporarily expose input value. Use with caution. get containerNameInput() { return this._containerName; } get directory() { return this.getStringAttribute('directory'); } set directory(value) { this._directory = value; } resetDirectory() { this._directory = undefined; } // Temporarily expose input value. Use with caution. get directoryInput() { return this._directory; } get storageAccountName() { return this.getStringAttribute('storage_account_name'); } set storageAccountName(value) { this._storageAccountName = value; } resetStorageAccountName() { this._storageAccountName = undefined; } // Temporarily expose input value. Use with caution. get storageAccountNameInput() { return this._storageAccountName; } get tokenSecretKey() { return this.getStringAttribute('token_secret_key'); } set tokenSecretKey(value) { this._tokenSecretKey = value; } // Temporarily expose input value. Use with caution. get tokenSecretKeyInput() { return this._tokenSecretKey; } get tokenSecretScope() { return this.getStringAttribute('token_secret_scope'); } set tokenSecretScope(value) { this._tokenSecretScope = value; } // Temporarily expose input value. Use with caution. get tokenSecretScopeInput() { return this._tokenSecretScope; } } exports.MountWasbOutputReference = MountWasbOutputReference; _f = JSII_RTTI_SYMBOL_1; MountWasbOutputReference[_f] = { fqn: "@cdktf/provider-databricks.mount.MountWasbOutputReference", version: "15.16.1" }; /** * Represents a {@link https://registry.terraform.io/providers/databricks/databricks/1.99.0/docs/resources/mount databricks_mount} */ class Mount extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a Mount resource upon running "cdktf plan <stack-name>" * @param scope The scope in which to define this construct * @param importToId The construct id used in the generated config for the Mount to import * @param importFromId The id of the existing Mount that should be imported. Refer to the {@link https://registry.terraform.io/providers/databricks/databricks/1.99.0/docs/resources/mount#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the Mount to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "databricks_mount", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/databricks/databricks/1.99.0/docs/resources/mount databricks_mount} Resource * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options MountConfig = {} */ constructor(scope, id, config = {}) { super(scope, id, { terraformResourceType: 'databricks_mount', terraformGeneratorMetadata: { providerName: 'databricks', providerVersion: '1.99.0', providerVersionConstraint: '~> 1.0' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle, provisioners: config.provisioners, connection: config.connection, forEach: config.forEach }); // abfs - computed: false, optional: true, required: false this._abfs = new MountAbfsOutputReference(this, "abfs"); // adl - computed: false, optional: true, required: false this._adl = new MountAdlOutputReference(this, "adl"); // gs - computed: false, optional: true, required: false this._gs = new MountGsOutputReference(this, "gs"); // s3 - computed: false, optional: true, required: false this._s3 = new MountS3OutputReference(this, "s3"); // timeouts - computed: false, optional: true, required: false this._timeouts = new MountTimeoutsOutputReference(this, "timeouts"); // wasb - computed: false, optional: true, required: false this._wasb = new MountWasbOutputReference(this, "wasb"); this._clusterId = config.clusterId; this._encryptionType = config.encryptionType; this._extraConfigs = config.extraConfigs; this._id = config.id; this._name = config.name; this._resourceId = config.resourceId; this._uri = config.uri; this._abfs.internalValue = config.abfs; this._adl.internalValue = config.adl; this._gs.internalValue = config.gs; this._s3.internalValue = config.s3; this._timeouts.internalValue = config.timeouts; this._wasb.internalValue = config.wasb; } get clusterId() { return this.getStringAttribute('cluster_id'); } set clusterId(value) { this._clusterId = value; } resetClusterId() { this._clusterId = undefined; } // Temporarily expose input value. Use with caution. get clusterIdInput() { return this._clusterId; } get encryptionType() { return this.getStringAttribute('encryption_type'); } set encryptionType(value) { this._encryptionType = value; } resetEncryptionType() { this._encryptionType = undefined; } // Temporarily expose input value. Use with caution. get encryptionTypeInput() { return this._encryptionType; } get extraConfigs() { return this.getStringMapAttribute('extra_configs'); } set extraConfigs(value) { this._extraConfigs = value; } resetExtraConfigs() { this._extraConfigs = undefined; } // Temporarily expose input value. Use with caution. get extraConfigsInput() { return this._extraConfigs; } get id() { return this.getStringAttribute('id'); } set id(value) { this._id = value; } resetId() { this._id = undefined; } // Temporarily expose input value. Use with caution. get idInput() { return this._id; } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } resetName() { this._name = undefined; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } get resourceId() { return this.getStringAttribute('resource_id'); } set resourceId(value) { this._resourceId = value; } resetResourceId() { this._resourceId = undefined; } // Temporarily expose input value. Use with caution. get resourceIdInput() { return this._resourceId; } // source - computed: true, optional: false, required: false get source() { return this.getStringAttribute('source'); } get uri() { return this.getStringAttribute('uri'); } set uri(value) { this._uri = value; } resetUri() { this._uri = undefined; } // Temporarily expose input value. Use with caution. get uriInput() { return this._uri; } get abfs() { return this._abfs; } putAbfs(value) { this._abfs.internalValue = value; } resetAbfs() { this._abfs.internalValue = undefined; } // Temporarily expose input value. Use with caution. get abfsInput() { return this._abfs.internalValue; } get adl() { return this._adl; } putAdl(value) { this._adl.internalValue = value; } resetAdl() { this._adl.internalValue = undefined; } // Temporarily expose input value. Use with caution. get adlInput() { return this._adl.internalValue; } get gs() { return this._gs; } putGs(value) { this._gs.internalValue = value; } resetGs() { this._gs.internalValue = undefined; } // Temporarily expose input value. Use with caution. get gsInput() { return this._gs.internalValue; } get s3() { return this._s3; } putS3(value) { this._s3.internalValue = value; } resetS3() { this._s3.internalValue = undefined; } // Temporarily expose input value. Use with caution. get s3Input() { return this._s3.internalValue; } get timeouts() { return this._timeouts; } putTimeouts(value) { this._timeouts.internalValue = value; } resetTimeouts() { this._timeouts.internalValue = undefined; } // Temporarily expose input value. Use with caution. get timeoutsInput() { return this._timeouts.internalValue; } get wasb() { return this._wasb; } putWasb(value) { this._wasb.internalValue = value; } resetWasb() { this._wasb.internalValue = undefined; } // Temporarily expose input value. Use with caution. get wasbInput() { return this._wasb.internalValue; } // ========= // SYNTHESIS // ========= synthesizeAttributes() { return { cluster_id: cdktf.stringToTerraform(this._clusterId), encryption_type: cdktf.stringToTerraform(this._encryptionType), extra_configs: cdktf.hashMapper(cdktf.stringToTerraform)(this._extraConfigs), id: cdktf.stringToTerraform(this._id), name: cdktf.stringToTerraform(this._name), resource_id: cdktf.stringToTerraform(this._resourceId), uri: cdktf.stringToTerraform(this._uri), abfs: mountAbfsToTerraform(this._abfs.internalValue), adl: mountAdlToTerraform(this._adl.internalValue), gs: mountGsToTerraform(this._gs.internalValue), s3: mountS3ToTerraform(this._s3.internalValue), timeouts: mountTimeoutsToTerraform(this._timeouts.internalValue), wasb: mountWasbToTerraform(this._wasb.internalValue), }; } synthesizeHclAttributes() { const attrs = { cluster_id: { value: cdktf.stringToHclTerraform(this._clusterId), isBlock: false, type: "simple", storageClassType: "string", }, encryption_type: { value: cdktf.stringToHclTerraform(this._encryptionType), isBlock: false, type: "simple", storageClassType: "string", }, extra_configs: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._extraConfigs), isBlock: false, type: "map", storageClassType: "stringMap", }, id: { value: cdktf.stringToHclTerraform(this._id), isBlock: false, type: "simple", storageClassType: "string", }, name: { value: cdktf.stringToHclTerraform(this._name), isBlock: false, type: "simple", storageClassType: "string", }, resource_id: { value: cdktf.stringToHclTerraform(this._resourceId), isBlock: false, type: "simple", storageClassType: "string", }, uri: { value: cdktf.stringToHclTerraform(this._uri), isBlock: false, type: "simple", storageClassType: "string", }, abfs: { value: mountAbfsToHclTerraform(this._abfs.internalValue), isBlock: true, type: "list", storageClassType: "MountAbfsList", }, adl: { value: mountAdlToHclTerraform(this._adl.internalValue), isBlock: true, type: "list", storageClassType: "MountAdlList", }, gs: { value: mountGsToHclTerraform(this._gs.internalValue), isBlock: true, type: "list", storageClassType: "MountGsList", }, s3: { value: mountS3ToHclTerraform(this._s3.internalValue), isBlock: true, type: "list", storageClassType: "MountS3List", }, timeouts: { value: mountTimeoutsToHclTerraform(this._timeouts.internalValue), isBlock: true, type: "struct", storageClassType: "MountTimeouts", }, wasb: { value: mountWasbToHclTerraform(this._wasb.internalValue), isBlock: true, type: "list", storageClassType: "MountWasbList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } } exports.Mount = Mount; _g = JSII_RTTI_SYMBOL_1; Mount[_g] = { fqn: "@cdktf/provider-databricks.mount.Mount", version: "15.16.1" }; // ================= // STATIC PROPERTIES // ================= Mount.tfResourceType = "databricks_mount"; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbW91bnQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQXFIQSxvREFlQztBQUdELDBEQTBEQztBQStORCxrREFjQztBQUdELHdEQW9EQztBQXdMRCxnREFTQztBQUdELHNEQXNCQztBQWdGRCxnREFTQztBQUdELHNEQXNCQztBQTRFRCw0REFRQztBQUdELGtFQWdCQztBQXVGRCxvRE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