UNPKG

@cdktf/provider-aws

Version:

Prebuilt aws Provider for Terraform CDK (cdktf)

946 lines 329 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; Object.defineProperty(exports, "__esModule", { value: true }); exports.BedrockagentcoreAgentRuntime = exports.BedrockagentcoreAgentRuntimeTimeoutsOutputReference = exports.BedrockagentcoreAgentRuntimeRequestHeaderConfigurationList = exports.BedrockagentcoreAgentRuntimeRequestHeaderConfigurationOutputReference = exports.BedrockagentcoreAgentRuntimeProtocolConfigurationList = exports.BedrockagentcoreAgentRuntimeProtocolConfigurationOutputReference = exports.BedrockagentcoreAgentRuntimeNetworkConfigurationList = exports.BedrockagentcoreAgentRuntimeNetworkConfigurationOutputReference = exports.BedrockagentcoreAgentRuntimeNetworkConfigurationNetworkModeConfigList = exports.BedrockagentcoreAgentRuntimeNetworkConfigurationNetworkModeConfigOutputReference = exports.BedrockagentcoreAgentRuntimeAuthorizerConfigurationList = exports.BedrockagentcoreAgentRuntimeAuthorizerConfigurationOutputReference = exports.BedrockagentcoreAgentRuntimeAuthorizerConfigurationCustomJwtAuthorizerList = exports.BedrockagentcoreAgentRuntimeAuthorizerConfigurationCustomJwtAuthorizerOutputReference = exports.BedrockagentcoreAgentRuntimeAgentRuntimeArtifactList = exports.BedrockagentcoreAgentRuntimeAgentRuntimeArtifactOutputReference = exports.BedrockagentcoreAgentRuntimeAgentRuntimeArtifactContainerConfigurationList = exports.BedrockagentcoreAgentRuntimeAgentRuntimeArtifactContainerConfigurationOutputReference = exports.BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationList = exports.BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationOutputReference = exports.BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeList = exports.BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeOutputReference = exports.BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeS3List = exports.BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeS3OutputReference = exports.BedrockagentcoreAgentRuntimeWorkloadIdentityDetailsList = exports.BedrockagentcoreAgentRuntimeWorkloadIdentityDetailsOutputReference = exports.BedrockagentcoreAgentRuntimeLifecycleConfigurationList = exports.BedrockagentcoreAgentRuntimeLifecycleConfigurationOutputReference = void 0; exports.bedrockagentcoreAgentRuntimeLifecycleConfigurationToTerraform = bedrockagentcoreAgentRuntimeLifecycleConfigurationToTerraform; exports.bedrockagentcoreAgentRuntimeLifecycleConfigurationToHclTerraform = bedrockagentcoreAgentRuntimeLifecycleConfigurationToHclTerraform; exports.bedrockagentcoreAgentRuntimeWorkloadIdentityDetailsToTerraform = bedrockagentcoreAgentRuntimeWorkloadIdentityDetailsToTerraform; exports.bedrockagentcoreAgentRuntimeWorkloadIdentityDetailsToHclTerraform = bedrockagentcoreAgentRuntimeWorkloadIdentityDetailsToHclTerraform; exports.bedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeS3ToTerraform = bedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeS3ToTerraform; exports.bedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeS3ToHclTerraform = bedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeS3ToHclTerraform; exports.bedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeToTerraform = bedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeToTerraform; exports.bedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeToHclTerraform = bedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeToHclTerraform; exports.bedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationToTerraform = bedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationToTerraform; exports.bedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationToHclTerraform = bedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationToHclTerraform; exports.bedrockagentcoreAgentRuntimeAgentRuntimeArtifactContainerConfigurationToTerraform = bedrockagentcoreAgentRuntimeAgentRuntimeArtifactContainerConfigurationToTerraform; exports.bedrockagentcoreAgentRuntimeAgentRuntimeArtifactContainerConfigurationToHclTerraform = bedrockagentcoreAgentRuntimeAgentRuntimeArtifactContainerConfigurationToHclTerraform; exports.bedrockagentcoreAgentRuntimeAgentRuntimeArtifactToTerraform = bedrockagentcoreAgentRuntimeAgentRuntimeArtifactToTerraform; exports.bedrockagentcoreAgentRuntimeAgentRuntimeArtifactToHclTerraform = bedrockagentcoreAgentRuntimeAgentRuntimeArtifactToHclTerraform; exports.bedrockagentcoreAgentRuntimeAuthorizerConfigurationCustomJwtAuthorizerToTerraform = bedrockagentcoreAgentRuntimeAuthorizerConfigurationCustomJwtAuthorizerToTerraform; exports.bedrockagentcoreAgentRuntimeAuthorizerConfigurationCustomJwtAuthorizerToHclTerraform = bedrockagentcoreAgentRuntimeAuthorizerConfigurationCustomJwtAuthorizerToHclTerraform; exports.bedrockagentcoreAgentRuntimeAuthorizerConfigurationToTerraform = bedrockagentcoreAgentRuntimeAuthorizerConfigurationToTerraform; exports.bedrockagentcoreAgentRuntimeAuthorizerConfigurationToHclTerraform = bedrockagentcoreAgentRuntimeAuthorizerConfigurationToHclTerraform; exports.bedrockagentcoreAgentRuntimeNetworkConfigurationNetworkModeConfigToTerraform = bedrockagentcoreAgentRuntimeNetworkConfigurationNetworkModeConfigToTerraform; exports.bedrockagentcoreAgentRuntimeNetworkConfigurationNetworkModeConfigToHclTerraform = bedrockagentcoreAgentRuntimeNetworkConfigurationNetworkModeConfigToHclTerraform; exports.bedrockagentcoreAgentRuntimeNetworkConfigurationToTerraform = bedrockagentcoreAgentRuntimeNetworkConfigurationToTerraform; exports.bedrockagentcoreAgentRuntimeNetworkConfigurationToHclTerraform = bedrockagentcoreAgentRuntimeNetworkConfigurationToHclTerraform; exports.bedrockagentcoreAgentRuntimeProtocolConfigurationToTerraform = bedrockagentcoreAgentRuntimeProtocolConfigurationToTerraform; exports.bedrockagentcoreAgentRuntimeProtocolConfigurationToHclTerraform = bedrockagentcoreAgentRuntimeProtocolConfigurationToHclTerraform; exports.bedrockagentcoreAgentRuntimeRequestHeaderConfigurationToTerraform = bedrockagentcoreAgentRuntimeRequestHeaderConfigurationToTerraform; exports.bedrockagentcoreAgentRuntimeRequestHeaderConfigurationToHclTerraform = bedrockagentcoreAgentRuntimeRequestHeaderConfigurationToHclTerraform; exports.bedrockagentcoreAgentRuntimeTimeoutsToTerraform = bedrockagentcoreAgentRuntimeTimeoutsToTerraform; exports.bedrockagentcoreAgentRuntimeTimeoutsToHclTerraform = bedrockagentcoreAgentRuntimeTimeoutsToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function bedrockagentcoreAgentRuntimeLifecycleConfigurationToTerraform(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 { idle_runtime_session_timeout: cdktf.numberToTerraform(struct.idleRuntimeSessionTimeout), max_lifetime: cdktf.numberToTerraform(struct.maxLifetime), }; } function bedrockagentcoreAgentRuntimeLifecycleConfigurationToHclTerraform(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 = { idle_runtime_session_timeout: { value: cdktf.numberToHclTerraform(struct.idleRuntimeSessionTimeout), isBlock: false, type: "simple", storageClassType: "number", }, max_lifetime: { value: cdktf.numberToHclTerraform(struct.maxLifetime), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BedrockagentcoreAgentRuntimeLifecycleConfigurationOutputReference 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._idleRuntimeSessionTimeout !== undefined) { hasAnyValues = true; internalValueResult.idleRuntimeSessionTimeout = this._idleRuntimeSessionTimeout; } if (this._maxLifetime !== undefined) { hasAnyValues = true; internalValueResult.maxLifetime = this._maxLifetime; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._idleRuntimeSessionTimeout = undefined; this._maxLifetime = 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._idleRuntimeSessionTimeout = value.idleRuntimeSessionTimeout; this._maxLifetime = value.maxLifetime; } } get idleRuntimeSessionTimeout() { return this.getNumberAttribute('idle_runtime_session_timeout'); } set idleRuntimeSessionTimeout(value) { this._idleRuntimeSessionTimeout = value; } resetIdleRuntimeSessionTimeout() { this._idleRuntimeSessionTimeout = undefined; } // Temporarily expose input value. Use with caution. get idleRuntimeSessionTimeoutInput() { return this._idleRuntimeSessionTimeout; } get maxLifetime() { return this.getNumberAttribute('max_lifetime'); } set maxLifetime(value) { this._maxLifetime = value; } resetMaxLifetime() { this._maxLifetime = undefined; } // Temporarily expose input value. Use with caution. get maxLifetimeInput() { return this._maxLifetime; } } exports.BedrockagentcoreAgentRuntimeLifecycleConfigurationOutputReference = BedrockagentcoreAgentRuntimeLifecycleConfigurationOutputReference; _a = JSII_RTTI_SYMBOL_1; BedrockagentcoreAgentRuntimeLifecycleConfigurationOutputReference[_a] = { fqn: "@cdktf/provider-aws.bedrockagentcoreAgentRuntime.BedrockagentcoreAgentRuntimeLifecycleConfigurationOutputReference", version: "21.22.1" }; class BedrockagentcoreAgentRuntimeLifecycleConfigurationList 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 BedrockagentcoreAgentRuntimeLifecycleConfigurationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BedrockagentcoreAgentRuntimeLifecycleConfigurationList = BedrockagentcoreAgentRuntimeLifecycleConfigurationList; _b = JSII_RTTI_SYMBOL_1; BedrockagentcoreAgentRuntimeLifecycleConfigurationList[_b] = { fqn: "@cdktf/provider-aws.bedrockagentcoreAgentRuntime.BedrockagentcoreAgentRuntimeLifecycleConfigurationList", version: "21.22.1" }; function bedrockagentcoreAgentRuntimeWorkloadIdentityDetailsToTerraform(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 bedrockagentcoreAgentRuntimeWorkloadIdentityDetailsToHclTerraform(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 BedrockagentcoreAgentRuntimeWorkloadIdentityDetailsOutputReference 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; } } // workload_identity_arn - computed: true, optional: false, required: false get workloadIdentityArn() { return this.getStringAttribute('workload_identity_arn'); } } exports.BedrockagentcoreAgentRuntimeWorkloadIdentityDetailsOutputReference = BedrockagentcoreAgentRuntimeWorkloadIdentityDetailsOutputReference; _c = JSII_RTTI_SYMBOL_1; BedrockagentcoreAgentRuntimeWorkloadIdentityDetailsOutputReference[_c] = { fqn: "@cdktf/provider-aws.bedrockagentcoreAgentRuntime.BedrockagentcoreAgentRuntimeWorkloadIdentityDetailsOutputReference", version: "21.22.1" }; class BedrockagentcoreAgentRuntimeWorkloadIdentityDetailsList 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 BedrockagentcoreAgentRuntimeWorkloadIdentityDetailsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BedrockagentcoreAgentRuntimeWorkloadIdentityDetailsList = BedrockagentcoreAgentRuntimeWorkloadIdentityDetailsList; _d = JSII_RTTI_SYMBOL_1; BedrockagentcoreAgentRuntimeWorkloadIdentityDetailsList[_d] = { fqn: "@cdktf/provider-aws.bedrockagentcoreAgentRuntime.BedrockagentcoreAgentRuntimeWorkloadIdentityDetailsList", version: "21.22.1" }; function bedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeS3ToTerraform(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: cdktf.stringToTerraform(struct.bucket), prefix: cdktf.stringToTerraform(struct.prefix), version_id: cdktf.stringToTerraform(struct.versionId), }; } function bedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeS3ToHclTerraform(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: { value: cdktf.stringToHclTerraform(struct.bucket), isBlock: false, type: "simple", storageClassType: "string", }, prefix: { value: cdktf.stringToHclTerraform(struct.prefix), isBlock: false, type: "simple", storageClassType: "string", }, version_id: { value: cdktf.stringToHclTerraform(struct.versionId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeS3OutputReference 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._bucket !== undefined) { hasAnyValues = true; internalValueResult.bucket = this._bucket; } if (this._prefix !== undefined) { hasAnyValues = true; internalValueResult.prefix = this._prefix; } if (this._versionId !== undefined) { hasAnyValues = true; internalValueResult.versionId = this._versionId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._bucket = undefined; this._prefix = undefined; this._versionId = 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._bucket = value.bucket; this._prefix = value.prefix; this._versionId = value.versionId; } } get bucket() { return this.getStringAttribute('bucket'); } set bucket(value) { this._bucket = value; } // Temporarily expose input value. Use with caution. get bucketInput() { return this._bucket; } get prefix() { return this.getStringAttribute('prefix'); } set prefix(value) { this._prefix = value; } // Temporarily expose input value. Use with caution. get prefixInput() { return this._prefix; } get versionId() { return this.getStringAttribute('version_id'); } set versionId(value) { this._versionId = value; } resetVersionId() { this._versionId = undefined; } // Temporarily expose input value. Use with caution. get versionIdInput() { return this._versionId; } } exports.BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeS3OutputReference = BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeS3OutputReference; _e = JSII_RTTI_SYMBOL_1; BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeS3OutputReference[_e] = { fqn: "@cdktf/provider-aws.bedrockagentcoreAgentRuntime.BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeS3OutputReference", version: "21.22.1" }; class BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeS3List 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 BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeS3OutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeS3List = BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeS3List; _f = JSII_RTTI_SYMBOL_1; BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeS3List[_f] = { fqn: "@cdktf/provider-aws.bedrockagentcoreAgentRuntime.BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeS3List", version: "21.22.1" }; function bedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { s3: cdktf.listMapper(bedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeS3ToTerraform, true)(struct.s3), }; } function bedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { s3: { value: cdktf.listMapperHcl(bedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeS3ToHclTerraform, true)(struct.s3), isBlock: true, type: "list", storageClassType: "BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeS3List", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeOutputReference 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 - computed: false, optional: true, required: false this._s3 = new BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeS3List(this, "s3", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._s3?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.s3 = this._s3?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._s3.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._s3.internalValue = value.s3; } } get s3() { return this._s3; } putS3(value) { this._s3.internalValue = value; } resetS3() { this._s3.internalValue = undefined; } // Temporarily expose input value. Use with caution. get s3Input() { return this._s3.internalValue; } } exports.BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeOutputReference = BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeOutputReference; _g = JSII_RTTI_SYMBOL_1; BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeOutputReference[_g] = { fqn: "@cdktf/provider-aws.bedrockagentcoreAgentRuntime.BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeOutputReference", version: "21.22.1" }; class BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeList 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 BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeList = BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeList; _h = JSII_RTTI_SYMBOL_1; BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeList[_h] = { fqn: "@cdktf/provider-aws.bedrockagentcoreAgentRuntime.BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeList", version: "21.22.1" }; function bedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationToTerraform(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 { entry_point: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.entryPoint), runtime: cdktf.stringToTerraform(struct.runtime), code: cdktf.listMapper(bedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeToTerraform, true)(struct.code), }; } function bedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationToHclTerraform(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 = { entry_point: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.entryPoint), isBlock: false, type: "list", storageClassType: "stringList", }, runtime: { value: cdktf.stringToHclTerraform(struct.runtime), isBlock: false, type: "simple", storageClassType: "string", }, code: { value: cdktf.listMapperHcl(bedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeToHclTerraform, true)(struct.code), isBlock: true, type: "list", storageClassType: "BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationOutputReference 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; // code - computed: false, optional: true, required: false this._code = new BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationCodeList(this, "code", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._entryPoint !== undefined) { hasAnyValues = true; internalValueResult.entryPoint = this._entryPoint; } if (this._runtime !== undefined) { hasAnyValues = true; internalValueResult.runtime = this._runtime; } if (this._code?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.code = this._code?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._entryPoint = undefined; this._runtime = undefined; this._code.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._entryPoint = value.entryPoint; this._runtime = value.runtime; this._code.internalValue = value.code; } } get entryPoint() { return this.getListAttribute('entry_point'); } set entryPoint(value) { this._entryPoint = value; } // Temporarily expose input value. Use with caution. get entryPointInput() { return this._entryPoint; } get runtime() { return this.getStringAttribute('runtime'); } set runtime(value) { this._runtime = value; } // Temporarily expose input value. Use with caution. get runtimeInput() { return this._runtime; } get code() { return this._code; } putCode(value) { this._code.internalValue = value; } resetCode() { this._code.internalValue = undefined; } // Temporarily expose input value. Use with caution. get codeInput() { return this._code.internalValue; } } exports.BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationOutputReference = BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationOutputReference; _j = JSII_RTTI_SYMBOL_1; BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationOutputReference[_j] = { fqn: "@cdktf/provider-aws.bedrockagentcoreAgentRuntime.BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationOutputReference", version: "21.22.1" }; class BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationList 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 BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationList = BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationList; _k = JSII_RTTI_SYMBOL_1; BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationList[_k] = { fqn: "@cdktf/provider-aws.bedrockagentcoreAgentRuntime.BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationList", version: "21.22.1" }; function bedrockagentcoreAgentRuntimeAgentRuntimeArtifactContainerConfigurationToTerraform(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 { container_uri: cdktf.stringToTerraform(struct.containerUri), }; } function bedrockagentcoreAgentRuntimeAgentRuntimeArtifactContainerConfigurationToHclTerraform(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 = { container_uri: { value: cdktf.stringToHclTerraform(struct.containerUri), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BedrockagentcoreAgentRuntimeAgentRuntimeArtifactContainerConfigurationOutputReference 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._containerUri !== undefined) { hasAnyValues = true; internalValueResult.containerUri = this._containerUri; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._containerUri = 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._containerUri = value.containerUri; } } get containerUri() { return this.getStringAttribute('container_uri'); } set containerUri(value) { this._containerUri = value; } // Temporarily expose input value. Use with caution. get containerUriInput() { return this._containerUri; } } exports.BedrockagentcoreAgentRuntimeAgentRuntimeArtifactContainerConfigurationOutputReference = BedrockagentcoreAgentRuntimeAgentRuntimeArtifactContainerConfigurationOutputReference; _l = JSII_RTTI_SYMBOL_1; BedrockagentcoreAgentRuntimeAgentRuntimeArtifactContainerConfigurationOutputReference[_l] = { fqn: "@cdktf/provider-aws.bedrockagentcoreAgentRuntime.BedrockagentcoreAgentRuntimeAgentRuntimeArtifactContainerConfigurationOutputReference", version: "21.22.1" }; class BedrockagentcoreAgentRuntimeAgentRuntimeArtifactContainerConfigurationList 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 BedrockagentcoreAgentRuntimeAgentRuntimeArtifactContainerConfigurationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BedrockagentcoreAgentRuntimeAgentRuntimeArtifactContainerConfigurationList = BedrockagentcoreAgentRuntimeAgentRuntimeArtifactContainerConfigurationList; _m = JSII_RTTI_SYMBOL_1; BedrockagentcoreAgentRuntimeAgentRuntimeArtifactContainerConfigurationList[_m] = { fqn: "@cdktf/provider-aws.bedrockagentcoreAgentRuntime.BedrockagentcoreAgentRuntimeAgentRuntimeArtifactContainerConfigurationList", version: "21.22.1" }; function bedrockagentcoreAgentRuntimeAgentRuntimeArtifactToTerraform(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 { code_configuration: cdktf.listMapper(bedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationToTerraform, true)(struct.codeConfiguration), container_configuration: cdktf.listMapper(bedrockagentcoreAgentRuntimeAgentRuntimeArtifactContainerConfigurationToTerraform, true)(struct.containerConfiguration), }; } function bedrockagentcoreAgentRuntimeAgentRuntimeArtifactToHclTerraform(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 = { code_configuration: { value: cdktf.listMapperHcl(bedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationToHclTerraform, true)(struct.codeConfiguration), isBlock: true, type: "list", storageClassType: "BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationList", }, container_configuration: { value: cdktf.listMapperHcl(bedrockagentcoreAgentRuntimeAgentRuntimeArtifactContainerConfigurationToHclTerraform, true)(struct.containerConfiguration), isBlock: true, type: "list", storageClassType: "BedrockagentcoreAgentRuntimeAgentRuntimeArtifactContainerConfigurationList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BedrockagentcoreAgentRuntimeAgentRuntimeArtifactOutputReference 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; // code_configuration - computed: false, optional: true, required: false this._codeConfiguration = new BedrockagentcoreAgentRuntimeAgentRuntimeArtifactCodeConfigurationList(this, "code_configuration", false); // container_configuration - computed: false, optional: true, required: false this._containerConfiguration = new BedrockagentcoreAgentRuntimeAgentRuntimeArtifactContainerConfigurationList(this, "container_configuration", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._codeConfiguration?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.codeConfiguration = this._codeConfiguration?.internalValue; } if (this._containerConfiguration?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.containerConfiguration = this._containerConfiguration?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._codeConfiguration.internalValue = undefined; this._containerConfiguration.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._codeConfiguration.internalValue = value.codeConfiguration; this._containerConfiguration.internalValue = value.containerConfiguration; } } get codeConfiguration() { return this._codeConfiguration; } putCodeConfiguration(value) { this._codeConfiguration.internalValue = value; } resetCodeConfiguration() { this._codeConfiguration.internalValue = undefined; } // Temporarily expose input value. Use with caution. get codeConfigurationInput() { return this._codeConfiguration.internalValue; } get containerConfiguration() { return this._containerConfiguration; } putContainerConfiguration(value) { this._containerConfiguration.internalValue = value; } resetContainerConfiguration() { this._containerConfiguration.internalValue = undefined; } // Temporarily expose input value. Use with caution. get containerConfigurationInput() { return this._containerConfiguration.internalValue; } } exports.BedrockagentcoreAgentRuntimeAgentRuntimeArtifactOutputReference = BedrockagentcoreAgentRuntimeAgentRuntimeArtifactOutputReference; _o = JSII_RTTI_SYMBOL_1; BedrockagentcoreAgentRuntimeAgentRuntimeArtifactOutputReference[_o] = { fqn: "@cdktf/provider-aws.bedrockagentcoreAgentRuntime.BedrockagentcoreAgentRuntimeAgentRuntimeArtifactOutputReference", version: "21.22.1" }; class BedrockagentcoreAgentRuntimeAgentRuntimeArtifactList 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 BedrockagentcoreAgentRuntimeAgentRuntimeArtifactOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BedrockagentcoreAgentRuntimeAgentRuntimeArtifactList = BedrockagentcoreAgentRuntimeAgentRuntimeArtifactList; _p = JSII_RTTI_SYMBOL_1; BedrockagentcoreAgentRuntimeAgentRuntimeArtifactList[_p] = { fqn: "@cdktf/provider-aws.bedrockagentcoreAgentRuntime.BedrockagentcoreAgentRuntimeAgentRuntimeArtifactList", version: "21.22.1" }; function bedrockagentcoreAgentRuntimeAuthorizerConfigurationCustomJwtAuthorizerToTerraform(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 { allowed_audience: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.allowedAudience), allowed_clients: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.allowedClients), discovery_url: cdktf.stringToTerraform(struct.discoveryUrl), }; } function bedrockagentcoreAgentRuntimeAuthorizerConfigurationCustomJwtAuthorizerToHclTerraform(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 = { allowed_audience: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.allowedAudience), isBlock: false, type: "set", storageClassType: "stringList", }, allowed_clients: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.allowedClients), isBlock: false, type: "set", storageClassType: "stringList", }, discovery_url: { value: cdktf.stringToHclTerraform(struct.discoveryUrl), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BedrockagentcoreAgentRuntimeAuthorizerConfigurationCustomJwtAuthorizerOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjec