aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
1 lines • 322 kB
JavaScript
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnWorkloadIdentity=exports.CfnRuntimeEndpoint=exports.CfnRuntime=exports.CfnPolicyEngine=exports.CfnPolicy=exports.CfnOnlineEvaluationConfig=exports.CfnMemory=exports.CfnGatewayTarget=exports.CfnGateway=exports.CfnEvaluator=exports.CfnCodeInterpreterCustom=exports.CfnBrowserProfile=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.248.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(cfn_parse().lit`UnexpectedIResolvable`,"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}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.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 attrBrowserArn(){return cdk().Token.asString(this.getAtt("BrowserArn",cdk().ResolutionTypeHint.STRING))}get attrBrowserId(){return cdk().Token.asString(this.getAtt("BrowserId",cdk().ResolutionTypeHint.STRING))}get attrCreatedAt(){return cdk().Token.asString(this.getAtt("CreatedAt",cdk().ResolutionTypeHint.STRING))}get attrFailureReason(){return cdk().Token.asString(this.getAtt("FailureReason",cdk().ResolutionTypeHint.STRING))}get attrLastUpdatedAt(){return cdk().Token.asString(this.getAtt("LastUpdatedAt",cdk().ResolutionTypeHint.STRING))}get attrStatus(){return cdk().Token.asString(this.getAtt("Status",cdk().ResolutionTypeHint.STRING))}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 CfnBrowserProfile extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_bedrockagentcore.CfnBrowserProfile",version:"2.248.0"};static CFN_RESOURCE_TYPE_NAME="AWS::BedrockAgentCore::BrowserProfile";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnBrowserProfilePropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnBrowserProfile(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 isCfnBrowserProfile(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnBrowserProfile.CFN_RESOURCE_TYPE_NAME}static arnForBrowserProfile(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_bedrockagentcore_IBrowserProfileRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForBrowserProfile),error}return resource.browserProfileRef.profileArn}cdkTagManager;description;name;tags;constructor(scope,id,props){super(scope,id,{type:CfnBrowserProfile.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_bedrockagentcore_CfnBrowserProfileProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnBrowserProfile),error}cdk().requireProperty(props,"name",this),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.MAP,"AWS::BedrockAgentCore::BrowserProfile",void 0,{tagPropertyName:"tags"}),this.description=props.description,this.name=props.name,this.tags=props.tags}get browserProfileRef(){return{profileId:this.ref,profileArn:this.attrProfileArn}}get attrCreatedAt(){return cdk().Token.asString(this.getAtt("CreatedAt",cdk().ResolutionTypeHint.STRING))}get attrLastSavedAt(){return cdk().Token.asString(this.getAtt("LastSavedAt",cdk().ResolutionTypeHint.STRING))}get attrLastSavedBrowserId(){return cdk().Token.asString(this.getAtt("LastSavedBrowserId",cdk().ResolutionTypeHint.STRING))}get attrLastSavedBrowserSessionId(){return cdk().Token.asString(this.getAtt("LastSavedBrowserSessionId",cdk().ResolutionTypeHint.STRING))}get attrLastUpdatedAt(){return cdk().Token.asString(this.getAtt("LastUpdatedAt",cdk().ResolutionTypeHint.STRING))}get attrProfileArn(){return cdk().Token.asString(this.getAtt("ProfileArn",cdk().ResolutionTypeHint.STRING))}get attrProfileId(){return cdk().Token.asString(this.getAtt("ProfileId",cdk().ResolutionTypeHint.STRING))}get attrStatus(){return cdk().Token.asString(this.getAtt("Status",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{tags:this.cdkTagManager.renderTags(this.tags),description:this.description,name:this.name}}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",CfnBrowserProfile.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnBrowserProfilePropsToCloudFormation(props)}}exports.CfnBrowserProfile=CfnBrowserProfile;function CfnBrowserProfilePropsValidator(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("name",cdk().requiredValidator)(properties.name)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("tags",cdk().hashValidator(cdk().validateString))(properties.tags)),errors.wrap('supplied properties not correct for "CfnBrowserProfileProps"')}function convertCfnBrowserProfilePropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBrowserProfilePropsValidator(properties).assertSuccess(),{Description:cdk().stringToCloudFormation(properties.description),Name:cdk().stringToCloudFormation(properties.name),Tags:cdk().hashMapper(cdk().stringToCloudFormation)(properties.tags)}):properties}function CfnBrowserProfilePropsFromCloudFormation(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("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):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.248.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(cfn_parse().lit`UnexpectedIResolvable`,"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}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.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 attrCodeInterpreterArn(){return cdk().Token.asString(this.getAtt("CodeInterpreterArn",cdk().ResolutionTypeHint.STRING))}get attrCodeInterpreterId(){return cdk().Token.asString(this.getAtt("CodeInterpreterId",cdk().ResolutionTypeHint.STRING))}get attrCreatedAt(){return cdk().Token.asString(this.getAtt("CreatedAt",cdk().ResolutionTypeHint.STRING))}get attrFailureReason(){return cdk().Token.asString(this.getAtt("FailureReason",cdk().ResolutionTypeHint.STRING))}get attrLastUpdatedAt(){return cdk().Token.asString(this.getAtt("LastUpdatedAt",cdk().ResolutionTypeHint.STRING))}get attrStatus(){return cdk().Token.asString(this.getAtt("Status",cdk().ResolutionTypeHint.STRING))}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 CfnEvaluator extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_bedrockagentcore.CfnEvaluator",version:"2.248.0"};static CFN_RESOURCE_TYPE_NAME="AWS::BedrockAgentCore::Evaluator";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnEvaluatorPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnEvaluator(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 isCfnEvaluator(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnEvaluator.CFN_RESOURCE_TYPE_NAME}static arnForEvaluator(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_bedrockagentcore_IEvaluatorRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForEvaluator),error}return resource.evaluatorRef.evaluatorArn}cdkTagManager;description;evaluatorConfig;evaluatorName;level;tags;constructor(scope,id,props){super(scope,id,{type:CfnEvaluator.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_bedrockagentcore_CfnEvaluatorProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnEvaluator),error}cdk().requireProperty(props,"evaluatorConfig",this),cdk().requireProperty(props,"evaluatorName",this),cdk().requireProperty(props,"level",this),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::BedrockAgentCore::Evaluator",void 0,{tagPropertyName:"tags"}),this.description=props.description,this.evaluatorConfig=props.evaluatorConfig,this.evaluatorName=props.evaluatorName,this.level=props.level,this.tags=props.tags}get evaluatorRef(){return{evaluatorArn:this.ref}}get attrCreatedAt(){return cdk().Token.asString(this.getAtt("CreatedAt",cdk().ResolutionTypeHint.STRING))}get attrEvaluatorArn(){return cdk().Token.asString(this.getAtt("EvaluatorArn",cdk().ResolutionTypeHint.STRING))}get attrEvaluatorId(){return cdk().Token.asString(this.getAtt("EvaluatorId",cdk().ResolutionTypeHint.STRING))}get attrStatus(){return cdk().Token.asString(this.getAtt("Status",cdk().ResolutionTypeHint.STRING))}get attrUpdatedAt(){return cdk().Token.asString(this.getAtt("UpdatedAt",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{tags:this.cdkTagManager.renderTags(this.tags),description:this.description,evaluatorConfig:this.evaluatorConfig,evaluatorName:this.evaluatorName,level:this.level}}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",CfnEvaluator.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnEvaluatorPropsToCloudFormation(props)}}exports.CfnEvaluator=CfnEvaluator;function CfnEvaluatorNumericalScaleDefinitionPropertyValidator(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("definition",cdk().requiredValidator)(properties.definition)),errors.collect(cdk().propertyValidator("definition",cdk().validateString)(properties.definition)),errors.collect(cdk().propertyValidator("label",cdk().requiredValidator)(properties.label)),errors.collect(cdk().propertyValidator("label",cdk().validateString)(properties.label)),errors.collect(cdk().propertyValidator("value",cdk().requiredValidator)(properties.value)),errors.collect(cdk().propertyValidator("value",cdk().validateNumber)(properties.value)),errors.wrap('supplied properties not correct for "NumericalScaleDefinitionProperty"')}function convertCfnEvaluatorNumericalScaleDefinitionPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEvaluatorNumericalScaleDefinitionPropertyValidator(properties).assertSuccess(),{Definition:cdk().stringToCloudFormation(properties.definition),Label:cdk().stringToCloudFormation(properties.label),Value:cdk().numberToCloudFormation(properties.value)}):properties}function CfnEvaluatorNumericalScaleDefinitionPropertyFromCloudFormation(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("definition","Definition",properties.Definition!=null?cfn_parse().FromCloudFormation.getString(properties.Definition):void 0),ret.addPropertyResult("label","Label",properties.Label!=null?cfn_parse().FromCloudFormation.getString(properties.Label):void 0),ret.addPropertyResult("value","Value",properties.Value!=null?cfn_parse().FromCloudFormation.getNumber(properties.Value):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnEvaluatorCategoricalScaleDefinitionPropertyValidator(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("definition",cdk().requiredValidator)(properties.definition)),errors.collect(cdk().propertyValidator("definition",cdk().validateString)(properties.definition)),errors.collect(cdk().propertyValidator("label",cdk().requiredValidator)(properties.label)),errors.collect(cdk().propertyValidator("label",cdk().validateString)(properties.label)),errors.wrap('supplied properties not correct for "CategoricalScaleDefinitionProperty"')}function convertCfnEvaluatorCategoricalScaleDefinitionPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEvaluatorCategoricalScaleDefinitionPropertyValidator(properties).assertSuccess(),{Definition:cdk().stringToCloudFormation(properties.definition),Label:cdk().stringToCloudFormation(properties.label)}):properties}function CfnEvaluatorCategoricalScaleDefinitionPropertyFromCloudFormation(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("definition","Definition",properties.Definition!=null?cfn_parse().FromCloudFormation.getString(properties.Definition):void 0),ret.addPropertyResult("label","Label",properties.Label!=null?cfn_parse().FromCloudFormation.getString(properties.Label):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnEvaluatorRatingScalePropertyValidator(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("categorical",cdk().listValidator(CfnEvaluatorCategoricalScaleDefinitionPropertyValidator))(properties.categorical)),errors.collect(cdk().propertyValidator("numerical",cdk().listValidator(CfnEvaluatorNumericalScaleDefinitionPropertyValidator))(properties.numerical)),errors.wrap('supplied properties not correct for "RatingScaleProperty"')}function convertCfnEvaluatorRatingScalePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEvaluatorRatingScalePropertyValidator(properties).assertSuccess(),{Categorical:cdk().listMapper(convertCfnEvaluatorCategoricalScaleDefinitionPropertyToCloudFormation)(properties.categorical),Numerical:cdk().listMapper(convertCfnEvaluatorNumericalScaleDefinitionPropertyToCloudFormation)(properties.numerical)}):properties}function CfnEvaluatorRatingScalePropertyFromCloudFormation(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("categorical","Categorical",properties.Categorical!=null?cfn_parse().FromCloudFormation.getArray(CfnEvaluatorCategoricalScaleDefinitionPropertyFromCloudFormation)(properties.Categorical):void 0),ret.addPropertyResult("numerical","Numerical",properties.Numerical!=null?cfn_parse().FromCloudFormation.getArray(CfnEvaluatorNumericalScaleDefinitionPropertyFromCloudFormation)(properties.Numerical):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnEvaluatorInferenceConfigurationPropertyValidator(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("maxTokens",cdk().validateNumber)(properties.maxTokens)),errors.collect(cdk().propertyValidator("temperature",cdk().validateNumber)(properties.temperature)),errors.collect(cdk().propertyValidator("topP",cdk().validateNumber)(properties.topP)),errors.wrap('supplied properties not correct for "InferenceConfigurationProperty"')}function convertCfnEvaluatorInferenceConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEvaluatorInferenceConfigurationPropertyValidator(properties).assertSuccess(),{MaxTokens:cdk().numberToCloudFormation(properties.maxTokens),Temperature:cdk().numberToCloudFormation(properties.temperature),TopP:cdk().numberToCloudFormation(properties.topP)}):properties}function CfnEvaluatorInferenceConfigurationPropertyFromCloudFormation(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("maxTokens","MaxTokens",properties.MaxTokens!=null?cfn_parse().FromCloudFormation.getNumber(properties.MaxTokens):void 0),ret.addPropertyResult("temperature","Temperature",properties.Temperature!=null?cfn_parse().FromCloudFormation.getNumber(properties.Temperature):void 0),ret.addPropertyResult("topP","TopP",properties.TopP!=null?cfn_parse().FromCloudFormation.getNumber(properties.TopP):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnEvaluatorBedrockEvaluatorModelConfigPropertyValidator(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("additionalModelRequestFields",cdk().validateObject)(properties.additionalModelRequestFields)),errors.collect(cdk().propertyValidator("inferenceConfig",CfnEvaluatorInferenceConfigurationPropertyValidator)(properties.inferenceConfig)),errors.collect(cdk().propertyValidator("modelId",cdk().requiredValidator)(properties.modelId)),errors.collect(cdk().propertyValidator("modelId",cdk().validateString)(properties.modelId)),errors.wrap('supplied properties not correct for "BedrockEvaluatorModelConfigProperty"')}function convertCfnEvaluatorBedrockEvaluatorModelConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEvaluatorBedrockEvaluatorModelConfigPropertyValidator(properties).assertSuccess(),{AdditionalModelRequestFields:cdk().objectToCloudFormation(properties.additionalModelRequestFields),InferenceConfig:convertCfnEvaluatorInferenceConfigurationPropertyToCloudFormation(properties.inferenceConfig),ModelId:cdk().stringToCloudFormation(properties.modelId)}):properties}function CfnEvaluatorBedrockEvaluatorModelConfigPropertyFromCloudFormation(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("additionalModelRequestFields","AdditionalModelRequestFields",properties.AdditionalModelRequestFields!=null?cfn_parse().FromCloudFormation.getAny(proper