2 lines
34 KiB
JavaScript
2 lines
34 KiB
JavaScript
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnResourceSet=exports.CfnRecoveryGroup=exports.CfnReadinessCheck=exports.CfnCell=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var cdk=()=>{var tmp=require("../../core/lib");return cdk=()=>tmp,tmp},cfn_parse=()=>{var tmp=require("../../core/lib/helpers-internal");return cfn_parse=()=>tmp,tmp},cdk_errors=()=>{var tmp=require("../../core/lib/errors");return cdk_errors=()=>tmp,tmp};class CfnCell extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_route53recoveryreadiness.CfnCell",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Route53RecoveryReadiness::Cell";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnCellPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnCell(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 isCfnCell(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnCell.CFN_RESOURCE_TYPE_NAME}static fromCellArn(scope,id,arn){class Import extends cdk().Resource{cellRef;constructor(scope2,id2,arn2){super(scope2,id2,{environmentFromArn:arn2});const variables=new(cfn_parse()).TemplateString("arn:${Partition}:route53-recovery-readiness::${Account}:cell/${CellName}").parse(arn2);this.cellRef={cellName:variables.CellName,cellArn:arn2}}}return new Import(scope,id,arn)}static fromCellName(scope,id,cellName){class Import extends cdk().Resource{cellRef;constructor(scope2,id2,cellName2){const arn=new(cfn_parse()).TemplateString("arn:${Partition}:route53-recovery-readiness::${Account}:cell/${CellName}").interpolate({Partition:cdk().Stack.of(scope2).partition,Region:cdk().Stack.of(scope2).region,Account:cdk().Stack.of(scope2).account,CellName:cellName2});super(scope2,id2,{environmentFromArn:arn}),this.cellRef={cellName:cellName2,cellArn:arn}}}return new Import(scope,id,cellName)}static arnForCell(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_route53recoveryreadiness_ICellRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForCell),error}return resource.cellRef.cellArn}_cellName;_cells;tags;_tagsRaw;cfnPropertyNames={cellName:"CellName",cells:"Cells",tags:"Tags"};constructor(scope,id,props={}){super(scope,id,{type:CfnCell.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_route53recoveryreadiness_CfnCellProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnCell),error}this._cellName=props.cellName,this._cells=props.cells,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::Route53RecoveryReadiness::Cell",props.tags,{tagPropertyName:"tags"}),this._tagsRaw=props.tags}get cellRef(){return{cellName:this.ref,cellArn:this.attrCellArn}}get cellName(){return this._cellName}set cellName(value){cdk().traceProperty(this.node,"CellName"),this._cellName=value}get cells(){return this._cells}set cells(value){cdk().traceProperty(this.node,"Cells"),this._cells=value}get tagsRaw(){return this._tagsRaw}set tagsRaw(value){cdk().traceProperty(this.node,"Tags"),this._tagsRaw=value}get attrCellArn(){return cdk().Token.asString(this.getAtt("CellArn",cdk().ResolutionTypeHint.STRING))}get attrParentReadinessScopes(){return cdk().Token.asList(this.getAtt("ParentReadinessScopes",cdk().ResolutionTypeHint.STRING_LIST))}get cfnProperties(){return{cellName:this._cellName,cells:this._cells,tags:this.tags.renderTags()}}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",CfnCell.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnCellPropsToCloudFormation(props)}}exports.CfnCell=CfnCell;function CfnCellPropsValidator(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("cellName",cdk().validateString)(properties.cellName)),errors.collect(cdk().propertyValidator("cells",cdk().listValidator(cdk().validateString))(properties.cells)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnCellProps"')}function convertCfnCellPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnCellPropsValidator(properties).assertSuccess(),{CellName:cdk().stringToCloudFormation(properties.cellName),Cells:cdk().listMapper(cdk().stringToCloudFormation)(properties.cells),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnCellPropsFromCloudFormation(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("cellName","CellName",properties.CellName!=null?cfn_parse().FromCloudFormation.getString(properties.CellName):void 0),ret.addPropertyResult("cells","Cells",properties.Cells!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Cells):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 CfnReadinessCheck extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_route53recoveryreadiness.CfnReadinessCheck",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Route53RecoveryReadiness::ReadinessCheck";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnReadinessCheckPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnReadinessCheck(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 isCfnReadinessCheck(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnReadinessCheck.CFN_RESOURCE_TYPE_NAME}static arnForReadinessCheck(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_route53recoveryreadiness_IReadinessCheckRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForReadinessCheck),error}return resource.readinessCheckRef.readinessCheckArn}_readinessCheckName;_resourceSetName;tags;_tagsRaw;cfnPropertyNames={readinessCheckName:"ReadinessCheckName",resourceSetName:"ResourceSetName",tags:"Tags"};constructor(scope,id,props={}){super(scope,id,{type:CfnReadinessCheck.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_route53recoveryreadiness_CfnReadinessCheckProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnReadinessCheck),error}this._readinessCheckName=props.readinessCheckName,this._resourceSetName=props.resourceSetName,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::Route53RecoveryReadiness::ReadinessCheck",props.tags,{tagPropertyName:"tags"}),this._tagsRaw=props.tags}get readinessCheckRef(){return{readinessCheckName:this.ref,readinessCheckArn:this.attrReadinessCheckArn}}get readinessCheckName(){return this._readinessCheckName}set readinessCheckName(value){cdk().traceProperty(this.node,"ReadinessCheckName"),this._readinessCheckName=value}get resourceSetName(){return this._resourceSetName}set resourceSetName(value){cdk().traceProperty(this.node,"ResourceSetName"),this._resourceSetName=value}get tagsRaw(){return this._tagsRaw}set tagsRaw(value){cdk().traceProperty(this.node,"Tags"),this._tagsRaw=value}get attrReadinessCheckArn(){return cdk().Token.asString(this.getAtt("ReadinessCheckArn",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{readinessCheckName:this._readinessCheckName,resourceSetName:this._resourceSetName,tags:this.tags.renderTags()}}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",CfnReadinessCheck.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnReadinessCheckPropsToCloudFormation(props)}}exports.CfnReadinessCheck=CfnReadinessCheck;function CfnReadinessCheckPropsValidator(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("readinessCheckName",cdk().validateString)(properties.readinessCheckName)),errors.collect(cdk().propertyValidator("resourceSetName",cdk().validateString)(properties.resourceSetName)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnReadinessCheckProps"')}function convertCfnReadinessCheckPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnReadinessCheckPropsValidator(properties).assertSuccess(),{ReadinessCheckName:cdk().stringToCloudFormation(properties.readinessCheckName),ResourceSetName:cdk().stringToCloudFormation(properties.resourceSetName),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnReadinessCheckPropsFromCloudFormation(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("readinessCheckName","ReadinessCheckName",properties.ReadinessCheckName!=null?cfn_parse().FromCloudFormation.getString(properties.ReadinessCheckName):void 0),ret.addPropertyResult("resourceSetName","ResourceSetName",properties.ResourceSetName!=null?cfn_parse().FromCloudFormation.getString(properties.ResourceSetName):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 CfnRecoveryGroup extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_route53recoveryreadiness.CfnRecoveryGroup",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Route53RecoveryReadiness::RecoveryGroup";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnRecoveryGroupPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnRecoveryGroup(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 isCfnRecoveryGroup(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnRecoveryGroup.CFN_RESOURCE_TYPE_NAME}static arnForRecoveryGroup(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_route53recoveryreadiness_IRecoveryGroupRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForRecoveryGroup),error}return resource.recoveryGroupRef.recoveryGroupArn}_cells;_recoveryGroupName;tags;_tagsRaw;cfnPropertyNames={cells:"Cells",recoveryGroupName:"RecoveryGroupName",tags:"Tags"};constructor(scope,id,props={}){super(scope,id,{type:CfnRecoveryGroup.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_route53recoveryreadiness_CfnRecoveryGroupProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnRecoveryGroup),error}this._cells=props.cells,this._recoveryGroupName=props.recoveryGroupName,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::Route53RecoveryReadiness::RecoveryGroup",props.tags,{tagPropertyName:"tags"}),this._tagsRaw=props.tags}get recoveryGroupRef(){return{recoveryGroupName:this.ref,recoveryGroupArn:this.attrRecoveryGroupArn}}get cells(){return this._cells}set cells(value){cdk().traceProperty(this.node,"Cells"),this._cells=value}get recoveryGroupName(){return this._recoveryGroupName}set recoveryGroupName(value){cdk().traceProperty(this.node,"RecoveryGroupName"),this._recoveryGroupName=value}get tagsRaw(){return this._tagsRaw}set tagsRaw(value){cdk().traceProperty(this.node,"Tags"),this._tagsRaw=value}get attrRecoveryGroupArn(){return cdk().Token.asString(this.getAtt("RecoveryGroupArn",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{cells:this._cells,recoveryGroupName:this._recoveryGroupName,tags:this.tags.renderTags()}}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",CfnRecoveryGroup.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnRecoveryGroupPropsToCloudFormation(props)}}exports.CfnRecoveryGroup=CfnRecoveryGroup;function CfnRecoveryGroupPropsValidator(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("cells",cdk().listValidator(cdk().validateString))(properties.cells)),errors.collect(cdk().propertyValidator("recoveryGroupName",cdk().validateString)(properties.recoveryGroupName)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnRecoveryGroupProps"')}function convertCfnRecoveryGroupPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnRecoveryGroupPropsValidator(properties).assertSuccess(),{Cells:cdk().listMapper(cdk().stringToCloudFormation)(properties.cells),RecoveryGroupName:cdk().stringToCloudFormation(properties.recoveryGroupName),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnRecoveryGroupPropsFromCloudFormation(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("cells","Cells",properties.Cells!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Cells):void 0),ret.addPropertyResult("recoveryGroupName","RecoveryGroupName",properties.RecoveryGroupName!=null?cfn_parse().FromCloudFormation.getString(properties.RecoveryGroupName):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 CfnResourceSet extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_route53recoveryreadiness.CfnResourceSet",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Route53RecoveryReadiness::ResourceSet";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnResourceSetPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnResourceSet(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 isCfnResourceSet(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnResourceSet.CFN_RESOURCE_TYPE_NAME}static arnForResourceSet(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_route53recoveryreadiness_IResourceSetRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForResourceSet),error}return resource.resourceSetRef.resourceSetArn}_resources;_resourceSetName;_resourceSetType;tags;_tagsRaw;cfnPropertyNames={resources:"Resources",resourceSetName:"ResourceSetName",resourceSetType:"ResourceSetType",tags:"Tags"};constructor(scope,id,props){super(scope,id,{type:CfnResourceSet.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_route53recoveryreadiness_CfnResourceSetProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnResourceSet),error}cdk().requireProperty(props,"resources",this),cdk().requireProperty(props,"resourceSetType",this),this._resources=props.resources,this._resourceSetName=props.resourceSetName,this._resourceSetType=props.resourceSetType,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::Route53RecoveryReadiness::ResourceSet",props.tags,{tagPropertyName:"tags"}),this._tagsRaw=props.tags}get resourceSetRef(){return{resourceSetName:this.ref,resourceSetArn:this.attrResourceSetArn}}get resources(){return this._resources}set resources(value){cdk().traceProperty(this.node,"Resources"),this._resources=value}get resourceSetName(){return this._resourceSetName}set resourceSetName(value){cdk().traceProperty(this.node,"ResourceSetName"),this._resourceSetName=value}get resourceSetType(){return this._resourceSetType}set resourceSetType(value){cdk().traceProperty(this.node,"ResourceSetType"),this._resourceSetType=value}get tagsRaw(){return this._tagsRaw}set tagsRaw(value){cdk().traceProperty(this.node,"Tags"),this._tagsRaw=value}get attrResourceSetArn(){return cdk().Token.asString(this.getAtt("ResourceSetArn",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{resources:this._resources,resourceSetName:this._resourceSetName,resourceSetType:this._resourceSetType,tags:this.tags.renderTags()}}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",CfnResourceSet.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnResourceSetPropsToCloudFormation(props)}}exports.CfnResourceSet=CfnResourceSet;function CfnResourceSetR53ResourceRecordPropertyValidator(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("domainName",cdk().validateString)(properties.domainName)),errors.collect(cdk().propertyValidator("recordSetId",cdk().validateString)(properties.recordSetId)),errors.wrap('supplied properties not correct for "R53ResourceRecordProperty"')}function convertCfnResourceSetR53ResourceRecordPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnResourceSetR53ResourceRecordPropertyValidator(properties).assertSuccess(),{DomainName:cdk().stringToCloudFormation(properties.domainName),RecordSetId:cdk().stringToCloudFormation(properties.recordSetId)}):properties}function CfnResourceSetR53ResourceRecordPropertyFromCloudFormation(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("domainName","DomainName",properties.DomainName!=null?cfn_parse().FromCloudFormation.getString(properties.DomainName):void 0),ret.addPropertyResult("recordSetId","RecordSetId",properties.RecordSetId!=null?cfn_parse().FromCloudFormation.getString(properties.RecordSetId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnResourceSetNLBResourcePropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("arn",cdk().validateString)(properties.arn)),errors.wrap('supplied properties not correct for "NLBResourceProperty"')}function convertCfnResourceSetNLBResourcePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnResourceSetNLBResourcePropertyValidator(properties).assertSuccess(),{Arn:cdk().stringToCloudFormation(properties.arn)}):properties}function CfnResourceSetNLBResourcePropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("arn","Arn",properties.Arn!=null?cfn_parse().FromCloudFormation.getString(properties.Arn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnResourceSetTargetResourcePropertyValidator(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("nlbResource",CfnResourceSetNLBResourcePropertyValidator)(properties.nlbResource)),errors.collect(cdk().propertyValidator("r53Resource",CfnResourceSetR53ResourceRecordPropertyValidator)(properties.r53Resource)),errors.wrap('supplied properties not correct for "TargetResourceProperty"')}function convertCfnResourceSetTargetResourcePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnResourceSetTargetResourcePropertyValidator(properties).assertSuccess(),{NLBResource:convertCfnResourceSetNLBResourcePropertyToCloudFormation(properties.nlbResource),R53Resource:convertCfnResourceSetR53ResourceRecordPropertyToCloudFormation(properties.r53Resource)}):properties}function CfnResourceSetTargetResourcePropertyFromCloudFormation(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("nlbResource","NLBResource",properties.NLBResource!=null?CfnResourceSetNLBResourcePropertyFromCloudFormation(properties.NLBResource):void 0),ret.addPropertyResult("r53Resource","R53Resource",properties.R53Resource!=null?CfnResourceSetR53ResourceRecordPropertyFromCloudFormation(properties.R53Resource):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnResourceSetDNSTargetResourcePropertyValidator(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("domainName",cdk().validateString)(properties.domainName)),errors.collect(cdk().propertyValidator("hostedZoneArn",cdk().validateString)(properties.hostedZoneArn)),errors.collect(cdk().propertyValidator("recordSetId",cdk().validateString)(properties.recordSetId)),errors.collect(cdk().propertyValidator("recordType",cdk().validateString)(properties.recordType)),errors.collect(cdk().propertyValidator("targetResource",CfnResourceSetTargetResourcePropertyValidator)(properties.targetResource)),errors.wrap('supplied properties not correct for "DNSTargetResourceProperty"')}function convertCfnResourceSetDNSTargetResourcePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnResourceSetDNSTargetResourcePropertyValidator(properties).assertSuccess(),{DomainName:cdk().stringToCloudFormation(properties.domainName),HostedZoneArn:cdk().stringToCloudFormation(properties.hostedZoneArn),RecordSetId:cdk().stringToCloudFormation(properties.recordSetId),RecordType:cdk().stringToCloudFormation(properties.recordType),TargetResource:convertCfnResourceSetTargetResourcePropertyToCloudFormation(properties.targetResource)}):properties}function CfnResourceSetDNSTargetResourcePropertyFromCloudFormation(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("domainName","DomainName",properties.DomainName!=null?cfn_parse().FromCloudFormation.getString(properties.DomainName):void 0),ret.addPropertyResult("hostedZoneArn","HostedZoneArn",properties.HostedZoneArn!=null?cfn_parse().FromCloudFormation.getString(properties.HostedZoneArn):void 0),ret.addPropertyResult("recordSetId","RecordSetId",properties.RecordSetId!=null?cfn_parse().FromCloudFormation.getString(properties.RecordSetId):void 0),ret.addPropertyResult("recordType","RecordType",properties.RecordType!=null?cfn_parse().FromCloudFormation.getString(properties.RecordType):void 0),ret.addPropertyResult("targetResource","TargetResource",properties.TargetResource!=null?CfnResourceSetTargetResourcePropertyFromCloudFormation(properties.TargetResource):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnResourceSetResourcePropertyValidator(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("componentId",cdk().validateString)(properties.componentId)),errors.collect(cdk().propertyValidator("dnsTargetResource",CfnResourceSetDNSTargetResourcePropertyValidator)(properties.dnsTargetResource)),errors.collect(cdk().propertyValidator("readinessScopes",cdk().listValidator(cdk().validateString))(properties.readinessScopes)),errors.collect(cdk().propertyValidator("resourceArn",cdk().validateString)(properties.resourceArn)),errors.wrap('supplied properties not correct for "ResourceProperty"')}function convertCfnResourceSetResourcePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnResourceSetResourcePropertyValidator(properties).assertSuccess(),{ComponentId:cdk().stringToCloudFormation(properties.componentId),DnsTargetResource:convertCfnResourceSetDNSTargetResourcePropertyToCloudFormation(properties.dnsTargetResource),ReadinessScopes:cdk().listMapper(cdk().stringToCloudFormation)(properties.readinessScopes),ResourceArn:cdk().stringToCloudFormation(properties.resourceArn)}):properties}function CfnResourceSetResourcePropertyFromCloudFormation(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("componentId","ComponentId",properties.ComponentId!=null?cfn_parse().FromCloudFormation.getString(properties.ComponentId):void 0),ret.addPropertyResult("dnsTargetResource","DnsTargetResource",properties.DnsTargetResource!=null?CfnResourceSetDNSTargetResourcePropertyFromCloudFormation(properties.DnsTargetResource):void 0),ret.addPropertyResult("readinessScopes","ReadinessScopes",properties.ReadinessScopes!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.ReadinessScopes):void 0),ret.addPropertyResult("resourceArn","ResourceArn",properties.ResourceArn!=null?cfn_parse().FromCloudFormation.getString(properties.ResourceArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnResourceSetPropsValidator(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("resourceSetName",cdk().validateString)(properties.resourceSetName)),errors.collect(cdk().propertyValidator("resourceSetType",cdk().requiredValidator)(properties.resourceSetType)),errors.collect(cdk().propertyValidator("resourceSetType",cdk().validateString)(properties.resourceSetType)),errors.collect(cdk().propertyValidator("resources",cdk().requiredValidator)(properties.resources)),errors.collect(cdk().propertyValidator("resources",cdk().listValidator(CfnResourceSetResourcePropertyValidator))(properties.resources)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnResourceSetProps"')}function convertCfnResourceSetPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnResourceSetPropsValidator(properties).assertSuccess(),{ResourceSetName:cdk().stringToCloudFormation(properties.resourceSetName),ResourceSetType:cdk().stringToCloudFormation(properties.resourceSetType),Resources:cdk().listMapper(convertCfnResourceSetResourcePropertyToCloudFormation)(properties.resources),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnResourceSetPropsFromCloudFormation(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("resources","Resources",properties.Resources!=null?cfn_parse().FromCloudFormation.getArray(CfnResourceSetResourcePropertyFromCloudFormation)(properties.Resources):void 0),ret.addPropertyResult("resourceSetName","ResourceSetName",properties.ResourceSetName!=null?cfn_parse().FromCloudFormation.getString(properties.ResourceSetName):void 0),ret.addPropertyResult("resourceSetType","ResourceSetType",properties.ResourceSetType!=null?cfn_parse().FromCloudFormation.getString(properties.ResourceSetType):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}
|