UNPKG

@cdktf/provider-aws

Version:

Prebuilt aws Provider for Terraform CDK (cdktf)

1,129 lines 234 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s; Object.defineProperty(exports, "__esModule", { value: true }); exports.KeyspacesTable = exports.KeyspacesTableTtlOutputReference = exports.keyspacesTableTtlToHclTerraform = exports.keyspacesTableTtlToTerraform = exports.KeyspacesTableTimeoutsOutputReference = exports.keyspacesTableTimeoutsToHclTerraform = exports.keyspacesTableTimeoutsToTerraform = exports.KeyspacesTableSchemaDefinitionOutputReference = exports.keyspacesTableSchemaDefinitionToHclTerraform = exports.keyspacesTableSchemaDefinitionToTerraform = exports.KeyspacesTableSchemaDefinitionStaticColumnList = exports.KeyspacesTableSchemaDefinitionStaticColumnOutputReference = exports.keyspacesTableSchemaDefinitionStaticColumnToHclTerraform = exports.keyspacesTableSchemaDefinitionStaticColumnToTerraform = exports.KeyspacesTableSchemaDefinitionPartitionKeyList = exports.KeyspacesTableSchemaDefinitionPartitionKeyOutputReference = exports.keyspacesTableSchemaDefinitionPartitionKeyToHclTerraform = exports.keyspacesTableSchemaDefinitionPartitionKeyToTerraform = exports.KeyspacesTableSchemaDefinitionColumnList = exports.KeyspacesTableSchemaDefinitionColumnOutputReference = exports.keyspacesTableSchemaDefinitionColumnToHclTerraform = exports.keyspacesTableSchemaDefinitionColumnToTerraform = exports.KeyspacesTableSchemaDefinitionClusteringKeyList = exports.KeyspacesTableSchemaDefinitionClusteringKeyOutputReference = exports.keyspacesTableSchemaDefinitionClusteringKeyToHclTerraform = exports.keyspacesTableSchemaDefinitionClusteringKeyToTerraform = exports.KeyspacesTablePointInTimeRecoveryOutputReference = exports.keyspacesTablePointInTimeRecoveryToHclTerraform = exports.keyspacesTablePointInTimeRecoveryToTerraform = exports.KeyspacesTableEncryptionSpecificationOutputReference = exports.keyspacesTableEncryptionSpecificationToHclTerraform = exports.keyspacesTableEncryptionSpecificationToTerraform = exports.KeyspacesTableCommentOutputReference = exports.keyspacesTableCommentToHclTerraform = exports.keyspacesTableCommentToTerraform = exports.KeyspacesTableClientSideTimestampsOutputReference = exports.keyspacesTableClientSideTimestampsToHclTerraform = exports.keyspacesTableClientSideTimestampsToTerraform = exports.KeyspacesTableCapacitySpecificationOutputReference = exports.keyspacesTableCapacitySpecificationToHclTerraform = exports.keyspacesTableCapacitySpecificationToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function keyspacesTableCapacitySpecificationToTerraform(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 { read_capacity_units: cdktf.numberToTerraform(struct.readCapacityUnits), throughput_mode: cdktf.stringToTerraform(struct.throughputMode), write_capacity_units: cdktf.numberToTerraform(struct.writeCapacityUnits), }; } exports.keyspacesTableCapacitySpecificationToTerraform = keyspacesTableCapacitySpecificationToTerraform; function keyspacesTableCapacitySpecificationToHclTerraform(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 = { read_capacity_units: { value: cdktf.numberToHclTerraform(struct.readCapacityUnits), isBlock: false, type: "simple", storageClassType: "number", }, throughput_mode: { value: cdktf.stringToHclTerraform(struct.throughputMode), isBlock: false, type: "simple", storageClassType: "string", }, write_capacity_units: { value: cdktf.numberToHclTerraform(struct.writeCapacityUnits), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.keyspacesTableCapacitySpecificationToHclTerraform = keyspacesTableCapacitySpecificationToHclTerraform; class KeyspacesTableCapacitySpecificationOutputReference 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._readCapacityUnits !== undefined) { hasAnyValues = true; internalValueResult.readCapacityUnits = this._readCapacityUnits; } if (this._throughputMode !== undefined) { hasAnyValues = true; internalValueResult.throughputMode = this._throughputMode; } if (this._writeCapacityUnits !== undefined) { hasAnyValues = true; internalValueResult.writeCapacityUnits = this._writeCapacityUnits; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._readCapacityUnits = undefined; this._throughputMode = undefined; this._writeCapacityUnits = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._readCapacityUnits = value.readCapacityUnits; this._throughputMode = value.throughputMode; this._writeCapacityUnits = value.writeCapacityUnits; } } get readCapacityUnits() { return this.getNumberAttribute('read_capacity_units'); } set readCapacityUnits(value) { this._readCapacityUnits = value; } resetReadCapacityUnits() { this._readCapacityUnits = undefined; } // Temporarily expose input value. Use with caution. get readCapacityUnitsInput() { return this._readCapacityUnits; } get throughputMode() { return this.getStringAttribute('throughput_mode'); } set throughputMode(value) { this._throughputMode = value; } resetThroughputMode() { this._throughputMode = undefined; } // Temporarily expose input value. Use with caution. get throughputModeInput() { return this._throughputMode; } get writeCapacityUnits() { return this.getNumberAttribute('write_capacity_units'); } set writeCapacityUnits(value) { this._writeCapacityUnits = value; } resetWriteCapacityUnits() { this._writeCapacityUnits = undefined; } // Temporarily expose input value. Use with caution. get writeCapacityUnitsInput() { return this._writeCapacityUnits; } } exports.KeyspacesTableCapacitySpecificationOutputReference = KeyspacesTableCapacitySpecificationOutputReference; _a = JSII_RTTI_SYMBOL_1; KeyspacesTableCapacitySpecificationOutputReference[_a] = { fqn: "@cdktf/provider-aws.keyspacesTable.KeyspacesTableCapacitySpecificationOutputReference", version: "19.50.0" }; function keyspacesTableClientSideTimestampsToTerraform(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 { status: cdktf.stringToTerraform(struct.status), }; } exports.keyspacesTableClientSideTimestampsToTerraform = keyspacesTableClientSideTimestampsToTerraform; function keyspacesTableClientSideTimestampsToHclTerraform(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 = { status: { value: cdktf.stringToHclTerraform(struct.status), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.keyspacesTableClientSideTimestampsToHclTerraform = keyspacesTableClientSideTimestampsToHclTerraform; class KeyspacesTableClientSideTimestampsOutputReference 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._status !== undefined) { hasAnyValues = true; internalValueResult.status = this._status; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._status = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._status = value.status; } } get status() { return this.getStringAttribute('status'); } set status(value) { this._status = value; } // Temporarily expose input value. Use with caution. get statusInput() { return this._status; } } exports.KeyspacesTableClientSideTimestampsOutputReference = KeyspacesTableClientSideTimestampsOutputReference; _b = JSII_RTTI_SYMBOL_1; KeyspacesTableClientSideTimestampsOutputReference[_b] = { fqn: "@cdktf/provider-aws.keyspacesTable.KeyspacesTableClientSideTimestampsOutputReference", version: "19.50.0" }; function keyspacesTableCommentToTerraform(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 { message: cdktf.stringToTerraform(struct.message), }; } exports.keyspacesTableCommentToTerraform = keyspacesTableCommentToTerraform; function keyspacesTableCommentToHclTerraform(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 = { message: { value: cdktf.stringToHclTerraform(struct.message), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.keyspacesTableCommentToHclTerraform = keyspacesTableCommentToHclTerraform; class KeyspacesTableCommentOutputReference 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._message !== undefined) { hasAnyValues = true; internalValueResult.message = this._message; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._message = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._message = value.message; } } get message() { return this.getStringAttribute('message'); } set message(value) { this._message = value; } resetMessage() { this._message = undefined; } // Temporarily expose input value. Use with caution. get messageInput() { return this._message; } } exports.KeyspacesTableCommentOutputReference = KeyspacesTableCommentOutputReference; _c = JSII_RTTI_SYMBOL_1; KeyspacesTableCommentOutputReference[_c] = { fqn: "@cdktf/provider-aws.keyspacesTable.KeyspacesTableCommentOutputReference", version: "19.50.0" }; function keyspacesTableEncryptionSpecificationToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { kms_key_identifier: cdktf.stringToTerraform(struct.kmsKeyIdentifier), type: cdktf.stringToTerraform(struct.type), }; } exports.keyspacesTableEncryptionSpecificationToTerraform = keyspacesTableEncryptionSpecificationToTerraform; function keyspacesTableEncryptionSpecificationToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { kms_key_identifier: { value: cdktf.stringToHclTerraform(struct.kmsKeyIdentifier), isBlock: false, type: "simple", storageClassType: "string", }, type: { value: cdktf.stringToHclTerraform(struct.type), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.keyspacesTableEncryptionSpecificationToHclTerraform = keyspacesTableEncryptionSpecificationToHclTerraform; class KeyspacesTableEncryptionSpecificationOutputReference 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._kmsKeyIdentifier !== undefined) { hasAnyValues = true; internalValueResult.kmsKeyIdentifier = this._kmsKeyIdentifier; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._kmsKeyIdentifier = undefined; this._type = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._kmsKeyIdentifier = value.kmsKeyIdentifier; this._type = value.type; } } get kmsKeyIdentifier() { return this.getStringAttribute('kms_key_identifier'); } set kmsKeyIdentifier(value) { this._kmsKeyIdentifier = value; } resetKmsKeyIdentifier() { this._kmsKeyIdentifier = undefined; } // Temporarily expose input value. Use with caution. get kmsKeyIdentifierInput() { return this._kmsKeyIdentifier; } get type() { return this.getStringAttribute('type'); } set type(value) { this._type = value; } resetType() { this._type = undefined; } // Temporarily expose input value. Use with caution. get typeInput() { return this._type; } } exports.KeyspacesTableEncryptionSpecificationOutputReference = KeyspacesTableEncryptionSpecificationOutputReference; _d = JSII_RTTI_SYMBOL_1; KeyspacesTableEncryptionSpecificationOutputReference[_d] = { fqn: "@cdktf/provider-aws.keyspacesTable.KeyspacesTableEncryptionSpecificationOutputReference", version: "19.50.0" }; function keyspacesTablePointInTimeRecoveryToTerraform(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 { status: cdktf.stringToTerraform(struct.status), }; } exports.keyspacesTablePointInTimeRecoveryToTerraform = keyspacesTablePointInTimeRecoveryToTerraform; function keyspacesTablePointInTimeRecoveryToHclTerraform(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 = { status: { value: cdktf.stringToHclTerraform(struct.status), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.keyspacesTablePointInTimeRecoveryToHclTerraform = keyspacesTablePointInTimeRecoveryToHclTerraform; class KeyspacesTablePointInTimeRecoveryOutputReference 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._status !== undefined) { hasAnyValues = true; internalValueResult.status = this._status; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._status = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._status = value.status; } } get status() { return this.getStringAttribute('status'); } set status(value) { this._status = value; } resetStatus() { this._status = undefined; } // Temporarily expose input value. Use with caution. get statusInput() { return this._status; } } exports.KeyspacesTablePointInTimeRecoveryOutputReference = KeyspacesTablePointInTimeRecoveryOutputReference; _e = JSII_RTTI_SYMBOL_1; KeyspacesTablePointInTimeRecoveryOutputReference[_e] = { fqn: "@cdktf/provider-aws.keyspacesTable.KeyspacesTablePointInTimeRecoveryOutputReference", version: "19.50.0" }; function keyspacesTableSchemaDefinitionClusteringKeyToTerraform(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 { name: cdktf.stringToTerraform(struct.name), order_by: cdktf.stringToTerraform(struct.orderBy), }; } exports.keyspacesTableSchemaDefinitionClusteringKeyToTerraform = keyspacesTableSchemaDefinitionClusteringKeyToTerraform; function keyspacesTableSchemaDefinitionClusteringKeyToHclTerraform(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 = { name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, order_by: { value: cdktf.stringToHclTerraform(struct.orderBy), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.keyspacesTableSchemaDefinitionClusteringKeyToHclTerraform = keyspacesTableSchemaDefinitionClusteringKeyToHclTerraform; class KeyspacesTableSchemaDefinitionClusteringKeyOutputReference 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._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._orderBy !== undefined) { hasAnyValues = true; internalValueResult.orderBy = this._orderBy; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._name = undefined; this._orderBy = 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._name = value.name; this._orderBy = value.orderBy; } } 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 orderBy() { return this.getStringAttribute('order_by'); } set orderBy(value) { this._orderBy = value; } // Temporarily expose input value. Use with caution. get orderByInput() { return this._orderBy; } } exports.KeyspacesTableSchemaDefinitionClusteringKeyOutputReference = KeyspacesTableSchemaDefinitionClusteringKeyOutputReference; _f = JSII_RTTI_SYMBOL_1; KeyspacesTableSchemaDefinitionClusteringKeyOutputReference[_f] = { fqn: "@cdktf/provider-aws.keyspacesTable.KeyspacesTableSchemaDefinitionClusteringKeyOutputReference", version: "19.50.0" }; class KeyspacesTableSchemaDefinitionClusteringKeyList 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 KeyspacesTableSchemaDefinitionClusteringKeyOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.KeyspacesTableSchemaDefinitionClusteringKeyList = KeyspacesTableSchemaDefinitionClusteringKeyList; _g = JSII_RTTI_SYMBOL_1; KeyspacesTableSchemaDefinitionClusteringKeyList[_g] = { fqn: "@cdktf/provider-aws.keyspacesTable.KeyspacesTableSchemaDefinitionClusteringKeyList", version: "19.50.0" }; function keyspacesTableSchemaDefinitionColumnToTerraform(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 { name: cdktf.stringToTerraform(struct.name), type: cdktf.stringToTerraform(struct.type), }; } exports.keyspacesTableSchemaDefinitionColumnToTerraform = keyspacesTableSchemaDefinitionColumnToTerraform; function keyspacesTableSchemaDefinitionColumnToHclTerraform(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 = { name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, type: { value: cdktf.stringToHclTerraform(struct.type), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.keyspacesTableSchemaDefinitionColumnToHclTerraform = keyspacesTableSchemaDefinitionColumnToHclTerraform; class KeyspacesTableSchemaDefinitionColumnOutputReference 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._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._name = undefined; this._type = 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._name = value.name; this._type = value.type; } } 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 type() { return this.getStringAttribute('type'); } set type(value) { this._type = value; } // Temporarily expose input value. Use with caution. get typeInput() { return this._type; } } exports.KeyspacesTableSchemaDefinitionColumnOutputReference = KeyspacesTableSchemaDefinitionColumnOutputReference; _h = JSII_RTTI_SYMBOL_1; KeyspacesTableSchemaDefinitionColumnOutputReference[_h] = { fqn: "@cdktf/provider-aws.keyspacesTable.KeyspacesTableSchemaDefinitionColumnOutputReference", version: "19.50.0" }; class KeyspacesTableSchemaDefinitionColumnList 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 KeyspacesTableSchemaDefinitionColumnOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.KeyspacesTableSchemaDefinitionColumnList = KeyspacesTableSchemaDefinitionColumnList; _j = JSII_RTTI_SYMBOL_1; KeyspacesTableSchemaDefinitionColumnList[_j] = { fqn: "@cdktf/provider-aws.keyspacesTable.KeyspacesTableSchemaDefinitionColumnList", version: "19.50.0" }; function keyspacesTableSchemaDefinitionPartitionKeyToTerraform(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 { name: cdktf.stringToTerraform(struct.name), }; } exports.keyspacesTableSchemaDefinitionPartitionKeyToTerraform = keyspacesTableSchemaDefinitionPartitionKeyToTerraform; function keyspacesTableSchemaDefinitionPartitionKeyToHclTerraform(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 = { name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.keyspacesTableSchemaDefinitionPartitionKeyToHclTerraform = keyspacesTableSchemaDefinitionPartitionKeyToHclTerraform; class KeyspacesTableSchemaDefinitionPartitionKeyOutputReference 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._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._name = 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._name = value.name; } } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } } exports.KeyspacesTableSchemaDefinitionPartitionKeyOutputReference = KeyspacesTableSchemaDefinitionPartitionKeyOutputReference; _k = JSII_RTTI_SYMBOL_1; KeyspacesTableSchemaDefinitionPartitionKeyOutputReference[_k] = { fqn: "@cdktf/provider-aws.keyspacesTable.KeyspacesTableSchemaDefinitionPartitionKeyOutputReference", version: "19.50.0" }; class KeyspacesTableSchemaDefinitionPartitionKeyList 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 KeyspacesTableSchemaDefinitionPartitionKeyOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.KeyspacesTableSchemaDefinitionPartitionKeyList = KeyspacesTableSchemaDefinitionPartitionKeyList; _l = JSII_RTTI_SYMBOL_1; KeyspacesTableSchemaDefinitionPartitionKeyList[_l] = { fqn: "@cdktf/provider-aws.keyspacesTable.KeyspacesTableSchemaDefinitionPartitionKeyList", version: "19.50.0" }; function keyspacesTableSchemaDefinitionStaticColumnToTerraform(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 { name: cdktf.stringToTerraform(struct.name), }; } exports.keyspacesTableSchemaDefinitionStaticColumnToTerraform = keyspacesTableSchemaDefinitionStaticColumnToTerraform; function keyspacesTableSchemaDefinitionStaticColumnToHclTerraform(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 = { name: { value: cdktf.stringToHclTerraform(struct.name), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.keyspacesTableSchemaDefinitionStaticColumnToHclTerraform = keyspacesTableSchemaDefinitionStaticColumnToHclTerraform; class KeyspacesTableSchemaDefinitionStaticColumnOutputReference 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._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._name = 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._name = value.name; } } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } } exports.KeyspacesTableSchemaDefinitionStaticColumnOutputReference = KeyspacesTableSchemaDefinitionStaticColumnOutputReference; _m = JSII_RTTI_SYMBOL_1; KeyspacesTableSchemaDefinitionStaticColumnOutputReference[_m] = { fqn: "@cdktf/provider-aws.keyspacesTable.KeyspacesTableSchemaDefinitionStaticColumnOutputReference", version: "19.50.0" }; class KeyspacesTableSchemaDefinitionStaticColumnList 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 KeyspacesTableSchemaDefinitionStaticColumnOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.KeyspacesTableSchemaDefinitionStaticColumnList = KeyspacesTableSchemaDefinitionStaticColumnList; _o = JSII_RTTI_SYMBOL_1; KeyspacesTableSchemaDefinitionStaticColumnList[_o] = { fqn: "@cdktf/provider-aws.keyspacesTable.KeyspacesTableSchemaDefinitionStaticColumnList", version: "19.50.0" }; function keyspacesTableSchemaDefinitionToTerraform(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 { clustering_key: cdktf.listMapper(keyspacesTableSchemaDefinitionClusteringKeyToTerraform, true)(struct.clusteringKey), column: cdktf.listMapper(keyspacesTableSchemaDefinitionColumnToTerraform, true)(struct.column), partition_key: cdktf.listMapper(keyspacesTableSchemaDefinitionPartitionKeyToTerraform, true)(struct.partitionKey), static_column: cdktf.listMapper(keyspacesTableSchemaDefinitionStaticColumnToTerraform, true)(struct.staticColumn), }; } exports.keyspacesTableSchemaDefinitionToTerraform = keyspacesTableSchemaDefinitionToTerraform; function keyspacesTableSchemaDefinitionToHclTerraform(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 = { clustering_key: { value: cdktf.listMapperHcl(keyspacesTableSchemaDefinitionClusteringKeyToHclTerraform, true)(struct.clusteringKey), isBlock: true, type: "list", storageClassType: "KeyspacesTableSchemaDefinitionClusteringKeyList", }, column: { value: cdktf.listMapperHcl(keyspacesTableSchemaDefinitionColumnToHclTerraform, true)(struct.column), isBlock: true, type: "set", storageClassType: "KeyspacesTableSchemaDefinitionColumnList", }, partition_key: { value: cdktf.listMapperHcl(keyspacesTableSchemaDefinitionPartitionKeyToHclTerraform, true)(struct.partitionKey), isBlock: true, type: "list", storageClassType: "KeyspacesTableSchemaDefinitionPartitionKeyList", }, static_column: { value: cdktf.listMapperHcl(keyspacesTableSchemaDefinitionStaticColumnToHclTerraform, true)(struct.staticColumn), isBlock: true, type: "set", storageClassType: "KeyspacesTableSchemaDefinitionStaticColumnList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.keyspacesTableSchemaDefinitionToHclTerraform = keyspacesTableSchemaDefinitionToHclTerraform; class KeyspacesTableSchemaDefinitionOutputReference 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; // clustering_key - computed: false, optional: true, required: false this._clusteringKey = new KeyspacesTableSchemaDefinitionClusteringKeyList(this, "clustering_key", false); // column - computed: false, optional: false, required: true this._column = new KeyspacesTableSchemaDefinitionColumnList(this, "column", true); // partition_key - computed: false, optional: false, required: true this._partitionKey = new KeyspacesTableSchemaDefinitionPartitionKeyList(this, "partition_key", false); // static_column - computed: false, optional: true, required: false this._staticColumn = new KeyspacesTableSchemaDefinitionStaticColumnList(this, "static_column", true); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._clusteringKey?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.clusteringKey = this._clusteringKey?.internalValue; } if (this._column?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.column = this._column?.internalValue; } if (this._partitionKey?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.partitionKey = this._partitionKey?.internalValue; } if (this._staticColumn?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.staticColumn = this._staticColumn?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._clusteringKey.internalValue = undefined; this._column.internalValue = undefined; this._partitionKey.internalValue = undefined; this._staticColumn.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._clusteringKey.internalValue = value.clusteringKey; this._column.internalValue = value.column; this._partitionKey.internalValue = value.partitionKey; this._staticColumn.internalValue = value.staticColumn; } } get clusteringKey() { return this._clusteringKey; } putClusteringKey(value) { this._clusteringKey.internalValue = value; } resetClusteringKey() { this._clusteringKey.internalValue = undefined; } // Temporarily expose input value. Use with caution. get clusteringKeyInput() { return this._clusteringKey.internalValue; } get column() { return this._column; } putColumn(value) { this._column.internalValue = value; } // Temporarily expose input value. Use with caution. get columnInput() { return this._column.internalValue; } get partitionKey() { return this._partitionKey; } putPartitionKey(value) { this._partitionKey.internalValue = value; } // Temporarily expose input value. Use with caution. get partitionKeyInput() { return this._partitionKey.internalValue; } get staticColumn() { return this._staticColumn; } putStaticColumn(value) { this._staticColumn.internalValue = value; } resetStaticColumn() { this._staticColumn.internalValue = undefined; } // Temporarily expose input value. Use with caution. get staticColumnInput() { return this._staticColumn.internalValue; } } exports.KeyspacesTableSchemaDefinitionOutputReference = KeyspacesTableSchemaDefinitionOutputReference; _p = JSII_RTTI_SYMBOL_1; KeyspacesTableSchemaDefinitionOutputReference[_p] = { fqn: "@cdktf/provider-aws.keyspacesTable.KeyspacesTableSchemaDefinitionOutputReference", version: "19.50.0" }; function keyspacesTableTimeoutsToTerraform(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), delete: cdktf.stringToTerraform(struct.delete), update: cdktf.stringToTerraform(struct.update), }; } exports.keyspacesTableTimeoutsToTerraform = keyspacesTableTimeoutsToTerraform; function keyspacesTableTimeoutsToHclTerraform(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", }, delete: { value: cdktf.stringToHclTerraform(struct.delete), isBlock: false, type: "simple", storageClassType: "string", }, update: { value: cdktf.stringToHclTerraform(struct.update), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove u