UNPKG

@cdktf/provider-aws

Version:

Prebuilt aws Provider for Terraform CDK (cdktf)

1,078 lines (1,077 loc) 174 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p; Object.defineProperty(exports, "__esModule", { value: true }); exports.BcmdataexportsExport = exports.BcmdataexportsExportTimeoutsOutputReference = exports.BcmdataexportsExportExportList = exports.BcmdataexportsExportExportOutputReference = exports.BcmdataexportsExportExportRefreshCadenceList = exports.BcmdataexportsExportExportRefreshCadenceOutputReference = exports.BcmdataexportsExportExportDestinationConfigurationsList = exports.BcmdataexportsExportExportDestinationConfigurationsOutputReference = exports.BcmdataexportsExportExportDestinationConfigurationsS3DestinationList = exports.BcmdataexportsExportExportDestinationConfigurationsS3DestinationOutputReference = exports.BcmdataexportsExportExportDestinationConfigurationsS3DestinationS3OutputConfigurationsList = exports.BcmdataexportsExportExportDestinationConfigurationsS3DestinationS3OutputConfigurationsOutputReference = exports.BcmdataexportsExportExportDataQueryList = exports.BcmdataexportsExportExportDataQueryOutputReference = void 0; exports.bcmdataexportsExportExportDataQueryToTerraform = bcmdataexportsExportExportDataQueryToTerraform; exports.bcmdataexportsExportExportDataQueryToHclTerraform = bcmdataexportsExportExportDataQueryToHclTerraform; exports.bcmdataexportsExportExportDestinationConfigurationsS3DestinationS3OutputConfigurationsToTerraform = bcmdataexportsExportExportDestinationConfigurationsS3DestinationS3OutputConfigurationsToTerraform; exports.bcmdataexportsExportExportDestinationConfigurationsS3DestinationS3OutputConfigurationsToHclTerraform = bcmdataexportsExportExportDestinationConfigurationsS3DestinationS3OutputConfigurationsToHclTerraform; exports.bcmdataexportsExportExportDestinationConfigurationsS3DestinationToTerraform = bcmdataexportsExportExportDestinationConfigurationsS3DestinationToTerraform; exports.bcmdataexportsExportExportDestinationConfigurationsS3DestinationToHclTerraform = bcmdataexportsExportExportDestinationConfigurationsS3DestinationToHclTerraform; exports.bcmdataexportsExportExportDestinationConfigurationsToTerraform = bcmdataexportsExportExportDestinationConfigurationsToTerraform; exports.bcmdataexportsExportExportDestinationConfigurationsToHclTerraform = bcmdataexportsExportExportDestinationConfigurationsToHclTerraform; exports.bcmdataexportsExportExportRefreshCadenceToTerraform = bcmdataexportsExportExportRefreshCadenceToTerraform; exports.bcmdataexportsExportExportRefreshCadenceToHclTerraform = bcmdataexportsExportExportRefreshCadenceToHclTerraform; exports.bcmdataexportsExportExportToTerraform = bcmdataexportsExportExportToTerraform; exports.bcmdataexportsExportExportToHclTerraform = bcmdataexportsExportExportToHclTerraform; exports.bcmdataexportsExportTimeoutsToTerraform = bcmdataexportsExportTimeoutsToTerraform; exports.bcmdataexportsExportTimeoutsToHclTerraform = bcmdataexportsExportTimeoutsToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function bcmdataexportsExportExportDataQueryToTerraform(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 { query_statement: cdktf.stringToTerraform(struct.queryStatement), table_configurations: cdktf.hashMapper(cdktf.hashMapper(cdktf.stringToTerraform))(struct.tableConfigurations), }; } function bcmdataexportsExportExportDataQueryToHclTerraform(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 = { query_statement: { value: cdktf.stringToHclTerraform(struct.queryStatement), isBlock: false, type: "simple", storageClassType: "string", }, table_configurations: { value: cdktf.hashMapperHcl(cdktf.hashMapperHcl(cdktf.stringToHclTerraform))(struct.tableConfigurations), isBlock: false, type: "map", storageClassType: "stringMapMap", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BcmdataexportsExportExportDataQueryOutputReference 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() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._queryStatement !== undefined) { hasAnyValues = true; internalValueResult.queryStatement = this._queryStatement; } if (this._tableConfigurations !== undefined) { hasAnyValues = true; internalValueResult.tableConfigurations = this._tableConfigurations; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._queryStatement = undefined; this._tableConfigurations = 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._queryStatement = value.queryStatement; this._tableConfigurations = value.tableConfigurations; } } get queryStatement() { return this.getStringAttribute('query_statement'); } set queryStatement(value) { this._queryStatement = value; } // Temporarily expose input value. Use with caution. get queryStatementInput() { return this._queryStatement; } get tableConfigurations() { return this.interpolationForAttribute('table_configurations'); } set tableConfigurations(value) { this._tableConfigurations = value; } resetTableConfigurations() { this._tableConfigurations = undefined; } // Temporarily expose input value. Use with caution. get tableConfigurationsInput() { return this._tableConfigurations; } } exports.BcmdataexportsExportExportDataQueryOutputReference = BcmdataexportsExportExportDataQueryOutputReference; _a = JSII_RTTI_SYMBOL_1; BcmdataexportsExportExportDataQueryOutputReference[_a] = { fqn: "@cdktf/provider-aws.bcmdataexportsExport.BcmdataexportsExportExportDataQueryOutputReference", version: "21.22.1" }; class BcmdataexportsExportExportDataQueryList 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 BcmdataexportsExportExportDataQueryOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BcmdataexportsExportExportDataQueryList = BcmdataexportsExportExportDataQueryList; _b = JSII_RTTI_SYMBOL_1; BcmdataexportsExportExportDataQueryList[_b] = { fqn: "@cdktf/provider-aws.bcmdataexportsExport.BcmdataexportsExportExportDataQueryList", version: "21.22.1" }; function bcmdataexportsExportExportDestinationConfigurationsS3DestinationS3OutputConfigurationsToTerraform(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 { compression: cdktf.stringToTerraform(struct.compression), format: cdktf.stringToTerraform(struct.format), output_type: cdktf.stringToTerraform(struct.outputType), overwrite: cdktf.stringToTerraform(struct.overwrite), }; } function bcmdataexportsExportExportDestinationConfigurationsS3DestinationS3OutputConfigurationsToHclTerraform(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 = { compression: { value: cdktf.stringToHclTerraform(struct.compression), isBlock: false, type: "simple", storageClassType: "string", }, format: { value: cdktf.stringToHclTerraform(struct.format), isBlock: false, type: "simple", storageClassType: "string", }, output_type: { value: cdktf.stringToHclTerraform(struct.outputType), isBlock: false, type: "simple", storageClassType: "string", }, overwrite: { value: cdktf.stringToHclTerraform(struct.overwrite), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BcmdataexportsExportExportDestinationConfigurationsS3DestinationS3OutputConfigurationsOutputReference 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() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._compression !== undefined) { hasAnyValues = true; internalValueResult.compression = this._compression; } if (this._format !== undefined) { hasAnyValues = true; internalValueResult.format = this._format; } if (this._outputType !== undefined) { hasAnyValues = true; internalValueResult.outputType = this._outputType; } if (this._overwrite !== undefined) { hasAnyValues = true; internalValueResult.overwrite = this._overwrite; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._compression = undefined; this._format = undefined; this._outputType = undefined; this._overwrite = 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._compression = value.compression; this._format = value.format; this._outputType = value.outputType; this._overwrite = value.overwrite; } } get compression() { return this.getStringAttribute('compression'); } set compression(value) { this._compression = value; } // Temporarily expose input value. Use with caution. get compressionInput() { return this._compression; } get format() { return this.getStringAttribute('format'); } set format(value) { this._format = value; } // Temporarily expose input value. Use with caution. get formatInput() { return this._format; } get outputType() { return this.getStringAttribute('output_type'); } set outputType(value) { this._outputType = value; } // Temporarily expose input value. Use with caution. get outputTypeInput() { return this._outputType; } get overwrite() { return this.getStringAttribute('overwrite'); } set overwrite(value) { this._overwrite = value; } // Temporarily expose input value. Use with caution. get overwriteInput() { return this._overwrite; } } exports.BcmdataexportsExportExportDestinationConfigurationsS3DestinationS3OutputConfigurationsOutputReference = BcmdataexportsExportExportDestinationConfigurationsS3DestinationS3OutputConfigurationsOutputReference; _c = JSII_RTTI_SYMBOL_1; BcmdataexportsExportExportDestinationConfigurationsS3DestinationS3OutputConfigurationsOutputReference[_c] = { fqn: "@cdktf/provider-aws.bcmdataexportsExport.BcmdataexportsExportExportDestinationConfigurationsS3DestinationS3OutputConfigurationsOutputReference", version: "21.22.1" }; class BcmdataexportsExportExportDestinationConfigurationsS3DestinationS3OutputConfigurationsList 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 BcmdataexportsExportExportDestinationConfigurationsS3DestinationS3OutputConfigurationsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BcmdataexportsExportExportDestinationConfigurationsS3DestinationS3OutputConfigurationsList = BcmdataexportsExportExportDestinationConfigurationsS3DestinationS3OutputConfigurationsList; _d = JSII_RTTI_SYMBOL_1; BcmdataexportsExportExportDestinationConfigurationsS3DestinationS3OutputConfigurationsList[_d] = { fqn: "@cdktf/provider-aws.bcmdataexportsExport.BcmdataexportsExportExportDestinationConfigurationsS3DestinationS3OutputConfigurationsList", version: "21.22.1" }; function bcmdataexportsExportExportDestinationConfigurationsS3DestinationToTerraform(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 { s3_bucket: cdktf.stringToTerraform(struct.s3Bucket), s3_prefix: cdktf.stringToTerraform(struct.s3Prefix), s3_region: cdktf.stringToTerraform(struct.s3Region), s3_output_configurations: cdktf.listMapper(bcmdataexportsExportExportDestinationConfigurationsS3DestinationS3OutputConfigurationsToTerraform, true)(struct.s3OutputConfigurations), }; } function bcmdataexportsExportExportDestinationConfigurationsS3DestinationToHclTerraform(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 = { s3_bucket: { value: cdktf.stringToHclTerraform(struct.s3Bucket), isBlock: false, type: "simple", storageClassType: "string", }, s3_prefix: { value: cdktf.stringToHclTerraform(struct.s3Prefix), isBlock: false, type: "simple", storageClassType: "string", }, s3_region: { value: cdktf.stringToHclTerraform(struct.s3Region), isBlock: false, type: "simple", storageClassType: "string", }, s3_output_configurations: { value: cdktf.listMapperHcl(bcmdataexportsExportExportDestinationConfigurationsS3DestinationS3OutputConfigurationsToHclTerraform, true)(struct.s3OutputConfigurations), isBlock: true, type: "list", storageClassType: "BcmdataexportsExportExportDestinationConfigurationsS3DestinationS3OutputConfigurationsList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BcmdataexportsExportExportDestinationConfigurationsS3DestinationOutputReference 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; // s3_output_configurations - computed: false, optional: true, required: false this._s3OutputConfigurations = new BcmdataexportsExportExportDestinationConfigurationsS3DestinationS3OutputConfigurationsList(this, "s3_output_configurations", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._s3Bucket !== undefined) { hasAnyValues = true; internalValueResult.s3Bucket = this._s3Bucket; } if (this._s3Prefix !== undefined) { hasAnyValues = true; internalValueResult.s3Prefix = this._s3Prefix; } if (this._s3Region !== undefined) { hasAnyValues = true; internalValueResult.s3Region = this._s3Region; } if (this._s3OutputConfigurations?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.s3OutputConfigurations = this._s3OutputConfigurations?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._s3Bucket = undefined; this._s3Prefix = undefined; this._s3Region = undefined; this._s3OutputConfigurations.internalValue = 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._s3Bucket = value.s3Bucket; this._s3Prefix = value.s3Prefix; this._s3Region = value.s3Region; this._s3OutputConfigurations.internalValue = value.s3OutputConfigurations; } } get s3Bucket() { return this.getStringAttribute('s3_bucket'); } set s3Bucket(value) { this._s3Bucket = value; } // Temporarily expose input value. Use with caution. get s3BucketInput() { return this._s3Bucket; } get s3Prefix() { return this.getStringAttribute('s3_prefix'); } set s3Prefix(value) { this._s3Prefix = value; } // Temporarily expose input value. Use with caution. get s3PrefixInput() { return this._s3Prefix; } get s3Region() { return this.getStringAttribute('s3_region'); } set s3Region(value) { this._s3Region = value; } // Temporarily expose input value. Use with caution. get s3RegionInput() { return this._s3Region; } get s3OutputConfigurations() { return this._s3OutputConfigurations; } putS3OutputConfigurations(value) { this._s3OutputConfigurations.internalValue = value; } resetS3OutputConfigurations() { this._s3OutputConfigurations.internalValue = undefined; } // Temporarily expose input value. Use with caution. get s3OutputConfigurationsInput() { return this._s3OutputConfigurations.internalValue; } } exports.BcmdataexportsExportExportDestinationConfigurationsS3DestinationOutputReference = BcmdataexportsExportExportDestinationConfigurationsS3DestinationOutputReference; _e = JSII_RTTI_SYMBOL_1; BcmdataexportsExportExportDestinationConfigurationsS3DestinationOutputReference[_e] = { fqn: "@cdktf/provider-aws.bcmdataexportsExport.BcmdataexportsExportExportDestinationConfigurationsS3DestinationOutputReference", version: "21.22.1" }; class BcmdataexportsExportExportDestinationConfigurationsS3DestinationList 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 BcmdataexportsExportExportDestinationConfigurationsS3DestinationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BcmdataexportsExportExportDestinationConfigurationsS3DestinationList = BcmdataexportsExportExportDestinationConfigurationsS3DestinationList; _f = JSII_RTTI_SYMBOL_1; BcmdataexportsExportExportDestinationConfigurationsS3DestinationList[_f] = { fqn: "@cdktf/provider-aws.bcmdataexportsExport.BcmdataexportsExportExportDestinationConfigurationsS3DestinationList", version: "21.22.1" }; function bcmdataexportsExportExportDestinationConfigurationsToTerraform(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 { s3_destination: cdktf.listMapper(bcmdataexportsExportExportDestinationConfigurationsS3DestinationToTerraform, true)(struct.s3Destination), }; } function bcmdataexportsExportExportDestinationConfigurationsToHclTerraform(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 = { s3_destination: { value: cdktf.listMapperHcl(bcmdataexportsExportExportDestinationConfigurationsS3DestinationToHclTerraform, true)(struct.s3Destination), isBlock: true, type: "list", storageClassType: "BcmdataexportsExportExportDestinationConfigurationsS3DestinationList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BcmdataexportsExportExportDestinationConfigurationsOutputReference 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; // s3_destination - computed: false, optional: true, required: false this._s3Destination = new BcmdataexportsExportExportDestinationConfigurationsS3DestinationList(this, "s3_destination", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._s3Destination?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.s3Destination = this._s3Destination?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._s3Destination.internalValue = 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._s3Destination.internalValue = value.s3Destination; } } get s3Destination() { return this._s3Destination; } putS3Destination(value) { this._s3Destination.internalValue = value; } resetS3Destination() { this._s3Destination.internalValue = undefined; } // Temporarily expose input value. Use with caution. get s3DestinationInput() { return this._s3Destination.internalValue; } } exports.BcmdataexportsExportExportDestinationConfigurationsOutputReference = BcmdataexportsExportExportDestinationConfigurationsOutputReference; _g = JSII_RTTI_SYMBOL_1; BcmdataexportsExportExportDestinationConfigurationsOutputReference[_g] = { fqn: "@cdktf/provider-aws.bcmdataexportsExport.BcmdataexportsExportExportDestinationConfigurationsOutputReference", version: "21.22.1" }; class BcmdataexportsExportExportDestinationConfigurationsList 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 BcmdataexportsExportExportDestinationConfigurationsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BcmdataexportsExportExportDestinationConfigurationsList = BcmdataexportsExportExportDestinationConfigurationsList; _h = JSII_RTTI_SYMBOL_1; BcmdataexportsExportExportDestinationConfigurationsList[_h] = { fqn: "@cdktf/provider-aws.bcmdataexportsExport.BcmdataexportsExportExportDestinationConfigurationsList", version: "21.22.1" }; function bcmdataexportsExportExportRefreshCadenceToTerraform(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 { frequency: cdktf.stringToTerraform(struct.frequency), }; } function bcmdataexportsExportExportRefreshCadenceToHclTerraform(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 = { frequency: { value: cdktf.stringToHclTerraform(struct.frequency), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BcmdataexportsExportExportRefreshCadenceOutputReference 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() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._frequency !== undefined) { hasAnyValues = true; internalValueResult.frequency = this._frequency; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._frequency = 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._frequency = value.frequency; } } get frequency() { return this.getStringAttribute('frequency'); } set frequency(value) { this._frequency = value; } // Temporarily expose input value. Use with caution. get frequencyInput() { return this._frequency; } } exports.BcmdataexportsExportExportRefreshCadenceOutputReference = BcmdataexportsExportExportRefreshCadenceOutputReference; _j = JSII_RTTI_SYMBOL_1; BcmdataexportsExportExportRefreshCadenceOutputReference[_j] = { fqn: "@cdktf/provider-aws.bcmdataexportsExport.BcmdataexportsExportExportRefreshCadenceOutputReference", version: "21.22.1" }; class BcmdataexportsExportExportRefreshCadenceList 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 BcmdataexportsExportExportRefreshCadenceOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BcmdataexportsExportExportRefreshCadenceList = BcmdataexportsExportExportRefreshCadenceList; _k = JSII_RTTI_SYMBOL_1; BcmdataexportsExportExportRefreshCadenceList[_k] = { fqn: "@cdktf/provider-aws.bcmdataexportsExport.BcmdataexportsExportExportRefreshCadenceList", version: "21.22.1" }; function bcmdataexportsExportExportToTerraform(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 { description: cdktf.stringToTerraform(struct.description), name: cdktf.stringToTerraform(struct.name), data_query: cdktf.listMapper(bcmdataexportsExportExportDataQueryToTerraform, true)(struct.dataQuery), destination_configurations: cdktf.listMapper(bcmdataexportsExportExportDestinationConfigurationsToTerraform, true)(struct.destinationConfigurations), refresh_cadence: cdktf.listMapper(bcmdataexportsExportExportRefreshCadenceToTerraform, true)(struct.refreshCadence), }; } function bcmdataexportsExportExportToHclTerraform(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 = { description: { value: cdktf.stringToHclTerraform(struct.description), isBlock: false, type: "simple", storageClassType: "string", }, name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, data_query: { value: cdktf.listMapperHcl(bcmdataexportsExportExportDataQueryToHclTerraform, true)(struct.dataQuery), isBlock: true, type: "list", storageClassType: "BcmdataexportsExportExportDataQueryList", }, destination_configurations: { value: cdktf.listMapperHcl(bcmdataexportsExportExportDestinationConfigurationsToHclTerraform, true)(struct.destinationConfigurations), isBlock: true, type: "list", storageClassType: "BcmdataexportsExportExportDestinationConfigurationsList", }, refresh_cadence: { value: cdktf.listMapperHcl(bcmdataexportsExportExportRefreshCadenceToHclTerraform, true)(struct.refreshCadence), isBlock: true, type: "list", storageClassType: "BcmdataexportsExportExportRefreshCadenceList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BcmdataexportsExportExportOutputReference 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; // data_query - computed: false, optional: true, required: false this._dataQuery = new BcmdataexportsExportExportDataQueryList(this, "data_query", false); // destination_configurations - computed: false, optional: true, required: false this._destinationConfigurations = new BcmdataexportsExportExportDestinationConfigurationsList(this, "destination_configurations", false); // refresh_cadence - computed: false, optional: true, required: false this._refreshCadence = new BcmdataexportsExportExportRefreshCadenceList(this, "refresh_cadence", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._description !== undefined) { hasAnyValues = true; internalValueResult.description = this._description; } if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._dataQuery?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.dataQuery = this._dataQuery?.internalValue; } if (this._destinationConfigurations?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.destinationConfigurations = this._destinationConfigurations?.internalValue; } if (this._refreshCadence?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.refreshCadence = this._refreshCadence?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._description = undefined; this._name = undefined; this._dataQuery.internalValue = undefined; this._destinationConfigurations.internalValue = undefined; this._refreshCadence.internalValue = 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._description = value.description; this._name = value.name; this._dataQuery.internalValue = value.dataQuery; this._destinationConfigurations.internalValue = value.destinationConfigurations; this._refreshCadence.internalValue = value.refreshCadence; } } get description() { return this.getStringAttribute('description'); } set description(value) { this._description = value; } resetDescription() { this._description = undefined; } // Temporarily expose input value. Use with caution. get descriptionInput() { return this._description; } // export_arn - computed: true, optional: false, required: false get exportArn() { return this.getStringAttribute('export_arn'); } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } get dataQuery() { return this._dataQuery; } putDataQuery(value) { this._dataQuery.internalValue = value; } resetDataQuery() { this._dataQuery.internalValue = undefined; } // Temporarily expose input value. Use with caution. get dataQueryInput() { return this._dataQuery.internalValue; } get destinationConfigurations() { return this._destinationConfigurations; } putDestinationConfigurations(value) { this._destinationConfigurations.internalValue = value; } resetDestinationConfigurations() { this._destinationConfigurations.internalValue = undefined; } // Temporarily expose input value. Use with caution. get destinationConfigurationsInput() { return this._destinationConfigurations.internalValue; } get refreshCadence() { return this._refreshCadence; } putRefreshCadence(value) { this._refreshCadence.internalValue = value; } resetRefreshCadence() { this._refreshCadence.internalValue = undefined; } // Temporarily expose input value. Use with caution. get refreshCadenceInput() { return this._refreshCadence.internalValue; } } exports.BcmdataexportsExportExportOutputReference = BcmdataexportsExportExportOutputReference; _l = JSII_RTTI_SYMBOL_1; BcmdataexportsExportExportOutputReference[_l] = { fqn: "@cdktf/provider-aws.bcmdataexportsExport.BcmdataexportsExportExportOutputReference", version: "21.22.1" }; class BcmdataexportsExportExportList 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 BcmdataexportsExportExportOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BcmdataexportsExportExportList = BcmdataexportsExportExportList; _m = JSII_RTTI_SYMBOL_1; BcmdataexportsExportExportList[_m] = { fqn: "@cdktf/provider-aws.bcmdataexportsExport.BcmdataexportsExportExportList", version: "21.22.1" }; function bcmdataexportsExportTimeoutsToTerraform(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), update: cdktf.stringToTerraform(struct.update), }; } function bcmdataexportsExportTimeoutsToHclTerraform(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", }, 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 BcmdataexportsExportTimeoutsOutputReference 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._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._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._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 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.BcmdataexportsExportTimeoutsOutputReference = BcmdataexportsExportTimeoutsOutputReference; _o = JSII_RTTI_SYMBOL_1; BcmdataexportsExportTimeoutsOutputReference[_o] = { fqn: "@cdktf/provider-aws.bcmdataexportsExport.BcmdataexportsExportTimeoutsOutputReference", version: "21.22.1" }; /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/bcmdataexports_export aws_bcmdataexports_export} */ class BcmdataexportsExport extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a BcmdataexportsExport 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 BcmdataexportsExport to import * @param importFromId The id of the existing BcmdataexportsExport that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/bcmdataexports_export#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the BcmdataexportsExport to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "aws_bcmdataexports_export", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/bcmdataexports_export aws_bcmdataexports_export} 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 BcmdataexportsExportConfig = {} */ constructor(scope, id, config = {}) { super(scope, id, { terraformResourceType: 'aws_bcmdataexports_export', terraformGeneratorMetadata: { providerName: 'aws', providerVersion: '6.25.0', providerVersionConstraint: '~> 6.0' }, provider: config.provider,