UNPKG

@cdktf/provider-google

Version:

Prebuilt google Provider for Terraform CDK (cdktf)

1,189 lines (1,188 loc) 425 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.dataprocJobSparksqlConfigToTerraform = exports.DataprocJobSparksqlConfigLoggingConfigOutputReference = exports.dataprocJobSparksqlConfigLoggingConfigToHclTerraform = exports.dataprocJobSparksqlConfigLoggingConfigToTerraform = exports.DataprocJobSparkConfigOutputReference = exports.dataprocJobSparkConfigToHclTerraform = exports.dataprocJobSparkConfigToTerraform = exports.DataprocJobSparkConfigLoggingConfigOutputReference = exports.dataprocJobSparkConfigLoggingConfigToHclTerraform = exports.dataprocJobSparkConfigLoggingConfigToTerraform = exports.DataprocJobSchedulingOutputReference = exports.dataprocJobSchedulingToHclTerraform = exports.dataprocJobSchedulingToTerraform = exports.DataprocJobReferenceOutputReference = exports.dataprocJobReferenceToHclTerraform = exports.dataprocJobReferenceToTerraform = exports.DataprocJobPysparkConfigOutputReference = exports.dataprocJobPysparkConfigToHclTerraform = exports.dataprocJobPysparkConfigToTerraform = exports.DataprocJobPysparkConfigLoggingConfigOutputReference = exports.dataprocJobPysparkConfigLoggingConfigToHclTerraform = exports.dataprocJobPysparkConfigLoggingConfigToTerraform = exports.DataprocJobPrestoConfigOutputReference = exports.dataprocJobPrestoConfigToHclTerraform = exports.dataprocJobPrestoConfigToTerraform = exports.DataprocJobPrestoConfigLoggingConfigOutputReference = exports.dataprocJobPrestoConfigLoggingConfigToHclTerraform = exports.dataprocJobPrestoConfigLoggingConfigToTerraform = exports.DataprocJobPlacementOutputReference = exports.dataprocJobPlacementToHclTerraform = exports.dataprocJobPlacementToTerraform = exports.DataprocJobPigConfigOutputReference = exports.dataprocJobPigConfigToHclTerraform = exports.dataprocJobPigConfigToTerraform = exports.DataprocJobPigConfigLoggingConfigOutputReference = exports.dataprocJobPigConfigLoggingConfigToHclTerraform = exports.dataprocJobPigConfigLoggingConfigToTerraform = exports.DataprocJobHiveConfigOutputReference = exports.dataprocJobHiveConfigToHclTerraform = exports.dataprocJobHiveConfigToTerraform = exports.DataprocJobHadoopConfigOutputReference = exports.dataprocJobHadoopConfigToHclTerraform = exports.dataprocJobHadoopConfigToTerraform = exports.DataprocJobHadoopConfigLoggingConfigOutputReference = exports.dataprocJobHadoopConfigLoggingConfigToHclTerraform = exports.dataprocJobHadoopConfigLoggingConfigToTerraform = exports.DataprocJobStatusList = exports.DataprocJobStatusOutputReference = exports.dataprocJobStatusToHclTerraform = exports.dataprocJobStatusToTerraform = void 0; exports.DataprocJob = exports.DataprocJobTimeoutsOutputReference = exports.dataprocJobTimeoutsToHclTerraform = exports.dataprocJobTimeoutsToTerraform = exports.DataprocJobSparksqlConfigOutputReference = exports.dataprocJobSparksqlConfigToHclTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function dataprocJobStatusToTerraform(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.dataprocJobStatusToTerraform = dataprocJobStatusToTerraform; function dataprocJobStatusToHclTerraform(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.dataprocJobStatusToHclTerraform = dataprocJobStatusToHclTerraform; class DataprocJobStatusOutputReference 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; } } // details - computed: true, optional: false, required: false get details() { return this.getStringAttribute('details'); } // state - computed: true, optional: false, required: false get state() { return this.getStringAttribute('state'); } // state_start_time - computed: true, optional: false, required: false get stateStartTime() { return this.getStringAttribute('state_start_time'); } // substate - computed: true, optional: false, required: false get substate() { return this.getStringAttribute('substate'); } } exports.DataprocJobStatusOutputReference = DataprocJobStatusOutputReference; _a = JSII_RTTI_SYMBOL_1; DataprocJobStatusOutputReference[_a] = { fqn: "@cdktf/provider-google.dataprocJob.DataprocJobStatusOutputReference", version: "14.12.0" }; class DataprocJobStatusList 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 DataprocJobStatusOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataprocJobStatusList = DataprocJobStatusList; _b = JSII_RTTI_SYMBOL_1; DataprocJobStatusList[_b] = { fqn: "@cdktf/provider-google.dataprocJob.DataprocJobStatusList", version: "14.12.0" }; function dataprocJobHadoopConfigLoggingConfigToTerraform(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 { driver_log_levels: cdktf.hashMapper(cdktf.stringToTerraform)(struct.driverLogLevels), }; } exports.dataprocJobHadoopConfigLoggingConfigToTerraform = dataprocJobHadoopConfigLoggingConfigToTerraform; function dataprocJobHadoopConfigLoggingConfigToHclTerraform(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 = { driver_log_levels: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.driverLogLevels), isBlock: false, type: "map", storageClassType: "stringMap", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dataprocJobHadoopConfigLoggingConfigToHclTerraform = dataprocJobHadoopConfigLoggingConfigToHclTerraform; class DataprocJobHadoopConfigLoggingConfigOutputReference 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._driverLogLevels !== undefined) { hasAnyValues = true; internalValueResult.driverLogLevels = this._driverLogLevels; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._driverLogLevels = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._driverLogLevels = value.driverLogLevels; } } get driverLogLevels() { return this.getStringMapAttribute('driver_log_levels'); } set driverLogLevels(value) { this._driverLogLevels = value; } // Temporarily expose input value. Use with caution. get driverLogLevelsInput() { return this._driverLogLevels; } } exports.DataprocJobHadoopConfigLoggingConfigOutputReference = DataprocJobHadoopConfigLoggingConfigOutputReference; _c = JSII_RTTI_SYMBOL_1; DataprocJobHadoopConfigLoggingConfigOutputReference[_c] = { fqn: "@cdktf/provider-google.dataprocJob.DataprocJobHadoopConfigLoggingConfigOutputReference", version: "14.12.0" }; function dataprocJobHadoopConfigToTerraform(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_class: cdktf.stringToTerraform(struct.mainClass), main_jar_file_uri: cdktf.stringToTerraform(struct.mainJarFileUri), properties: cdktf.hashMapper(cdktf.stringToTerraform)(struct.properties), logging_config: dataprocJobHadoopConfigLoggingConfigToTerraform(struct.loggingConfig), }; } exports.dataprocJobHadoopConfigToTerraform = dataprocJobHadoopConfigToTerraform; function dataprocJobHadoopConfigToHclTerraform(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_class: { value: cdktf.stringToHclTerraform(struct.mainClass), isBlock: false, type: "simple", storageClassType: "string", }, main_jar_file_uri: { value: cdktf.stringToHclTerraform(struct.mainJarFileUri), isBlock: false, type: "simple", storageClassType: "string", }, properties: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.properties), isBlock: false, type: "map", storageClassType: "stringMap", }, logging_config: { value: dataprocJobHadoopConfigLoggingConfigToHclTerraform(struct.loggingConfig), isBlock: true, type: "list", storageClassType: "DataprocJobHadoopConfigLoggingConfigList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dataprocJobHadoopConfigToHclTerraform = dataprocJobHadoopConfigToHclTerraform; class DataprocJobHadoopConfigOutputReference 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; // logging_config - computed: false, optional: true, required: false this._loggingConfig = new DataprocJobHadoopConfigLoggingConfigOutputReference(this, "logging_config"); } 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._mainClass !== undefined) { hasAnyValues = true; internalValueResult.mainClass = this._mainClass; } if (this._mainJarFileUri !== undefined) { hasAnyValues = true; internalValueResult.mainJarFileUri = this._mainJarFileUri; } if (this._properties !== undefined) { hasAnyValues = true; internalValueResult.properties = this._properties; } if (this._loggingConfig?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.loggingConfig = this._loggingConfig?.internalValue; } 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._mainClass = undefined; this._mainJarFileUri = undefined; this._properties = undefined; this._loggingConfig.internalValue = 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._mainClass = value.mainClass; this._mainJarFileUri = value.mainJarFileUri; this._properties = value.properties; this._loggingConfig.internalValue = value.loggingConfig; } } 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 mainClass() { return this.getStringAttribute('main_class'); } set mainClass(value) { this._mainClass = value; } resetMainClass() { this._mainClass = undefined; } // Temporarily expose input value. Use with caution. get mainClassInput() { return this._mainClass; } get mainJarFileUri() { return this.getStringAttribute('main_jar_file_uri'); } set mainJarFileUri(value) { this._mainJarFileUri = value; } resetMainJarFileUri() { this._mainJarFileUri = undefined; } // Temporarily expose input value. Use with caution. get mainJarFileUriInput() { return this._mainJarFileUri; } get properties() { return this.getStringMapAttribute('properties'); } set properties(value) { this._properties = value; } resetProperties() { this._properties = undefined; } // Temporarily expose input value. Use with caution. get propertiesInput() { return this._properties; } get loggingConfig() { return this._loggingConfig; } putLoggingConfig(value) { this._loggingConfig.internalValue = value; } resetLoggingConfig() { this._loggingConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. get loggingConfigInput() { return this._loggingConfig.internalValue; } } exports.DataprocJobHadoopConfigOutputReference = DataprocJobHadoopConfigOutputReference; _d = JSII_RTTI_SYMBOL_1; DataprocJobHadoopConfigOutputReference[_d] = { fqn: "@cdktf/provider-google.dataprocJob.DataprocJobHadoopConfigOutputReference", version: "14.12.0" }; function dataprocJobHiveConfigToTerraform(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 { continue_on_failure: cdktf.booleanToTerraform(struct.continueOnFailure), jar_file_uris: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.jarFileUris), properties: cdktf.hashMapper(cdktf.stringToTerraform)(struct.properties), query_file_uri: cdktf.stringToTerraform(struct.queryFileUri), query_list: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.queryList), script_variables: cdktf.hashMapper(cdktf.stringToTerraform)(struct.scriptVariables), }; } exports.dataprocJobHiveConfigToTerraform = dataprocJobHiveConfigToTerraform; function dataprocJobHiveConfigToHclTerraform(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 = { continue_on_failure: { value: cdktf.booleanToHclTerraform(struct.continueOnFailure), isBlock: false, type: "simple", storageClassType: "boolean", }, jar_file_uris: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.jarFileUris), isBlock: false, type: "list", storageClassType: "stringList", }, properties: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.properties), isBlock: false, type: "map", storageClassType: "stringMap", }, query_file_uri: { value: cdktf.stringToHclTerraform(struct.queryFileUri), isBlock: false, type: "simple", storageClassType: "string", }, query_list: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.queryList), isBlock: false, type: "list", storageClassType: "stringList", }, script_variables: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.scriptVariables), isBlock: false, type: "map", storageClassType: "stringMap", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dataprocJobHiveConfigToHclTerraform = dataprocJobHiveConfigToHclTerraform; class DataprocJobHiveConfigOutputReference 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._continueOnFailure !== undefined) { hasAnyValues = true; internalValueResult.continueOnFailure = this._continueOnFailure; } if (this._jarFileUris !== undefined) { hasAnyValues = true; internalValueResult.jarFileUris = this._jarFileUris; } if (this._properties !== undefined) { hasAnyValues = true; internalValueResult.properties = this._properties; } if (this._queryFileUri !== undefined) { hasAnyValues = true; internalValueResult.queryFileUri = this._queryFileUri; } if (this._queryList !== undefined) { hasAnyValues = true; internalValueResult.queryList = this._queryList; } if (this._scriptVariables !== undefined) { hasAnyValues = true; internalValueResult.scriptVariables = this._scriptVariables; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._continueOnFailure = undefined; this._jarFileUris = undefined; this._properties = undefined; this._queryFileUri = undefined; this._queryList = undefined; this._scriptVariables = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._continueOnFailure = value.continueOnFailure; this._jarFileUris = value.jarFileUris; this._properties = value.properties; this._queryFileUri = value.queryFileUri; this._queryList = value.queryList; this._scriptVariables = value.scriptVariables; } } get continueOnFailure() { return this.getBooleanAttribute('continue_on_failure'); } set continueOnFailure(value) { this._continueOnFailure = value; } resetContinueOnFailure() { this._continueOnFailure = undefined; } // Temporarily expose input value. Use with caution. get continueOnFailureInput() { return this._continueOnFailure; } 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 properties() { return this.getStringMapAttribute('properties'); } set properties(value) { this._properties = value; } resetProperties() { this._properties = undefined; } // Temporarily expose input value. Use with caution. get propertiesInput() { return this._properties; } get queryFileUri() { return this.getStringAttribute('query_file_uri'); } set queryFileUri(value) { this._queryFileUri = value; } resetQueryFileUri() { this._queryFileUri = undefined; } // Temporarily expose input value. Use with caution. get queryFileUriInput() { return this._queryFileUri; } get queryList() { return this.getListAttribute('query_list'); } set queryList(value) { this._queryList = value; } resetQueryList() { this._queryList = undefined; } // Temporarily expose input value. Use with caution. get queryListInput() { return this._queryList; } get scriptVariables() { return this.getStringMapAttribute('script_variables'); } set scriptVariables(value) { this._scriptVariables = value; } resetScriptVariables() { this._scriptVariables = undefined; } // Temporarily expose input value. Use with caution. get scriptVariablesInput() { return this._scriptVariables; } } exports.DataprocJobHiveConfigOutputReference = DataprocJobHiveConfigOutputReference; _e = JSII_RTTI_SYMBOL_1; DataprocJobHiveConfigOutputReference[_e] = { fqn: "@cdktf/provider-google.dataprocJob.DataprocJobHiveConfigOutputReference", version: "14.12.0" }; function dataprocJobPigConfigLoggingConfigToTerraform(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 { driver_log_levels: cdktf.hashMapper(cdktf.stringToTerraform)(struct.driverLogLevels), }; } exports.dataprocJobPigConfigLoggingConfigToTerraform = dataprocJobPigConfigLoggingConfigToTerraform; function dataprocJobPigConfigLoggingConfigToHclTerraform(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 = { driver_log_levels: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.driverLogLevels), isBlock: false, type: "map", storageClassType: "stringMap", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dataprocJobPigConfigLoggingConfigToHclTerraform = dataprocJobPigConfigLoggingConfigToHclTerraform; class DataprocJobPigConfigLoggingConfigOutputReference 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._driverLogLevels !== undefined) { hasAnyValues = true; internalValueResult.driverLogLevels = this._driverLogLevels; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._driverLogLevels = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._driverLogLevels = value.driverLogLevels; } } get driverLogLevels() { return this.getStringMapAttribute('driver_log_levels'); } set driverLogLevels(value) { this._driverLogLevels = value; } // Temporarily expose input value. Use with caution. get driverLogLevelsInput() { return this._driverLogLevels; } } exports.DataprocJobPigConfigLoggingConfigOutputReference = DataprocJobPigConfigLoggingConfigOutputReference; _f = JSII_RTTI_SYMBOL_1; DataprocJobPigConfigLoggingConfigOutputReference[_f] = { fqn: "@cdktf/provider-google.dataprocJob.DataprocJobPigConfigLoggingConfigOutputReference", version: "14.12.0" }; function dataprocJobPigConfigToTerraform(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 { continue_on_failure: cdktf.booleanToTerraform(struct.continueOnFailure), jar_file_uris: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.jarFileUris), properties: cdktf.hashMapper(cdktf.stringToTerraform)(struct.properties), query_file_uri: cdktf.stringToTerraform(struct.queryFileUri), query_list: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.queryList), script_variables: cdktf.hashMapper(cdktf.stringToTerraform)(struct.scriptVariables), logging_config: dataprocJobPigConfigLoggingConfigToTerraform(struct.loggingConfig), }; } exports.dataprocJobPigConfigToTerraform = dataprocJobPigConfigToTerraform; function dataprocJobPigConfigToHclTerraform(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 = { continue_on_failure: { value: cdktf.booleanToHclTerraform(struct.continueOnFailure), isBlock: false, type: "simple", storageClassType: "boolean", }, jar_file_uris: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.jarFileUris), isBlock: false, type: "list", storageClassType: "stringList", }, properties: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.properties), isBlock: false, type: "map", storageClassType: "stringMap", }, query_file_uri: { value: cdktf.stringToHclTerraform(struct.queryFileUri), isBlock: false, type: "simple", storageClassType: "string", }, query_list: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.queryList), isBlock: false, type: "list", storageClassType: "stringList", }, script_variables: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.scriptVariables), isBlock: false, type: "map", storageClassType: "stringMap", }, logging_config: { value: dataprocJobPigConfigLoggingConfigToHclTerraform(struct.loggingConfig), isBlock: true, type: "list", storageClassType: "DataprocJobPigConfigLoggingConfigList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dataprocJobPigConfigToHclTerraform = dataprocJobPigConfigToHclTerraform; class DataprocJobPigConfigOutputReference 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; // logging_config - computed: false, optional: true, required: false this._loggingConfig = new DataprocJobPigConfigLoggingConfigOutputReference(this, "logging_config"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._continueOnFailure !== undefined) { hasAnyValues = true; internalValueResult.continueOnFailure = this._continueOnFailure; } if (this._jarFileUris !== undefined) { hasAnyValues = true; internalValueResult.jarFileUris = this._jarFileUris; } if (this._properties !== undefined) { hasAnyValues = true; internalValueResult.properties = this._properties; } if (this._queryFileUri !== undefined) { hasAnyValues = true; internalValueResult.queryFileUri = this._queryFileUri; } if (this._queryList !== undefined) { hasAnyValues = true; internalValueResult.queryList = this._queryList; } if (this._scriptVariables !== undefined) { hasAnyValues = true; internalValueResult.scriptVariables = this._scriptVariables; } if (this._loggingConfig?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.loggingConfig = this._loggingConfig?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._continueOnFailure = undefined; this._jarFileUris = undefined; this._properties = undefined; this._queryFileUri = undefined; this._queryList = undefined; this._scriptVariables = undefined; this._loggingConfig.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._continueOnFailure = value.continueOnFailure; this._jarFileUris = value.jarFileUris; this._properties = value.properties; this._queryFileUri = value.queryFileUri; this._queryList = value.queryList; this._scriptVariables = value.scriptVariables; this._loggingConfig.internalValue = value.loggingConfig; } } get continueOnFailure() { return this.getBooleanAttribute('continue_on_failure'); } set continueOnFailure(value) { this._continueOnFailure = value; } resetContinueOnFailure() { this._continueOnFailure = undefined; } // Temporarily expose input value. Use with caution. get continueOnFailureInput() { return this._continueOnFailure; } 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 properties() { return this.getStringMapAttribute('properties'); } set properties(value) { this._properties = value; } resetProperties() { this._properties = undefined; } // Temporarily expose input value. Use with caution. get propertiesInput() { return this._properties; } get queryFileUri() { return this.getStringAttribute('query_file_uri'); } set queryFileUri(value) { this._queryFileUri = value; } resetQueryFileUri() { this._queryFileUri = undefined; } // Temporarily expose input value. Use with caution. get queryFileUriInput() { return this._queryFileUri; } get queryList() { return this.getListAttribute('query_list'); } set queryList(value) { this._queryList = value; } resetQueryList() { this._queryList = undefined; } // Temporarily expose input value. Use with caution. get queryListInput() { return this._queryList; } get scriptVariables() { return this.getStringMapAttribute('script_variables'); } set scriptVariables(value) { this._scriptVariables = value; } resetScriptVariables() { this._scriptVariables = undefined; } // Temporarily expose input value. Use with caution. get scriptVariablesInput() { return this._scriptVariables; } get loggingConfig() { return this._loggingConfig; } putLoggingConfig(value) { this._loggingConfig.internalValue = value; } resetLoggingConfig() { this._loggingConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. get loggingConfigInput() { return this._loggingConfig.internalValue; } } exports.DataprocJobPigConfigOutputReference = DataprocJobPigConfigOutputReference; _g = JSII_RTTI_SYMBOL_1; DataprocJobPigConfigOutputReference[_g] = { fqn: "@cdktf/provider-google.dataprocJob.DataprocJobPigConfigOutputReference", version: "14.12.0" }; function dataprocJobPlacementToTerraform(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 { cluster_name: cdktf.stringToTerraform(struct.clusterName), }; } exports.dataprocJobPlacementToTerraform = dataprocJobPlacementToTerraform; function dataprocJobPlacementToHclTerraform(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 = { cluster_name: { value: cdktf.stringToHclTerraform(struct.clusterName), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dataprocJobPlacementToHclTerraform = dataprocJobPlacementToHclTerraform; class DataprocJobPlacementOutputReference 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._clusterName !== undefined) { hasAnyValues = true; internalValueResult.clusterName = this._clusterName; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._clusterName = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._clusterName = value.clusterName; } } get clusterName() { return this.getStringAttribute('cluster_name'); } set clusterName(value) { this._clusterName = value; } // Temporarily expose input value. Use with caution. get clusterNameInput() { return this._clusterName; } // cluster_uuid - computed: true, optional: false, required: false get clusterUuid() { return this.getStringAttribute('cluster_uuid'); } } exports.DataprocJobPlacementOutputReference = DataprocJobPlacementOutputReference; _h = JSII_RTTI_SYMBOL_1; DataprocJobPlacementOutputReference[_h] = { fqn: "@cdktf/provider-google.dataprocJob.DataprocJobPlacementOutputReference", version: "14.12.0" }; function dataprocJobPrestoConfigLoggingConfigToTerraform(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 { driver_log_levels: cdktf.hashMapper(cdktf.stringToTerraform)(struct.driverLogLevels), }; } exports.dataprocJobPrestoConfigLoggingConfigToTerraform = dataprocJobPrestoConfigLoggingConfigToTerraform; function dataprocJobPrestoConfigLoggingConfigToHclTerraform(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 = { driver_log_levels: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.driverLogLevels), isBlock: false, type: "map", storageClassType: "stringMap", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dataprocJobPrestoConfigLoggingConfigToHclTerraform = dataprocJobPrestoConfigLoggingConfigToHclTerraform; class DataprocJobPrestoConfigLoggingConfigOutputReference 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._driverLogLevels !== undefined) { hasAnyValues = true; internalValueResult.driverLogLevels = this._driverLogLevels; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._driverLogLevels = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._driverLogLevels = value.driverLogLevels; } } get driverLogLevels() { return this.getStringMapAttribute('driver_log_levels'); } set driverLogLevels(value) { this._driverLogLevels = value; } // Temporarily expose input value. Use with caution. get driverLogLevelsInput() { return this._driverLogLevels; } } exports.DataprocJobPrestoConfigLoggingConfigOutputReference = DataprocJobPrestoConfigLoggingConfigOutputReference; _j = JSII_RTTI_SYMBOL_1; DataprocJobPrestoConfigLoggingConfigOutputReference[_j] = { fqn: "@cdktf/provider-google.dataprocJob.DataprocJobPrestoConfigLoggingConfigOutputReference", version: "14.12.0" }; function dataprocJobPrestoConfigToTerraform(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_tags: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.clientTags), continue_on_failure: cdktf.booleanToTerraform(struct.continueOnFailure), output_format: cdktf.stringToTerraform(struct.outputFormat), properties: cdktf.hashMapper(cdktf.stringToTerraform)(struct.properties), query_file_uri: cdktf.stringToTerraform(struct.queryFileUri), query_list: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.queryList), logging_config: dataprocJobPrestoConfigLoggingConfigToTerraform(struct.loggingConfig), }; } exports.dataprocJobPrestoConfigToTerraform = dataprocJobPrestoConfigToTerraform; function dataprocJobPrestoConfigToHclTerraform(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_tags: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.clientTags), isBlock: false, type: "list", storageClassType: "stringList", }, continue_on_failure: { value: cdktf.booleanToHclTerraform(struct.continueOnFailure), isBlock: false, type: "simple", storageClassType: "boolean", }, output_format: { value: cdktf.stringToHclTerraform(struct.outputFormat), isBlock: false, type: "simple", storageClassType: "string", }, properties: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.properties), isBlock: false, type: "map", storageClassType: "stringMap", }, query_file_uri: { value: cdktf.stringToHclTerraform(struct.queryFileUri), isBlock: false, type: "simple", storageClassType: "string", }, query_list: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.queryList), isBlock: false, type: "list", storageClassType: "stringList", }, logging_config: { value: dataprocJobPrestoConfigLoggingConfigToHclTerraform(struct.loggingConfig), isBlock: true, type: "list", storageClassType: "DataprocJobPrestoConfigLoggingConfigList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dataprocJobPrestoConfigToHclTerraform = dataprocJobPrestoConfigToHclTerraform; class DataprocJobPrestoConfigOutputReference 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; // logging_config - computed: false, optional: true, required: false this._loggingConfig = new DataprocJobPrestoConfigLoggingConfigOutputReference(this, "logging_config"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._clientTags !== undefined) { hasAnyValues = true; internalValueResult.clientTags = this._clientTags; } if (this._continueOnFailure !== undefined) { hasAnyValues = true; internalValueResult.continueOnFailure = this._continueOnFailure; } if (this._outputFormat !== undefined) { hasAnyValues = true; internalValueResult.outputFormat = this._outputFormat;