aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
1 lines • 398 kB
JavaScript
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnWorkloadIdentity=exports.CfnRuntimeEndpoint=exports.CfnRuntime=exports.CfnPolicyEngine=exports.CfnPolicy=exports.CfnOnlineEvaluationConfig=exports.CfnOAuth2CredentialProvider=exports.CfnMemory=exports.CfnGatewayTarget=exports.CfnGateway=exports.CfnEvaluator=exports.CfnCodeInterpreterCustom=exports.CfnBrowserProfile=exports.CfnBrowserCustom=exports.CfnApiKeyCredentialProvider=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 CfnApiKeyCredentialProvider extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_bedrockagentcore.CfnApiKeyCredentialProvider",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::BedrockAgentCore::ApiKeyCredentialProvider";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnApiKeyCredentialProviderPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnApiKeyCredentialProvider(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 isCfnApiKeyCredentialProvider(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnApiKeyCredentialProvider.CFN_RESOURCE_TYPE_NAME}_apiKey;cdkTagManager;_name;_tags;constructor(scope,id,props){super(scope,id,{type:CfnApiKeyCredentialProvider.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_bedrockagentcore_CfnApiKeyCredentialProviderProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnApiKeyCredentialProvider),error}cdk().requireProperty(props,"name",this),this._apiKey=props.apiKey,this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::BedrockAgentCore::ApiKeyCredentialProvider",void 0,{tagPropertyName:"tags"}),this._name=props.name,this._tags=props.tags}get apiKeyCredentialProviderRef(){return{credentialProviderArn:this.ref}}get apiKey(){return this._apiKey}set apiKey(value){cdk().traceProperty(this.node,"ApiKey"),this._apiKey=value}get name(){return this._name}set name(value){cdk().traceProperty(this.node,"Name"),this._name=value}get tags(){return this._tags}set tags(value){cdk().traceProperty(this.node,"Tags"),this._tags=value}get attrApiKeySecretArn(){return this.getAtt("ApiKeySecretArn")}get attrCreatedTime(){return cdk().Token.asString(this.getAtt("CreatedTime",cdk().ResolutionTypeHint.STRING))}get attrCredentialProviderArn(){return cdk().Token.asString(this.getAtt("CredentialProviderArn",cdk().ResolutionTypeHint.STRING))}get attrLastUpdatedTime(){return cdk().Token.asString(this.getAtt("LastUpdatedTime",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{apiKey:this._apiKey,tags:this.cdkTagManager.renderTags(this._tags),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",CfnApiKeyCredentialProvider.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnApiKeyCredentialProviderPropsToCloudFormation(props)}}exports.CfnApiKeyCredentialProvider=CfnApiKeyCredentialProvider;function CfnApiKeyCredentialProviderApiKeySecretArnPropertyValidator(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("secretArn",cdk().requiredValidator)(properties.secretArn)),errors.collect(cdk().propertyValidator("secretArn",cdk().validateString)(properties.secretArn)),errors.wrap('supplied properties not correct for "ApiKeySecretArnProperty"')}function convertCfnApiKeyCredentialProviderApiKeySecretArnPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnApiKeyCredentialProviderApiKeySecretArnPropertyValidator(properties).assertSuccess(),{SecretArn:cdk().stringToCloudFormation(properties.secretArn)}):properties}function CfnApiKeyCredentialProviderApiKeySecretArnPropertyFromCloudFormation(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("secretArn","SecretArn",properties.SecretArn!=null?cfn_parse().FromCloudFormation.getString(properties.SecretArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnApiKeyCredentialProviderPropsValidator(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("apiKey",cdk().validateString)(properties.apiKey)),errors.collect(cdk().propertyValidator("name",cdk().requiredValidator)(properties.name)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnApiKeyCredentialProviderProps"')}function convertCfnApiKeyCredentialProviderPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnApiKeyCredentialProviderPropsValidator(properties).assertSuccess(),{ApiKey:cdk().stringToCloudFormation(properties.apiKey),Name:cdk().stringToCloudFormation(properties.name),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnApiKeyCredentialProviderPropsFromCloudFormation(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("apiKey","ApiKey",properties.ApiKey!=null?cfn_parse().FromCloudFormation.getString(properties.ApiKey):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.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnBrowserCustom extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_bedrockagentcore.CfnBrowserCustom",version:"2.251.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 browserSigning(){return this._browserSigning}set browserSigning(value){cdk().traceProperty(this.node,"BrowserSigning"),this._browserSigning=value}get description(){return this._description}set description(value){cdk().traceProperty(this.node,"Description"),this._description=value}get executionRoleArn(){return this._executionRoleArn}set executionRoleArn(value){cdk().traceProperty(this.node,"ExecutionRoleArn"),this._executionRoleArn=value}get name(){return this._name}set name(value){cdk().traceProperty(this.node,"Name"),this._name=value}get networkConfiguration(){return this._networkConfiguration}set networkConfiguration(value){cdk().traceProperty(this.node,"NetworkConfiguration"),this._networkConfiguration=value}get recordingConfig(){return this._recordingConfig}set recordingConfig(value){cdk().traceProperty(this.node,"RecordingConfig"),this._recordingConfig=value}get tags(){return this._tags}set tags(value){cdk().traceProperty(this.node,"Tags"),this._tags=value}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:logicalId",this._synthesizeLogicalId()),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.251.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 description(){return this._description}set description(value){cdk().traceProperty(this.node,"Description"),this._description=value}get name(){return this._name}set name(value){cdk().traceProperty(this.node,"Name"),this._name=value}get tags(){return this._tags}set tags(value){cdk().traceProperty(this.node,"Tags"),this._tags=value}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:logicalId",this._synthesizeLogicalId()),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.251.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 description(){return this._description}set description(value){cdk().traceProperty(this.node,"Description"),this._description=value}get executionRoleArn(){return this._executionRoleArn}set executionRoleArn(value){cdk().traceProperty(this.node,"ExecutionRoleArn"),this._executionRoleArn=value}get name(){return this._name}set name(value){cdk().traceProperty(this.node,"Name"),this._name=value}get networkConfiguration(){return this._networkConfiguration}set networkConfiguration(value){cdk().traceProperty(this.node,"NetworkConfiguration"),this._networkConfiguration=value}get tags(){return this._tags}set tags(value){cdk().traceProperty(this.node,"Tags"),this._tags=value}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:logicalId",this._synthesizeLogicalId()),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.251.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 description(){return this._description}set description(value){cdk().traceProperty(this.node,"Description"),this._description=value}get evaluatorConfig(){return this._evaluatorConfig}set evaluatorConfig(value){cdk().traceProperty(this.node,"EvaluatorConfig"),this._evaluatorConfig=value}get evaluatorName(){return this._evaluatorName}set evaluatorName(value){cdk().traceProperty(this.node,"EvaluatorName"),this._evaluatorName=value}get level(){return this._level}set level(value){cdk().traceProperty(this.node,"Level"),this._level=value}get tags(){return this._tags}set tags(value){cdk().traceProperty(this.node,"Tags"),this._tags=value}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:logicalId",this._synthesizeLogicalId()),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 propert