UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

2 lines (1 loc) 45.7 kB
"use strict";var _a,_b,_c,_d;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnRuntimeEndpoint=exports.CfnRuntime=exports.CfnCodeInterpreterCustom=exports.CfnBrowserCustom=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var cdk=()=>{var tmp=require("../../core");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 _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnBrowserCustomPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnBrowserCustom(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static fromBrowserId(scope,id,browserId){class Import extends cdk().Resource{constructor(scope2,id2,browserId2){super(scope2,id2),this.browserCustomRef={browserId:browserId2}}}return new Import(scope,id,browserId)}constructor(scope,id,props){super(scope,id,{type:CfnBrowserCustom.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_bedrockagentcore_CfnBrowserCustomProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnBrowserCustom),error}cdk().requireProperty(props,"name",this),cdk().requireProperty(props,"networkConfiguration",this),this.attrBrowserArn=cdk().Token.asString(this.getAtt("BrowserArn",cdk().ResolutionTypeHint.STRING)),this.attrBrowserId=cdk().Token.asString(this.getAtt("BrowserId",cdk().ResolutionTypeHint.STRING)),this.attrCreatedAt=cdk().Token.asString(this.getAtt("CreatedAt",cdk().ResolutionTypeHint.STRING)),this.attrLastUpdatedAt=cdk().Token.asString(this.getAtt("LastUpdatedAt",cdk().ResolutionTypeHint.STRING)),this.attrStatus=cdk().Token.asString(this.getAtt("Status",cdk().ResolutionTypeHint.STRING)),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.MAP,"AWS::BedrockAgentCore::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}}get cfnProperties(){return{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,_a=JSII_RTTI_SYMBOL_1,CfnBrowserCustom[_a]={fqn:"aws-cdk-lib.aws_bedrockagentcore.CfnBrowserCustom",version:"2.219.0"},CfnBrowserCustom.CFN_RESOURCE_TYPE_NAME="AWS::BedrockAgentCore::BrowserCustom";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.wrap('supplied properties not correct for "BrowserNetworkConfigurationProperty"')}function convertCfnBrowserCustomBrowserNetworkConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnBrowserCustomBrowserNetworkConfigurationPropertyValidator(properties).assertSuccess(),{NetworkMode:cdk().stringToCloudFormation(properties.networkMode)}):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.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 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("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(),{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("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("executionRoleArn","ExecutionRoleArn",properties.ExecutionRoleArn!=null?cfn_parse().FromCloudFormation.getString(properties.ExecutionRoleArn):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("networkConfiguration","NetworkConfiguration",properties.NetworkConfiguration!=null?CfnBrowserCustomBrowserNetworkConfigurationPropertyFromCloudFormation(properties.NetworkConfiguration):void 0),ret.addPropertyResult("recordingConfig","RecordingConfig",properties.RecordingConfig!=null?CfnBrowserCustomRecordingConfigPropertyFromCloudFormation(properties.RecordingConfig):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getMap(cfn_parse().FromCloudFormation.getString)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnCodeInterpreterCustom extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnCodeInterpreterCustomPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnCodeInterpreterCustom(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static fromCodeInterpreterId(scope,id,codeInterpreterId){class Import extends cdk().Resource{constructor(scope2,id2,codeInterpreterId2){super(scope2,id2),this.codeInterpreterCustomRef={codeInterpreterId:codeInterpreterId2}}}return new Import(scope,id,codeInterpreterId)}constructor(scope,id,props){super(scope,id,{type:CfnCodeInterpreterCustom.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_bedrockagentcore_CfnCodeInterpreterCustomProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnCodeInterpreterCustom),error}cdk().requireProperty(props,"name",this),cdk().requireProperty(props,"networkConfiguration",this),this.attrCodeInterpreterArn=cdk().Token.asString(this.getAtt("CodeInterpreterArn",cdk().ResolutionTypeHint.STRING)),this.attrCodeInterpreterId=cdk().Token.asString(this.getAtt("CodeInterpreterId",cdk().ResolutionTypeHint.STRING)),this.attrCreatedAt=cdk().Token.asString(this.getAtt("CreatedAt",cdk().ResolutionTypeHint.STRING)),this.attrLastUpdatedAt=cdk().Token.asString(this.getAtt("LastUpdatedAt",cdk().ResolutionTypeHint.STRING)),this.attrStatus=cdk().Token.asString(this.getAtt("Status",cdk().ResolutionTypeHint.STRING)),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.MAP,"AWS::BedrockAgentCore::CodeInterpreterCustom",void 0,{tagPropertyName:"tags"}),this.description=props.description,this.executionRoleArn=props.executionRoleArn,this.name=props.name,this.networkConfiguration=props.networkConfiguration,this.tags=props.tags}get codeInterpreterCustomRef(){return{codeInterpreterId:this.ref}}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,_b=JSII_RTTI_SYMBOL_1,CfnCodeInterpreterCustom[_b]={fqn:"aws-cdk-lib.aws_bedrockagentcore.CfnCodeInterpreterCustom",version:"2.219.0"},CfnCodeInterpreterCustom.CFN_RESOURCE_TYPE_NAME="AWS::BedrockAgentCore::CodeInterpreterCustom";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.wrap('supplied properties not correct for "CodeInterpreterNetworkConfigurationProperty"')}function convertCfnCodeInterpreterCustomCodeInterpreterNetworkConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnCodeInterpreterCustomCodeInterpreterNetworkConfigurationPropertyValidator(properties).assertSuccess(),{NetworkMode:cdk().stringToCloudFormation(properties.networkMode)}):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.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 CfnRuntime extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnRuntimePropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnRuntime(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}constructor(scope,id,props){super(scope,id,{type:CfnRuntime.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_bedrockagentcore_CfnRuntimeProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnRuntime),error}cdk().requireProperty(props,"agentRuntimeArtifact",this),cdk().requireProperty(props,"agentRuntimeName",this),cdk().requireProperty(props,"networkConfiguration",this),cdk().requireProperty(props,"roleArn",this),this.attrAgentRuntimeArn=cdk().Token.asString(this.getAtt("AgentRuntimeArn",cdk().ResolutionTypeHint.STRING)),this.attrAgentRuntimeId=cdk().Token.asString(this.getAtt("AgentRuntimeId",cdk().ResolutionTypeHint.STRING)),this.attrAgentRuntimeVersion=cdk().Token.asString(this.getAtt("AgentRuntimeVersion",cdk().ResolutionTypeHint.STRING)),this.attrCreatedAt=cdk().Token.asString(this.getAtt("CreatedAt",cdk().ResolutionTypeHint.STRING)),this.attrLastUpdatedAt=cdk().Token.asString(this.getAtt("LastUpdatedAt",cdk().ResolutionTypeHint.STRING)),this.attrStatus=cdk().Token.asString(this.getAtt("Status",cdk().ResolutionTypeHint.STRING)),this.attrWorkloadIdentityDetails=this.getAtt("WorkloadIdentityDetails"),this.agentRuntimeArtifact=props.agentRuntimeArtifact,this.agentRuntimeName=props.agentRuntimeName,this.authorizerConfiguration=props.authorizerConfiguration,this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.MAP,"AWS::BedrockAgentCore::Runtime",void 0,{tagPropertyName:"tags"}),this.description=props.description,this.environmentVariables=props.environmentVariables,this.networkConfiguration=props.networkConfiguration,this.protocolConfiguration=props.protocolConfiguration,this.roleArn=props.roleArn,this.tags=props.tags}get runtimeRef(){return{agentRuntimeId:this.ref}}get cfnProperties(){return{agentRuntimeArtifact:this.agentRuntimeArtifact,agentRuntimeName:this.agentRuntimeName,authorizerConfiguration:this.authorizerConfiguration,tags:this.cdkTagManager.renderTags(this.tags),description:this.description,environmentVariables:this.environmentVariables,networkConfiguration:this.networkConfiguration,protocolConfiguration:this.protocolConfiguration,roleArn:this.roleArn}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnRuntime.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnRuntimePropsToCloudFormation(props)}}exports.CfnRuntime=CfnRuntime,_c=JSII_RTTI_SYMBOL_1,CfnRuntime[_c]={fqn:"aws-cdk-lib.aws_bedrockagentcore.CfnRuntime",version:"2.219.0"},CfnRuntime.CFN_RESOURCE_TYPE_NAME="AWS::BedrockAgentCore::Runtime";function CfnRuntimeContainerConfigurationPropertyValidator(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("containerUri",cdk().requiredValidator)(properties.containerUri)),errors.collect(cdk().propertyValidator("containerUri",cdk().validateString)(properties.containerUri)),errors.wrap('supplied properties not correct for "ContainerConfigurationProperty"')}function convertCfnRuntimeContainerConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnRuntimeContainerConfigurationPropertyValidator(properties).assertSuccess(),{ContainerUri:cdk().stringToCloudFormation(properties.containerUri)}):properties}function CfnRuntimeContainerConfigurationPropertyFromCloudFormation(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("containerUri","ContainerUri",properties.ContainerUri!=null?cfn_parse().FromCloudFormation.getString(properties.ContainerUri):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnRuntimeAgentRuntimeArtifactPropertyValidator(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("containerConfiguration",CfnRuntimeContainerConfigurationPropertyValidator)(properties.containerConfiguration)),errors.wrap('supplied properties not correct for "AgentRuntimeArtifactProperty"')}function convertCfnRuntimeAgentRuntimeArtifactPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnRuntimeAgentRuntimeArtifactPropertyValidator(properties).assertSuccess(),{ContainerConfiguration:convertCfnRuntimeContainerConfigurationPropertyToCloudFormation(properties.containerConfiguration)}):properties}function CfnRuntimeAgentRuntimeArtifactPropertyFromCloudFormation(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("containerConfiguration","ContainerConfiguration",properties.ContainerConfiguration!=null?CfnRuntimeContainerConfigurationPropertyFromCloudFormation(properties.ContainerConfiguration):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnRuntimeNetworkConfigurationPropertyValidator(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.wrap('supplied properties not correct for "NetworkConfigurationProperty"')}function convertCfnRuntimeNetworkConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnRuntimeNetworkConfigurationPropertyValidator(properties).assertSuccess(),{NetworkMode:cdk().stringToCloudFormation(properties.networkMode)}):properties}function CfnRuntimeNetworkConfigurationPropertyFromCloudFormation(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.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnRuntimeCustomJWTAuthorizerConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("allowedAudience",cdk().listValidator(cdk().validateString))(properties.allowedAudience)),errors.collect(cdk().propertyValidator("allowedClients",cdk().listValidator(cdk().validateString))(properties.allowedClients)),errors.collect(cdk().propertyValidator("discoveryUrl",cdk().requiredValidator)(properties.discoveryUrl)),errors.collect(cdk().propertyValidator("discoveryUrl",cdk().validateString)(properties.discoveryUrl)),errors.wrap('supplied properties not correct for "CustomJWTAuthorizerConfigurationProperty"')}function convertCfnRuntimeCustomJWTAuthorizerConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnRuntimeCustomJWTAuthorizerConfigurationPropertyValidator(properties).assertSuccess(),{AllowedAudience:cdk().listMapper(cdk().stringToCloudFormation)(properties.allowedAudience),AllowedClients:cdk().listMapper(cdk().stringToCloudFormation)(properties.allowedClients),DiscoveryUrl:cdk().stringToCloudFormation(properties.discoveryUrl)}):properties}function CfnRuntimeCustomJWTAuthorizerConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("allowedAudience","AllowedAudience",properties.AllowedAudience!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.AllowedAudience):void 0),ret.addPropertyResult("allowedClients","AllowedClients",properties.AllowedClients!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.AllowedClients):void 0),ret.addPropertyResult("discoveryUrl","DiscoveryUrl",properties.DiscoveryUrl!=null?cfn_parse().FromCloudFormation.getString(properties.DiscoveryUrl):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnRuntimeAuthorizerConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("customJwtAuthorizer",CfnRuntimeCustomJWTAuthorizerConfigurationPropertyValidator)(properties.customJwtAuthorizer)),errors.wrap('supplied properties not correct for "AuthorizerConfigurationProperty"')}function convertCfnRuntimeAuthorizerConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnRuntimeAuthorizerConfigurationPropertyValidator(properties).assertSuccess(),{CustomJWTAuthorizer:convertCfnRuntimeCustomJWTAuthorizerConfigurationPropertyToCloudFormation(properties.customJwtAuthorizer)}):properties}function CfnRuntimeAuthorizerConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("customJwtAuthorizer","CustomJWTAuthorizer",properties.CustomJWTAuthorizer!=null?CfnRuntimeCustomJWTAuthorizerConfigurationPropertyFromCloudFormation(properties.CustomJWTAuthorizer):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnRuntimeWorkloadIdentityDetailsPropertyValidator(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("workloadIdentityArn",cdk().requiredValidator)(properties.workloadIdentityArn)),errors.collect(cdk().propertyValidator("workloadIdentityArn",cdk().validateString)(properties.workloadIdentityArn)),errors.wrap('supplied properties not correct for "WorkloadIdentityDetailsProperty"')}function convertCfnRuntimeWorkloadIdentityDetailsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnRuntimeWorkloadIdentityDetailsPropertyValidator(properties).assertSuccess(),{WorkloadIdentityArn:cdk().stringToCloudFormation(properties.workloadIdentityArn)}):properties}function CfnRuntimeWorkloadIdentityDetailsPropertyFromCloudFormation(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("workloadIdentityArn","WorkloadIdentityArn",properties.WorkloadIdentityArn!=null?cfn_parse().FromCloudFormation.getString(properties.WorkloadIdentityArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnRuntimePropsValidator(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("agentRuntimeArtifact",cdk().requiredValidator)(properties.agentRuntimeArtifact)),errors.collect(cdk().propertyValidator("agentRuntimeArtifact",CfnRuntimeAgentRuntimeArtifactPropertyValidator)(properties.agentRuntimeArtifact)),errors.collect(cdk().propertyValidator("agentRuntimeName",cdk().requiredValidator)(properties.agentRuntimeName)),errors.collect(cdk().propertyValidator("agentRuntimeName",cdk().validateString)(properties.agentRuntimeName)),errors.collect(cdk().propertyValidator("authorizerConfiguration",CfnRuntimeAuthorizerConfigurationPropertyValidator)(properties.authorizerConfiguration)),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("environmentVariables",cdk().hashValidator(cdk().validateString))(properties.environmentVariables)),errors.collect(cdk().propertyValidator("networkConfiguration",cdk().requiredValidator)(properties.networkConfiguration)),errors.collect(cdk().propertyValidator("networkConfiguration",CfnRuntimeNetworkConfigurationPropertyValidator)(properties.networkConfiguration)),errors.collect(cdk().propertyValidator("protocolConfiguration",cdk().validateString)(properties.protocolConfiguration)),errors.collect(cdk().propertyValidator("roleArn",cdk().requiredValidator)(properties.roleArn)),errors.collect(cdk().propertyValidator("roleArn",cdk().validateString)(properties.roleArn)),errors.collect(cdk().propertyValidator("tags",cdk().hashValidator(cdk().validateString))(properties.tags)),errors.wrap('supplied properties not correct for "CfnRuntimeProps"')}function convertCfnRuntimePropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnRuntimePropsValidator(properties).assertSuccess(),{AgentRuntimeArtifact:convertCfnRuntimeAgentRuntimeArtifactPropertyToCloudFormation(properties.agentRuntimeArtifact),AgentRuntimeName:cdk().stringToCloudFormation(properties.agentRuntimeName),AuthorizerConfiguration:convertCfnRuntimeAuthorizerConfigurationPropertyToCloudFormation(properties.authorizerConfiguration),Description:cdk().stringToCloudFormation(properties.description),EnvironmentVariables:cdk().hashMapper(cdk().stringToCloudFormation)(properties.environmentVariables),NetworkConfiguration:convertCfnRuntimeNetworkConfigurationPropertyToCloudFormation(properties.networkConfiguration),ProtocolConfiguration:cdk().stringToCloudFormation(properties.protocolConfiguration),RoleArn:cdk().stringToCloudFormation(properties.roleArn),Tags:cdk().hashMapper(cdk().stringToCloudFormation)(properties.tags)}):properties}function CfnRuntimePropsFromCloudFormation(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("agentRuntimeArtifact","AgentRuntimeArtifact",properties.AgentRuntimeArtifact!=null?CfnRuntimeAgentRuntimeArtifactPropertyFromCloudFormation(properties.AgentRuntimeArtifact):void 0),ret.addPropertyResult("agentRuntimeName","AgentRuntimeName",properties.AgentRuntimeName!=null?cfn_parse().FromCloudFormation.getString(properties.AgentRuntimeName):void 0),ret.addPropertyResult("authorizerConfiguration","AuthorizerConfiguration",properties.AuthorizerConfiguration!=null?CfnRuntimeAuthorizerConfigurationPropertyFromCloudFormation(properties.AuthorizerConfiguration):void 0),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("environmentVariables","EnvironmentVariables",properties.EnvironmentVariables!=null?cfn_parse().FromCloudFormation.getMap(cfn_parse().FromCloudFormation.getString)(properties.EnvironmentVariables):void 0),ret.addPropertyResult("networkConfiguration","NetworkConfiguration",properties.NetworkConfiguration!=null?CfnRuntimeNetworkConfigurationPropertyFromCloudFormation(properties.NetworkConfiguration):void 0),ret.addPropertyResult("protocolConfiguration","ProtocolConfiguration",properties.ProtocolConfiguration!=null?cfn_parse().FromCloudFormation.getString(properties.ProtocolConfiguration):void 0),ret.addPropertyResult("roleArn","RoleArn",properties.RoleArn!=null?cfn_parse().FromCloudFormation.getString(properties.RoleArn):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 CfnRuntimeEndpoint extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnRuntimeEndpointPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnRuntimeEndpoint(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}constructor(scope,id,props){super(scope,id,{type:CfnRuntimeEndpoint.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_bedrockagentcore_CfnRuntimeEndpointProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnRuntimeEndpoint),error}cdk().requireProperty(props,"agentRuntimeId",this),cdk().requireProperty(props,"name",this),this.attrAgentRuntimeArn=cdk().Token.asString(this.getAtt("AgentRuntimeArn",cdk().ResolutionTypeHint.STRING)),this.attrAgentRuntimeEndpointArn=cdk().Token.asString(this.getAtt("AgentRuntimeEndpointArn",cdk().ResolutionTypeHint.STRING)),this.attrCreatedAt=cdk().Token.asString(this.getAtt("CreatedAt",cdk().ResolutionTypeHint.STRING)),this.attrFailureReason=cdk().Token.asString(this.getAtt("FailureReason",cdk().ResolutionTypeHint.STRING)),this.attrId=cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING)),this.attrLastUpdatedAt=cdk().Token.asString(this.getAtt("LastUpdatedAt",cdk().ResolutionTypeHint.STRING)),this.attrLiveVersion=cdk().Token.asString(this.getAtt("LiveVersion",cdk().ResolutionTypeHint.STRING)),this.attrStatus=cdk().Token.asString(this.getAtt("Status",cdk().ResolutionTypeHint.STRING)),this.attrTargetVersion=cdk().Token.asString(this.getAtt("TargetVersion",cdk().ResolutionTypeHint.STRING)),this.agentRuntimeId=props.agentRuntimeId,this.agentRuntimeVersion=props.agentRuntimeVersion,this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.MAP,"AWS::BedrockAgentCore::RuntimeEndpoint",void 0,{tagPropertyName:"tags"}),this.description=props.description,this.name=props.name,this.tags=props.tags}get runtimeEndpointRef(){return{agentRuntimeEndpointArn:this.ref}}get cfnProperties(){return{agentRuntimeId:this.agentRuntimeId,agentRuntimeVersion:this.agentRuntimeVersion,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",CfnRuntimeEndpoint.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnRuntimeEndpointPropsToCloudFormation(props)}}exports.CfnRuntimeEndpoint=CfnRuntimeEndpoint,_d=JSII_RTTI_SYMBOL_1,CfnRuntimeEndpoint[_d]={fqn:"aws-cdk-lib.aws_bedrockagentcore.CfnRuntimeEndpoint",version:"2.219.0"},CfnRuntimeEndpoint.CFN_RESOURCE_TYPE_NAME="AWS::BedrockAgentCore::RuntimeEndpoint";function CfnRuntimeEndpointPropsValidator(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("agentRuntimeId",cdk().requiredValidator)(properties.agentRuntimeId)),errors.collect(cdk().propertyValidator("agentRuntimeId",cdk().validateString)(properties.agentRuntimeId)),errors.collect(cdk().propertyValidator("agentRuntimeVersion",cdk().validateString)(properties.agentRuntimeVersion)),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 "CfnRuntimeEndpointProps"')}function convertCfnRuntimeEndpointPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnRuntimeEndpointPropsValidator(properties).assertSuccess(),{AgentRuntimeId:cdk().stringToCloudFormation(properties.agentRuntimeId),AgentRuntimeVersion:cdk().stringToCloudFormation(properties.agentRuntimeVersion),Description:cdk().stringToCloudFormation(properties.description),Name:cdk().stringToCloudFormation(properties.name),Tags:cdk().hashMapper(cdk().stringToCloudFormation)(properties.tags)}):properties}function CfnRuntimeEndpointPropsFromCloudFormation(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("agentRuntimeId","AgentRuntimeId",properties.AgentRuntimeId!=null?cfn_parse().FromCloudFormation.getString(properties.AgentRuntimeId):void 0),ret.addPropertyResult("agentRuntimeVersion","AgentRuntimeVersion",properties.AgentRuntimeVersion!=null?cfn_parse().FromCloudFormation.getString(properties.AgentRuntimeVersion):void 0),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}