UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

1 lines 77.2 kB
"use strict";var __createBinding=exports&&exports.__createBinding||(Object.create?(function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}):(function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]})),__setModuleDefault=exports&&exports.__setModuleDefault||(Object.create?(function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}):function(o,v){o.default=v}),__importStar=exports&&exports.__importStar||(function(){var ownKeys=function(o){return ownKeys=Object.getOwnPropertyNames||function(o2){var ar=[];for(var k in o2)Object.prototype.hasOwnProperty.call(o2,k)&&(ar[ar.length]=k);return ar},ownKeys(o)};return function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k=ownKeys(mod),i=0;i<k.length;i++)k[i]!=="default"&&__createBinding(result,mod,k[i]);return __setModuleDefault(result,mod),result}})();Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnUserJourney=exports.CfnSystem=exports.CfnServiceFunction=exports.CfnService=exports.CfnPolicy=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=__importStar(require("../../core/lib"));return cdk=()=>tmp,tmp},cfn_parse=()=>{var tmp=__importStar(require("../../core/lib/helpers-internal"));return cfn_parse=()=>tmp,tmp},cdk_errors=()=>{var tmp=__importStar(require("../../core/lib/errors"));return cdk_errors=()=>tmp,tmp};class CfnPolicy extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_resiliencehubv2.CfnPolicy",version:"2.260.0"};static CFN_RESOURCE_TYPE_NAME="AWS::ResilienceHubV2::Policy";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnPolicyPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnPolicy(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 isCfnPolicy(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnPolicy.CFN_RESOURCE_TYPE_NAME}static arnForPolicy(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_resiliencehubv2_IPolicyRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForPolicy),error}return resource.policyRef.policyArn}_availabilitySlo;cdkTagManager;_dataRecovery;_description;_kmsKeyId;_multiAz;_multiRegion;_name;_tags;cfnPropertyNames={availabilitySlo:"AvailabilitySlo",tags:"Tags",dataRecovery:"DataRecovery",description:"Description",kmsKeyId:"KmsKeyId",multiAz:"MultiAz",multiRegion:"MultiRegion",name:"Name"};constructor(scope,id,props){super(scope,id,{type:CfnPolicy.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_resiliencehubv2_CfnPolicyProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnPolicy),error}cdk().requireProperty(props,"name",this),this._availabilitySlo=props.availabilitySlo,this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::ResilienceHubV2::Policy",void 0,{tagPropertyName:"tags"}),this._dataRecovery=props.dataRecovery,this._description=props.description,this._kmsKeyId=props.kmsKeyId,this._multiAz=props.multiAz,this._multiRegion=props.multiRegion,this._name=props.name,this._tags=props.tags}get policyRef(){return{policyArn:this.ref}}get availabilitySlo(){return this._availabilitySlo}set availabilitySlo(value){cdk().traceProperty(this.node,"AvailabilitySlo"),this._availabilitySlo=value}get dataRecovery(){return this._dataRecovery}set dataRecovery(value){cdk().traceProperty(this.node,"DataRecovery"),this._dataRecovery=value}get description(){return this._description}set description(value){cdk().traceProperty(this.node,"Description"),this._description=value}get kmsKeyId(){return this._kmsKeyId}set kmsKeyId(value){cdk().traceProperty(this.node,"KmsKeyId"),this._kmsKeyId=value}get multiAz(){return this._multiAz}set multiAz(value){cdk().traceProperty(this.node,"MultiAz"),this._multiAz=value}get multiRegion(){return this._multiRegion}set multiRegion(value){cdk().traceProperty(this.node,"MultiRegion"),this._multiRegion=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 attrAssociatedServiceCount(){return cdk().Token.asNumber(this.getAtt("AssociatedServiceCount",cdk().ResolutionTypeHint.NUMBER))}get attrCreatedAt(){return cdk().Token.asString(this.getAtt("CreatedAt",cdk().ResolutionTypeHint.STRING))}get attrPolicyArn(){return cdk().Token.asString(this.getAtt("PolicyArn",cdk().ResolutionTypeHint.STRING))}get attrUpdatedAt(){return cdk().Token.asString(this.getAtt("UpdatedAt",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{availabilitySlo:this._availabilitySlo,tags:this.cdkTagManager.renderTags(this._tags),dataRecovery:this._dataRecovery,description:this._description,kmsKeyId:this._kmsKeyId,multiAz:this._multiAz,multiRegion:this._multiRegion,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",CfnPolicy.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnPolicyPropsToCloudFormation(props)}}exports.CfnPolicy=CfnPolicy;function CfnPolicyAvailabilitySloPropertyValidator(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("target",cdk().validateNumber)(properties.target)),errors.wrap('supplied properties not correct for "AvailabilitySloProperty"')}function convertCfnPolicyAvailabilitySloPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnPolicyAvailabilitySloPropertyValidator(properties).assertSuccess(),{Target:cdk().numberToCloudFormation(properties.target)}):properties}function CfnPolicyAvailabilitySloPropertyFromCloudFormation(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("target","Target",properties.Target!=null?cfn_parse().FromCloudFormation.getNumber(properties.Target):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnPolicyMultiAzTargetsPropertyValidator(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("disasterRecoveryApproach",cdk().validateString)(properties.disasterRecoveryApproach)),errors.collect(cdk().propertyValidator("rpoInMinutes",cdk().validateNumber)(properties.rpoInMinutes)),errors.collect(cdk().propertyValidator("rtoInMinutes",cdk().validateNumber)(properties.rtoInMinutes)),errors.wrap('supplied properties not correct for "MultiAzTargetsProperty"')}function convertCfnPolicyMultiAzTargetsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnPolicyMultiAzTargetsPropertyValidator(properties).assertSuccess(),{DisasterRecoveryApproach:cdk().stringToCloudFormation(properties.disasterRecoveryApproach),RpoInMinutes:cdk().numberToCloudFormation(properties.rpoInMinutes),RtoInMinutes:cdk().numberToCloudFormation(properties.rtoInMinutes)}):properties}function CfnPolicyMultiAzTargetsPropertyFromCloudFormation(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("disasterRecoveryApproach","DisasterRecoveryApproach",properties.DisasterRecoveryApproach!=null?cfn_parse().FromCloudFormation.getString(properties.DisasterRecoveryApproach):void 0),ret.addPropertyResult("rpoInMinutes","RpoInMinutes",properties.RpoInMinutes!=null?cfn_parse().FromCloudFormation.getNumber(properties.RpoInMinutes):void 0),ret.addPropertyResult("rtoInMinutes","RtoInMinutes",properties.RtoInMinutes!=null?cfn_parse().FromCloudFormation.getNumber(properties.RtoInMinutes):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnPolicyMultiRegionTargetsPropertyValidator(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("disasterRecoveryApproach",cdk().validateString)(properties.disasterRecoveryApproach)),errors.collect(cdk().propertyValidator("rpoInMinutes",cdk().validateNumber)(properties.rpoInMinutes)),errors.collect(cdk().propertyValidator("rtoInMinutes",cdk().validateNumber)(properties.rtoInMinutes)),errors.wrap('supplied properties not correct for "MultiRegionTargetsProperty"')}function convertCfnPolicyMultiRegionTargetsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnPolicyMultiRegionTargetsPropertyValidator(properties).assertSuccess(),{DisasterRecoveryApproach:cdk().stringToCloudFormation(properties.disasterRecoveryApproach),RpoInMinutes:cdk().numberToCloudFormation(properties.rpoInMinutes),RtoInMinutes:cdk().numberToCloudFormation(properties.rtoInMinutes)}):properties}function CfnPolicyMultiRegionTargetsPropertyFromCloudFormation(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("disasterRecoveryApproach","DisasterRecoveryApproach",properties.DisasterRecoveryApproach!=null?cfn_parse().FromCloudFormation.getString(properties.DisasterRecoveryApproach):void 0),ret.addPropertyResult("rpoInMinutes","RpoInMinutes",properties.RpoInMinutes!=null?cfn_parse().FromCloudFormation.getNumber(properties.RpoInMinutes):void 0),ret.addPropertyResult("rtoInMinutes","RtoInMinutes",properties.RtoInMinutes!=null?cfn_parse().FromCloudFormation.getNumber(properties.RtoInMinutes):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnPolicyDataRecoveryTargetsPropertyValidator(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("timeBetweenBackupsInMinutes",cdk().validateNumber)(properties.timeBetweenBackupsInMinutes)),errors.wrap('supplied properties not correct for "DataRecoveryTargetsProperty"')}function convertCfnPolicyDataRecoveryTargetsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnPolicyDataRecoveryTargetsPropertyValidator(properties).assertSuccess(),{TimeBetweenBackupsInMinutes:cdk().numberToCloudFormation(properties.timeBetweenBackupsInMinutes)}):properties}function CfnPolicyDataRecoveryTargetsPropertyFromCloudFormation(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("timeBetweenBackupsInMinutes","TimeBetweenBackupsInMinutes",properties.TimeBetweenBackupsInMinutes!=null?cfn_parse().FromCloudFormation.getNumber(properties.TimeBetweenBackupsInMinutes):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnPolicyPropsValidator(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("availabilitySlo",CfnPolicyAvailabilitySloPropertyValidator)(properties.availabilitySlo)),errors.collect(cdk().propertyValidator("dataRecovery",CfnPolicyDataRecoveryTargetsPropertyValidator)(properties.dataRecovery)),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("kmsKeyId",cdk().validateString)(properties.kmsKeyId)),errors.collect(cdk().propertyValidator("multiAz",CfnPolicyMultiAzTargetsPropertyValidator)(properties.multiAz)),errors.collect(cdk().propertyValidator("multiRegion",CfnPolicyMultiRegionTargetsPropertyValidator)(properties.multiRegion)),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 "CfnPolicyProps"')}function convertCfnPolicyPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnPolicyPropsValidator(properties).assertSuccess(),{AvailabilitySlo:convertCfnPolicyAvailabilitySloPropertyToCloudFormation(properties.availabilitySlo),DataRecovery:convertCfnPolicyDataRecoveryTargetsPropertyToCloudFormation(properties.dataRecovery),Description:cdk().stringToCloudFormation(properties.description),KmsKeyId:cdk().stringToCloudFormation(properties.kmsKeyId),MultiAz:convertCfnPolicyMultiAzTargetsPropertyToCloudFormation(properties.multiAz),MultiRegion:convertCfnPolicyMultiRegionTargetsPropertyToCloudFormation(properties.multiRegion),Name:cdk().stringToCloudFormation(properties.name),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnPolicyPropsFromCloudFormation(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("availabilitySlo","AvailabilitySlo",properties.AvailabilitySlo!=null?CfnPolicyAvailabilitySloPropertyFromCloudFormation(properties.AvailabilitySlo):void 0),ret.addPropertyResult("dataRecovery","DataRecovery",properties.DataRecovery!=null?CfnPolicyDataRecoveryTargetsPropertyFromCloudFormation(properties.DataRecovery):void 0),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("kmsKeyId","KmsKeyId",properties.KmsKeyId!=null?cfn_parse().FromCloudFormation.getString(properties.KmsKeyId):void 0),ret.addPropertyResult("multiAz","MultiAz",properties.MultiAz!=null?CfnPolicyMultiAzTargetsPropertyFromCloudFormation(properties.MultiAz):void 0),ret.addPropertyResult("multiRegion","MultiRegion",properties.MultiRegion!=null?CfnPolicyMultiRegionTargetsPropertyFromCloudFormation(properties.MultiRegion):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 CfnService extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_resiliencehubv2.CfnService",version:"2.260.0"};static CFN_RESOURCE_TYPE_NAME="AWS::ResilienceHubV2::Service";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnServicePropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnService(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 isCfnService(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnService.CFN_RESOURCE_TYPE_NAME}static arnForService(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_resiliencehubv2_IServiceRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForService),error}return resource.serviceRef.serviceArn}_assertions;_associatedSystems;cdkTagManager;_dependencyDiscovery;_description;_inputSources;_kmsKeyId;_name;_permissionModel;_policyArn;_regions;_reportConfiguration;_tags;cfnPropertyNames={assertions:"Assertions",associatedSystems:"AssociatedSystems",tags:"Tags",dependencyDiscovery:"DependencyDiscovery",description:"Description",inputSources:"InputSources",kmsKeyId:"KmsKeyId",name:"Name",permissionModel:"PermissionModel",policyArn:"PolicyArn",regions:"Regions",reportConfiguration:"ReportConfiguration"};constructor(scope,id,props){super(scope,id,{type:CfnService.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_resiliencehubv2_CfnServiceProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnService),error}cdk().requireProperty(props,"name",this),cdk().requireProperty(props,"regions",this),this._assertions=props.assertions,this._associatedSystems=props.associatedSystems,this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::ResilienceHubV2::Service",void 0,{tagPropertyName:"tags"}),this._dependencyDiscovery=props.dependencyDiscovery,this._description=props.description,this._inputSources=props.inputSources,this._kmsKeyId=props.kmsKeyId,this._name=props.name,this._permissionModel=props.permissionModel,this._policyArn=props.policyArn,this._regions=props.regions,this._reportConfiguration=props.reportConfiguration,this._tags=props.tags}get serviceRef(){return{serviceArn:this.ref}}get assertions(){return this._assertions}set assertions(value){cdk().traceProperty(this.node,"Assertions"),this._assertions=value}get associatedSystems(){return this._associatedSystems}set associatedSystems(value){cdk().traceProperty(this.node,"AssociatedSystems"),this._associatedSystems=value}get dependencyDiscovery(){return this._dependencyDiscovery}set dependencyDiscovery(value){cdk().traceProperty(this.node,"DependencyDiscovery"),this._dependencyDiscovery=value}get description(){return this._description}set description(value){cdk().traceProperty(this.node,"Description"),this._description=value}get inputSources(){return this._inputSources}set inputSources(value){cdk().traceProperty(this.node,"InputSources"),this._inputSources=value}get kmsKeyId(){return this._kmsKeyId}set kmsKeyId(value){cdk().traceProperty(this.node,"KmsKeyId"),this._kmsKeyId=value}get name(){return this._name}set name(value){cdk().traceProperty(this.node,"Name"),this._name=value}get permissionModel(){return this._permissionModel}set permissionModel(value){cdk().traceProperty(this.node,"PermissionModel"),this._permissionModel=value}get policyArn(){return this._policyArn}set policyArn(value){cdk().traceProperty(this.node,"PolicyArn"),this._policyArn=value}get regions(){return this._regions}set regions(value){cdk().traceProperty(this.node,"Regions"),this._regions=value}get reportConfiguration(){return this._reportConfiguration}set reportConfiguration(value){cdk().traceProperty(this.node,"ReportConfiguration"),this._reportConfiguration=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 attrEffectivePolicyValues(){return this.getAtt("EffectivePolicyValues")}get attrServiceArn(){return cdk().Token.asString(this.getAtt("ServiceArn",cdk().ResolutionTypeHint.STRING))}get attrUpdatedAt(){return cdk().Token.asString(this.getAtt("UpdatedAt",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{assertions:this._assertions,associatedSystems:this._associatedSystems,tags:this.cdkTagManager.renderTags(this._tags),dependencyDiscovery:this._dependencyDiscovery,description:this._description,inputSources:this._inputSources,kmsKeyId:this._kmsKeyId,name:this._name,permissionModel:this._permissionModel,policyArn:this._policyArn,regions:this._regions,reportConfiguration:this._reportConfiguration}}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",CfnService.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnServicePropsToCloudFormation(props)}}exports.CfnService=CfnService;function CfnServiceAssociatedSystemPropertyValidator(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("systemArn",cdk().requiredValidator)(properties.systemArn)),errors.collect(cdk().propertyValidator("systemArn",cdk().validateString)(properties.systemArn)),errors.collect(cdk().propertyValidator("userJourneyIds",cdk().listValidator(cdk().validateString))(properties.userJourneyIds)),errors.wrap('supplied properties not correct for "AssociatedSystemProperty"')}function convertCfnServiceAssociatedSystemPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnServiceAssociatedSystemPropertyValidator(properties).assertSuccess(),{SystemArn:cdk().stringToCloudFormation(properties.systemArn),UserJourneyIds:cdk().listMapper(cdk().stringToCloudFormation)(properties.userJourneyIds)}):properties}function CfnServiceAssociatedSystemPropertyFromCloudFormation(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("systemArn","SystemArn",properties.SystemArn!=null?cfn_parse().FromCloudFormation.getString(properties.SystemArn):void 0),ret.addPropertyResult("userJourneyIds","UserJourneyIds",properties.UserJourneyIds!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.UserJourneyIds):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnServiceCrossAccountRoleConfigurationPropertyValidator(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("crossAccountRoleArn",cdk().requiredValidator)(properties.crossAccountRoleArn)),errors.collect(cdk().propertyValidator("crossAccountRoleArn",cdk().validateString)(properties.crossAccountRoleArn)),errors.collect(cdk().propertyValidator("externalId",cdk().validateString)(properties.externalId)),errors.wrap('supplied properties not correct for "CrossAccountRoleConfigurationProperty"')}function convertCfnServiceCrossAccountRoleConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnServiceCrossAccountRoleConfigurationPropertyValidator(properties).assertSuccess(),{CrossAccountRoleArn:cdk().stringToCloudFormation(properties.crossAccountRoleArn),ExternalId:cdk().stringToCloudFormation(properties.externalId)}):properties}function CfnServiceCrossAccountRoleConfigurationPropertyFromCloudFormation(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("crossAccountRoleArn","CrossAccountRoleArn",properties.CrossAccountRoleArn!=null?cfn_parse().FromCloudFormation.getString(properties.CrossAccountRoleArn):void 0),ret.addPropertyResult("externalId","ExternalId",properties.ExternalId!=null?cfn_parse().FromCloudFormation.getString(properties.ExternalId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnServicePermissionModelPropertyValidator(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("crossAccountRoleArns",cdk().listValidator(CfnServiceCrossAccountRoleConfigurationPropertyValidator))(properties.crossAccountRoleArns)),errors.collect(cdk().propertyValidator("invokerRoleName",cdk().requiredValidator)(properties.invokerRoleName)),errors.collect(cdk().propertyValidator("invokerRoleName",cdk().validateString)(properties.invokerRoleName)),errors.wrap('supplied properties not correct for "PermissionModelProperty"')}function convertCfnServicePermissionModelPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnServicePermissionModelPropertyValidator(properties).assertSuccess(),{CrossAccountRoleArns:cdk().listMapper(convertCfnServiceCrossAccountRoleConfigurationPropertyToCloudFormation)(properties.crossAccountRoleArns),InvokerRoleName:cdk().stringToCloudFormation(properties.invokerRoleName)}):properties}function CfnServicePermissionModelPropertyFromCloudFormation(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("crossAccountRoleArns","CrossAccountRoleArns",properties.CrossAccountRoleArns!=null?cfn_parse().FromCloudFormation.getArray(CfnServiceCrossAccountRoleConfigurationPropertyFromCloudFormation)(properties.CrossAccountRoleArns):void 0),ret.addPropertyResult("invokerRoleName","InvokerRoleName",properties.InvokerRoleName!=null?cfn_parse().FromCloudFormation.getString(properties.InvokerRoleName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnServiceS3ReportOutputConfigurationPropertyValidator(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("bucketOwner",cdk().requiredValidator)(properties.bucketOwner)),errors.collect(cdk().propertyValidator("bucketOwner",cdk().validateString)(properties.bucketOwner)),errors.collect(cdk().propertyValidator("bucketPath",cdk().requiredValidator)(properties.bucketPath)),errors.collect(cdk().propertyValidator("bucketPath",cdk().validateString)(properties.bucketPath)),errors.wrap('supplied properties not correct for "S3ReportOutputConfigurationProperty"')}function convertCfnServiceS3ReportOutputConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnServiceS3ReportOutputConfigurationPropertyValidator(properties).assertSuccess(),{BucketOwner:cdk().stringToCloudFormation(properties.bucketOwner),BucketPath:cdk().stringToCloudFormation(properties.bucketPath)}):properties}function CfnServiceS3ReportOutputConfigurationPropertyFromCloudFormation(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("bucketOwner","BucketOwner",properties.BucketOwner!=null?cfn_parse().FromCloudFormation.getString(properties.BucketOwner):void 0),ret.addPropertyResult("bucketPath","BucketPath",properties.BucketPath!=null?cfn_parse().FromCloudFormation.getString(properties.BucketPath):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnServiceReportOutputConfigurationPropertyValidator(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("s3",cdk().requiredValidator)(properties.s3)),errors.collect(cdk().propertyValidator("s3",CfnServiceS3ReportOutputConfigurationPropertyValidator)(properties.s3)),errors.wrap('supplied properties not correct for "ReportOutputConfigurationProperty"')}function convertCfnServiceReportOutputConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnServiceReportOutputConfigurationPropertyValidator(properties).assertSuccess(),{S3:convertCfnServiceS3ReportOutputConfigurationPropertyToCloudFormation(properties.s3)}):properties}function CfnServiceReportOutputConfigurationPropertyFromCloudFormation(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("s3","S3",properties.S3!=null?CfnServiceS3ReportOutputConfigurationPropertyFromCloudFormation(properties.S3):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnServiceServiceReportConfigurationPropertyValidator(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("reportOutput",cdk().requiredValidator)(properties.reportOutput)),errors.collect(cdk().propertyValidator("reportOutput",cdk().listValidator(CfnServiceReportOutputConfigurationPropertyValidator))(properties.reportOutput)),errors.wrap('supplied properties not correct for "ServiceReportConfigurationProperty"')}function convertCfnServiceServiceReportConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnServiceServiceReportConfigurationPropertyValidator(properties).assertSuccess(),{ReportOutput:cdk().listMapper(convertCfnServiceReportOutputConfigurationPropertyToCloudFormation)(properties.reportOutput)}):properties}function CfnServiceServiceReportConfigurationPropertyFromCloudFormation(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("reportOutput","ReportOutput",properties.ReportOutput!=null?cfn_parse().FromCloudFormation.getArray(CfnServiceReportOutputConfigurationPropertyFromCloudFormation)(properties.ReportOutput):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnServiceResourceTagPropertyValidator(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("key",cdk().requiredValidator)(properties.key)),errors.collect(cdk().propertyValidator("key",cdk().validateString)(properties.key)),errors.collect(cdk().propertyValidator("values",cdk().requiredValidator)(properties.values)),errors.collect(cdk().propertyValidator("values",cdk().listValidator(cdk().validateString))(properties.values)),errors.wrap('supplied properties not correct for "ResourceTagProperty"')}function convertCfnServiceResourceTagPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnServiceResourceTagPropertyValidator(properties).assertSuccess(),{Key:cdk().stringToCloudFormation(properties.key),Values:cdk().listMapper(cdk().stringToCloudFormation)(properties.values)}):properties}function CfnServiceResourceTagPropertyFromCloudFormation(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("key","Key",properties.Key!=null?cfn_parse().FromCloudFormation.getString(properties.Key):void 0),ret.addPropertyResult("values","Values",properties.Values!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Values):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnServiceEksSourcePropertyValidator(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("clusterArn",cdk().requiredValidator)(properties.clusterArn)),errors.collect(cdk().propertyValidator("clusterArn",cdk().validateString)(properties.clusterArn)),errors.collect(cdk().propertyValidator("namespaces",cdk().requiredValidator)(properties.namespaces)),errors.collect(cdk().propertyValidator("namespaces",cdk().listValidator(cdk().validateString))(properties.namespaces)),errors.wrap('supplied properties not correct for "EksSourceProperty"')}function convertCfnServiceEksSourcePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnServiceEksSourcePropertyValidator(properties).assertSuccess(),{ClusterArn:cdk().stringToCloudFormation(properties.clusterArn),Namespaces:cdk().listMapper(cdk().stringToCloudFormation)(properties.namespaces)}):properties}function CfnServiceEksSourcePropertyFromCloudFormation(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("clusterArn","ClusterArn",properties.ClusterArn!=null?cfn_parse().FromCloudFormation.getString(properties.ClusterArn):void 0),ret.addPropertyResult("namespaces","Namespaces",properties.Namespaces!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Namespaces):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnServiceResourceConfigurationPropertyValidator(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("cfnStackArn",cdk().validateString)(properties.cfnStackArn)),errors.collect(cdk().propertyValidator("designFileS3Url",cdk().validateString)(properties.designFileS3Url)),errors.collect(cdk().propertyValidator("eks",CfnServiceEksSourcePropertyValidator)(properties.eks)),errors.collect(cdk().propertyValidator("resourceTags",cdk().listValidator(CfnServiceResourceTagPropertyValidator))(properties.resourceTags)),errors.collect(cdk().propertyValidator("tfStateFileUrl",cdk().validateString)(properties.tfStateFileUrl)),errors.wrap('supplied properties not correct for "ResourceConfigurationProperty"')}function convertCfnServiceResourceConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnServiceResourceConfigurationPropertyValidator(properties).assertSuccess(),{CfnStackArn:cdk().stringToCloudFormation(properties.cfnStackArn),DesignFileS3Url:cdk().stringToCloudFormation(properties.designFileS3Url),Eks:convertCfnServiceEksSourcePropertyToCloudFormation(properties.eks),ResourceTags:cdk().listMapper(convertCfnServiceResourceTagPropertyToCloudFormation)(properties.resourceTags),TfStateFileUrl:cdk().stringToCloudFormation(properties.tfStateFileUrl)}):properties}function CfnServiceResourceConfigurationPropertyFromCloudFormation(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("cfnStackArn","CfnStackArn",properties.CfnStackArn!=null?cfn_parse().FromCloudFormation.getString(properties.CfnStackArn):void 0),ret.addPropertyResult("designFileS3Url","DesignFileS3Url",properties.DesignFileS3Url!=null?cfn_parse().FromCloudFormation.getString(properties.DesignFileS3Url):void 0),ret.addPropertyResult("eks","Eks",properties.Eks!=null?CfnServiceEksSourcePropertyFromCloudFormation(properties.Eks):void 0),ret.addPropertyResult("resourceTags","ResourceTags",properties.ResourceTags!=null?cfn_parse().FromCloudFormation.getArray(CfnServiceResourceTagPropertyFromCloudFormation)(properties.ResourceTags):void 0),ret.addPropertyResult("tfStateFileUrl","TfStateFileUrl",properties.TfStateFileUrl!=null?cfn_parse().FromCloudFormation.getString(properties.TfStateFileUrl):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnServiceInputSourceDefinitionPropertyValidator(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("resourceConfiguration",cdk().requiredValidator)(properties.resourceConfiguration)),errors.collect(cdk().propertyValidator("resourceConfiguration",CfnServiceResourceConfigurationPropertyValidator)(properties.resourceConfiguration)),errors.wrap('supplied properties not correct for "InputSourceDefinitionProperty"')}function convertCfnServiceInputSourceDefinitionPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnServiceInputSourceDefinitionPropertyValidator(properties).assertSuccess(),{ResourceConfiguration:convertCfnServiceResourceConfigurationPropertyToCloudFormation(properties.resourceConfiguration)}):properties}function CfnServiceInputSourceDefinitionPropertyFromCloudFormation(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("resourceConfiguration","ResourceConfiguration",properties.ResourceConfiguration!=null?CfnServiceResourceConfigurationPropertyFromCloudFormation(properties.ResourceConfiguration):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnServiceAssertionDefinitionPropertyValidator(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("text",cdk().requiredValidator)(properties.text)),errors.collect(cdk().propertyValidator("text",cdk().validateString)(properties.text)),errors.wrap('supplied properties not correct for "AssertionDefinitionProperty"')}function convertCfnServiceAssertionDefinitionPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnServiceAssertionDefinitionPropertyValidator(properties).assertSuccess(),{Text:cdk().stringToCloudFormation(properties.text)}):properties}function CfnServiceAssertionDefinitionPropertyFromCloudFormation(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("text","Text",properties.Text!=null?cfn_parse().FromCloudFormation.getString(properties.Text):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnServiceSloSourcePropertyValidator(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("policyName",cdk().validateString)(properties.policyName)),errors.collect(cdk().propertyValidator("value",cdk().validateNumber)(properties.value)),errors.wrap('supplied properties not correct for "SloSourceProperty"')}function convertCfnServiceSloSourcePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnServiceSloSourcePropertyValidator(properties).assertSuccess(),{PolicyName:cdk().stringToCloudFormation(properties.policyName),Value:cdk().numberToCloudFormation(properties.value)}):properties}function CfnServiceSloSourcePropertyFromCloudFormation(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("policyName","PolicyName",properties.PolicyName!=null?cfn_parse().FromCloudFormation.getString(properties.PolicyName):void 0),ret.addPropertyResult("value","Value",properties.Value!=null?cfn_parse().FromCloudFormation.getNumber(properties.Value):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnServiceTargetSourcePropertyValidator(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("policyName",cdk().validateString)(properties.policyName)),errors.collect(cdk().propertyValidator("value",cdk().validateNumber)(properties.value)),errors.wrap('supplied properties not correct for "TargetSourceProperty"')}function convertCfnServiceTargetSourcePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnServiceTargetSourcePropertyValidator(properties).assertSuccess(),{PolicyName:cdk().stringToCloudFormation(properties.policyName),Value:cdk().numberToCloudFormation(properties.value)}):properties}function CfnServiceTargetSourcePropertyFromCloudFormation(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("policyName","PolicyName",properties.PolicyName!=null?cfn_parse().FromCloudFormation.getString(properties.PolicyName):void 0),ret.addPropertyResult("value","Value",properties.Value!=null?cfn_parse().FromCloudFormation.getNumber(properties.Value):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnServiceDisasterRecoverySourcePropertyValidator(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("policyName",cdk().validateString)(properties.policyName)),errors.collect(cdk().propertyValidator("value",cdk().validateString)(properties.value)),errors.wrap('supplied properties not correct for "DisasterRecoverySourceProperty"')}function convertCfnServiceDisasterRecoverySourcePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnServiceDisasterRecoverySourcePropertyValidator(properties).assertSuccess(),{PolicyName:cdk().stringToCloudFormation(properties.policyName),Value:cdk().stringToCloudFormation(properties.value)}):properties}function CfnServiceDisasterRecoverySourcePropertyFromCloudFormation(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("policyName","PolicyName",properties.PolicyName!=null?cfn_parse().FromCloudFormation.getString(properties.PolicyName):void 0),ret.addPropertyResult("value","Value",properties.Value!=null?cfn_parse().FromCloudFormation.getString(properties.Value):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnServiceEffectivePolicyValuesPropertyValidator(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("availabilitySlo",CfnServiceSloSourcePropertyValidator)(properties.availabilitySlo)),errors.collect(cdk().propertyValidator("multiAzDrApproach",CfnServiceDisasterRecoverySourcePropertyValidator)(properties.multiAzDrApproach)),errors.collect(cdk().propertyValidator("multiAzRpo",CfnSe