UNPKG

@cdktf/provider-databricks

Version:

Prebuilt databricks Provider for Terraform CDK (cdktf)

1,285 lines 206 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h; Object.defineProperty(exports, "__esModule", { value: true }); exports.MwsWorkspaces = exports.MwsWorkspacesTokenOutputReference = exports.MwsWorkspacesTimeoutsOutputReference = exports.MwsWorkspacesGkeConfigOutputReference = exports.MwsWorkspacesGcpManagedNetworkConfigOutputReference = exports.MwsWorkspacesExternalCustomerInfoOutputReference = exports.MwsWorkspacesCloudResourceContainerOutputReference = exports.MwsWorkspacesCloudResourceContainerGcpOutputReference = void 0; exports.mwsWorkspacesCloudResourceContainerGcpToTerraform = mwsWorkspacesCloudResourceContainerGcpToTerraform; exports.mwsWorkspacesCloudResourceContainerGcpToHclTerraform = mwsWorkspacesCloudResourceContainerGcpToHclTerraform; exports.mwsWorkspacesCloudResourceContainerToTerraform = mwsWorkspacesCloudResourceContainerToTerraform; exports.mwsWorkspacesCloudResourceContainerToHclTerraform = mwsWorkspacesCloudResourceContainerToHclTerraform; exports.mwsWorkspacesExternalCustomerInfoToTerraform = mwsWorkspacesExternalCustomerInfoToTerraform; exports.mwsWorkspacesExternalCustomerInfoToHclTerraform = mwsWorkspacesExternalCustomerInfoToHclTerraform; exports.mwsWorkspacesGcpManagedNetworkConfigToTerraform = mwsWorkspacesGcpManagedNetworkConfigToTerraform; exports.mwsWorkspacesGcpManagedNetworkConfigToHclTerraform = mwsWorkspacesGcpManagedNetworkConfigToHclTerraform; exports.mwsWorkspacesGkeConfigToTerraform = mwsWorkspacesGkeConfigToTerraform; exports.mwsWorkspacesGkeConfigToHclTerraform = mwsWorkspacesGkeConfigToHclTerraform; exports.mwsWorkspacesTimeoutsToTerraform = mwsWorkspacesTimeoutsToTerraform; exports.mwsWorkspacesTimeoutsToHclTerraform = mwsWorkspacesTimeoutsToHclTerraform; exports.mwsWorkspacesTokenToTerraform = mwsWorkspacesTokenToTerraform; exports.mwsWorkspacesTokenToHclTerraform = mwsWorkspacesTokenToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function mwsWorkspacesCloudResourceContainerGcpToTerraform(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 { project_id: cdktf.stringToTerraform(struct.projectId), }; } function mwsWorkspacesCloudResourceContainerGcpToHclTerraform(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 = { project_id: { value: cdktf.stringToHclTerraform(struct.projectId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class MwsWorkspacesCloudResourceContainerGcpOutputReference 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._projectId !== undefined) { hasAnyValues = true; internalValueResult.projectId = this._projectId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._projectId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._projectId = value.projectId; } } get projectId() { return this.getStringAttribute('project_id'); } set projectId(value) { this._projectId = value; } // Temporarily expose input value. Use with caution. get projectIdInput() { return this._projectId; } } exports.MwsWorkspacesCloudResourceContainerGcpOutputReference = MwsWorkspacesCloudResourceContainerGcpOutputReference; _a = JSII_RTTI_SYMBOL_1; MwsWorkspacesCloudResourceContainerGcpOutputReference[_a] = { fqn: "@cdktf/provider-databricks.mwsWorkspaces.MwsWorkspacesCloudResourceContainerGcpOutputReference", version: "15.7.0" }; function mwsWorkspacesCloudResourceContainerToTerraform(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 { gcp: mwsWorkspacesCloudResourceContainerGcpToTerraform(struct.gcp), }; } function mwsWorkspacesCloudResourceContainerToHclTerraform(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 = { gcp: { value: mwsWorkspacesCloudResourceContainerGcpToHclTerraform(struct.gcp), isBlock: true, type: "list", storageClassType: "MwsWorkspacesCloudResourceContainerGcpList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class MwsWorkspacesCloudResourceContainerOutputReference 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; // gcp - computed: false, optional: false, required: true this._gcp = new MwsWorkspacesCloudResourceContainerGcpOutputReference(this, "gcp"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._gcp?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.gcp = this._gcp?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._gcp.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._gcp.internalValue = value.gcp; } } get gcp() { return this._gcp; } putGcp(value) { this._gcp.internalValue = value; } // Temporarily expose input value. Use with caution. get gcpInput() { return this._gcp.internalValue; } } exports.MwsWorkspacesCloudResourceContainerOutputReference = MwsWorkspacesCloudResourceContainerOutputReference; _b = JSII_RTTI_SYMBOL_1; MwsWorkspacesCloudResourceContainerOutputReference[_b] = { fqn: "@cdktf/provider-databricks.mwsWorkspaces.MwsWorkspacesCloudResourceContainerOutputReference", version: "15.7.0" }; function mwsWorkspacesExternalCustomerInfoToTerraform(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 { authoritative_user_email: cdktf.stringToTerraform(struct.authoritativeUserEmail), authoritative_user_full_name: cdktf.stringToTerraform(struct.authoritativeUserFullName), customer_name: cdktf.stringToTerraform(struct.customerName), }; } function mwsWorkspacesExternalCustomerInfoToHclTerraform(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 = { authoritative_user_email: { value: cdktf.stringToHclTerraform(struct.authoritativeUserEmail), isBlock: false, type: "simple", storageClassType: "string", }, authoritative_user_full_name: { value: cdktf.stringToHclTerraform(struct.authoritativeUserFullName), isBlock: false, type: "simple", storageClassType: "string", }, customer_name: { value: cdktf.stringToHclTerraform(struct.customerName), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class MwsWorkspacesExternalCustomerInfoOutputReference 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._authoritativeUserEmail !== undefined) { hasAnyValues = true; internalValueResult.authoritativeUserEmail = this._authoritativeUserEmail; } if (this._authoritativeUserFullName !== undefined) { hasAnyValues = true; internalValueResult.authoritativeUserFullName = this._authoritativeUserFullName; } if (this._customerName !== undefined) { hasAnyValues = true; internalValueResult.customerName = this._customerName; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._authoritativeUserEmail = undefined; this._authoritativeUserFullName = undefined; this._customerName = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._authoritativeUserEmail = value.authoritativeUserEmail; this._authoritativeUserFullName = value.authoritativeUserFullName; this._customerName = value.customerName; } } get authoritativeUserEmail() { return this.getStringAttribute('authoritative_user_email'); } set authoritativeUserEmail(value) { this._authoritativeUserEmail = value; } // Temporarily expose input value. Use with caution. get authoritativeUserEmailInput() { return this._authoritativeUserEmail; } get authoritativeUserFullName() { return this.getStringAttribute('authoritative_user_full_name'); } set authoritativeUserFullName(value) { this._authoritativeUserFullName = value; } // Temporarily expose input value. Use with caution. get authoritativeUserFullNameInput() { return this._authoritativeUserFullName; } get customerName() { return this.getStringAttribute('customer_name'); } set customerName(value) { this._customerName = value; } // Temporarily expose input value. Use with caution. get customerNameInput() { return this._customerName; } } exports.MwsWorkspacesExternalCustomerInfoOutputReference = MwsWorkspacesExternalCustomerInfoOutputReference; _c = JSII_RTTI_SYMBOL_1; MwsWorkspacesExternalCustomerInfoOutputReference[_c] = { fqn: "@cdktf/provider-databricks.mwsWorkspaces.MwsWorkspacesExternalCustomerInfoOutputReference", version: "15.7.0" }; function mwsWorkspacesGcpManagedNetworkConfigToTerraform(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 { gke_cluster_pod_ip_range: cdktf.stringToTerraform(struct.gkeClusterPodIpRange), gke_cluster_service_ip_range: cdktf.stringToTerraform(struct.gkeClusterServiceIpRange), subnet_cidr: cdktf.stringToTerraform(struct.subnetCidr), }; } function mwsWorkspacesGcpManagedNetworkConfigToHclTerraform(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 = { gke_cluster_pod_ip_range: { value: cdktf.stringToHclTerraform(struct.gkeClusterPodIpRange), isBlock: false, type: "simple", storageClassType: "string", }, gke_cluster_service_ip_range: { value: cdktf.stringToHclTerraform(struct.gkeClusterServiceIpRange), isBlock: false, type: "simple", storageClassType: "string", }, subnet_cidr: { value: cdktf.stringToHclTerraform(struct.subnetCidr), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class MwsWorkspacesGcpManagedNetworkConfigOutputReference 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._gkeClusterPodIpRange !== undefined) { hasAnyValues = true; internalValueResult.gkeClusterPodIpRange = this._gkeClusterPodIpRange; } if (this._gkeClusterServiceIpRange !== undefined) { hasAnyValues = true; internalValueResult.gkeClusterServiceIpRange = this._gkeClusterServiceIpRange; } if (this._subnetCidr !== undefined) { hasAnyValues = true; internalValueResult.subnetCidr = this._subnetCidr; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._gkeClusterPodIpRange = undefined; this._gkeClusterServiceIpRange = undefined; this._subnetCidr = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._gkeClusterPodIpRange = value.gkeClusterPodIpRange; this._gkeClusterServiceIpRange = value.gkeClusterServiceIpRange; this._subnetCidr = value.subnetCidr; } } get gkeClusterPodIpRange() { return this.getStringAttribute('gke_cluster_pod_ip_range'); } set gkeClusterPodIpRange(value) { this._gkeClusterPodIpRange = value; } resetGkeClusterPodIpRange() { this._gkeClusterPodIpRange = undefined; } // Temporarily expose input value. Use with caution. get gkeClusterPodIpRangeInput() { return this._gkeClusterPodIpRange; } get gkeClusterServiceIpRange() { return this.getStringAttribute('gke_cluster_service_ip_range'); } set gkeClusterServiceIpRange(value) { this._gkeClusterServiceIpRange = value; } resetGkeClusterServiceIpRange() { this._gkeClusterServiceIpRange = undefined; } // Temporarily expose input value. Use with caution. get gkeClusterServiceIpRangeInput() { return this._gkeClusterServiceIpRange; } get subnetCidr() { return this.getStringAttribute('subnet_cidr'); } set subnetCidr(value) { this._subnetCidr = value; } // Temporarily expose input value. Use with caution. get subnetCidrInput() { return this._subnetCidr; } } exports.MwsWorkspacesGcpManagedNetworkConfigOutputReference = MwsWorkspacesGcpManagedNetworkConfigOutputReference; _d = JSII_RTTI_SYMBOL_1; MwsWorkspacesGcpManagedNetworkConfigOutputReference[_d] = { fqn: "@cdktf/provider-databricks.mwsWorkspaces.MwsWorkspacesGcpManagedNetworkConfigOutputReference", version: "15.7.0" }; function mwsWorkspacesGkeConfigToTerraform(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 { connectivity_type: cdktf.stringToTerraform(struct.connectivityType), master_ip_range: cdktf.stringToTerraform(struct.masterIpRange), }; } function mwsWorkspacesGkeConfigToHclTerraform(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 = { connectivity_type: { value: cdktf.stringToHclTerraform(struct.connectivityType), isBlock: false, type: "simple", storageClassType: "string", }, master_ip_range: { value: cdktf.stringToHclTerraform(struct.masterIpRange), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class MwsWorkspacesGkeConfigOutputReference 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._connectivityType !== undefined) { hasAnyValues = true; internalValueResult.connectivityType = this._connectivityType; } if (this._masterIpRange !== undefined) { hasAnyValues = true; internalValueResult.masterIpRange = this._masterIpRange; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._connectivityType = undefined; this._masterIpRange = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._connectivityType = value.connectivityType; this._masterIpRange = value.masterIpRange; } } get connectivityType() { return this.getStringAttribute('connectivity_type'); } set connectivityType(value) { this._connectivityType = value; } resetConnectivityType() { this._connectivityType = undefined; } // Temporarily expose input value. Use with caution. get connectivityTypeInput() { return this._connectivityType; } get masterIpRange() { return this.getStringAttribute('master_ip_range'); } set masterIpRange(value) { this._masterIpRange = value; } resetMasterIpRange() { this._masterIpRange = undefined; } // Temporarily expose input value. Use with caution. get masterIpRangeInput() { return this._masterIpRange; } } exports.MwsWorkspacesGkeConfigOutputReference = MwsWorkspacesGkeConfigOutputReference; _e = JSII_RTTI_SYMBOL_1; MwsWorkspacesGkeConfigOutputReference[_e] = { fqn: "@cdktf/provider-databricks.mwsWorkspaces.MwsWorkspacesGkeConfigOutputReference", version: "15.7.0" }; function mwsWorkspacesTimeoutsToTerraform(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 { create: cdktf.stringToTerraform(struct.create), read: cdktf.stringToTerraform(struct.read), update: cdktf.stringToTerraform(struct.update), }; } function mwsWorkspacesTimeoutsToHclTerraform(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 = { create: { value: cdktf.stringToHclTerraform(struct.create), isBlock: false, type: "simple", storageClassType: "string", }, read: { value: cdktf.stringToHclTerraform(struct.read), isBlock: false, type: "simple", storageClassType: "string", }, update: { value: cdktf.stringToHclTerraform(struct.update), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class MwsWorkspacesTimeoutsOutputReference 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._create !== undefined) { hasAnyValues = true; internalValueResult.create = this._create; } if (this._read !== undefined) { hasAnyValues = true; internalValueResult.read = this._read; } if (this._update !== undefined) { hasAnyValues = true; internalValueResult.update = this._update; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._create = undefined; this._read = undefined; this._update = 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._create = value.create; this._read = value.read; this._update = value.update; } } get create() { return this.getStringAttribute('create'); } set create(value) { this._create = value; } resetCreate() { this._create = undefined; } // Temporarily expose input value. Use with caution. get createInput() { return this._create; } get read() { return this.getStringAttribute('read'); } set read(value) { this._read = value; } resetRead() { this._read = undefined; } // Temporarily expose input value. Use with caution. get readInput() { return this._read; } get update() { return this.getStringAttribute('update'); } set update(value) { this._update = value; } resetUpdate() { this._update = undefined; } // Temporarily expose input value. Use with caution. get updateInput() { return this._update; } } exports.MwsWorkspacesTimeoutsOutputReference = MwsWorkspacesTimeoutsOutputReference; _f = JSII_RTTI_SYMBOL_1; MwsWorkspacesTimeoutsOutputReference[_f] = { fqn: "@cdktf/provider-databricks.mwsWorkspaces.MwsWorkspacesTimeoutsOutputReference", version: "15.7.0" }; function mwsWorkspacesTokenToTerraform(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 { comment: cdktf.stringToTerraform(struct.comment), lifetime_seconds: cdktf.numberToTerraform(struct.lifetimeSeconds), token_id: cdktf.stringToTerraform(struct.tokenId), token_value: cdktf.stringToTerraform(struct.tokenValue), }; } function mwsWorkspacesTokenToHclTerraform(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 = { comment: { value: cdktf.stringToHclTerraform(struct.comment), isBlock: false, type: "simple", storageClassType: "string", }, lifetime_seconds: { value: cdktf.numberToHclTerraform(struct.lifetimeSeconds), isBlock: false, type: "simple", storageClassType: "number", }, token_id: { value: cdktf.stringToHclTerraform(struct.tokenId), isBlock: false, type: "simple", storageClassType: "string", }, token_value: { value: cdktf.stringToHclTerraform(struct.tokenValue), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class MwsWorkspacesTokenOutputReference 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._comment !== undefined) { hasAnyValues = true; internalValueResult.comment = this._comment; } if (this._lifetimeSeconds !== undefined) { hasAnyValues = true; internalValueResult.lifetimeSeconds = this._lifetimeSeconds; } if (this._tokenId !== undefined) { hasAnyValues = true; internalValueResult.tokenId = this._tokenId; } if (this._tokenValue !== undefined) { hasAnyValues = true; internalValueResult.tokenValue = this._tokenValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._comment = undefined; this._lifetimeSeconds = undefined; this._tokenId = undefined; this._tokenValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._comment = value.comment; this._lifetimeSeconds = value.lifetimeSeconds; this._tokenId = value.tokenId; this._tokenValue = value.tokenValue; } } get comment() { return this.getStringAttribute('comment'); } set comment(value) { this._comment = value; } resetComment() { this._comment = undefined; } // Temporarily expose input value. Use with caution. get commentInput() { return this._comment; } get lifetimeSeconds() { return this.getNumberAttribute('lifetime_seconds'); } set lifetimeSeconds(value) { this._lifetimeSeconds = value; } resetLifetimeSeconds() { this._lifetimeSeconds = undefined; } // Temporarily expose input value. Use with caution. get lifetimeSecondsInput() { return this._lifetimeSeconds; } get tokenId() { return this.getStringAttribute('token_id'); } set tokenId(value) { this._tokenId = value; } resetTokenId() { this._tokenId = undefined; } // Temporarily expose input value. Use with caution. get tokenIdInput() { return this._tokenId; } get tokenValue() { return this.getStringAttribute('token_value'); } set tokenValue(value) { this._tokenValue = value; } resetTokenValue() { this._tokenValue = undefined; } // Temporarily expose input value. Use with caution. get tokenValueInput() { return this._tokenValue; } } exports.MwsWorkspacesTokenOutputReference = MwsWorkspacesTokenOutputReference; _g = JSII_RTTI_SYMBOL_1; MwsWorkspacesTokenOutputReference[_g] = { fqn: "@cdktf/provider-databricks.mwsWorkspaces.MwsWorkspacesTokenOutputReference", version: "15.7.0" }; /** * Represents a {@link https://registry.terraform.io/providers/databricks/databricks/1.90.0/docs/resources/mws_workspaces databricks_mws_workspaces} */ class MwsWorkspaces extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a MwsWorkspaces 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 MwsWorkspaces to import * @param importFromId The id of the existing MwsWorkspaces that should be imported. Refer to the {@link https://registry.terraform.io/providers/databricks/databricks/1.90.0/docs/resources/mws_workspaces#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the MwsWorkspaces to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "databricks_mws_workspaces", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/databricks/databricks/1.90.0/docs/resources/mws_workspaces databricks_mws_workspaces} 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 MwsWorkspacesConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'databricks_mws_workspaces', terraformGeneratorMetadata: { providerName: 'databricks', providerVersion: '1.90.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 }); // cloud_resource_container - computed: false, optional: true, required: false this._cloudResourceContainer = new MwsWorkspacesCloudResourceContainerOutputReference(this, "cloud_resource_container"); // external_customer_info - computed: false, optional: true, required: false this._externalCustomerInfo = new MwsWorkspacesExternalCustomerInfoOutputReference(this, "external_customer_info"); // gcp_managed_network_config - computed: false, optional: true, required: false this._gcpManagedNetworkConfig = new MwsWorkspacesGcpManagedNetworkConfigOutputReference(this, "gcp_managed_network_config"); // gke_config - computed: false, optional: true, required: false this._gkeConfig = new MwsWorkspacesGkeConfigOutputReference(this, "gke_config"); // timeouts - computed: false, optional: true, required: false this._timeouts = new MwsWorkspacesTimeoutsOutputReference(this, "timeouts"); // token - computed: false, optional: true, required: false this._token = new MwsWorkspacesTokenOutputReference(this, "token"); this._accountId = config.accountId; this._awsRegion = config.awsRegion; this._cloud = config.cloud; this._computeMode = config.computeMode; this._creationTime = config.creationTime; this._credentialsId = config.credentialsId; this._customTags = config.customTags; this._customerManagedKeyId = config.customerManagedKeyId; this._deploymentName = config.deploymentName; this._id = config.id; this._isNoPublicIpEnabled = config.isNoPublicIpEnabled; this._location = config.location; this._managedServicesCustomerManagedKeyId = config.managedServicesCustomerManagedKeyId; this._networkId = config.networkId; this._pricingTier = config.pricingTier; this._privateAccessSettingsId = config.privateAccessSettingsId; this._storageConfigurationId = config.storageConfigurationId; this._storageCustomerManagedKeyId = config.storageCustomerManagedKeyId; this._workspaceId = config.workspaceId; this._workspaceName = config.workspaceName; this._workspaceStatus = config.workspaceStatus; this._workspaceStatusMessage = config.workspaceStatusMessage; this._workspaceUrl = config.workspaceUrl; this._cloudResourceContainer.internalValue = config.cloudResourceContainer; this._externalCustomerInfo.internalValue = config.externalCustomerInfo; this._gcpManagedNetworkConfig.internalValue = config.gcpManagedNetworkConfig; this._gkeConfig.internalValue = config.gkeConfig; this._timeouts.internalValue = config.timeouts; this._token.internalValue = config.token; } get accountId() { return this.getStringAttribute('account_id'); } set accountId(value) { this._accountId = value; } // Temporarily expose input value. Use with caution. get accountIdInput() { return this._accountId; } get awsRegion() { return this.getStringAttribute('aws_region'); } set awsRegion(value) { this._awsRegion = value; } resetAwsRegion() { this._awsRegion = undefined; } // Temporarily expose input value. Use with caution. get awsRegionInput() { return this._awsRegion; } get cloud() { return this.getStringAttribute('cloud'); } set cloud(value) { this._cloud = value; } resetCloud() { this._cloud = undefined; } // Temporarily expose input value. Use with caution. get cloudInput() { return this._cloud; } get computeMode() { return this.getStringAttribute('compute_mode'); } set computeMode(value) { this._computeMode = value; } resetComputeMode() { this._computeMode = undefined; } // Temporarily expose input value. Use with caution. get computeModeInput() { return this._computeMode; } get creationTime() { return this.getNumberAttribute('creation_time'); } set creationTime(value) { this._creationTime = value; } resetCreationTime() { this._creationTime = undefined; } // Temporarily expose input value. Use with caution. get creationTimeInput() { return this._creationTime; } get credentialsId() { return this.getStringAttribute('credentials_id'); } set credentialsId(value) { this._credentialsId = value; } resetCredentialsId() { this._credentialsId = undefined; } // Temporarily expose input value. Use with caution. get credentialsIdInput() { return this._credentialsId; } get customTags() { return this.getStringMapAttribute('custom_tags'); } set customTags(value) { this._customTags = value; } resetCustomTags() { this._customTags = undefined; } // Temporarily expose input value. Use with caution. get customTagsInput() { return this._customTags; } get customerManagedKeyId() { return this.getStringAttribute('customer_managed_key_id'); } set customerManagedKeyId(value) { this._customerManagedKeyId = value; } resetCustomerManagedKeyId() { this._customerManagedKeyId = undefined; } // Temporarily expose input value. Use with caution. get customerManagedKeyIdInput() { return this._customerManagedKeyId; } get deploymentName() { return this.getStringAttribute('deployment_name'); } set deploymentName(value) { this._deploymentName = value; } resetDeploymentName() { this._deploymentName = undefined; } // Temporarily expose input value. Use with caution. get deploymentNameInput() { return this._deploymentName; } // effective_compute_mode - computed: true, optional: false, required: false get effectiveComputeMode() { return this.getStringAttribute('effective_compute_mode'); } // gcp_workspace_sa - computed: true, optional: false, required: false get gcpWorkspaceSa() { return this.getStringAttribute('gcp_workspace_sa'); } 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 isNoPublicIpEnabled() { return this.getBooleanAttribute('is_no_public_ip_enabled'); } set isNoPublicIpEnabled(value) { this._isNoPublicIpEnabled = value; } resetIsNoPublicIpEnabled() { this._isNoPublicIpEnabled = undefined; } // Temporarily expose input value. Use with caution. get isNoPublicIpEnabledInput() { return this._isNoPublicIpEnabled; } get location() { return this.getStringAttribute('location'); } set location(value) { this._location = value; } resetLocation() { this._location = undefined; } // Temporarily expose input value. Use with caution. get locationInput() { return this._location; } get managedServicesCustomerManagedKeyId() { return this.getStringAttribute('managed_services_customer_managed_key_id'); } set managedServicesCustomerManagedKeyId(value) { this._managedServicesCustomerManagedKeyId = value; } resetManagedServicesCustomerManagedKeyId() { this._managedServicesCustomerManagedKeyId = undefined; } // Temporarily expose input value. Use with caution. get managedServicesCustomerManagedKeyIdInput() { return this._managedServicesCustomerManagedKeyId; } get networkId() { return this.getStringAttribute('network_id'); } set networkId(value) { this._networkId = value; } resetNetworkId() { this._networkId = undefined; } // Temporarily expose input value. Use with caution. get networkIdInput() { return this._networkId; } get pricingTier() { return this.getStringAttribute('pricing_tier'); } set pricingTier(value) { this._pricingTier = value; } resetPricingTier() { this._pricingTier = undefined; } // Temporarily expose input value. Use with caution. get pricingTierInput() { return this._pricingTier; } get privateAccessSettingsId() { return this.getStringAttribute('private_access_settings_id'); } set privateAccessSettingsId(value) { this._privateAccessSettingsId = value; } resetPrivateAccessSettingsId() { this._privateAccessSettingsId = undefined; } // Temporarily expose input value. Use with caution. get privateAccessSettingsIdInput() { return this._privateAccessSettingsId; } get storageConfigurationId() { return this.getStringAttribute('storage_configuration_id'); } set storageConfigurationId(value) { this._storageConfigurationId = value; } resetStorageConfigurationId() { this._storageConfigurationId = undefined; } // Temporarily expose input value. Use with caution. get storageConfigurationIdInput() { return this._storageConfigurationId; } get storageCustomerManagedKeyId() { return this.getStringAttribute('storage_customer_managed_key_id'); } set storageCustomerManagedKeyId(value) { this._storageCustomerManagedKeyId = value; } resetStorageCustomerManagedKeyId() { this._storageCustomerManagedKeyId = undefined; } // Temporarily expose input value. Use with caution. get storageCustomerManagedKeyIdInput() { return this._storageCustomerManagedKeyId; } get workspaceId() { return this.getNumberAttribute('workspace_id'); } set workspaceId(value) { this._workspaceId = value; } resetWorkspaceId() { this._workspaceId = undefined; } // Temporarily expose input value. Use with caution. get workspaceIdInput() { return this._workspaceId; } get workspaceName() { return this.getStringAttribute('workspace_name'); } set workspaceName(value) { this._workspaceName = value; } // Temporarily expose input value. Use with caution. get workspaceNameInput() { return this._workspaceName; } get workspaceStatus() { return this.getStringAttribute('workspace_status'); } set workspaceStatus(value) { this._workspaceStatus = value; } resetWorkspaceStatus() { this._workspaceStatus = undefined; } // Temporarily expose input value. Use with caution. get workspaceStatusInput() { return this._workspaceStatus; } get workspaceStatusMessage() { return this.getStringAttribute('workspace_status_message'); } set workspaceStatusMessage(value) { this._workspaceStatusMessage = value; } resetWorkspaceStatusMessage() { this._workspaceStatusMessage = undefined; } // Temporarily expose input value. Use with caution. get workspaceStatusMessageInput() { return this._workspaceStatusMessage; } get workspaceUrl() { return this.getStringAttribute('workspace_url'); } set workspaceUrl(value) { this._workspaceUrl = value; } resetWorkspaceUrl() { this._workspaceUrl = undefined; } // Temporarily expose input value. Use with caution. get workspaceUrlInput() { return this._workspaceUrl; } get cloudResourceContainer() { return this._cloudResourceContainer; } putCloudResourceContainer(value) { this._cloudResourceContainer.internalValue = value; } resetCloudResourceContainer() { this._cloudResourceContainer.internalValue = undefined; } // Temporarily expose input value. Use with caution. get cloudResourceContainerInput() { return this._cloudResourceContainer.internalValue; } get externalCustomerInfo() { return this._externalCustomerInfo; } putExternalCustomerInfo(value) { this._externalCustomerInfo.internalValue = value; } resetExternalCustomerInfo() { this._externalCustomerInfo.internalValue = undefined; } // Temporarily expose input value. Use with caution. get externalCustomerInfoInput() { return this._externalCustomerInfo.internalValue; } get gcpManagedNetworkConfig() { return this._gcpManagedNetworkConfig; } putGcpManagedNetworkConfig(value) { this._gcpManagedNetworkConfig.internalValue = value; } resetGcpManagedNetworkConfig() { this._gcpManagedNetworkConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. get gcpManagedNetworkConfigInput() { return this._gcpManagedNetworkConfig.internalValue; } get gkeConfig() { return this._gkeConfig; } putGkeConfig(value) { this._gkeConfig.internalValue = value; } resetGkeConfig() { this._gkeConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. get gkeConfigInput() { return this._gkeConfig.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 token() { return this._token; } putToken(value) { this._token.internalValue = value; } resetToken() { this._token.internalValue = undefined; } // Temporarily expose input value. Use with caution. get tokenInput() { return this._token.internalValue; } // ========= // SYNTHESIS // ========= synthesizeAttributes() { return { account_id: cdktf.stringToTerraform(this._accountId), aws_region: cdktf.stringToTerraform(this._awsRegion), cloud: cdktf.stringToTerraform(this._cloud), compute_mode: cdktf.stringToTerraform(this._computeMode), creation_time: cdktf.numberToTerraform(this._creationTime), credentials_id: cdktf.stringToTerraform(this._credentialsId), custom_tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._customTags), customer_managed_key_id: cdktf.stringToTerraform(this._customerManagedKeyId), deployment_name: cdktf.stringToTerraform(this._deploymentName), id: cdktf.stringToTerraform(this._id), is_no_public_ip_enabled: cdktf.booleanToTerraform(this._isNoPublicIpEnabled), location: cdktf.stringToTerraform(this._location), managed_services_customer_managed_key_id: cdktf.stringToTerraform(this._managedServicesCustomerManagedKeyId), network_id: cdktf.stringToTerraform(this._networkId), pricing_tier: cdktf.stringToTerraform(this._pricingTier), private_access_settings_id: cdktf.stringToTerraform(this._privateAccessSettingsId), storage_configuration_id: cdktf.stringToTerraform(this._storageConfigurationId), storage_customer_managed_key_id: cdktf.stringToTerraform(this._storageCustomerManagedKeyId), workspace_id: cdktf.numberToTerraform(this._workspaceId), workspace_name: cdktf.stringToTerraform(this._workspaceName), workspace_status: cdktf.stringToTerraform(this._workspaceStatus), workspace_status_message: cdktf.stringToTerraform(this._workspaceStatusMessage), workspace_url: cdktf.stringToTerraform(this._workspaceUrl), cloud_resource_container: mwsWorkspacesCloudResourceContainerToTerraform(this._cloudResourceContainer.internalValue), external_customer_info: mwsWorkspacesExternalCustomerInfoToTerraform(this._external