UNPKG

@cdktf/provider-aws

Version:

Prebuilt aws Provider for Terraform CDK (cdktf)

980 lines 160 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x; Object.defineProperty(exports, "__esModule", { value: true }); exports.DataAwsDynamodbTable = exports.DataAwsDynamodbTableServerSideEncryptionOutputReference = exports.DataAwsDynamodbTableWarmThroughputList = exports.DataAwsDynamodbTableWarmThroughputOutputReference = exports.DataAwsDynamodbTableTtlList = exports.DataAwsDynamodbTableTtlOutputReference = exports.DataAwsDynamodbTableReplicaList = exports.DataAwsDynamodbTableReplicaOutputReference = exports.DataAwsDynamodbTablePointInTimeRecoveryList = exports.DataAwsDynamodbTablePointInTimeRecoveryOutputReference = exports.DataAwsDynamodbTableOnDemandThroughputList = exports.DataAwsDynamodbTableOnDemandThroughputOutputReference = exports.DataAwsDynamodbTableLocalSecondaryIndexList = exports.DataAwsDynamodbTableLocalSecondaryIndexOutputReference = exports.DataAwsDynamodbTableGlobalSecondaryIndexList = exports.DataAwsDynamodbTableGlobalSecondaryIndexOutputReference = exports.DataAwsDynamodbTableGlobalSecondaryIndexWarmThroughputList = exports.DataAwsDynamodbTableGlobalSecondaryIndexWarmThroughputOutputReference = exports.DataAwsDynamodbTableGlobalSecondaryIndexOnDemandThroughputList = exports.DataAwsDynamodbTableGlobalSecondaryIndexOnDemandThroughputOutputReference = exports.DataAwsDynamodbTableAttributeList = exports.DataAwsDynamodbTableAttributeOutputReference = void 0; exports.dataAwsDynamodbTableAttributeToTerraform = dataAwsDynamodbTableAttributeToTerraform; exports.dataAwsDynamodbTableAttributeToHclTerraform = dataAwsDynamodbTableAttributeToHclTerraform; exports.dataAwsDynamodbTableGlobalSecondaryIndexOnDemandThroughputToTerraform = dataAwsDynamodbTableGlobalSecondaryIndexOnDemandThroughputToTerraform; exports.dataAwsDynamodbTableGlobalSecondaryIndexOnDemandThroughputToHclTerraform = dataAwsDynamodbTableGlobalSecondaryIndexOnDemandThroughputToHclTerraform; exports.dataAwsDynamodbTableGlobalSecondaryIndexWarmThroughputToTerraform = dataAwsDynamodbTableGlobalSecondaryIndexWarmThroughputToTerraform; exports.dataAwsDynamodbTableGlobalSecondaryIndexWarmThroughputToHclTerraform = dataAwsDynamodbTableGlobalSecondaryIndexWarmThroughputToHclTerraform; exports.dataAwsDynamodbTableGlobalSecondaryIndexToTerraform = dataAwsDynamodbTableGlobalSecondaryIndexToTerraform; exports.dataAwsDynamodbTableGlobalSecondaryIndexToHclTerraform = dataAwsDynamodbTableGlobalSecondaryIndexToHclTerraform; exports.dataAwsDynamodbTableLocalSecondaryIndexToTerraform = dataAwsDynamodbTableLocalSecondaryIndexToTerraform; exports.dataAwsDynamodbTableLocalSecondaryIndexToHclTerraform = dataAwsDynamodbTableLocalSecondaryIndexToHclTerraform; exports.dataAwsDynamodbTableOnDemandThroughputToTerraform = dataAwsDynamodbTableOnDemandThroughputToTerraform; exports.dataAwsDynamodbTableOnDemandThroughputToHclTerraform = dataAwsDynamodbTableOnDemandThroughputToHclTerraform; exports.dataAwsDynamodbTablePointInTimeRecoveryToTerraform = dataAwsDynamodbTablePointInTimeRecoveryToTerraform; exports.dataAwsDynamodbTablePointInTimeRecoveryToHclTerraform = dataAwsDynamodbTablePointInTimeRecoveryToHclTerraform; exports.dataAwsDynamodbTableReplicaToTerraform = dataAwsDynamodbTableReplicaToTerraform; exports.dataAwsDynamodbTableReplicaToHclTerraform = dataAwsDynamodbTableReplicaToHclTerraform; exports.dataAwsDynamodbTableTtlToTerraform = dataAwsDynamodbTableTtlToTerraform; exports.dataAwsDynamodbTableTtlToHclTerraform = dataAwsDynamodbTableTtlToHclTerraform; exports.dataAwsDynamodbTableWarmThroughputToTerraform = dataAwsDynamodbTableWarmThroughputToTerraform; exports.dataAwsDynamodbTableWarmThroughputToHclTerraform = dataAwsDynamodbTableWarmThroughputToHclTerraform; exports.dataAwsDynamodbTableServerSideEncryptionToTerraform = dataAwsDynamodbTableServerSideEncryptionToTerraform; exports.dataAwsDynamodbTableServerSideEncryptionToHclTerraform = dataAwsDynamodbTableServerSideEncryptionToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function dataAwsDynamodbTableAttributeToTerraform(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 {}; } function dataAwsDynamodbTableAttributeToHclTerraform(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; } class DataAwsDynamodbTableAttributeOutputReference 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; } } // name - computed: true, optional: false, required: false get name() { return this.getStringAttribute('name'); } // type - computed: true, optional: false, required: false get type() { return this.getStringAttribute('type'); } } exports.DataAwsDynamodbTableAttributeOutputReference = DataAwsDynamodbTableAttributeOutputReference; _a = JSII_RTTI_SYMBOL_1; DataAwsDynamodbTableAttributeOutputReference[_a] = { fqn: "@cdktf/provider-aws.dataAwsDynamodbTable.DataAwsDynamodbTableAttributeOutputReference", version: "21.22.1" }; class DataAwsDynamodbTableAttributeList 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 DataAwsDynamodbTableAttributeOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataAwsDynamodbTableAttributeList = DataAwsDynamodbTableAttributeList; _b = JSII_RTTI_SYMBOL_1; DataAwsDynamodbTableAttributeList[_b] = { fqn: "@cdktf/provider-aws.dataAwsDynamodbTable.DataAwsDynamodbTableAttributeList", version: "21.22.1" }; function dataAwsDynamodbTableGlobalSecondaryIndexOnDemandThroughputToTerraform(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 {}; } function dataAwsDynamodbTableGlobalSecondaryIndexOnDemandThroughputToHclTerraform(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; } class DataAwsDynamodbTableGlobalSecondaryIndexOnDemandThroughputOutputReference 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; } } // max_read_request_units - computed: true, optional: false, required: false get maxReadRequestUnits() { return this.getNumberAttribute('max_read_request_units'); } // max_write_request_units - computed: true, optional: false, required: false get maxWriteRequestUnits() { return this.getNumberAttribute('max_write_request_units'); } } exports.DataAwsDynamodbTableGlobalSecondaryIndexOnDemandThroughputOutputReference = DataAwsDynamodbTableGlobalSecondaryIndexOnDemandThroughputOutputReference; _c = JSII_RTTI_SYMBOL_1; DataAwsDynamodbTableGlobalSecondaryIndexOnDemandThroughputOutputReference[_c] = { fqn: "@cdktf/provider-aws.dataAwsDynamodbTable.DataAwsDynamodbTableGlobalSecondaryIndexOnDemandThroughputOutputReference", version: "21.22.1" }; class DataAwsDynamodbTableGlobalSecondaryIndexOnDemandThroughputList 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 DataAwsDynamodbTableGlobalSecondaryIndexOnDemandThroughputOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataAwsDynamodbTableGlobalSecondaryIndexOnDemandThroughputList = DataAwsDynamodbTableGlobalSecondaryIndexOnDemandThroughputList; _d = JSII_RTTI_SYMBOL_1; DataAwsDynamodbTableGlobalSecondaryIndexOnDemandThroughputList[_d] = { fqn: "@cdktf/provider-aws.dataAwsDynamodbTable.DataAwsDynamodbTableGlobalSecondaryIndexOnDemandThroughputList", version: "21.22.1" }; function dataAwsDynamodbTableGlobalSecondaryIndexWarmThroughputToTerraform(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 {}; } function dataAwsDynamodbTableGlobalSecondaryIndexWarmThroughputToHclTerraform(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; } class DataAwsDynamodbTableGlobalSecondaryIndexWarmThroughputOutputReference 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; } } // read_units_per_second - computed: true, optional: false, required: false get readUnitsPerSecond() { return this.getNumberAttribute('read_units_per_second'); } // write_units_per_second - computed: true, optional: false, required: false get writeUnitsPerSecond() { return this.getNumberAttribute('write_units_per_second'); } } exports.DataAwsDynamodbTableGlobalSecondaryIndexWarmThroughputOutputReference = DataAwsDynamodbTableGlobalSecondaryIndexWarmThroughputOutputReference; _e = JSII_RTTI_SYMBOL_1; DataAwsDynamodbTableGlobalSecondaryIndexWarmThroughputOutputReference[_e] = { fqn: "@cdktf/provider-aws.dataAwsDynamodbTable.DataAwsDynamodbTableGlobalSecondaryIndexWarmThroughputOutputReference", version: "21.22.1" }; class DataAwsDynamodbTableGlobalSecondaryIndexWarmThroughputList 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 DataAwsDynamodbTableGlobalSecondaryIndexWarmThroughputOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataAwsDynamodbTableGlobalSecondaryIndexWarmThroughputList = DataAwsDynamodbTableGlobalSecondaryIndexWarmThroughputList; _f = JSII_RTTI_SYMBOL_1; DataAwsDynamodbTableGlobalSecondaryIndexWarmThroughputList[_f] = { fqn: "@cdktf/provider-aws.dataAwsDynamodbTable.DataAwsDynamodbTableGlobalSecondaryIndexWarmThroughputList", version: "21.22.1" }; function dataAwsDynamodbTableGlobalSecondaryIndexToTerraform(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 {}; } function dataAwsDynamodbTableGlobalSecondaryIndexToHclTerraform(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; } class DataAwsDynamodbTableGlobalSecondaryIndexOutputReference 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; // on_demand_throughput - computed: true, optional: false, required: false this._onDemandThroughput = new DataAwsDynamodbTableGlobalSecondaryIndexOnDemandThroughputList(this, "on_demand_throughput", false); // warm_throughput - computed: true, optional: false, required: false this._warmThroughput = new DataAwsDynamodbTableGlobalSecondaryIndexWarmThroughputList(this, "warm_throughput", 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; } } // hash_key - computed: true, optional: false, required: false get hashKey() { return this.getStringAttribute('hash_key'); } // name - computed: true, optional: false, required: false get name() { return this.getStringAttribute('name'); } // non_key_attributes - computed: true, optional: false, required: false get nonKeyAttributes() { return this.getListAttribute('non_key_attributes'); } get onDemandThroughput() { return this._onDemandThroughput; } // projection_type - computed: true, optional: false, required: false get projectionType() { return this.getStringAttribute('projection_type'); } // range_key - computed: true, optional: false, required: false get rangeKey() { return this.getStringAttribute('range_key'); } // read_capacity - computed: true, optional: false, required: false get readCapacity() { return this.getNumberAttribute('read_capacity'); } get warmThroughput() { return this._warmThroughput; } // write_capacity - computed: true, optional: false, required: false get writeCapacity() { return this.getNumberAttribute('write_capacity'); } } exports.DataAwsDynamodbTableGlobalSecondaryIndexOutputReference = DataAwsDynamodbTableGlobalSecondaryIndexOutputReference; _g = JSII_RTTI_SYMBOL_1; DataAwsDynamodbTableGlobalSecondaryIndexOutputReference[_g] = { fqn: "@cdktf/provider-aws.dataAwsDynamodbTable.DataAwsDynamodbTableGlobalSecondaryIndexOutputReference", version: "21.22.1" }; class DataAwsDynamodbTableGlobalSecondaryIndexList 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 DataAwsDynamodbTableGlobalSecondaryIndexOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataAwsDynamodbTableGlobalSecondaryIndexList = DataAwsDynamodbTableGlobalSecondaryIndexList; _h = JSII_RTTI_SYMBOL_1; DataAwsDynamodbTableGlobalSecondaryIndexList[_h] = { fqn: "@cdktf/provider-aws.dataAwsDynamodbTable.DataAwsDynamodbTableGlobalSecondaryIndexList", version: "21.22.1" }; function dataAwsDynamodbTableLocalSecondaryIndexToTerraform(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 {}; } function dataAwsDynamodbTableLocalSecondaryIndexToHclTerraform(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; } class DataAwsDynamodbTableLocalSecondaryIndexOutputReference 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; } } // name - computed: true, optional: false, required: false get name() { return this.getStringAttribute('name'); } // non_key_attributes - computed: true, optional: false, required: false get nonKeyAttributes() { return this.getListAttribute('non_key_attributes'); } // projection_type - computed: true, optional: false, required: false get projectionType() { return this.getStringAttribute('projection_type'); } // range_key - computed: true, optional: false, required: false get rangeKey() { return this.getStringAttribute('range_key'); } } exports.DataAwsDynamodbTableLocalSecondaryIndexOutputReference = DataAwsDynamodbTableLocalSecondaryIndexOutputReference; _j = JSII_RTTI_SYMBOL_1; DataAwsDynamodbTableLocalSecondaryIndexOutputReference[_j] = { fqn: "@cdktf/provider-aws.dataAwsDynamodbTable.DataAwsDynamodbTableLocalSecondaryIndexOutputReference", version: "21.22.1" }; class DataAwsDynamodbTableLocalSecondaryIndexList 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 DataAwsDynamodbTableLocalSecondaryIndexOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataAwsDynamodbTableLocalSecondaryIndexList = DataAwsDynamodbTableLocalSecondaryIndexList; _k = JSII_RTTI_SYMBOL_1; DataAwsDynamodbTableLocalSecondaryIndexList[_k] = { fqn: "@cdktf/provider-aws.dataAwsDynamodbTable.DataAwsDynamodbTableLocalSecondaryIndexList", version: "21.22.1" }; function dataAwsDynamodbTableOnDemandThroughputToTerraform(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 {}; } function dataAwsDynamodbTableOnDemandThroughputToHclTerraform(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; } class DataAwsDynamodbTableOnDemandThroughputOutputReference 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; } } // max_read_request_units - computed: true, optional: false, required: false get maxReadRequestUnits() { return this.getNumberAttribute('max_read_request_units'); } // max_write_request_units - computed: true, optional: false, required: false get maxWriteRequestUnits() { return this.getNumberAttribute('max_write_request_units'); } } exports.DataAwsDynamodbTableOnDemandThroughputOutputReference = DataAwsDynamodbTableOnDemandThroughputOutputReference; _l = JSII_RTTI_SYMBOL_1; DataAwsDynamodbTableOnDemandThroughputOutputReference[_l] = { fqn: "@cdktf/provider-aws.dataAwsDynamodbTable.DataAwsDynamodbTableOnDemandThroughputOutputReference", version: "21.22.1" }; class DataAwsDynamodbTableOnDemandThroughputList 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 DataAwsDynamodbTableOnDemandThroughputOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataAwsDynamodbTableOnDemandThroughputList = DataAwsDynamodbTableOnDemandThroughputList; _m = JSII_RTTI_SYMBOL_1; DataAwsDynamodbTableOnDemandThroughputList[_m] = { fqn: "@cdktf/provider-aws.dataAwsDynamodbTable.DataAwsDynamodbTableOnDemandThroughputList", version: "21.22.1" }; function dataAwsDynamodbTablePointInTimeRecoveryToTerraform(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 {}; } function dataAwsDynamodbTablePointInTimeRecoveryToHclTerraform(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; } class DataAwsDynamodbTablePointInTimeRecoveryOutputReference 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; } } // enabled - computed: true, optional: false, required: false get enabled() { return this.getBooleanAttribute('enabled'); } // recovery_period_in_days - computed: true, optional: false, required: false get recoveryPeriodInDays() { return this.getNumberAttribute('recovery_period_in_days'); } } exports.DataAwsDynamodbTablePointInTimeRecoveryOutputReference = DataAwsDynamodbTablePointInTimeRecoveryOutputReference; _o = JSII_RTTI_SYMBOL_1; DataAwsDynamodbTablePointInTimeRecoveryOutputReference[_o] = { fqn: "@cdktf/provider-aws.dataAwsDynamodbTable.DataAwsDynamodbTablePointInTimeRecoveryOutputReference", version: "21.22.1" }; class DataAwsDynamodbTablePointInTimeRecoveryList 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 DataAwsDynamodbTablePointInTimeRecoveryOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataAwsDynamodbTablePointInTimeRecoveryList = DataAwsDynamodbTablePointInTimeRecoveryList; _p = JSII_RTTI_SYMBOL_1; DataAwsDynamodbTablePointInTimeRecoveryList[_p] = { fqn: "@cdktf/provider-aws.dataAwsDynamodbTable.DataAwsDynamodbTablePointInTimeRecoveryList", version: "21.22.1" }; function dataAwsDynamodbTableReplicaToTerraform(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 {}; } function dataAwsDynamodbTableReplicaToHclTerraform(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; } class DataAwsDynamodbTableReplicaOutputReference 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; } } // kms_key_arn - computed: true, optional: false, required: false get kmsKeyArn() { return this.getStringAttribute('kms_key_arn'); } // region_name - computed: true, optional: false, required: false get regionName() { return this.getStringAttribute('region_name'); } } exports.DataAwsDynamodbTableReplicaOutputReference = DataAwsDynamodbTableReplicaOutputReference; _q = JSII_RTTI_SYMBOL_1; DataAwsDynamodbTableReplicaOutputReference[_q] = { fqn: "@cdktf/provider-aws.dataAwsDynamodbTable.DataAwsDynamodbTableReplicaOutputReference", version: "21.22.1" }; class DataAwsDynamodbTableReplicaList 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 DataAwsDynamodbTableReplicaOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataAwsDynamodbTableReplicaList = DataAwsDynamodbTableReplicaList; _r = JSII_RTTI_SYMBOL_1; DataAwsDynamodbTableReplicaList[_r] = { fqn: "@cdktf/provider-aws.dataAwsDynamodbTable.DataAwsDynamodbTableReplicaList", version: "21.22.1" }; function dataAwsDynamodbTableTtlToTerraform(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 {}; } function dataAwsDynamodbTableTtlToHclTerraform(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; } class DataAwsDynamodbTableTtlOutputReference 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; } } // attribute_name - computed: true, optional: false, required: false get attributeName() { return this.getStringAttribute('attribute_name'); } // enabled - computed: true, optional: false, required: false get enabled() { return this.getBooleanAttribute('enabled'); } } exports.DataAwsDynamodbTableTtlOutputReference = DataAwsDynamodbTableTtlOutputReference; _s = JSII_RTTI_SYMBOL_1; DataAwsDynamodbTableTtlOutputReference[_s] = { fqn: "@cdktf/provider-aws.dataAwsDynamodbTable.DataAwsDynamodbTableTtlOutputReference", version: "21.22.1" }; class DataAwsDynamodbTableTtlList 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 DataAwsDynamodbTableTtlOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataAwsDynamodbTableTtlList = DataAwsDynamodbTableTtlList; _t = JSII_RTTI_SYMBOL_1; DataAwsDynamodbTableTtlList[_t] = { fqn: "@cdktf/provider-aws.dataAwsDynamodbTable.DataAwsDynamodbTableTtlList", version: "21.22.1" }; function dataAwsDynamodbTableWarmThroughputToTerraform(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 {}; } function dataAwsDynamodbTableWarmThroughputToHclTerraform(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; } class DataAwsDynamodbTableWarmThroughputOutputReference 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; } } // read_units_per_second - computed: true, optional: false, required: false get readUnitsPerSecond() { return this.getNumberAttribute('read_units_per_second'); } // write_units_per_second - computed: true, optional: false, required: false get writeUnitsPerSecond() { return this.getNumberAttribute('write_units_per_second'); } } exports.DataAwsDynamodbTableWarmThroughputOutputReference = DataAwsDynamodbTableWarmThroughputOutputReference; _u = JSII_RTTI_SYMBOL_1; DataAwsDynamodbTableWarmThroughputOutputReference[_u] = { fqn: "@cdktf/provider-aws.dataAwsDynamodbTable.DataAwsDynamodbTableWarmThroughputOutputReference", version: "21.22.1" }; class DataAwsDynamodbTableWarmThroughputList 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 DataAwsDynamodbTableWarmThroughputOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataAwsDynamodbTableWarmThroughputList = DataAwsDynamodbTableWarmThroughputList; _v = JSII_RTTI_SYMBOL_1; DataAwsDynamodbTableWarmThroughputList[_v] = { fqn: "@cdktf/provider-aws.dataAwsDynamodbTable.DataAwsDynamodbTableWarmThroughputList", version: "21.22.1" }; function dataAwsDynamodbTableServerSideEncryptionToTerraform(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 {}; } function dataAwsDynamodbTableServerSideEncryptionToHclTerraform(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; } class DataAwsDynamodbTableServerSideEncryptionOutputReference 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 = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // enabled - computed: true, optional: false, required: false get enabled() { return this.getBooleanAttribute('enabled'); } // kms_key_arn - computed: true, optional: false, required: false get kmsKeyArn() { return this.getStringAttribute('kms_key_arn'); } } exports.DataAwsDynamodbTableServerSideEncryptionOutputReference = DataAwsDynamodbTableServerSideEncryptionOutputReference; _w = JSII_RTTI_SYMBOL_1; DataAwsDynamodbTableServerSideEncryptionOutputReference[_w] = { fqn: "@cdktf/provider-aws.dataAwsDynamodbTable.DataAwsDynamodbTableServerSideEncryptionOutputReference", version: "21.22.1" }; /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/data-sources/dynamodb_table aws_dynamodb_table} */ class DataAwsDynamodbTable extends cdktf.TerraformDataSource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a DataAwsDynamodbTable 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 DataAwsDynamodbTable to import * @param importFromId The id of the existing DataAwsDynamodbTable that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/data-sources/dynamodb_table#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the DataAwsDynamodbTable to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "aws_dynamodb_table", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/data-sources/dynamodb_table aws_dynamodb_table} Data Source * * @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 DataAwsDynamodbTableConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'aws_dynamodb_table', terraformGeneratorMetadata: { providerName: 'aws', providerVersion: '6.25.0', providerVersionConstraint: '~> 6.0' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle, provisioners: config.provisioners, connection: config.connection, forEach: config.forEach }); // attribute - computed: true, optional: false, required: false this._attribute = new DataAwsDynamodbTableAttributeList(this, "attribute", true); // global_secondary_index - computed: true, optional: false, required: false this._globalSecondaryIndex = new DataAwsDynamodbTableGlobalSecondaryIndexList(this, "global_secondary_index", true); // local_secondary_index - computed: true, optional: false, required: false this._localSecondaryIndex = new DataAwsDynamodbTableLocalSecondaryIndexList(this, "local_secondary_index", true); // on_demand_throughput - computed: true, optional: false, required: false this._onDemandThroughput = new DataAwsDynamodbTableOnDemandThroughputList(this, "on_demand_throughput", false); // point_in_time_recovery - computed: true, optional: false, required: false this._pointInTimeRecovery = new DataAwsDynamodbTablePointInTimeRecoveryList(this, "point_in_time_recovery", false); // replica - computed: true, optional: false, required: false this._replica = new DataAwsDynamodbTableReplicaList(this, "replica", true); // ttl - computed: true, optional: false, required: false this._ttl = new DataAwsDynamodbTableTtlList(this, "ttl", true); // warm_throughput - computed: true, optional: false, required: false this._warmThroughput = new DataAwsDynamodbTableWarmThroughputList(this, "warm_throughput", false); // server_side_encryption - computed: false, optional: true, required: false this._serverSideEncryption = new DataAwsDynamodbTableServerSideEncryptionOutputReference(this, "server_side_encryption"); this._id = config.id; this._name = config.name; this._region = config.region; this._tags = config.tags; this._serverSideEncryption.internalValue = config.serverSideEncryption; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false get arn() { return this.getStringAttribute('arn'); } get attribute() { return this._attribute; } // billing_mode - computed: true, optional: false, required: false get billingMode() { return this.getStringAttribute('billing_mode'); } // deletion_protection_enabled - computed: true, optional: false, required: false get deletionProtectionEnabled() { return this.getBooleanAttribute('deletion_protection_enabled'); } get globalSecondaryIndex() { return this._globalSecondaryIndex; } // hash_key - computed: true, optional: false, required: false get hashKey() { return this.getStr