UNPKG

@cdktf/provider-aws

Version:

Prebuilt aws Provider for Terraform CDK (cdktf)

988 lines 239 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v; Object.defineProperty(exports, "__esModule", { value: true }); exports.BedrockagentcoreGateway = exports.BedrockagentcoreGatewayTimeoutsOutputReference = exports.BedrockagentcoreGatewayProtocolConfigurationList = exports.BedrockagentcoreGatewayProtocolConfigurationOutputReference = exports.BedrockagentcoreGatewayProtocolConfigurationMcpList = exports.BedrockagentcoreGatewayProtocolConfigurationMcpOutputReference = exports.BedrockagentcoreGatewayInterceptorConfigurationList = exports.BedrockagentcoreGatewayInterceptorConfigurationOutputReference = exports.BedrockagentcoreGatewayInterceptorConfigurationInterceptorList = exports.BedrockagentcoreGatewayInterceptorConfigurationInterceptorOutputReference = exports.BedrockagentcoreGatewayInterceptorConfigurationInterceptorLambdaList = exports.BedrockagentcoreGatewayInterceptorConfigurationInterceptorLambdaOutputReference = exports.BedrockagentcoreGatewayInterceptorConfigurationInputConfigurationList = exports.BedrockagentcoreGatewayInterceptorConfigurationInputConfigurationOutputReference = exports.BedrockagentcoreGatewayAuthorizerConfigurationList = exports.BedrockagentcoreGatewayAuthorizerConfigurationOutputReference = exports.BedrockagentcoreGatewayAuthorizerConfigurationCustomJwtAuthorizerList = exports.BedrockagentcoreGatewayAuthorizerConfigurationCustomJwtAuthorizerOutputReference = exports.BedrockagentcoreGatewayWorkloadIdentityDetailsList = exports.BedrockagentcoreGatewayWorkloadIdentityDetailsOutputReference = void 0; exports.bedrockagentcoreGatewayWorkloadIdentityDetailsToTerraform = bedrockagentcoreGatewayWorkloadIdentityDetailsToTerraform; exports.bedrockagentcoreGatewayWorkloadIdentityDetailsToHclTerraform = bedrockagentcoreGatewayWorkloadIdentityDetailsToHclTerraform; exports.bedrockagentcoreGatewayAuthorizerConfigurationCustomJwtAuthorizerToTerraform = bedrockagentcoreGatewayAuthorizerConfigurationCustomJwtAuthorizerToTerraform; exports.bedrockagentcoreGatewayAuthorizerConfigurationCustomJwtAuthorizerToHclTerraform = bedrockagentcoreGatewayAuthorizerConfigurationCustomJwtAuthorizerToHclTerraform; exports.bedrockagentcoreGatewayAuthorizerConfigurationToTerraform = bedrockagentcoreGatewayAuthorizerConfigurationToTerraform; exports.bedrockagentcoreGatewayAuthorizerConfigurationToHclTerraform = bedrockagentcoreGatewayAuthorizerConfigurationToHclTerraform; exports.bedrockagentcoreGatewayInterceptorConfigurationInputConfigurationToTerraform = bedrockagentcoreGatewayInterceptorConfigurationInputConfigurationToTerraform; exports.bedrockagentcoreGatewayInterceptorConfigurationInputConfigurationToHclTerraform = bedrockagentcoreGatewayInterceptorConfigurationInputConfigurationToHclTerraform; exports.bedrockagentcoreGatewayInterceptorConfigurationInterceptorLambdaToTerraform = bedrockagentcoreGatewayInterceptorConfigurationInterceptorLambdaToTerraform; exports.bedrockagentcoreGatewayInterceptorConfigurationInterceptorLambdaToHclTerraform = bedrockagentcoreGatewayInterceptorConfigurationInterceptorLambdaToHclTerraform; exports.bedrockagentcoreGatewayInterceptorConfigurationInterceptorToTerraform = bedrockagentcoreGatewayInterceptorConfigurationInterceptorToTerraform; exports.bedrockagentcoreGatewayInterceptorConfigurationInterceptorToHclTerraform = bedrockagentcoreGatewayInterceptorConfigurationInterceptorToHclTerraform; exports.bedrockagentcoreGatewayInterceptorConfigurationToTerraform = bedrockagentcoreGatewayInterceptorConfigurationToTerraform; exports.bedrockagentcoreGatewayInterceptorConfigurationToHclTerraform = bedrockagentcoreGatewayInterceptorConfigurationToHclTerraform; exports.bedrockagentcoreGatewayProtocolConfigurationMcpToTerraform = bedrockagentcoreGatewayProtocolConfigurationMcpToTerraform; exports.bedrockagentcoreGatewayProtocolConfigurationMcpToHclTerraform = bedrockagentcoreGatewayProtocolConfigurationMcpToHclTerraform; exports.bedrockagentcoreGatewayProtocolConfigurationToTerraform = bedrockagentcoreGatewayProtocolConfigurationToTerraform; exports.bedrockagentcoreGatewayProtocolConfigurationToHclTerraform = bedrockagentcoreGatewayProtocolConfigurationToHclTerraform; exports.bedrockagentcoreGatewayTimeoutsToTerraform = bedrockagentcoreGatewayTimeoutsToTerraform; exports.bedrockagentcoreGatewayTimeoutsToHclTerraform = bedrockagentcoreGatewayTimeoutsToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function bedrockagentcoreGatewayWorkloadIdentityDetailsToTerraform(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 bedrockagentcoreGatewayWorkloadIdentityDetailsToHclTerraform(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 BedrockagentcoreGatewayWorkloadIdentityDetailsOutputReference 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.BedrockagentcoreGatewayWorkloadIdentityDetailsOutputReference = BedrockagentcoreGatewayWorkloadIdentityDetailsOutputReference; _a = JSII_RTTI_SYMBOL_1; BedrockagentcoreGatewayWorkloadIdentityDetailsOutputReference[_a] = { fqn: "@cdktf/provider-aws.bedrockagentcoreGateway.BedrockagentcoreGatewayWorkloadIdentityDetailsOutputReference", version: "21.22.1" }; class BedrockagentcoreGatewayWorkloadIdentityDetailsList 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 BedrockagentcoreGatewayWorkloadIdentityDetailsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BedrockagentcoreGatewayWorkloadIdentityDetailsList = BedrockagentcoreGatewayWorkloadIdentityDetailsList; _b = JSII_RTTI_SYMBOL_1; BedrockagentcoreGatewayWorkloadIdentityDetailsList[_b] = { fqn: "@cdktf/provider-aws.bedrockagentcoreGateway.BedrockagentcoreGatewayWorkloadIdentityDetailsList", version: "21.22.1" }; function bedrockagentcoreGatewayAuthorizerConfigurationCustomJwtAuthorizerToTerraform(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 bedrockagentcoreGatewayAuthorizerConfigurationCustomJwtAuthorizerToHclTerraform(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 BedrockagentcoreGatewayAuthorizerConfigurationCustomJwtAuthorizerOutputReference 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._allowedAudience !== undefined) { hasAnyValues = true; internalValueResult.allowedAudience = this._allowedAudience; } if (this._allowedClients !== undefined) { hasAnyValues = true; internalValueResult.allowedClients = this._allowedClients; } if (this._discoveryUrl !== undefined) { hasAnyValues = true; internalValueResult.discoveryUrl = this._discoveryUrl; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._allowedAudience = undefined; this._allowedClients = undefined; this._discoveryUrl = 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._allowedAudience = value.allowedAudience; this._allowedClients = value.allowedClients; this._discoveryUrl = value.discoveryUrl; } } get allowedAudience() { return cdktf.Fn.tolist(this.getListAttribute('allowed_audience')); } set allowedAudience(value) { this._allowedAudience = value; } resetAllowedAudience() { this._allowedAudience = undefined; } // Temporarily expose input value. Use with caution. get allowedAudienceInput() { return this._allowedAudience; } get allowedClients() { return cdktf.Fn.tolist(this.getListAttribute('allowed_clients')); } set allowedClients(value) { this._allowedClients = value; } resetAllowedClients() { this._allowedClients = undefined; } // Temporarily expose input value. Use with caution. get allowedClientsInput() { return this._allowedClients; } get discoveryUrl() { return this.getStringAttribute('discovery_url'); } set discoveryUrl(value) { this._discoveryUrl = value; } // Temporarily expose input value. Use with caution. get discoveryUrlInput() { return this._discoveryUrl; } } exports.BedrockagentcoreGatewayAuthorizerConfigurationCustomJwtAuthorizerOutputReference = BedrockagentcoreGatewayAuthorizerConfigurationCustomJwtAuthorizerOutputReference; _c = JSII_RTTI_SYMBOL_1; BedrockagentcoreGatewayAuthorizerConfigurationCustomJwtAuthorizerOutputReference[_c] = { fqn: "@cdktf/provider-aws.bedrockagentcoreGateway.BedrockagentcoreGatewayAuthorizerConfigurationCustomJwtAuthorizerOutputReference", version: "21.22.1" }; class BedrockagentcoreGatewayAuthorizerConfigurationCustomJwtAuthorizerList 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 BedrockagentcoreGatewayAuthorizerConfigurationCustomJwtAuthorizerOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BedrockagentcoreGatewayAuthorizerConfigurationCustomJwtAuthorizerList = BedrockagentcoreGatewayAuthorizerConfigurationCustomJwtAuthorizerList; _d = JSII_RTTI_SYMBOL_1; BedrockagentcoreGatewayAuthorizerConfigurationCustomJwtAuthorizerList[_d] = { fqn: "@cdktf/provider-aws.bedrockagentcoreGateway.BedrockagentcoreGatewayAuthorizerConfigurationCustomJwtAuthorizerList", version: "21.22.1" }; function bedrockagentcoreGatewayAuthorizerConfigurationToTerraform(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 { custom_jwt_authorizer: cdktf.listMapper(bedrockagentcoreGatewayAuthorizerConfigurationCustomJwtAuthorizerToTerraform, true)(struct.customJwtAuthorizer), }; } function bedrockagentcoreGatewayAuthorizerConfigurationToHclTerraform(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 = { custom_jwt_authorizer: { value: cdktf.listMapperHcl(bedrockagentcoreGatewayAuthorizerConfigurationCustomJwtAuthorizerToHclTerraform, true)(struct.customJwtAuthorizer), isBlock: true, type: "list", storageClassType: "BedrockagentcoreGatewayAuthorizerConfigurationCustomJwtAuthorizerList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BedrockagentcoreGatewayAuthorizerConfigurationOutputReference 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; // custom_jwt_authorizer - computed: false, optional: true, required: false this._customJwtAuthorizer = new BedrockagentcoreGatewayAuthorizerConfigurationCustomJwtAuthorizerList(this, "custom_jwt_authorizer", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._customJwtAuthorizer?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.customJwtAuthorizer = this._customJwtAuthorizer?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._customJwtAuthorizer.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._customJwtAuthorizer.internalValue = value.customJwtAuthorizer; } } get customJwtAuthorizer() { return this._customJwtAuthorizer; } putCustomJwtAuthorizer(value) { this._customJwtAuthorizer.internalValue = value; } resetCustomJwtAuthorizer() { this._customJwtAuthorizer.internalValue = undefined; } // Temporarily expose input value. Use with caution. get customJwtAuthorizerInput() { return this._customJwtAuthorizer.internalValue; } } exports.BedrockagentcoreGatewayAuthorizerConfigurationOutputReference = BedrockagentcoreGatewayAuthorizerConfigurationOutputReference; _e = JSII_RTTI_SYMBOL_1; BedrockagentcoreGatewayAuthorizerConfigurationOutputReference[_e] = { fqn: "@cdktf/provider-aws.bedrockagentcoreGateway.BedrockagentcoreGatewayAuthorizerConfigurationOutputReference", version: "21.22.1" }; class BedrockagentcoreGatewayAuthorizerConfigurationList 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 BedrockagentcoreGatewayAuthorizerConfigurationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BedrockagentcoreGatewayAuthorizerConfigurationList = BedrockagentcoreGatewayAuthorizerConfigurationList; _f = JSII_RTTI_SYMBOL_1; BedrockagentcoreGatewayAuthorizerConfigurationList[_f] = { fqn: "@cdktf/provider-aws.bedrockagentcoreGateway.BedrockagentcoreGatewayAuthorizerConfigurationList", version: "21.22.1" }; function bedrockagentcoreGatewayInterceptorConfigurationInputConfigurationToTerraform(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 { pass_request_headers: cdktf.booleanToTerraform(struct.passRequestHeaders), }; } function bedrockagentcoreGatewayInterceptorConfigurationInputConfigurationToHclTerraform(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 = { pass_request_headers: { value: cdktf.booleanToHclTerraform(struct.passRequestHeaders), isBlock: false, type: "simple", storageClassType: "boolean", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BedrockagentcoreGatewayInterceptorConfigurationInputConfigurationOutputReference 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._passRequestHeaders !== undefined) { hasAnyValues = true; internalValueResult.passRequestHeaders = this._passRequestHeaders; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._passRequestHeaders = 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._passRequestHeaders = value.passRequestHeaders; } } get passRequestHeaders() { return this.getBooleanAttribute('pass_request_headers'); } set passRequestHeaders(value) { this._passRequestHeaders = value; } // Temporarily expose input value. Use with caution. get passRequestHeadersInput() { return this._passRequestHeaders; } } exports.BedrockagentcoreGatewayInterceptorConfigurationInputConfigurationOutputReference = BedrockagentcoreGatewayInterceptorConfigurationInputConfigurationOutputReference; _g = JSII_RTTI_SYMBOL_1; BedrockagentcoreGatewayInterceptorConfigurationInputConfigurationOutputReference[_g] = { fqn: "@cdktf/provider-aws.bedrockagentcoreGateway.BedrockagentcoreGatewayInterceptorConfigurationInputConfigurationOutputReference", version: "21.22.1" }; class BedrockagentcoreGatewayInterceptorConfigurationInputConfigurationList 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 BedrockagentcoreGatewayInterceptorConfigurationInputConfigurationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BedrockagentcoreGatewayInterceptorConfigurationInputConfigurationList = BedrockagentcoreGatewayInterceptorConfigurationInputConfigurationList; _h = JSII_RTTI_SYMBOL_1; BedrockagentcoreGatewayInterceptorConfigurationInputConfigurationList[_h] = { fqn: "@cdktf/provider-aws.bedrockagentcoreGateway.BedrockagentcoreGatewayInterceptorConfigurationInputConfigurationList", version: "21.22.1" }; function bedrockagentcoreGatewayInterceptorConfigurationInterceptorLambdaToTerraform(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 { arn: cdktf.stringToTerraform(struct.arn), }; } function bedrockagentcoreGatewayInterceptorConfigurationInterceptorLambdaToHclTerraform(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 = { arn: { value: cdktf.stringToHclTerraform(struct.arn), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BedrockagentcoreGatewayInterceptorConfigurationInterceptorLambdaOutputReference 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._arn !== undefined) { hasAnyValues = true; internalValueResult.arn = this._arn; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._arn = 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._arn = value.arn; } } get arn() { return this.getStringAttribute('arn'); } set arn(value) { this._arn = value; } // Temporarily expose input value. Use with caution. get arnInput() { return this._arn; } } exports.BedrockagentcoreGatewayInterceptorConfigurationInterceptorLambdaOutputReference = BedrockagentcoreGatewayInterceptorConfigurationInterceptorLambdaOutputReference; _j = JSII_RTTI_SYMBOL_1; BedrockagentcoreGatewayInterceptorConfigurationInterceptorLambdaOutputReference[_j] = { fqn: "@cdktf/provider-aws.bedrockagentcoreGateway.BedrockagentcoreGatewayInterceptorConfigurationInterceptorLambdaOutputReference", version: "21.22.1" }; class BedrockagentcoreGatewayInterceptorConfigurationInterceptorLambdaList 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 BedrockagentcoreGatewayInterceptorConfigurationInterceptorLambdaOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BedrockagentcoreGatewayInterceptorConfigurationInterceptorLambdaList = BedrockagentcoreGatewayInterceptorConfigurationInterceptorLambdaList; _k = JSII_RTTI_SYMBOL_1; BedrockagentcoreGatewayInterceptorConfigurationInterceptorLambdaList[_k] = { fqn: "@cdktf/provider-aws.bedrockagentcoreGateway.BedrockagentcoreGatewayInterceptorConfigurationInterceptorLambdaList", version: "21.22.1" }; function bedrockagentcoreGatewayInterceptorConfigurationInterceptorToTerraform(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 { lambda: cdktf.listMapper(bedrockagentcoreGatewayInterceptorConfigurationInterceptorLambdaToTerraform, true)(struct.lambda), }; } function bedrockagentcoreGatewayInterceptorConfigurationInterceptorToHclTerraform(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 = { lambda: { value: cdktf.listMapperHcl(bedrockagentcoreGatewayInterceptorConfigurationInterceptorLambdaToHclTerraform, true)(struct.lambda), isBlock: true, type: "list", storageClassType: "BedrockagentcoreGatewayInterceptorConfigurationInterceptorLambdaList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BedrockagentcoreGatewayInterceptorConfigurationInterceptorOutputReference 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; // lambda - computed: false, optional: true, required: false this._lambda = new BedrockagentcoreGatewayInterceptorConfigurationInterceptorLambdaList(this, "lambda", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._lambda?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.lambda = this._lambda?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._lambda.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._lambda.internalValue = value.lambda; } } get lambda() { return this._lambda; } putLambda(value) { this._lambda.internalValue = value; } resetLambda() { this._lambda.internalValue = undefined; } // Temporarily expose input value. Use with caution. get lambdaInput() { return this._lambda.internalValue; } } exports.BedrockagentcoreGatewayInterceptorConfigurationInterceptorOutputReference = BedrockagentcoreGatewayInterceptorConfigurationInterceptorOutputReference; _l = JSII_RTTI_SYMBOL_1; BedrockagentcoreGatewayInterceptorConfigurationInterceptorOutputReference[_l] = { fqn: "@cdktf/provider-aws.bedrockagentcoreGateway.BedrockagentcoreGatewayInterceptorConfigurationInterceptorOutputReference", version: "21.22.1" }; class BedrockagentcoreGatewayInterceptorConfigurationInterceptorList 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 BedrockagentcoreGatewayInterceptorConfigurationInterceptorOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BedrockagentcoreGatewayInterceptorConfigurationInterceptorList = BedrockagentcoreGatewayInterceptorConfigurationInterceptorList; _m = JSII_RTTI_SYMBOL_1; BedrockagentcoreGatewayInterceptorConfigurationInterceptorList[_m] = { fqn: "@cdktf/provider-aws.bedrockagentcoreGateway.BedrockagentcoreGatewayInterceptorConfigurationInterceptorList", version: "21.22.1" }; function bedrockagentcoreGatewayInterceptorConfigurationToTerraform(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 { interception_points: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.interceptionPoints), input_configuration: cdktf.listMapper(bedrockagentcoreGatewayInterceptorConfigurationInputConfigurationToTerraform, true)(struct.inputConfiguration), interceptor: cdktf.listMapper(bedrockagentcoreGatewayInterceptorConfigurationInterceptorToTerraform, true)(struct.interceptor), }; } function bedrockagentcoreGatewayInterceptorConfigurationToHclTerraform(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 = { interception_points: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.interceptionPoints), isBlock: false, type: "set", storageClassType: "stringList", }, input_configuration: { value: cdktf.listMapperHcl(bedrockagentcoreGatewayInterceptorConfigurationInputConfigurationToHclTerraform, true)(struct.inputConfiguration), isBlock: true, type: "list", storageClassType: "BedrockagentcoreGatewayInterceptorConfigurationInputConfigurationList", }, interceptor: { value: cdktf.listMapperHcl(bedrockagentcoreGatewayInterceptorConfigurationInterceptorToHclTerraform, true)(struct.interceptor), isBlock: true, type: "list", storageClassType: "BedrockagentcoreGatewayInterceptorConfigurationInterceptorList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BedrockagentcoreGatewayInterceptorConfigurationOutputReference 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; // input_configuration - computed: false, optional: true, required: false this._inputConfiguration = new BedrockagentcoreGatewayInterceptorConfigurationInputConfigurationList(this, "input_configuration", false); // interceptor - computed: false, optional: true, required: false this._interceptor = new BedrockagentcoreGatewayInterceptorConfigurationInterceptorList(this, "interceptor", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._interceptionPoints !== undefined) { hasAnyValues = true; internalValueResult.interceptionPoints = this._interceptionPoints; } if (this._inputConfiguration?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.inputConfiguration = this._inputConfiguration?.internalValue; } if (this._interceptor?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.interceptor = this._interceptor?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._interceptionPoints = undefined; this._inputConfiguration.internalValue = undefined; this._interceptor.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._interceptionPoints = value.interceptionPoints; this._inputConfiguration.internalValue = value.inputConfiguration; this._interceptor.internalValue = value.interceptor; } } get interceptionPoints() { return cdktf.Fn.tolist(this.getListAttribute('interception_points')); } set interceptionPoints(value) { this._interceptionPoints = value; } // Temporarily expose input value. Use with caution. get interceptionPointsInput() { return this._interceptionPoints; } get inputConfiguration() { return this._inputConfiguration; } putInputConfiguration(value) { this._inputConfiguration.internalValue = value; } resetInputConfiguration() { this._inputConfiguration.internalValue = undefined; } // Temporarily expose input value. Use with caution. get inputConfigurationInput() { return this._inputConfiguration.internalValue; } get interceptor() { return this._interceptor; } putInterceptor(value) { this._interceptor.internalValue = value; } resetInterceptor() { this._interceptor.internalValue = undefined; } // Temporarily expose input value. Use with caution. get interceptorInput() { return this._interceptor.internalValue; } } exports.BedrockagentcoreGatewayInterceptorConfigurationOutputReference = BedrockagentcoreGatewayInterceptorConfigurationOutputReference; _o = JSII_RTTI_SYMBOL_1; BedrockagentcoreGatewayInterceptorConfigurationOutputReference[_o] = { fqn: "@cdktf/provider-aws.bedrockagentcoreGateway.BedrockagentcoreGatewayInterceptorConfigurationOutputReference", version: "21.22.1" }; class BedrockagentcoreGatewayInterceptorConfigurationList 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 BedrockagentcoreGatewayInterceptorConfigurationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BedrockagentcoreGatewayInterceptorConfigurationList = BedrockagentcoreGatewayInterceptorConfigurationList; _p = JSII_RTTI_SYMBOL_1; BedrockagentcoreGatewayInterceptorConfigurationList[_p] = { fqn: "@cdktf/provider-aws.bedrockagentcoreGateway.BedrockagentcoreGatewayInterceptorConfigurationList", version: "21.22.1" }; function bedrockagentcoreGatewayProtocolConfigurationMcpToTerraform(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 { instructions: cdktf.stringToTerraform(struct.instructions), search_type: cdktf.stringToTerraform(struct.searchType), supported_versions: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.supportedVersions), }; } function bedrockagentcoreGatewayProtocolConfigurationMcpToHclTerraform(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 = { instructions: { value: cdktf.stringToHclTerraform(struct.instructions), isBlock: false, type: "simple", storageClassType: "string", }, search_type: { value: cdktf.stringToHclTerraform(struct.searchType), isBlock: false, type: "simple", storageClassType: "string", }, supported_versions: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.supportedVersions), isBlock: false, type: "set", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BedrockagentcoreGatewayProtocolConfigurationMcpOutputReference 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._instructions !== undefined) { hasAnyValues = true; internalValueResult.instructions = this._instructions; } if (this._searchType !== undefined) { hasAnyValues = true; internalValueResult.searchType = this._searchType; } if (this._supportedVersions !== undefined) { hasAnyValues = true; internalValueResult.supportedVersions = this._supportedVersions; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._instructions = undefined; this._searchType = undefined; this._supportedVersions = 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._instructions = value.instructions; this._searchType = value.searchType; this._supportedVersions = value.supportedVersions; } } get instructions() { return this.getStringAttribute('instructions'); } set instructions(value) { this._instructions = value; } resetInstructions() { this._instructions = undefined; } // Temporarily expose input value. Use with caution. get instructionsInput() { return this._instructions; } get searchType() { return this.getStringAttribute('search_type'); } set searchType(value) { this._searchType = value; } resetSearchType() { this._searchType = undefined; } // Temporarily expose input value. Use with caution. get searchTypeInput() { return this._searchType; } get supportedVersions() { return cdktf.Fn.tolist(this.getListAttribute('supported_versions')); } set supportedVersions(value) { this._supportedVersions = value; } resetSupportedVersions() { this._supportedVersions = undefined; } // Temporarily expose input value. Use with caution. get supportedVersionsInput() { return this._supportedVersions; } } exports.BedrockagentcoreGatewayProtocolConfigurationMcpOutputReference = BedrockagentcoreGatewayProtocolConfigurationMcpOutputReference; _q = JSII_RTTI_SYMBOL_1; BedrockagentcoreGatewayProtocolConfigurationMcpOutputReference[_q] = { fqn: "@cdktf/provider-aws.bedrockagentcoreGateway.BedrockagentcoreGatewayProtocolConfigurationMcpOutputReference", version: "21.22.1" }; class BedrockagentcoreGatewayProtocolConfigurationMcpList 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.terrafo