UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

1 lines 194 kB
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnWorkloadIdentity=exports.CfnRuntimeEndpoint=exports.CfnRuntime=exports.CfnMemory=exports.CfnGatewayTarget=exports.CfnGateway=exports.CfnCodeInterpreterCustom=exports.CfnBrowserCustom=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var cdk=()=>{var tmp=require("../../core/lib");return cdk=()=>tmp,tmp},cfn_parse=()=>{var tmp=require("../../core/lib/helpers-internal");return cfn_parse=()=>tmp,tmp},cdk_errors=()=>{var tmp=require("../../core/lib/errors");return cdk_errors=()=>tmp,tmp};class CfnBrowserCustom extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_bedrockagentcore.CfnBrowserCustom",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::BedrockAgentCore::BrowserCustom";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnBrowserCustomPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnBrowserCustom(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnBrowserCustom(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnBrowserCustom.CFN_RESOURCE_TYPE_NAME}static fromBrowserCustomArn(scope,id,arn){class Import extends cdk().Resource{browserCustomRef;constructor(scope2,id2,arn2){super(scope2,id2,{environmentFromArn:arn2});const variables=new(cfn_parse()).TemplateString("arn:${Partition}:bedrock-agentcore:${Region}:${Account}:browser-custom/${BrowserId}").parse(arn2);this.browserCustomRef={browserId:variables.BrowserId,browserArn:arn2}}}return new Import(scope,id,arn)}static fromBrowserId(scope,id,browserId){class Import extends cdk().Resource{browserCustomRef;constructor(scope2,id2,browserId2){const arn=new(cfn_parse()).TemplateString("arn:${Partition}:bedrock-agentcore:${Region}:${Account}:browser-custom/${BrowserId}").interpolate({Partition:cdk().Stack.of(scope2).partition,Region:cdk().Stack.of(scope2).region,Account:cdk().Stack.of(scope2).account,BrowserId:browserId2});super(scope2,id2,{environmentFromArn:arn}),this.browserCustomRef={browserId:browserId2,browserArn:arn}}}return new Import(scope,id,browserId)}static arnForBrowserCustom(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_bedrockagentcore_IBrowserCustomRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForBrowserCustom),error}return resource.browserCustomRef.browserArn}attrBrowserArn;attrBrowserId;attrCreatedAt;attrFailureReason;attrLastUpdatedAt;attrStatus;browserSigning;cdkTagManager;description;executionRoleArn;name;networkConfiguration;recordingConfig;tags;constructor(scope,id,props){super(scope,id,{type:CfnBrowserCustom.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_bedrockagentcore_CfnBrowserCustomProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnBrowserCustom),error}cdk().requireProperty(props,"name",this),cdk().requireProperty(props,"networkConfiguration",this),this.attrBrowserArn=cdk().Token.asString(this.getAtt("BrowserArn",cdk().ResolutionTypeHint.STRING)),this.attrBrowserId=cdk().Token.asString(this.getAtt("BrowserId",cdk().ResolutionTypeHint.STRING)),this.attrCreatedAt=cdk().Token.asString(this.getAtt("CreatedAt",cdk().ResolutionTypeHint.STRING)),this.attrFailureReason=cdk().Token.asString(this.getAtt("FailureReason",cdk().ResolutionTypeHint.STRING)),this.attrLastUpdatedAt=cdk().Token.asString(this.getAtt("LastUpdatedAt",cdk().ResolutionTypeHint.STRING)),this.attrStatus=cdk().Token.asString(this.getAtt("Status",cdk().ResolutionTypeHint.STRING)),this.browserSigning=props.browserSigning,this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.MAP,"AWS::BedrockAgentCore::BrowserCustom",void 0,{tagPropertyName:"tags"}),this.description=props.description,this.executionRoleArn=props.executionRoleArn,this.name=props.name,this.networkConfiguration=props.networkConfiguration,this.recordingConfig=props.recordingConfig,this.tags=props.tags}get browserCustomRef(){return{browserId:this.ref,browserArn:this.attrBrowserArn}}get cfnProperties(){return{browserSigning:this.browserSigning,tags:this.cdkTagManager.renderTags(this.tags),description:this.description,executionRoleArn:this.executionRoleArn,name:this.name,networkConfiguration:this.networkConfiguration,recordingConfig:this.recordingConfig}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnBrowserCustom.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnBrowserCustomPropsToCloudFormation(props)}}exports.CfnBrowserCustom=CfnBrowserCustom;function CfnBrowserCustomVpcConfigPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("securityGroups",cdk().requiredValidator)(properties.securityGroups)),errors.collect(cdk().propertyValidator("securityGroups",cdk().listValidator(cdk().validateString))(properties.securityGroups)),errors.collect(cdk().propertyValidator("subnets",cdk().requiredValidator)(properties.subnets)),errors.collect(cdk().propertyValidator("subnets",cdk().listValidator(cdk().validateString))(properties.subnets)),errors.wrap('supplied properties not correct for "VpcConfigProperty"')}function convertCfnBrowserCustomVpcConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBrowserCustomVpcConfigPropertyValidator(properties).assertSuccess(),{SecurityGroups:cdk().listMapper(cdk().stringToCloudFormation)(properties.securityGroups),Subnets:cdk().listMapper(cdk().stringToCloudFormation)(properties.subnets)}):properties}function CfnBrowserCustomVpcConfigPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("securityGroups","SecurityGroups",properties.SecurityGroups!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.SecurityGroups):void 0),ret.addPropertyResult("subnets","Subnets",properties.Subnets!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Subnets):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnBrowserCustomBrowserNetworkConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("networkMode",cdk().requiredValidator)(properties.networkMode)),errors.collect(cdk().propertyValidator("networkMode",cdk().validateString)(properties.networkMode)),errors.collect(cdk().propertyValidator("vpcConfig",CfnBrowserCustomVpcConfigPropertyValidator)(properties.vpcConfig)),errors.wrap('supplied properties not correct for "BrowserNetworkConfigurationProperty"')}function convertCfnBrowserCustomBrowserNetworkConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBrowserCustomBrowserNetworkConfigurationPropertyValidator(properties).assertSuccess(),{NetworkMode:cdk().stringToCloudFormation(properties.networkMode),VpcConfig:convertCfnBrowserCustomVpcConfigPropertyToCloudFormation(properties.vpcConfig)}):properties}function CfnBrowserCustomBrowserNetworkConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("networkMode","NetworkMode",properties.NetworkMode!=null?cfn_parse().FromCloudFormation.getString(properties.NetworkMode):void 0),ret.addPropertyResult("vpcConfig","VpcConfig",properties.VpcConfig!=null?CfnBrowserCustomVpcConfigPropertyFromCloudFormation(properties.VpcConfig):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnBrowserCustomS3LocationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("bucket",cdk().requiredValidator)(properties.bucket)),errors.collect(cdk().propertyValidator("bucket",cdk().validateString)(properties.bucket)),errors.collect(cdk().propertyValidator("prefix",cdk().requiredValidator)(properties.prefix)),errors.collect(cdk().propertyValidator("prefix",cdk().validateString)(properties.prefix)),errors.wrap('supplied properties not correct for "S3LocationProperty"')}function convertCfnBrowserCustomS3LocationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBrowserCustomS3LocationPropertyValidator(properties).assertSuccess(),{Bucket:cdk().stringToCloudFormation(properties.bucket),Prefix:cdk().stringToCloudFormation(properties.prefix)}):properties}function CfnBrowserCustomS3LocationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("bucket","Bucket",properties.Bucket!=null?cfn_parse().FromCloudFormation.getString(properties.Bucket):void 0),ret.addPropertyResult("prefix","Prefix",properties.Prefix!=null?cfn_parse().FromCloudFormation.getString(properties.Prefix):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnBrowserCustomRecordingConfigPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("enabled",cdk().validateBoolean)(properties.enabled)),errors.collect(cdk().propertyValidator("s3Location",CfnBrowserCustomS3LocationPropertyValidator)(properties.s3Location)),errors.wrap('supplied properties not correct for "RecordingConfigProperty"')}function convertCfnBrowserCustomRecordingConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBrowserCustomRecordingConfigPropertyValidator(properties).assertSuccess(),{Enabled:cdk().booleanToCloudFormation(properties.enabled),S3Location:convertCfnBrowserCustomS3LocationPropertyToCloudFormation(properties.s3Location)}):properties}function CfnBrowserCustomRecordingConfigPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("enabled","Enabled",properties.Enabled!=null?cfn_parse().FromCloudFormation.getBoolean(properties.Enabled):void 0),ret.addPropertyResult("s3Location","S3Location",properties.S3Location!=null?CfnBrowserCustomS3LocationPropertyFromCloudFormation(properties.S3Location):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnBrowserCustomBrowserSigningPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("enabled",cdk().validateBoolean)(properties.enabled)),errors.wrap('supplied properties not correct for "BrowserSigningProperty"')}function convertCfnBrowserCustomBrowserSigningPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBrowserCustomBrowserSigningPropertyValidator(properties).assertSuccess(),{Enabled:cdk().booleanToCloudFormation(properties.enabled)}):properties}function CfnBrowserCustomBrowserSigningPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("enabled","Enabled",properties.Enabled!=null?cfn_parse().FromCloudFormation.getBoolean(properties.Enabled):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnBrowserCustomPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("browserSigning",CfnBrowserCustomBrowserSigningPropertyValidator)(properties.browserSigning)),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("executionRoleArn",cdk().validateString)(properties.executionRoleArn)),errors.collect(cdk().propertyValidator("name",cdk().requiredValidator)(properties.name)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("networkConfiguration",cdk().requiredValidator)(properties.networkConfiguration)),errors.collect(cdk().propertyValidator("networkConfiguration",CfnBrowserCustomBrowserNetworkConfigurationPropertyValidator)(properties.networkConfiguration)),errors.collect(cdk().propertyValidator("recordingConfig",CfnBrowserCustomRecordingConfigPropertyValidator)(properties.recordingConfig)),errors.collect(cdk().propertyValidator("tags",cdk().hashValidator(cdk().validateString))(properties.tags)),errors.wrap('supplied properties not correct for "CfnBrowserCustomProps"')}function convertCfnBrowserCustomPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBrowserCustomPropsValidator(properties).assertSuccess(),{BrowserSigning:convertCfnBrowserCustomBrowserSigningPropertyToCloudFormation(properties.browserSigning),Description:cdk().stringToCloudFormation(properties.description),ExecutionRoleArn:cdk().stringToCloudFormation(properties.executionRoleArn),Name:cdk().stringToCloudFormation(properties.name),NetworkConfiguration:convertCfnBrowserCustomBrowserNetworkConfigurationPropertyToCloudFormation(properties.networkConfiguration),RecordingConfig:convertCfnBrowserCustomRecordingConfigPropertyToCloudFormation(properties.recordingConfig),Tags:cdk().hashMapper(cdk().stringToCloudFormation)(properties.tags)}):properties}function CfnBrowserCustomPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("browserSigning","BrowserSigning",properties.BrowserSigning!=null?CfnBrowserCustomBrowserSigningPropertyFromCloudFormation(properties.BrowserSigning):void 0),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("executionRoleArn","ExecutionRoleArn",properties.ExecutionRoleArn!=null?cfn_parse().FromCloudFormation.getString(properties.ExecutionRoleArn):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("networkConfiguration","NetworkConfiguration",properties.NetworkConfiguration!=null?CfnBrowserCustomBrowserNetworkConfigurationPropertyFromCloudFormation(properties.NetworkConfiguration):void 0),ret.addPropertyResult("recordingConfig","RecordingConfig",properties.RecordingConfig!=null?CfnBrowserCustomRecordingConfigPropertyFromCloudFormation(properties.RecordingConfig):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getMap(cfn_parse().FromCloudFormation.getString)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnCodeInterpreterCustom extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_bedrockagentcore.CfnCodeInterpreterCustom",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::BedrockAgentCore::CodeInterpreterCustom";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnCodeInterpreterCustomPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnCodeInterpreterCustom(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnCodeInterpreterCustom(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnCodeInterpreterCustom.CFN_RESOURCE_TYPE_NAME}static fromCodeInterpreterCustomArn(scope,id,arn){class Import extends cdk().Resource{codeInterpreterCustomRef;constructor(scope2,id2,arn2){super(scope2,id2,{environmentFromArn:arn2});const variables=new(cfn_parse()).TemplateString("arn:${Partition}:bedrock-agentcore:${Region}:${Account}:code-interpreter-custom/${CodeInterpreterId}").parse(arn2);this.codeInterpreterCustomRef={codeInterpreterId:variables.CodeInterpreterId,codeInterpreterArn:arn2}}}return new Import(scope,id,arn)}static fromCodeInterpreterId(scope,id,codeInterpreterId){class Import extends cdk().Resource{codeInterpreterCustomRef;constructor(scope2,id2,codeInterpreterId2){const arn=new(cfn_parse()).TemplateString("arn:${Partition}:bedrock-agentcore:${Region}:${Account}:code-interpreter-custom/${CodeInterpreterId}").interpolate({Partition:cdk().Stack.of(scope2).partition,Region:cdk().Stack.of(scope2).region,Account:cdk().Stack.of(scope2).account,CodeInterpreterId:codeInterpreterId2});super(scope2,id2,{environmentFromArn:arn}),this.codeInterpreterCustomRef={codeInterpreterId:codeInterpreterId2,codeInterpreterArn:arn}}}return new Import(scope,id,codeInterpreterId)}static arnForCodeInterpreterCustom(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_bedrockagentcore_ICodeInterpreterCustomRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForCodeInterpreterCustom),error}return resource.codeInterpreterCustomRef.codeInterpreterArn}attrCodeInterpreterArn;attrCodeInterpreterId;attrCreatedAt;attrFailureReason;attrLastUpdatedAt;attrStatus;cdkTagManager;description;executionRoleArn;name;networkConfiguration;tags;constructor(scope,id,props){super(scope,id,{type:CfnCodeInterpreterCustom.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_bedrockagentcore_CfnCodeInterpreterCustomProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnCodeInterpreterCustom),error}cdk().requireProperty(props,"name",this),cdk().requireProperty(props,"networkConfiguration",this),this.attrCodeInterpreterArn=cdk().Token.asString(this.getAtt("CodeInterpreterArn",cdk().ResolutionTypeHint.STRING)),this.attrCodeInterpreterId=cdk().Token.asString(this.getAtt("CodeInterpreterId",cdk().ResolutionTypeHint.STRING)),this.attrCreatedAt=cdk().Token.asString(this.getAtt("CreatedAt",cdk().ResolutionTypeHint.STRING)),this.attrFailureReason=cdk().Token.asString(this.getAtt("FailureReason",cdk().ResolutionTypeHint.STRING)),this.attrLastUpdatedAt=cdk().Token.asString(this.getAtt("LastUpdatedAt",cdk().ResolutionTypeHint.STRING)),this.attrStatus=cdk().Token.asString(this.getAtt("Status",cdk().ResolutionTypeHint.STRING)),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.MAP,"AWS::BedrockAgentCore::CodeInterpreterCustom",void 0,{tagPropertyName:"tags"}),this.description=props.description,this.executionRoleArn=props.executionRoleArn,this.name=props.name,this.networkConfiguration=props.networkConfiguration,this.tags=props.tags}get codeInterpreterCustomRef(){return{codeInterpreterId:this.ref,codeInterpreterArn:this.attrCodeInterpreterArn}}get cfnProperties(){return{tags:this.cdkTagManager.renderTags(this.tags),description:this.description,executionRoleArn:this.executionRoleArn,name:this.name,networkConfiguration:this.networkConfiguration}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnCodeInterpreterCustom.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnCodeInterpreterCustomPropsToCloudFormation(props)}}exports.CfnCodeInterpreterCustom=CfnCodeInterpreterCustom;function CfnCodeInterpreterCustomVpcConfigPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("securityGroups",cdk().requiredValidator)(properties.securityGroups)),errors.collect(cdk().propertyValidator("securityGroups",cdk().listValidator(cdk().validateString))(properties.securityGroups)),errors.collect(cdk().propertyValidator("subnets",cdk().requiredValidator)(properties.subnets)),errors.collect(cdk().propertyValidator("subnets",cdk().listValidator(cdk().validateString))(properties.subnets)),errors.wrap('supplied properties not correct for "VpcConfigProperty"')}function convertCfnCodeInterpreterCustomVpcConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnCodeInterpreterCustomVpcConfigPropertyValidator(properties).assertSuccess(),{SecurityGroups:cdk().listMapper(cdk().stringToCloudFormation)(properties.securityGroups),Subnets:cdk().listMapper(cdk().stringToCloudFormation)(properties.subnets)}):properties}function CfnCodeInterpreterCustomVpcConfigPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("securityGroups","SecurityGroups",properties.SecurityGroups!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.SecurityGroups):void 0),ret.addPropertyResult("subnets","Subnets",properties.Subnets!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Subnets):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnCodeInterpreterCustomCodeInterpreterNetworkConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("networkMode",cdk().requiredValidator)(properties.networkMode)),errors.collect(cdk().propertyValidator("networkMode",cdk().validateString)(properties.networkMode)),errors.collect(cdk().propertyValidator("vpcConfig",CfnCodeInterpreterCustomVpcConfigPropertyValidator)(properties.vpcConfig)),errors.wrap('supplied properties not correct for "CodeInterpreterNetworkConfigurationProperty"')}function convertCfnCodeInterpreterCustomCodeInterpreterNetworkConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnCodeInterpreterCustomCodeInterpreterNetworkConfigurationPropertyValidator(properties).assertSuccess(),{NetworkMode:cdk().stringToCloudFormation(properties.networkMode),VpcConfig:convertCfnCodeInterpreterCustomVpcConfigPropertyToCloudFormation(properties.vpcConfig)}):properties}function CfnCodeInterpreterCustomCodeInterpreterNetworkConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("networkMode","NetworkMode",properties.NetworkMode!=null?cfn_parse().FromCloudFormation.getString(properties.NetworkMode):void 0),ret.addPropertyResult("vpcConfig","VpcConfig",properties.VpcConfig!=null?CfnCodeInterpreterCustomVpcConfigPropertyFromCloudFormation(properties.VpcConfig):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnCodeInterpreterCustomPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("executionRoleArn",cdk().validateString)(properties.executionRoleArn)),errors.collect(cdk().propertyValidator("name",cdk().requiredValidator)(properties.name)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("networkConfiguration",cdk().requiredValidator)(properties.networkConfiguration)),errors.collect(cdk().propertyValidator("networkConfiguration",CfnCodeInterpreterCustomCodeInterpreterNetworkConfigurationPropertyValidator)(properties.networkConfiguration)),errors.collect(cdk().propertyValidator("tags",cdk().hashValidator(cdk().validateString))(properties.tags)),errors.wrap('supplied properties not correct for "CfnCodeInterpreterCustomProps"')}function convertCfnCodeInterpreterCustomPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnCodeInterpreterCustomPropsValidator(properties).assertSuccess(),{Description:cdk().stringToCloudFormation(properties.description),ExecutionRoleArn:cdk().stringToCloudFormation(properties.executionRoleArn),Name:cdk().stringToCloudFormation(properties.name),NetworkConfiguration:convertCfnCodeInterpreterCustomCodeInterpreterNetworkConfigurationPropertyToCloudFormation(properties.networkConfiguration),Tags:cdk().hashMapper(cdk().stringToCloudFormation)(properties.tags)}):properties}function CfnCodeInterpreterCustomPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("executionRoleArn","ExecutionRoleArn",properties.ExecutionRoleArn!=null?cfn_parse().FromCloudFormation.getString(properties.ExecutionRoleArn):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("networkConfiguration","NetworkConfiguration",properties.NetworkConfiguration!=null?CfnCodeInterpreterCustomCodeInterpreterNetworkConfigurationPropertyFromCloudFormation(properties.NetworkConfiguration):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getMap(cfn_parse().FromCloudFormation.getString)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnGateway extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_bedrockagentcore.CfnGateway",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::BedrockAgentCore::Gateway";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnGatewayPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnGateway(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnGateway(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnGateway.CFN_RESOURCE_TYPE_NAME}static arnForGateway(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_bedrockagentcore_IGatewayRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForGateway),error}return resource.gatewayRef.gatewayArn}attrCreatedAt;attrGatewayArn;attrGatewayIdentifier;attrGatewayUrl;attrStatus;attrStatusReasons;attrUpdatedAt;attrWorkloadIdentityDetails;authorizerConfiguration;authorizerType;cdkTagManager;description;exceptionLevel;interceptorConfigurations;kmsKeyArn;name;protocolConfiguration;protocolType;roleArn;tags;constructor(scope,id,props){super(scope,id,{type:CfnGateway.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_bedrockagentcore_CfnGatewayProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnGateway),error}cdk().requireProperty(props,"authorizerType",this),cdk().requireProperty(props,"name",this),cdk().requireProperty(props,"protocolType",this),cdk().requireProperty(props,"roleArn",this),this.attrCreatedAt=cdk().Token.asString(this.getAtt("CreatedAt",cdk().ResolutionTypeHint.STRING)),this.attrGatewayArn=cdk().Token.asString(this.getAtt("GatewayArn",cdk().ResolutionTypeHint.STRING)),this.attrGatewayIdentifier=cdk().Token.asString(this.getAtt("GatewayIdentifier",cdk().ResolutionTypeHint.STRING)),this.attrGatewayUrl=cdk().Token.asString(this.getAtt("GatewayUrl",cdk().ResolutionTypeHint.STRING)),this.attrStatus=cdk().Token.asString(this.getAtt("Status",cdk().ResolutionTypeHint.STRING)),this.attrStatusReasons=cdk().Token.asList(this.getAtt("StatusReasons",cdk().ResolutionTypeHint.STRING_LIST)),this.attrUpdatedAt=cdk().Token.asString(this.getAtt("UpdatedAt",cdk().ResolutionTypeHint.STRING)),this.attrWorkloadIdentityDetails=this.getAtt("WorkloadIdentityDetails"),this.authorizerConfiguration=props.authorizerConfiguration,this.authorizerType=props.authorizerType,this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.MAP,"AWS::BedrockAgentCore::Gateway",void 0,{tagPropertyName:"tags"}),this.description=props.description,this.exceptionLevel=props.exceptionLevel,this.interceptorConfigurations=props.interceptorConfigurations,this.kmsKeyArn=props.kmsKeyArn,this.name=props.name,this.protocolConfiguration=props.protocolConfiguration,this.protocolType=props.protocolType,this.roleArn=props.roleArn,this.tags=props.tags}get gatewayRef(){return{gatewayIdentifier:this.ref,gatewayArn:this.attrGatewayArn}}get cfnProperties(){return{authorizerConfiguration:this.authorizerConfiguration,authorizerType:this.authorizerType,tags:this.cdkTagManager.renderTags(this.tags),description:this.description,exceptionLevel:this.exceptionLevel,interceptorConfigurations:this.interceptorConfigurations,kmsKeyArn:this.kmsKeyArn,name:this.name,protocolConfiguration:this.protocolConfiguration,protocolType:this.protocolType,roleArn:this.roleArn}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnGateway.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnGatewayPropsToCloudFormation(props)}}exports.CfnGateway=CfnGateway;function CfnGatewayCustomJWTAuthorizerConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("allowedAudience",cdk().listValidator(cdk().validateString))(properties.allowedAudience)),errors.collect(cdk().propertyValidator("allowedClients",cdk().listValidator(cdk().validateString))(properties.allowedClients)),errors.collect(cdk().propertyValidator("discoveryUrl",cdk().requiredValidator)(properties.discoveryUrl)),errors.collect(cdk().propertyValidator("discoveryUrl",cdk().validateString)(properties.discoveryUrl)),errors.wrap('supplied properties not correct for "CustomJWTAuthorizerConfigurationProperty"')}function convertCfnGatewayCustomJWTAuthorizerConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnGatewayCustomJWTAuthorizerConfigurationPropertyValidator(properties).assertSuccess(),{AllowedAudience:cdk().listMapper(cdk().stringToCloudFormation)(properties.allowedAudience),AllowedClients:cdk().listMapper(cdk().stringToCloudFormation)(properties.allowedClients),DiscoveryUrl:cdk().stringToCloudFormation(properties.discoveryUrl)}):properties}function CfnGatewayCustomJWTAuthorizerConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("allowedAudience","AllowedAudience",properties.AllowedAudience!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.AllowedAudience):void 0),ret.addPropertyResult("allowedClients","AllowedClients",properties.AllowedClients!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.AllowedClients):void 0),ret.addPropertyResult("discoveryUrl","DiscoveryUrl",properties.DiscoveryUrl!=null?cfn_parse().FromCloudFormation.getString(properties.DiscoveryUrl):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnGatewayAuthorizerConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("customJwtAuthorizer",cdk().requiredValidator)(properties.customJwtAuthorizer)),errors.collect(cdk().propertyValidator("customJwtAuthorizer",CfnGatewayCustomJWTAuthorizerConfigurationPropertyValidator)(properties.customJwtAuthorizer)),errors.wrap('supplied properties not correct for "AuthorizerConfigurationProperty"')}function convertCfnGatewayAuthorizerConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnGatewayAuthorizerConfigurationPropertyValidator(properties).assertSuccess(),{CustomJWTAuthorizer:convertCfnGatewayCustomJWTAuthorizerConfigurationPropertyToCloudFormation(properties.customJwtAuthorizer)}):properties}function CfnGatewayAuthorizerConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("customJwtAuthorizer","CustomJWTAuthorizer",properties.CustomJWTAuthorizer!=null?CfnGatewayCustomJWTAuthorizerConfigurationPropertyFromCloudFormation(properties.CustomJWTAuthorizer):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnGatewayMCPGatewayConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("instructions",cdk().validateString)(properties.instructions)),errors.collect(cdk().propertyValidator("searchType",cdk().validateString)(properties.searchType)),errors.collect(cdk().propertyValidator("supportedVersions",cdk().listValidator(cdk().validateString))(properties.supportedVersions)),errors.wrap('supplied properties not correct for "MCPGatewayConfigurationProperty"')}function convertCfnGatewayMCPGatewayConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnGatewayMCPGatewayConfigurationPropertyValidator(properties).assertSuccess(),{Instructions:cdk().stringToCloudFormation(properties.instructions),SearchType:cdk().stringToCloudFormation(properties.searchType),SupportedVersions:cdk().listMapper(cdk().stringToCloudFormation)(properties.supportedVersions)}):properties}function CfnGatewayMCPGatewayConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("instructions","Instructions",properties.Instructions!=null?cfn_parse().FromCloudFormation.getString(properties.Instructions):void 0),ret.addPropertyResult("searchType","SearchType",properties.SearchType!=null?cfn_parse().FromCloudFormation.getString(properties.SearchType):void 0),ret.addPropertyResult("supportedVersions","SupportedVersions",properties.SupportedVersions!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.SupportedVersions):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnGatewayGatewayProtocolConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("mcp",cdk().requiredValidator)(properties.mcp)),errors.collect(cdk().propertyValidator("mcp",CfnGatewayMCPGatewayConfigurationPropertyValidator)(properties.mcp)),errors.wrap('supplied properties not correct for "GatewayProtocolConfigurationProperty"')}function convertCfnGatewayGatewayProtocolConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnGatewayGatewayProtocolConfigurationPropertyValidator(properties).assertSuccess(),{Mcp:convertCfnGatewayMCPGatewayConfigurationPropertyToCloudFormation(properties.mcp)}):properties}function CfnGatewayGatewayProtocolConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("mcp","Mcp",properties.Mcp!=null?CfnGatewayMCPGatewayConfigurationPropertyFromCloudFormation(properties.Mcp):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnGatewayLambdaInterceptorConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("arn",cdk().requiredValidator)(properties.arn)),errors.collect(cdk().propertyValidator("arn",cdk().validateString)(properties.arn)),errors.wrap('supplied properties not correct for "LambdaInterceptorConfigurationProperty"')}function convertCfnGatewayLambdaInterceptorConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnGatewayLambdaInterceptorConfigurationPropertyValidator(properties).assertSuccess(),{Arn:cdk().stringToCloudFormation(properties.arn)}):properties}function CfnGatewayLambdaInterceptorConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("arn","Arn",properties.Arn!=null?cfn_parse().FromCloudFormation.getString(properties.Arn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnGatewayInterceptorConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("lambda",cdk().requiredValidator)(properties.lambda)),errors.collect(cdk().propertyValidator("lambda",CfnGatewayLambdaInterceptorConfigurationPropertyValidator)(properties.lambda)),errors.wrap('supplied properties not correct for "InterceptorConfigurationProperty"')}function convertCfnGatewayInterceptorConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnGatewayInterceptorConfigurationPropertyValidator(properties).assertSuccess(),{Lambda:convertCfnGatewayLambdaInterceptorConfigurationPropertyToCloudFormation(properties.lambda)}):properties}function CfnGatewayInterceptorConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("lambda","Lambda",properties.Lambda!=null?CfnGatewayLambdaInterceptorConfigurationPropertyFromCloudFormation(properties.Lambda):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnGatewayInterceptorInputConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("passRequestHeaders",cdk().requiredValidator)(properties.passRequestHeaders)),errors.collect(cdk().propertyValidator("passRequestHeaders",cdk().validateBoolean)(properties.passRequestHeaders)),errors.wrap('supplied properties not correct for "InterceptorInputConfigurationProperty"')}function convertCfnGatewayInterceptorInputConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnGatewayInterceptorInputConfigurationPropertyValidator(properties).assertSuccess(),{PassRequestHeaders:cdk().booleanToCloudFormation(properties.passRequestHeaders)}):properties}function CfnGatewayInterceptorInputConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("passRequestHeaders","PassRequestHeaders",properties.PassRequestHeaders!=null?cfn_parse().FromCloudFormation.getBoolean(properties.PassRequestHeaders):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnGatewayGatewayInterceptorConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("inputConfiguration",CfnGatewayInterceptorInputConfigurationPropertyValidator)(properties.inputConfiguration)),errors.collect(cdk().propertyValidator("interceptionPoints",cdk().requiredValidator)(properties.interceptionPoints)),errors.collect(cdk().propertyValidator("interceptionPoints",cdk().listValidator(cdk().validateString))(properties.interceptionPoints)),errors.collect(cdk().propertyValidator("interceptor",cdk().requiredValidator)(properties.interceptor)),errors.collect(cdk().propertyValidator("interceptor",CfnGatewayInterceptorConfigurationPropertyValidator)(properties.interceptor)),errors.wrap('supplied properties not correct for "GatewayInterceptorConfigurationProperty"')}function convertCfnGatewayGatewayInterceptorConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnGatewayGatewayInterceptorConfigurationPropertyValidator(properties).assertSuccess(),{InputConfiguration:convertCfnGatewayInterceptorInputConfigurationPropertyToCloudFormation(properties.inputConfiguration),InterceptionPoints:cdk().listMapper(cdk().stringToCloudFormation)(properties.interceptionPoints),Interceptor:convertCfnGatewayInterceptorConfigurationPropertyToCloudFormation(properties.interceptor)}):properties}function CfnGatewayGatewayInterceptorConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("inputConfiguration","InputConfiguration",properties.InputConfiguration!=null?CfnGatewayInterceptorInputConfigurationPropertyFromCloudFormation(properties.InputConfiguration):void 0),re