UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

1 lines 222 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.234.1"};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.234.1"};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.234.1"};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 CfnGatewayClaimMatchValueTypePropertyValidator(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("matchValueString",cdk().validateString)(properties.matchValueString)),errors.collect(cdk().propertyValidator("matchValueStringList",cdk().listValidator(cdk().validateString))(properties.matchValueStringList)),errors.wrap('supplied properties not correct for "ClaimMatchValueTypeProperty"')}function convertCfnGatewayClaimMatchValueTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnGatewayClaimMatchValueTypePropertyValidator(properties).assertSuccess(),{MatchValueString:cdk().stringToCloudFormation(properties.matchValueString),MatchValueStringList:cdk().listMapper(cdk().stringToCloudFormation)(properties.matchValueStringList)}):properties}function CfnGatewayClaimMatchValueTypePropertyFromCloudFormation(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("matchValueString","MatchValueString",properties.MatchValueString!=null?cfn_parse().FromCloudFormation.getString(properties.MatchValueString):void 0),ret.addPropertyResult("matchValueStringList","MatchValueStringList",properties.MatchValueStringList!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.MatchValueStringList):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnGatewayAuthorizingClaimMatchValueTypePropertyValidator(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("claimMatchOperator",cdk().requiredValidator)(properties.claimMatchOperator)),errors.collect(cdk().propertyValidator("claimMatchOperator",cdk().validateString)(properties.claimMatchOperator)),errors.collect(cdk().propertyValidator("claimMatchValue",cdk().requiredValidator)(properties.claimMatchValue)),errors.collect(cdk().propertyValidator("claimMatchValue",CfnGatewayClaimMatchValueTypePropertyValidator)(properties.claimMatchValue)),errors.wrap('supplied properties not correct for "AuthorizingClaimMatchValueTypeProperty"')}function convertCfnGatewayAuthorizingClaimMatchValueTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnGatewayAuthorizingClaimMatchValueTypePropertyValidator(properties).assertSuccess(),{ClaimMatchOperator:cdk().stringToCloudFormation(properties.claimMatchOperator),ClaimMatchValue:convertCfnGatewayClaimMatchValueTypePropertyToCloudFormation(properties.claimMatchValue)}):properties}function CfnGatewayAuthorizingClaimMatchValueTypePropertyFromCloudFormation(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("claimMatchOperator","ClaimMatchOperator",properties.ClaimMatchOperator!=null?cfn_parse().FromCloudFormation.getString(properties.ClaimMatchOperator):void 0),ret.addPropertyResult("claimMatchValue","ClaimMatchValue",properties.ClaimMatchValue!=null?CfnGatewayClaimMatchValueTypePropertyFromCloudFormation(properties.ClaimMatchValue):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnGatewayCustomClaimValidationTypePropertyValidator(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("authorizingClaimMatchValue",cdk().requiredValidator)(properties.authorizingClaimMatchValue)),errors.collect(cdk().propertyValidator("authorizingClaimMatchValue",CfnGatewayAuthorizingClaimMatchValueTypePropertyValidator)(properties.authorizingClaimMatchValue)),errors.collect(cdk().propertyValidator("inboundTokenClaimName",cdk().requiredValidator)(properties.inboundTokenClaimName)),errors.collect(cdk().propertyValidator("inboundTokenClaimName",cdk().validateString)(properties.inboundTokenClaimName)),errors.collect(cdk().propertyValidator("inboundTokenClaimValueType",cdk().requiredValidator)(properties.inboundTokenClaimValueType)),errors.collect(cdk().propertyValidator("inboundTokenClaimValueType",cdk().validateString)(properties.inboundTokenClaimValueType)),errors.wrap('supplied properties not correct for "CustomClaimValidationTypeProperty"')}function convertCfnGatewayCustomClaimValidationTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnGatewayCustomClaimValidationTypePropertyValidator(properties).assertSuccess(),{AuthorizingClaimMatchValue:convertCfnGatewayAuthorizingClaimMatchValueTypePropertyToCloudFormation(properties.authorizingClaimMatchValue),InboundTokenClaimName:cdk().stringToCloudFormation(properties.inboundTokenClaimName),InboundTokenClaimValueType:cdk().stringToCloudFormation(properties.inboundTokenClaimValueType)}):properties}function CfnGatewayCustomClaimValidationTypePropertyFromCloudFormation(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("authorizingClaimMatchValue","AuthorizingClaimMatchValue",properties.AuthorizingClaimMatchValue!=null?CfnGatewayAuthorizingClaimMatchValueTypePropertyFromCloudFormation(properties.AuthorizingClaimMatchValue):void 0),ret.addPropertyResult("inboundTokenClaimName","InboundTokenClaimName",properties.InboundTokenClaimName!=null?cfn_parse().FromCloudFormation.getString(properties.InboundTokenClaimName):void 0),ret.addPropertyResult("inboundTokenClaimValueType","InboundTokenClaimValueType",properties.InboundTokenClaimValueType!=null?cfn_parse().FromCloudFormation.getString(properties.InboundTokenClaimValueType):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}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("allowedScopes",cdk().listValidator(cdk().validateString))(properties.allowedScopes)),errors.collect(cdk().propertyValidator("customClaims",cdk().listValidator(CfnGatewayCustomClaimValidationTypePropertyValidator))(properties.customClaims)),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),AllowedScopes:cdk().listMapper(cdk().stringToCloudFormation)(properties.allowedScopes),CustomClaims:cdk().listMapper(convertCfnGatewayCustomClaimValidationTypePropertyToCloudFormation)(properties.customClaims),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("allowedScopes","AllowedScopes",properties.AllowedScopes!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.AllowedScopes):void 0),ret.addPropertyResult("customClaims","CustomClaims",properties.CustomClaims!=null?cfn_parse().FromCloudFormation.getArray(CfnGatewayCustomClaimValidationTypePropertyFromCloudFormation)(properties.CustomClaims):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 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