UNPKG

@cdktf/provider-google

Version:

Prebuilt google Provider for Terraform CDK (cdktf)

1,093 lines 333 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v; Object.defineProperty(exports, "__esModule", { value: true }); exports.DataprocBatch = exports.DataprocBatchTimeoutsOutputReference = exports.dataprocBatchTimeoutsToHclTerraform = exports.dataprocBatchTimeoutsToTerraform = exports.DataprocBatchSparkSqlBatchOutputReference = exports.dataprocBatchSparkSqlBatchToHclTerraform = exports.dataprocBatchSparkSqlBatchToTerraform = exports.DataprocBatchSparkRBatchOutputReference = exports.dataprocBatchSparkRBatchToHclTerraform = exports.dataprocBatchSparkRBatchToTerraform = exports.DataprocBatchSparkBatchOutputReference = exports.dataprocBatchSparkBatchToHclTerraform = exports.dataprocBatchSparkBatchToTerraform = exports.DataprocBatchRuntimeConfigOutputReference = exports.dataprocBatchRuntimeConfigToHclTerraform = exports.dataprocBatchRuntimeConfigToTerraform = exports.DataprocBatchRuntimeConfigAutotuningConfigOutputReference = exports.dataprocBatchRuntimeConfigAutotuningConfigToHclTerraform = exports.dataprocBatchRuntimeConfigAutotuningConfigToTerraform = exports.DataprocBatchPysparkBatchOutputReference = exports.dataprocBatchPysparkBatchToHclTerraform = exports.dataprocBatchPysparkBatchToTerraform = exports.DataprocBatchEnvironmentConfigOutputReference = exports.dataprocBatchEnvironmentConfigToHclTerraform = exports.dataprocBatchEnvironmentConfigToTerraform = exports.DataprocBatchEnvironmentConfigPeripheralsConfigOutputReference = exports.dataprocBatchEnvironmentConfigPeripheralsConfigToHclTerraform = exports.dataprocBatchEnvironmentConfigPeripheralsConfigToTerraform = exports.DataprocBatchEnvironmentConfigPeripheralsConfigSparkHistoryServerConfigOutputReference = exports.dataprocBatchEnvironmentConfigPeripheralsConfigSparkHistoryServerConfigToHclTerraform = exports.dataprocBatchEnvironmentConfigPeripheralsConfigSparkHistoryServerConfigToTerraform = exports.DataprocBatchEnvironmentConfigExecutionConfigOutputReference = exports.dataprocBatchEnvironmentConfigExecutionConfigToHclTerraform = exports.dataprocBatchEnvironmentConfigExecutionConfigToTerraform = exports.DataprocBatchStateHistoryList = exports.DataprocBatchStateHistoryOutputReference = exports.dataprocBatchStateHistoryToHclTerraform = exports.dataprocBatchStateHistoryToTerraform = exports.DataprocBatchRuntimeInfoList = exports.DataprocBatchRuntimeInfoOutputReference = exports.dataprocBatchRuntimeInfoToHclTerraform = exports.dataprocBatchRuntimeInfoToTerraform = exports.DataprocBatchRuntimeInfoCurrentUsageList = exports.DataprocBatchRuntimeInfoCurrentUsageOutputReference = exports.dataprocBatchRuntimeInfoCurrentUsageToHclTerraform = exports.dataprocBatchRuntimeInfoCurrentUsageToTerraform = exports.DataprocBatchRuntimeInfoApproximateUsageList = exports.DataprocBatchRuntimeInfoApproximateUsageOutputReference = exports.dataprocBatchRuntimeInfoApproximateUsageToHclTerraform = exports.dataprocBatchRuntimeInfoApproximateUsageToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function dataprocBatchRuntimeInfoApproximateUsageToTerraform(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 {}; } exports.dataprocBatchRuntimeInfoApproximateUsageToTerraform = dataprocBatchRuntimeInfoApproximateUsageToTerraform; function dataprocBatchRuntimeInfoApproximateUsageToHclTerraform(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 = {}; return attrs; } exports.dataprocBatchRuntimeInfoApproximateUsageToHclTerraform = dataprocBatchRuntimeInfoApproximateUsageToHclTerraform; class DataprocBatchRuntimeInfoApproximateUsageOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // accelerator_type - computed: true, optional: false, required: false get acceleratorType() { return this.getStringAttribute('accelerator_type'); } // milli_accelerator_seconds - computed: true, optional: false, required: false get milliAcceleratorSeconds() { return this.getStringAttribute('milli_accelerator_seconds'); } // milli_dcu_seconds - computed: true, optional: false, required: false get milliDcuSeconds() { return this.getStringAttribute('milli_dcu_seconds'); } // shuffle_storage_gb_seconds - computed: true, optional: false, required: false get shuffleStorageGbSeconds() { return this.getStringAttribute('shuffle_storage_gb_seconds'); } } exports.DataprocBatchRuntimeInfoApproximateUsageOutputReference = DataprocBatchRuntimeInfoApproximateUsageOutputReference; _a = JSII_RTTI_SYMBOL_1; DataprocBatchRuntimeInfoApproximateUsageOutputReference[_a] = { fqn: "@cdktf/provider-google.dataprocBatch.DataprocBatchRuntimeInfoApproximateUsageOutputReference", version: "14.12.0" }; class DataprocBatchRuntimeInfoApproximateUsageList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new DataprocBatchRuntimeInfoApproximateUsageOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataprocBatchRuntimeInfoApproximateUsageList = DataprocBatchRuntimeInfoApproximateUsageList; _b = JSII_RTTI_SYMBOL_1; DataprocBatchRuntimeInfoApproximateUsageList[_b] = { fqn: "@cdktf/provider-google.dataprocBatch.DataprocBatchRuntimeInfoApproximateUsageList", version: "14.12.0" }; function dataprocBatchRuntimeInfoCurrentUsageToTerraform(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 {}; } exports.dataprocBatchRuntimeInfoCurrentUsageToTerraform = dataprocBatchRuntimeInfoCurrentUsageToTerraform; function dataprocBatchRuntimeInfoCurrentUsageToHclTerraform(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 = {}; return attrs; } exports.dataprocBatchRuntimeInfoCurrentUsageToHclTerraform = dataprocBatchRuntimeInfoCurrentUsageToHclTerraform; class DataprocBatchRuntimeInfoCurrentUsageOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // accelerator_type - computed: true, optional: false, required: false get acceleratorType() { return this.getStringAttribute('accelerator_type'); } // milli_accelerator - computed: true, optional: false, required: false get milliAccelerator() { return this.getStringAttribute('milli_accelerator'); } // milli_dcu - computed: true, optional: false, required: false get milliDcu() { return this.getStringAttribute('milli_dcu'); } // milli_dcu_premium - computed: true, optional: false, required: false get milliDcuPremium() { return this.getStringAttribute('milli_dcu_premium'); } // shuffle_storage_gb - computed: true, optional: false, required: false get shuffleStorageGb() { return this.getStringAttribute('shuffle_storage_gb'); } // shuffle_storage_gb_premium - computed: true, optional: false, required: false get shuffleStorageGbPremium() { return this.getStringAttribute('shuffle_storage_gb_premium'); } // snapshot_time - computed: true, optional: false, required: false get snapshotTime() { return this.getStringAttribute('snapshot_time'); } } exports.DataprocBatchRuntimeInfoCurrentUsageOutputReference = DataprocBatchRuntimeInfoCurrentUsageOutputReference; _c = JSII_RTTI_SYMBOL_1; DataprocBatchRuntimeInfoCurrentUsageOutputReference[_c] = { fqn: "@cdktf/provider-google.dataprocBatch.DataprocBatchRuntimeInfoCurrentUsageOutputReference", version: "14.12.0" }; class DataprocBatchRuntimeInfoCurrentUsageList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new DataprocBatchRuntimeInfoCurrentUsageOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataprocBatchRuntimeInfoCurrentUsageList = DataprocBatchRuntimeInfoCurrentUsageList; _d = JSII_RTTI_SYMBOL_1; DataprocBatchRuntimeInfoCurrentUsageList[_d] = { fqn: "@cdktf/provider-google.dataprocBatch.DataprocBatchRuntimeInfoCurrentUsageList", version: "14.12.0" }; function dataprocBatchRuntimeInfoToTerraform(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 {}; } exports.dataprocBatchRuntimeInfoToTerraform = dataprocBatchRuntimeInfoToTerraform; function dataprocBatchRuntimeInfoToHclTerraform(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 = {}; return attrs; } exports.dataprocBatchRuntimeInfoToHclTerraform = dataprocBatchRuntimeInfoToHclTerraform; class DataprocBatchRuntimeInfoOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; // approximate_usage - computed: true, optional: false, required: false this._approximateUsage = new DataprocBatchRuntimeInfoApproximateUsageList(this, "approximate_usage", false); // current_usage - computed: true, optional: false, required: false this._currentUsage = new DataprocBatchRuntimeInfoCurrentUsageList(this, "current_usage", false); // endpoints - computed: true, optional: false, required: false this._endpoints = new cdktf.StringMap(this, "endpoints"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } get approximateUsage() { return this._approximateUsage; } get currentUsage() { return this._currentUsage; } // diagnostic_output_uri - computed: true, optional: false, required: false get diagnosticOutputUri() { return this.getStringAttribute('diagnostic_output_uri'); } get endpoints() { return this._endpoints; } // output_uri - computed: true, optional: false, required: false get outputUri() { return this.getStringAttribute('output_uri'); } } exports.DataprocBatchRuntimeInfoOutputReference = DataprocBatchRuntimeInfoOutputReference; _e = JSII_RTTI_SYMBOL_1; DataprocBatchRuntimeInfoOutputReference[_e] = { fqn: "@cdktf/provider-google.dataprocBatch.DataprocBatchRuntimeInfoOutputReference", version: "14.12.0" }; class DataprocBatchRuntimeInfoList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new DataprocBatchRuntimeInfoOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataprocBatchRuntimeInfoList = DataprocBatchRuntimeInfoList; _f = JSII_RTTI_SYMBOL_1; DataprocBatchRuntimeInfoList[_f] = { fqn: "@cdktf/provider-google.dataprocBatch.DataprocBatchRuntimeInfoList", version: "14.12.0" }; function dataprocBatchStateHistoryToTerraform(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 {}; } exports.dataprocBatchStateHistoryToTerraform = dataprocBatchStateHistoryToTerraform; function dataprocBatchStateHistoryToHclTerraform(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 = {}; return attrs; } exports.dataprocBatchStateHistoryToHclTerraform = dataprocBatchStateHistoryToHclTerraform; class DataprocBatchStateHistoryOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // state - computed: true, optional: false, required: false get state() { return this.getStringAttribute('state'); } // state_message - computed: true, optional: false, required: false get stateMessage() { return this.getStringAttribute('state_message'); } // state_start_time - computed: true, optional: false, required: false get stateStartTime() { return this.getStringAttribute('state_start_time'); } } exports.DataprocBatchStateHistoryOutputReference = DataprocBatchStateHistoryOutputReference; _g = JSII_RTTI_SYMBOL_1; DataprocBatchStateHistoryOutputReference[_g] = { fqn: "@cdktf/provider-google.dataprocBatch.DataprocBatchStateHistoryOutputReference", version: "14.12.0" }; class DataprocBatchStateHistoryList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new DataprocBatchStateHistoryOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataprocBatchStateHistoryList = DataprocBatchStateHistoryList; _h = JSII_RTTI_SYMBOL_1; DataprocBatchStateHistoryList[_h] = { fqn: "@cdktf/provider-google.dataprocBatch.DataprocBatchStateHistoryList", version: "14.12.0" }; function dataprocBatchEnvironmentConfigExecutionConfigToTerraform(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 { kms_key: cdktf.stringToTerraform(struct.kmsKey), network_tags: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.networkTags), network_uri: cdktf.stringToTerraform(struct.networkUri), service_account: cdktf.stringToTerraform(struct.serviceAccount), staging_bucket: cdktf.stringToTerraform(struct.stagingBucket), subnetwork_uri: cdktf.stringToTerraform(struct.subnetworkUri), ttl: cdktf.stringToTerraform(struct.ttl), }; } exports.dataprocBatchEnvironmentConfigExecutionConfigToTerraform = dataprocBatchEnvironmentConfigExecutionConfigToTerraform; function dataprocBatchEnvironmentConfigExecutionConfigToHclTerraform(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 = { kms_key: { value: cdktf.stringToHclTerraform(struct.kmsKey), isBlock: false, type: "simple", storageClassType: "string", }, network_tags: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.networkTags), isBlock: false, type: "list", storageClassType: "stringList", }, network_uri: { value: cdktf.stringToHclTerraform(struct.networkUri), isBlock: false, type: "simple", storageClassType: "string", }, service_account: { value: cdktf.stringToHclTerraform(struct.serviceAccount), isBlock: false, type: "simple", storageClassType: "string", }, staging_bucket: { value: cdktf.stringToHclTerraform(struct.stagingBucket), isBlock: false, type: "simple", storageClassType: "string", }, subnetwork_uri: { value: cdktf.stringToHclTerraform(struct.subnetworkUri), isBlock: false, type: "simple", storageClassType: "string", }, ttl: { value: cdktf.stringToHclTerraform(struct.ttl), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dataprocBatchEnvironmentConfigExecutionConfigToHclTerraform = dataprocBatchEnvironmentConfigExecutionConfigToHclTerraform; class DataprocBatchEnvironmentConfigExecutionConfigOutputReference 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._kmsKey !== undefined) { hasAnyValues = true; internalValueResult.kmsKey = this._kmsKey; } if (this._networkTags !== undefined) { hasAnyValues = true; internalValueResult.networkTags = this._networkTags; } if (this._networkUri !== undefined) { hasAnyValues = true; internalValueResult.networkUri = this._networkUri; } if (this._serviceAccount !== undefined) { hasAnyValues = true; internalValueResult.serviceAccount = this._serviceAccount; } if (this._stagingBucket !== undefined) { hasAnyValues = true; internalValueResult.stagingBucket = this._stagingBucket; } if (this._subnetworkUri !== undefined) { hasAnyValues = true; internalValueResult.subnetworkUri = this._subnetworkUri; } if (this._ttl !== undefined) { hasAnyValues = true; internalValueResult.ttl = this._ttl; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._kmsKey = undefined; this._networkTags = undefined; this._networkUri = undefined; this._serviceAccount = undefined; this._stagingBucket = undefined; this._subnetworkUri = undefined; this._ttl = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._kmsKey = value.kmsKey; this._networkTags = value.networkTags; this._networkUri = value.networkUri; this._serviceAccount = value.serviceAccount; this._stagingBucket = value.stagingBucket; this._subnetworkUri = value.subnetworkUri; this._ttl = value.ttl; } } get kmsKey() { return this.getStringAttribute('kms_key'); } set kmsKey(value) { this._kmsKey = value; } resetKmsKey() { this._kmsKey = undefined; } // Temporarily expose input value. Use with caution. get kmsKeyInput() { return this._kmsKey; } get networkTags() { return this.getListAttribute('network_tags'); } set networkTags(value) { this._networkTags = value; } resetNetworkTags() { this._networkTags = undefined; } // Temporarily expose input value. Use with caution. get networkTagsInput() { return this._networkTags; } get networkUri() { return this.getStringAttribute('network_uri'); } set networkUri(value) { this._networkUri = value; } resetNetworkUri() { this._networkUri = undefined; } // Temporarily expose input value. Use with caution. get networkUriInput() { return this._networkUri; } 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; } get stagingBucket() { return this.getStringAttribute('staging_bucket'); } set stagingBucket(value) { this._stagingBucket = value; } resetStagingBucket() { this._stagingBucket = undefined; } // Temporarily expose input value. Use with caution. get stagingBucketInput() { return this._stagingBucket; } get subnetworkUri() { return this.getStringAttribute('subnetwork_uri'); } set subnetworkUri(value) { this._subnetworkUri = value; } resetSubnetworkUri() { this._subnetworkUri = undefined; } // Temporarily expose input value. Use with caution. get subnetworkUriInput() { return this._subnetworkUri; } get ttl() { return this.getStringAttribute('ttl'); } set ttl(value) { this._ttl = value; } resetTtl() { this._ttl = undefined; } // Temporarily expose input value. Use with caution. get ttlInput() { return this._ttl; } } exports.DataprocBatchEnvironmentConfigExecutionConfigOutputReference = DataprocBatchEnvironmentConfigExecutionConfigOutputReference; _j = JSII_RTTI_SYMBOL_1; DataprocBatchEnvironmentConfigExecutionConfigOutputReference[_j] = { fqn: "@cdktf/provider-google.dataprocBatch.DataprocBatchEnvironmentConfigExecutionConfigOutputReference", version: "14.12.0" }; function dataprocBatchEnvironmentConfigPeripheralsConfigSparkHistoryServerConfigToTerraform(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 { dataproc_cluster: cdktf.stringToTerraform(struct.dataprocCluster), }; } exports.dataprocBatchEnvironmentConfigPeripheralsConfigSparkHistoryServerConfigToTerraform = dataprocBatchEnvironmentConfigPeripheralsConfigSparkHistoryServerConfigToTerraform; function dataprocBatchEnvironmentConfigPeripheralsConfigSparkHistoryServerConfigToHclTerraform(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 = { dataproc_cluster: { value: cdktf.stringToHclTerraform(struct.dataprocCluster), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dataprocBatchEnvironmentConfigPeripheralsConfigSparkHistoryServerConfigToHclTerraform = dataprocBatchEnvironmentConfigPeripheralsConfigSparkHistoryServerConfigToHclTerraform; class DataprocBatchEnvironmentConfigPeripheralsConfigSparkHistoryServerConfigOutputReference 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._dataprocCluster !== undefined) { hasAnyValues = true; internalValueResult.dataprocCluster = this._dataprocCluster; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._dataprocCluster = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._dataprocCluster = value.dataprocCluster; } } get dataprocCluster() { return this.getStringAttribute('dataproc_cluster'); } set dataprocCluster(value) { this._dataprocCluster = value; } resetDataprocCluster() { this._dataprocCluster = undefined; } // Temporarily expose input value. Use with caution. get dataprocClusterInput() { return this._dataprocCluster; } } exports.DataprocBatchEnvironmentConfigPeripheralsConfigSparkHistoryServerConfigOutputReference = DataprocBatchEnvironmentConfigPeripheralsConfigSparkHistoryServerConfigOutputReference; _k = JSII_RTTI_SYMBOL_1; DataprocBatchEnvironmentConfigPeripheralsConfigSparkHistoryServerConfigOutputReference[_k] = { fqn: "@cdktf/provider-google.dataprocBatch.DataprocBatchEnvironmentConfigPeripheralsConfigSparkHistoryServerConfigOutputReference", version: "14.12.0" }; function dataprocBatchEnvironmentConfigPeripheralsConfigToTerraform(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 { metastore_service: cdktf.stringToTerraform(struct.metastoreService), spark_history_server_config: dataprocBatchEnvironmentConfigPeripheralsConfigSparkHistoryServerConfigToTerraform(struct.sparkHistoryServerConfig), }; } exports.dataprocBatchEnvironmentConfigPeripheralsConfigToTerraform = dataprocBatchEnvironmentConfigPeripheralsConfigToTerraform; function dataprocBatchEnvironmentConfigPeripheralsConfigToHclTerraform(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 = { metastore_service: { value: cdktf.stringToHclTerraform(struct.metastoreService), isBlock: false, type: "simple", storageClassType: "string", }, spark_history_server_config: { value: dataprocBatchEnvironmentConfigPeripheralsConfigSparkHistoryServerConfigToHclTerraform(struct.sparkHistoryServerConfig), isBlock: true, type: "list", storageClassType: "DataprocBatchEnvironmentConfigPeripheralsConfigSparkHistoryServerConfigList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dataprocBatchEnvironmentConfigPeripheralsConfigToHclTerraform = dataprocBatchEnvironmentConfigPeripheralsConfigToHclTerraform; class DataprocBatchEnvironmentConfigPeripheralsConfigOutputReference 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; // spark_history_server_config - computed: false, optional: true, required: false this._sparkHistoryServerConfig = new DataprocBatchEnvironmentConfigPeripheralsConfigSparkHistoryServerConfigOutputReference(this, "spark_history_server_config"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._metastoreService !== undefined) { hasAnyValues = true; internalValueResult.metastoreService = this._metastoreService; } if (this._sparkHistoryServerConfig?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.sparkHistoryServerConfig = this._sparkHistoryServerConfig?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._metastoreService = undefined; this._sparkHistoryServerConfig.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._metastoreService = value.metastoreService; this._sparkHistoryServerConfig.internalValue = value.sparkHistoryServerConfig; } } get metastoreService() { return this.getStringAttribute('metastore_service'); } set metastoreService(value) { this._metastoreService = value; } resetMetastoreService() { this._metastoreService = undefined; } // Temporarily expose input value. Use with caution. get metastoreServiceInput() { return this._metastoreService; } get sparkHistoryServerConfig() { return this._sparkHistoryServerConfig; } putSparkHistoryServerConfig(value) { this._sparkHistoryServerConfig.internalValue = value; } resetSparkHistoryServerConfig() { this._sparkHistoryServerConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. get sparkHistoryServerConfigInput() { return this._sparkHistoryServerConfig.internalValue; } } exports.DataprocBatchEnvironmentConfigPeripheralsConfigOutputReference = DataprocBatchEnvironmentConfigPeripheralsConfigOutputReference; _l = JSII_RTTI_SYMBOL_1; DataprocBatchEnvironmentConfigPeripheralsConfigOutputReference[_l] = { fqn: "@cdktf/provider-google.dataprocBatch.DataprocBatchEnvironmentConfigPeripheralsConfigOutputReference", version: "14.12.0" }; function dataprocBatchEnvironmentConfigToTerraform(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 { execution_config: dataprocBatchEnvironmentConfigExecutionConfigToTerraform(struct.executionConfig), peripherals_config: dataprocBatchEnvironmentConfigPeripheralsConfigToTerraform(struct.peripheralsConfig), }; } exports.dataprocBatchEnvironmentConfigToTerraform = dataprocBatchEnvironmentConfigToTerraform; function dataprocBatchEnvironmentConfigToHclTerraform(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 = { execution_config: { value: dataprocBatchEnvironmentConfigExecutionConfigToHclTerraform(struct.executionConfig), isBlock: true, type: "list", storageClassType: "DataprocBatchEnvironmentConfigExecutionConfigList", }, peripherals_config: { value: dataprocBatchEnvironmentConfigPeripheralsConfigToHclTerraform(struct.peripheralsConfig), isBlock: true, type: "list", storageClassType: "DataprocBatchEnvironmentConfigPeripheralsConfigList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dataprocBatchEnvironmentConfigToHclTerraform = dataprocBatchEnvironmentConfigToHclTerraform; class DataprocBatchEnvironmentConfigOutputReference 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; // execution_config - computed: false, optional: true, required: false this._executionConfig = new DataprocBatchEnvironmentConfigExecutionConfigOutputReference(this, "execution_config"); // peripherals_config - computed: false, optional: true, required: false this._peripheralsConfig = new DataprocBatchEnvironmentConfigPeripheralsConfigOutputReference(this, "peripherals_config"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._executionConfig?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.executionConfig = this._executionConfig?.internalValue; } if (this._peripheralsConfig?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.peripheralsConfig = this._peripheralsConfig?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._executionConfig.internalValue = undefined; this._peripheralsConfig.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._executionConfig.internalValue = value.executionConfig; this._peripheralsConfig.internalValue = value.peripheralsConfig; } } get executionConfig() { return this._executionConfig; } putExecutionConfig(value) { this._executionConfig.internalValue = value; } resetExecutionConfig() { this._executionConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. get executionConfigInput() { return this._executionConfig.internalValue; } get peripheralsConfig() { return this._peripheralsConfig; } putPeripheralsConfig(value) { this._peripheralsConfig.internalValue = value; } resetPeripheralsConfig() { this._peripheralsConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. get peripheralsConfigInput() { return this._peripheralsConfig.internalValue; } } exports.DataprocBatchEnvironmentConfigOutputReference = DataprocBatchEnvironmentConfigOutputReference; _m = JSII_RTTI_SYMBOL_1; DataprocBatchEnvironmentConfigOutputReference[_m] = { fqn: "@cdktf/provider-google.dataprocBatch.DataprocBatchEnvironmentConfigOutputReference", version: "14.12.0" }; function dataprocBatchPysparkBatchToTerraform(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 { archive_uris: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.archiveUris), args: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.args), file_uris: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.fileUris), jar_file_uris: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.jarFileUris), main_python_file_uri: cdktf.stringToTerraform(struct.mainPythonFileUri), python_file_uris: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.pythonFileUris), }; } exports.dataprocBatchPysparkBatchToTerraform = dataprocBatchPysparkBatchToTerraform; function dataprocBatchPysparkBatchToHclTerraform(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 = { archive_uris: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.archiveUris), isBlock: false, type: "list", storageClassType: "stringList", }, args: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.args), isBlock: false, type: "list", storageClassType: "stringList", }, file_uris: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.fileUris), isBlock: false, type: "list", storageClassType: "stringList", }, jar_file_uris: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.jarFileUris), isBlock: false, type: "list", storageClassType: "stringList", }, main_python_file_uri: { value: cdktf.stringToHclTerraform(struct.mainPythonFileUri), isBlock: false, type: "simple", storageClassType: "string", }, python_file_uris: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.pythonFileUris), isBlock: false, type: "list", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dataprocBatchPysparkBatchToHclTerraform = dataprocBatchPysparkBatchToHclTerraform; class DataprocBatchPysparkBatchOutputReference 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._archiveUris !== undefined) { hasAnyValues = true; internalValueResult.archiveUris = this._archiveUris; } if (this._args !== undefined) { hasAnyValues = true; internalValueResult.args = this._args; } if (this._fileUris !== undefined) { hasAnyValues = true; internalValueResult.fileUris = this._fileUris; } if (this._jarFileUris !== undefined) { hasAnyValues = true; internalValueResult.jarFileUris = this._jarFileUris; } if (this._mainPythonFileUri !== undefined) { hasAnyValues = true; internalValueResult.mainPythonFileUri = this._mainPythonFileUri; } if (this._pythonFileUris !== undefined) { hasAnyValues = true; internalValueResult.pythonFileUris = this._pythonFileUris; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._archiveUris = undefined; this._args = undefined; this._fileUris = undefined; this._jarFileUris = undefined; this._mainPythonFileUri = undefined; this._pythonFileUris = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._archiveUris = value.archiveUris; this._args = value.args; this._fileUris = value.fileUris; this._jarFileUris = value.jarFileUris; this._mainPythonFileUri = value.mainPythonFileUri; this._pythonFileUris = value.pythonFileUris; } } get archiveUris() { return this.getListAttribute('archive_uris'); } set archiveUris(value) { this._archiveUris = value; } resetArchiveUris() { this._archiveUris = undefined; } // Temporarily expose input value. Use with caution. get archiveUrisInput() { return this._archiveUris; } get args() { return this.getListAttribute('args'); } set args(value) { this._args = value; } resetArgs() { this._args = undefined; } // Temporarily expose input value. Use with caution. get argsInput() { return this._args; } get fileUris() { return this.getListAttribute('file_uris'); } set fileUris(value) { this._fileUris = value; } resetFileUris() { this._fileUris = undefined; } // Temporarily expose input value. Use with caution. get fileUrisInput() { return this._fileUris; } get jarFileUris() { return this.getListAttribute('jar_file_uris'); } set jarFileUris(value) { this._jarFileUris = value; } resetJarFileUris() { this._jarFileUris = undefined; } // Temporarily expose input value. Use with caution. get jarFileUrisInput() { return this._jarFileUris; } get mainPythonFileUri() { return this.getStringAttribute('main_python_file_uri'); } set mainPythonFileUri(value) { this._mainPythonFileUri = value; } resetMainPythonFileUri() { this._mainPythonFileUri = undefined; } // Temporarily expose input value. Use with caution. get mainPythonFileUriInput() { return this._mainPythonFileUri; } get pythonFileUris() { return this.getListAttribute('python_file_uris'); } set pythonFileUris(value) { this._pythonFileUris = value; } resetPythonFileUris() { this._pythonFileUris = undefined; } // Temporarily expose input value. Use with caution. get pythonFileUrisInput() { return this._pythonFileUris; } } exports.DataprocBatchPysparkBatchOutputReference = DataprocBatchPysparkBatchOutputReference; _o = JSII_RTTI_SYMBOL_1; DataprocBatchPysparkBatchOutputReference[_o] = { fqn: "@cdktf/provider-google.dataprocBatch.DataprocBatchPysparkBatchOutputReference", version: "14.12.0" }