UNPKG

@cdktf/provider-aws

Version:

Prebuilt aws Provider for Terraform CDK (cdktf)

847 lines 461 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, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13; Object.defineProperty(exports, "__esModule", { value: true }); exports.BedrockagentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationTransformationTransformationFunctionOutputReference = exports.bedrockagentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationTransformationTransformationFunctionToHclTerraform = exports.bedrockagentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationTransformationTransformationFunctionToTerraform = exports.BedrockagentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationTransformationTransformationFunctionTransformationLambdaConfigurationList = exports.BedrockagentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationTransformationTransformationFunctionTransformationLambdaConfigurationOutputReference = exports.bedrockagentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationTransformationTransformationFunctionTransformationLambdaConfigurationToHclTerraform = exports.bedrockagentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationTransformationTransformationFunctionTransformationLambdaConfigurationToTerraform = exports.BedrockagentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationIntermediateStorageList = exports.BedrockagentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationIntermediateStorageOutputReference = exports.bedrockagentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationIntermediateStorageToHclTerraform = exports.bedrockagentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationIntermediateStorageToTerraform = exports.BedrockagentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationIntermediateStorageS3LocationList = exports.BedrockagentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationIntermediateStorageS3LocationOutputReference = exports.bedrockagentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationIntermediateStorageS3LocationToHclTerraform = exports.bedrockagentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationIntermediateStorageS3LocationToTerraform = exports.BedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationList = exports.BedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationOutputReference = exports.bedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationToHclTerraform = exports.bedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationToTerraform = exports.BedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationSemanticChunkingConfigurationList = exports.BedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationSemanticChunkingConfigurationOutputReference = exports.bedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationSemanticChunkingConfigurationToHclTerraform = exports.bedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationSemanticChunkingConfigurationToTerraform = exports.BedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationList = exports.BedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationOutputReference = exports.bedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationToHclTerraform = exports.bedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationToTerraform = exports.BedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfigurationList = exports.BedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfigurationOutputReference = exports.bedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfigurationToHclTerraform = exports.bedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfigurationToTerraform = exports.BedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationFixedSizeChunkingConfigurationList = exports.BedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationFixedSizeChunkingConfigurationOutputReference = exports.bedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationFixedSizeChunkingConfigurationToHclTerraform = exports.bedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationFixedSizeChunkingConfigurationToTerraform = exports.BedrockagentDataSourceTimeoutsOutputReference = exports.bedrockagentDataSourceTimeoutsToHclTerraform = exports.bedrockagentDataSourceTimeoutsToTerraform = exports.BedrockagentDataSourceServerSideEncryptionConfigurationList = exports.BedrockagentDataSourceServerSideEncryptionConfigurationOutputReference = exports.bedrockagentDataSourceServerSideEncryptionConfigurationToHclTerraform = exports.bedrockagentDataSourceServerSideEncryptionConfigurationToTerraform = exports.BedrockagentDataSourceDataSourceConfigurationList = exports.BedrockagentDataSourceDataSourceConfigurationOutputReference = exports.bedrockagentDataSourceDataSourceConfigurationToHclTerraform = exports.bedrockagentDataSourceDataSourceConfigurationToTerraform = exports.BedrockagentDataSourceDataSourceConfigurationS3ConfigurationList = exports.BedrockagentDataSourceDataSourceConfigurationS3ConfigurationOutputReference = exports.bedrockagentDataSourceDataSourceConfigurationS3ConfigurationToHclTerraform = exports.bedrockagentDataSourceDataSourceConfigurationS3ConfigurationToTerraform = void 0; exports.BedrockagentDataSource = exports.BedrockagentDataSourceVectorIngestionConfigurationList = exports.BedrockagentDataSourceVectorIngestionConfigurationOutputReference = exports.bedrockagentDataSourceVectorIngestionConfigurationToHclTerraform = exports.bedrockagentDataSourceVectorIngestionConfigurationToTerraform = exports.BedrockagentDataSourceVectorIngestionConfigurationParsingConfigurationList = exports.BedrockagentDataSourceVectorIngestionConfigurationParsingConfigurationOutputReference = exports.bedrockagentDataSourceVectorIngestionConfigurationParsingConfigurationToHclTerraform = exports.bedrockagentDataSourceVectorIngestionConfigurationParsingConfigurationToTerraform = exports.BedrockagentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfigurationList = exports.BedrockagentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfigurationOutputReference = exports.bedrockagentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfigurationToHclTerraform = exports.bedrockagentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfigurationToTerraform = exports.BedrockagentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfigurationParsingPromptList = exports.BedrockagentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfigurationParsingPromptOutputReference = exports.bedrockagentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfigurationParsingPromptToHclTerraform = exports.bedrockagentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfigurationParsingPromptToTerraform = exports.BedrockagentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationList = exports.BedrockagentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationOutputReference = exports.bedrockagentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationToHclTerraform = exports.bedrockagentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationToTerraform = exports.BedrockagentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationTransformationList = exports.BedrockagentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationTransformationOutputReference = exports.bedrockagentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationTransformationToHclTerraform = exports.bedrockagentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationTransformationToTerraform = exports.BedrockagentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationTransformationTransformationFunctionList = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function bedrockagentDataSourceDataSourceConfigurationS3ConfigurationToTerraform(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 { bucket_arn: cdktf.stringToTerraform(struct.bucketArn), bucket_owner_account_id: cdktf.stringToTerraform(struct.bucketOwnerAccountId), inclusion_prefixes: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.inclusionPrefixes), }; } exports.bedrockagentDataSourceDataSourceConfigurationS3ConfigurationToTerraform = bedrockagentDataSourceDataSourceConfigurationS3ConfigurationToTerraform; function bedrockagentDataSourceDataSourceConfigurationS3ConfigurationToHclTerraform(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 = { bucket_arn: { value: cdktf.stringToHclTerraform(struct.bucketArn), isBlock: false, type: "simple", storageClassType: "string", }, bucket_owner_account_id: { value: cdktf.stringToHclTerraform(struct.bucketOwnerAccountId), isBlock: false, type: "simple", storageClassType: "string", }, inclusion_prefixes: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.inclusionPrefixes), isBlock: false, type: "set", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.bedrockagentDataSourceDataSourceConfigurationS3ConfigurationToHclTerraform = bedrockagentDataSourceDataSourceConfigurationS3ConfigurationToHclTerraform; class BedrockagentDataSourceDataSourceConfigurationS3ConfigurationOutputReference 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._bucketArn !== undefined) { hasAnyValues = true; internalValueResult.bucketArn = this._bucketArn; } if (this._bucketOwnerAccountId !== undefined) { hasAnyValues = true; internalValueResult.bucketOwnerAccountId = this._bucketOwnerAccountId; } if (this._inclusionPrefixes !== undefined) { hasAnyValues = true; internalValueResult.inclusionPrefixes = this._inclusionPrefixes; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._bucketArn = undefined; this._bucketOwnerAccountId = undefined; this._inclusionPrefixes = 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._bucketArn = value.bucketArn; this._bucketOwnerAccountId = value.bucketOwnerAccountId; this._inclusionPrefixes = value.inclusionPrefixes; } } get bucketArn() { return this.getStringAttribute('bucket_arn'); } set bucketArn(value) { this._bucketArn = value; } // Temporarily expose input value. Use with caution. get bucketArnInput() { return this._bucketArn; } get bucketOwnerAccountId() { return this.getStringAttribute('bucket_owner_account_id'); } set bucketOwnerAccountId(value) { this._bucketOwnerAccountId = value; } resetBucketOwnerAccountId() { this._bucketOwnerAccountId = undefined; } // Temporarily expose input value. Use with caution. get bucketOwnerAccountIdInput() { return this._bucketOwnerAccountId; } get inclusionPrefixes() { return cdktf.Fn.tolist(this.getListAttribute('inclusion_prefixes')); } set inclusionPrefixes(value) { this._inclusionPrefixes = value; } resetInclusionPrefixes() { this._inclusionPrefixes = undefined; } // Temporarily expose input value. Use with caution. get inclusionPrefixesInput() { return this._inclusionPrefixes; } } exports.BedrockagentDataSourceDataSourceConfigurationS3ConfigurationOutputReference = BedrockagentDataSourceDataSourceConfigurationS3ConfigurationOutputReference; _a = JSII_RTTI_SYMBOL_1; BedrockagentDataSourceDataSourceConfigurationS3ConfigurationOutputReference[_a] = { fqn: "@cdktf/provider-aws.bedrockagentDataSource.BedrockagentDataSourceDataSourceConfigurationS3ConfigurationOutputReference", version: "19.50.0" }; class BedrockagentDataSourceDataSourceConfigurationS3ConfigurationList 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 BedrockagentDataSourceDataSourceConfigurationS3ConfigurationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BedrockagentDataSourceDataSourceConfigurationS3ConfigurationList = BedrockagentDataSourceDataSourceConfigurationS3ConfigurationList; _b = JSII_RTTI_SYMBOL_1; BedrockagentDataSourceDataSourceConfigurationS3ConfigurationList[_b] = { fqn: "@cdktf/provider-aws.bedrockagentDataSource.BedrockagentDataSourceDataSourceConfigurationS3ConfigurationList", version: "19.50.0" }; function bedrockagentDataSourceDataSourceConfigurationToTerraform(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 { type: cdktf.stringToTerraform(struct.type), s3_configuration: cdktf.listMapper(bedrockagentDataSourceDataSourceConfigurationS3ConfigurationToTerraform, true)(struct.s3Configuration), }; } exports.bedrockagentDataSourceDataSourceConfigurationToTerraform = bedrockagentDataSourceDataSourceConfigurationToTerraform; function bedrockagentDataSourceDataSourceConfigurationToHclTerraform(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 = { type: { value: cdktf.stringToHclTerraform(struct.type), isBlock: false, type: "simple", storageClassType: "string", }, s3_configuration: { value: cdktf.listMapperHcl(bedrockagentDataSourceDataSourceConfigurationS3ConfigurationToHclTerraform, true)(struct.s3Configuration), isBlock: true, type: "list", storageClassType: "BedrockagentDataSourceDataSourceConfigurationS3ConfigurationList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.bedrockagentDataSourceDataSourceConfigurationToHclTerraform = bedrockagentDataSourceDataSourceConfigurationToHclTerraform; class BedrockagentDataSourceDataSourceConfigurationOutputReference 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_configuration - computed: false, optional: true, required: false this._s3Configuration = new BedrockagentDataSourceDataSourceConfigurationS3ConfigurationList(this, "s3_configuration", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } if (this._s3Configuration?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.s3Configuration = this._s3Configuration?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._type = undefined; this._s3Configuration.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._type = value.type; this._s3Configuration.internalValue = value.s3Configuration; } } get type() { return this.getStringAttribute('type'); } set type(value) { this._type = value; } // Temporarily expose input value. Use with caution. get typeInput() { return this._type; } get s3Configuration() { return this._s3Configuration; } putS3Configuration(value) { this._s3Configuration.internalValue = value; } resetS3Configuration() { this._s3Configuration.internalValue = undefined; } // Temporarily expose input value. Use with caution. get s3ConfigurationInput() { return this._s3Configuration.internalValue; } } exports.BedrockagentDataSourceDataSourceConfigurationOutputReference = BedrockagentDataSourceDataSourceConfigurationOutputReference; _c = JSII_RTTI_SYMBOL_1; BedrockagentDataSourceDataSourceConfigurationOutputReference[_c] = { fqn: "@cdktf/provider-aws.bedrockagentDataSource.BedrockagentDataSourceDataSourceConfigurationOutputReference", version: "19.50.0" }; class BedrockagentDataSourceDataSourceConfigurationList 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 BedrockagentDataSourceDataSourceConfigurationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BedrockagentDataSourceDataSourceConfigurationList = BedrockagentDataSourceDataSourceConfigurationList; _d = JSII_RTTI_SYMBOL_1; BedrockagentDataSourceDataSourceConfigurationList[_d] = { fqn: "@cdktf/provider-aws.bedrockagentDataSource.BedrockagentDataSourceDataSourceConfigurationList", version: "19.50.0" }; function bedrockagentDataSourceServerSideEncryptionConfigurationToTerraform(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_arn: cdktf.stringToTerraform(struct.kmsKeyArn), }; } exports.bedrockagentDataSourceServerSideEncryptionConfigurationToTerraform = bedrockagentDataSourceServerSideEncryptionConfigurationToTerraform; function bedrockagentDataSourceServerSideEncryptionConfigurationToHclTerraform(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_arn: { value: cdktf.stringToHclTerraform(struct.kmsKeyArn), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.bedrockagentDataSourceServerSideEncryptionConfigurationToHclTerraform = bedrockagentDataSourceServerSideEncryptionConfigurationToHclTerraform; class BedrockagentDataSourceServerSideEncryptionConfigurationOutputReference 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._kmsKeyArn !== undefined) { hasAnyValues = true; internalValueResult.kmsKeyArn = this._kmsKeyArn; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._kmsKeyArn = 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._kmsKeyArn = value.kmsKeyArn; } } get kmsKeyArn() { return this.getStringAttribute('kms_key_arn'); } set kmsKeyArn(value) { this._kmsKeyArn = value; } resetKmsKeyArn() { this._kmsKeyArn = undefined; } // Temporarily expose input value. Use with caution. get kmsKeyArnInput() { return this._kmsKeyArn; } } exports.BedrockagentDataSourceServerSideEncryptionConfigurationOutputReference = BedrockagentDataSourceServerSideEncryptionConfigurationOutputReference; _e = JSII_RTTI_SYMBOL_1; BedrockagentDataSourceServerSideEncryptionConfigurationOutputReference[_e] = { fqn: "@cdktf/provider-aws.bedrockagentDataSource.BedrockagentDataSourceServerSideEncryptionConfigurationOutputReference", version: "19.50.0" }; class BedrockagentDataSourceServerSideEncryptionConfigurationList 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 BedrockagentDataSourceServerSideEncryptionConfigurationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BedrockagentDataSourceServerSideEncryptionConfigurationList = BedrockagentDataSourceServerSideEncryptionConfigurationList; _f = JSII_RTTI_SYMBOL_1; BedrockagentDataSourceServerSideEncryptionConfigurationList[_f] = { fqn: "@cdktf/provider-aws.bedrockagentDataSource.BedrockagentDataSourceServerSideEncryptionConfigurationList", version: "19.50.0" }; function bedrockagentDataSourceTimeoutsToTerraform(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), }; } exports.bedrockagentDataSourceTimeoutsToTerraform = bedrockagentDataSourceTimeoutsToTerraform; function bedrockagentDataSourceTimeoutsToHclTerraform(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", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.bedrockagentDataSourceTimeoutsToHclTerraform = bedrockagentDataSourceTimeoutsToHclTerraform; class BedrockagentDataSourceTimeoutsOutputReference 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._delete !== undefined) { hasAnyValues = true; internalValueResult.delete = this._delete; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._create = undefined; this._delete = 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._delete = value.delete; } } 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 delete() { return this.getStringAttribute('delete'); } set delete(value) { this._delete = value; } resetDelete() { this._delete = undefined; } // Temporarily expose input value. Use with caution. get deleteInput() { return this._delete; } } exports.BedrockagentDataSourceTimeoutsOutputReference = BedrockagentDataSourceTimeoutsOutputReference; _g = JSII_RTTI_SYMBOL_1; BedrockagentDataSourceTimeoutsOutputReference[_g] = { fqn: "@cdktf/provider-aws.bedrockagentDataSource.BedrockagentDataSourceTimeoutsOutputReference", version: "19.50.0" }; function bedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationFixedSizeChunkingConfigurationToTerraform(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 { max_tokens: cdktf.numberToTerraform(struct.maxTokens), overlap_percentage: cdktf.numberToTerraform(struct.overlapPercentage), }; } exports.bedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationFixedSizeChunkingConfigurationToTerraform = bedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationFixedSizeChunkingConfigurationToTerraform; function bedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationFixedSizeChunkingConfigurationToHclTerraform(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 = { max_tokens: { value: cdktf.numberToHclTerraform(struct.maxTokens), isBlock: false, type: "simple", storageClassType: "number", }, overlap_percentage: { value: cdktf.numberToHclTerraform(struct.overlapPercentage), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.bedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationFixedSizeChunkingConfigurationToHclTerraform = bedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationFixedSizeChunkingConfigurationToHclTerraform; class BedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationFixedSizeChunkingConfigurationOutputReference 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._maxTokens !== undefined) { hasAnyValues = true; internalValueResult.maxTokens = this._maxTokens; } if (this._overlapPercentage !== undefined) { hasAnyValues = true; internalValueResult.overlapPercentage = this._overlapPercentage; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._maxTokens = undefined; this._overlapPercentage = 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._maxTokens = value.maxTokens; this._overlapPercentage = value.overlapPercentage; } } get maxTokens() { return this.getNumberAttribute('max_tokens'); } set maxTokens(value) { this._maxTokens = value; } // Temporarily expose input value. Use with caution. get maxTokensInput() { return this._maxTokens; } get overlapPercentage() { return this.getNumberAttribute('overlap_percentage'); } set overlapPercentage(value) { this._overlapPercentage = value; } // Temporarily expose input value. Use with caution. get overlapPercentageInput() { return this._overlapPercentage; } } exports.BedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationFixedSizeChunkingConfigurationOutputReference = BedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationFixedSizeChunkingConfigurationOutputReference; _h = JSII_RTTI_SYMBOL_1; BedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationFixedSizeChunkingConfigurationOutputReference[_h] = { fqn: "@cdktf/provider-aws.bedrockagentDataSource.BedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationFixedSizeChunkingConfigurationOutputReference", version: "19.50.0" }; class BedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationFixedSizeChunkingConfigurationList 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 BedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationFixedSizeChunkingConfigurationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationFixedSizeChunkingConfigurationList = BedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationFixedSizeChunkingConfigurationList; _j = JSII_RTTI_SYMBOL_1; BedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationFixedSizeChunkingConfigurationList[_j] = { fqn: "@cdktf/provider-aws.bedrockagentDataSource.BedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationFixedSizeChunkingConfigurationList", version: "19.50.0" }; function bedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfigurationToTerraform(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 { max_tokens: cdktf.numberToTerraform(struct.maxTokens), }; } exports.bedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfigurationToTerraform = bedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfigurationToTerraform; function bedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfigurationToHclTerraform(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 = { max_tokens: { value: cdktf.numberToHclTerraform(struct.maxTokens), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.bedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfigurationToHclTerraform = bedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfigurationToHclTerraform; class BedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfigurationOutputReference 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._maxTokens !== undefined) { hasAnyValues = true; internalValueResult.maxTokens = this._maxTokens; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._maxTokens = 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._maxTokens = value.maxTokens; } } get maxTokens() { return this.getNumberAttribute('max_tokens'); } set maxTokens(value) { this._maxTokens = value; } // Temporarily expose input value. Use with caution. get maxTokensInput() { return this._maxTokens; } } exports.BedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfigurationOutputReference = BedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfigurationOutputReference; _k = JSII_RTTI_SYMBOL_1; BedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfigurationOutputReference[_k] = { fqn: "@cdktf/provider-aws.bedrockagentDataSource.BedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfigurationOutputReference", version: "19.50.0" }; class BedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfigurationList 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 BedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfigurationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfigurationList = BedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfigurationList; _l = JSII_RTTI_SYMBOL_1; BedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfigurationList[_l] = { fqn: "@cdktf/provider-aws.bedrockagentDataSource.BedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfigurationList", version: "19.50.0" }; function bedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationToTerraform(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 { overlap_tokens: cdktf.numberToTerraform(struct.overlapTokens), level_configuration: cdktf.listMapper(bedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfigurationToTerraform, true)(struct.levelConfiguration), }; } exports.bedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationToTerraform = bedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationToTerraform; function bedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationToHclTerraform(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 = { overlap_tokens: { value: cdktf.numberToHclTerraform(struct.overlapTokens), isBlock: false, type: "simple", storageClassType: "number", }, level_configuration: { value: cdktf.listMapperHcl(bedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfigurationToHclTerraform, true)(struct.levelConfiguration), isBlock: true, type: "list", storageClassType: "BedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfigurationList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.bedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationToHclTerraform = bedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationToHclTerraform; class BedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationOutputReference 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; // level_configuration - computed: false, optional: true, required: false this._levelConfiguration = new BedrockagentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfigurationList(this, "level_configuration", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._overlapTokens !== undefined) { hasAnyValues = true; internalValueResult.overlapTokens = this._overlapTokens; } if (this._levelConfiguration?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.levelConfiguration = this._levelConfiguration?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._overlapTokens = undefined; this._levelConfiguration.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._overlapTokens = value.overlapTokens; this._levelConfiguration.internalValue = value.levelConfiguration; } } get overlapTokens() { return this.getNumberAttribute('overlap_tokens'); } set overlapTokens(value) { this._overlapTokens = value; } // Temporarily expose input value. Use with caution. get overlapTokensInpu