aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
1 lines • 67.4 kB
JavaScript
"use strict";var _a,_b,_c,_d,_e,_f,_g;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnRecordSetGroup=exports.CfnRecordSet=exports.CfnKeySigningKey=exports.CfnHostedZone=exports.CfnHealthCheck=exports.CfnDNSSEC=exports.CfnCidrCollection=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),cdk=require("../../core"),cfn_parse=require("../../core/lib/helpers-internal");function CfnCidrCollectionPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("locations",cdk.listValidator(CfnCidrCollection_LocationPropertyValidator))(properties.locations)),errors.collect(cdk.propertyValidator("name",cdk.requiredValidator)(properties.name)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.wrap('supplied properties not correct for "CfnCidrCollectionProps"')}function cfnCidrCollectionPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnCidrCollectionPropsValidator(properties).assertSuccess(),{Name:cdk.stringToCloudFormation(properties.name),Locations:cdk.listMapper(cfnCidrCollectionLocationPropertyToCloudFormation)(properties.locations)}):properties}function CfnCidrCollectionPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("locations","Locations",properties.Locations!=null?cfn_parse.FromCloudFormation.getArray(CfnCidrCollectionLocationPropertyFromCloudFormation)(properties.Locations):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnCidrCollection extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnCidrCollection.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_route53_CfnCidrCollectionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnCidrCollection),error}cdk.requireProperty(props,"name",this),this.attrArn=cdk.Token.asString(this.getAtt("Arn",cdk.ResolutionTypeHint.STRING)),this.attrId=cdk.Token.asString(this.getAtt("Id",cdk.ResolutionTypeHint.STRING)),this.name=props.name,this.locations=props.locations}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnCidrCollectionPropsFromCloudFormation(resourceProperties),ret=new CfnCidrCollection(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}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",CfnCidrCollection.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{name:this.name,locations:this.locations}}renderProperties(props){return cfnCidrCollectionPropsToCloudFormation(props)}}exports.CfnCidrCollection=CfnCidrCollection,_a=JSII_RTTI_SYMBOL_1,CfnCidrCollection[_a]={fqn:"aws-cdk-lib.aws_route53.CfnCidrCollection",version:"2.70.0"},CfnCidrCollection.CFN_RESOURCE_TYPE_NAME="AWS::Route53::CidrCollection";function CfnCidrCollection_LocationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("cidrList",cdk.requiredValidator)(properties.cidrList)),errors.collect(cdk.propertyValidator("cidrList",cdk.listValidator(cdk.validateString))(properties.cidrList)),errors.collect(cdk.propertyValidator("locationName",cdk.requiredValidator)(properties.locationName)),errors.collect(cdk.propertyValidator("locationName",cdk.validateString)(properties.locationName)),errors.wrap('supplied properties not correct for "LocationProperty"')}function cfnCidrCollectionLocationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnCidrCollection_LocationPropertyValidator(properties).assertSuccess(),{CidrList:cdk.listMapper(cdk.stringToCloudFormation)(properties.cidrList),LocationName:cdk.stringToCloudFormation(properties.locationName)}):properties}function CfnCidrCollectionLocationPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("cidrList","CidrList",cfn_parse.FromCloudFormation.getStringArray(properties.CidrList)),ret.addPropertyResult("locationName","LocationName",cfn_parse.FromCloudFormation.getString(properties.LocationName)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDNSSECPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("hostedZoneId",cdk.requiredValidator)(properties.hostedZoneId)),errors.collect(cdk.propertyValidator("hostedZoneId",cdk.validateString)(properties.hostedZoneId)),errors.wrap('supplied properties not correct for "CfnDNSSECProps"')}function cfnDNSSECPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDNSSECPropsValidator(properties).assertSuccess(),{HostedZoneId:cdk.stringToCloudFormation(properties.hostedZoneId)}):properties}function CfnDNSSECPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("hostedZoneId","HostedZoneId",cfn_parse.FromCloudFormation.getString(properties.HostedZoneId)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnDNSSEC extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnDNSSEC.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_route53_CfnDNSSECProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnDNSSEC),error}cdk.requireProperty(props,"hostedZoneId",this),this.hostedZoneId=props.hostedZoneId}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnDNSSECPropsFromCloudFormation(resourceProperties),ret=new CfnDNSSEC(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}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",CfnDNSSEC.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{hostedZoneId:this.hostedZoneId}}renderProperties(props){return cfnDNSSECPropsToCloudFormation(props)}}exports.CfnDNSSEC=CfnDNSSEC,_b=JSII_RTTI_SYMBOL_1,CfnDNSSEC[_b]={fqn:"aws-cdk-lib.aws_route53.CfnDNSSEC",version:"2.70.0"},CfnDNSSEC.CFN_RESOURCE_TYPE_NAME="AWS::Route53::DNSSEC";function CfnHealthCheckPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("healthCheckConfig",cdk.requiredValidator)(properties.healthCheckConfig)),errors.collect(cdk.propertyValidator("healthCheckConfig",CfnHealthCheck_HealthCheckConfigPropertyValidator)(properties.healthCheckConfig)),errors.collect(cdk.propertyValidator("healthCheckTags",cdk.listValidator(CfnHealthCheck_HealthCheckTagPropertyValidator))(properties.healthCheckTags)),errors.wrap('supplied properties not correct for "CfnHealthCheckProps"')}function cfnHealthCheckPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnHealthCheckPropsValidator(properties).assertSuccess(),{HealthCheckConfig:cfnHealthCheckHealthCheckConfigPropertyToCloudFormation(properties.healthCheckConfig),HealthCheckTags:cdk.listMapper(cfnHealthCheckHealthCheckTagPropertyToCloudFormation)(properties.healthCheckTags)}):properties}function CfnHealthCheckPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("healthCheckConfig","HealthCheckConfig",CfnHealthCheckHealthCheckConfigPropertyFromCloudFormation(properties.HealthCheckConfig)),ret.addPropertyResult("healthCheckTags","HealthCheckTags",properties.HealthCheckTags!=null?cfn_parse.FromCloudFormation.getArray(CfnHealthCheckHealthCheckTagPropertyFromCloudFormation)(properties.HealthCheckTags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnHealthCheck extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnHealthCheck.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_route53_CfnHealthCheckProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnHealthCheck),error}cdk.requireProperty(props,"healthCheckConfig",this),this.attrHealthCheckId=cdk.Token.asString(this.getAtt("HealthCheckId",cdk.ResolutionTypeHint.STRING)),this.healthCheckConfig=props.healthCheckConfig,this.healthCheckTags=props.healthCheckTags}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnHealthCheckPropsFromCloudFormation(resourceProperties),ret=new CfnHealthCheck(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}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",CfnHealthCheck.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{healthCheckConfig:this.healthCheckConfig,healthCheckTags:this.healthCheckTags}}renderProperties(props){return cfnHealthCheckPropsToCloudFormation(props)}}exports.CfnHealthCheck=CfnHealthCheck,_c=JSII_RTTI_SYMBOL_1,CfnHealthCheck[_c]={fqn:"aws-cdk-lib.aws_route53.CfnHealthCheck",version:"2.70.0"},CfnHealthCheck.CFN_RESOURCE_TYPE_NAME="AWS::Route53::HealthCheck";function CfnHealthCheck_AlarmIdentifierPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("name",cdk.requiredValidator)(properties.name)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("region",cdk.requiredValidator)(properties.region)),errors.collect(cdk.propertyValidator("region",cdk.validateString)(properties.region)),errors.wrap('supplied properties not correct for "AlarmIdentifierProperty"')}function cfnHealthCheckAlarmIdentifierPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnHealthCheck_AlarmIdentifierPropertyValidator(properties).assertSuccess(),{Name:cdk.stringToCloudFormation(properties.name),Region:cdk.stringToCloudFormation(properties.region)}):properties}function CfnHealthCheckAlarmIdentifierPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("region","Region",cfn_parse.FromCloudFormation.getString(properties.Region)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnHealthCheck_HealthCheckConfigPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("alarmIdentifier",CfnHealthCheck_AlarmIdentifierPropertyValidator)(properties.alarmIdentifier)),errors.collect(cdk.propertyValidator("childHealthChecks",cdk.listValidator(cdk.validateString))(properties.childHealthChecks)),errors.collect(cdk.propertyValidator("enableSni",cdk.validateBoolean)(properties.enableSni)),errors.collect(cdk.propertyValidator("failureThreshold",cdk.validateNumber)(properties.failureThreshold)),errors.collect(cdk.propertyValidator("fullyQualifiedDomainName",cdk.validateString)(properties.fullyQualifiedDomainName)),errors.collect(cdk.propertyValidator("healthThreshold",cdk.validateNumber)(properties.healthThreshold)),errors.collect(cdk.propertyValidator("ipAddress",cdk.validateString)(properties.ipAddress)),errors.collect(cdk.propertyValidator("insufficientDataHealthStatus",cdk.validateString)(properties.insufficientDataHealthStatus)),errors.collect(cdk.propertyValidator("inverted",cdk.validateBoolean)(properties.inverted)),errors.collect(cdk.propertyValidator("measureLatency",cdk.validateBoolean)(properties.measureLatency)),errors.collect(cdk.propertyValidator("port",cdk.validateNumber)(properties.port)),errors.collect(cdk.propertyValidator("regions",cdk.listValidator(cdk.validateString))(properties.regions)),errors.collect(cdk.propertyValidator("requestInterval",cdk.validateNumber)(properties.requestInterval)),errors.collect(cdk.propertyValidator("resourcePath",cdk.validateString)(properties.resourcePath)),errors.collect(cdk.propertyValidator("routingControlArn",cdk.validateString)(properties.routingControlArn)),errors.collect(cdk.propertyValidator("searchString",cdk.validateString)(properties.searchString)),errors.collect(cdk.propertyValidator("type",cdk.requiredValidator)(properties.type)),errors.collect(cdk.propertyValidator("type",cdk.validateString)(properties.type)),errors.wrap('supplied properties not correct for "HealthCheckConfigProperty"')}function cfnHealthCheckHealthCheckConfigPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnHealthCheck_HealthCheckConfigPropertyValidator(properties).assertSuccess(),{AlarmIdentifier:cfnHealthCheckAlarmIdentifierPropertyToCloudFormation(properties.alarmIdentifier),ChildHealthChecks:cdk.listMapper(cdk.stringToCloudFormation)(properties.childHealthChecks),EnableSNI:cdk.booleanToCloudFormation(properties.enableSni),FailureThreshold:cdk.numberToCloudFormation(properties.failureThreshold),FullyQualifiedDomainName:cdk.stringToCloudFormation(properties.fullyQualifiedDomainName),HealthThreshold:cdk.numberToCloudFormation(properties.healthThreshold),IPAddress:cdk.stringToCloudFormation(properties.ipAddress),InsufficientDataHealthStatus:cdk.stringToCloudFormation(properties.insufficientDataHealthStatus),Inverted:cdk.booleanToCloudFormation(properties.inverted),MeasureLatency:cdk.booleanToCloudFormation(properties.measureLatency),Port:cdk.numberToCloudFormation(properties.port),Regions:cdk.listMapper(cdk.stringToCloudFormation)(properties.regions),RequestInterval:cdk.numberToCloudFormation(properties.requestInterval),ResourcePath:cdk.stringToCloudFormation(properties.resourcePath),RoutingControlArn:cdk.stringToCloudFormation(properties.routingControlArn),SearchString:cdk.stringToCloudFormation(properties.searchString),Type:cdk.stringToCloudFormation(properties.type)}):properties}function CfnHealthCheckHealthCheckConfigPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("alarmIdentifier","AlarmIdentifier",properties.AlarmIdentifier!=null?CfnHealthCheckAlarmIdentifierPropertyFromCloudFormation(properties.AlarmIdentifier):void 0),ret.addPropertyResult("childHealthChecks","ChildHealthChecks",properties.ChildHealthChecks!=null?cfn_parse.FromCloudFormation.getStringArray(properties.ChildHealthChecks):void 0),ret.addPropertyResult("enableSni","EnableSNI",properties.EnableSNI!=null?cfn_parse.FromCloudFormation.getBoolean(properties.EnableSNI):void 0),ret.addPropertyResult("failureThreshold","FailureThreshold",properties.FailureThreshold!=null?cfn_parse.FromCloudFormation.getNumber(properties.FailureThreshold):void 0),ret.addPropertyResult("fullyQualifiedDomainName","FullyQualifiedDomainName",properties.FullyQualifiedDomainName!=null?cfn_parse.FromCloudFormation.getString(properties.FullyQualifiedDomainName):void 0),ret.addPropertyResult("healthThreshold","HealthThreshold",properties.HealthThreshold!=null?cfn_parse.FromCloudFormation.getNumber(properties.HealthThreshold):void 0),ret.addPropertyResult("ipAddress","IPAddress",properties.IPAddress!=null?cfn_parse.FromCloudFormation.getString(properties.IPAddress):void 0),ret.addPropertyResult("insufficientDataHealthStatus","InsufficientDataHealthStatus",properties.InsufficientDataHealthStatus!=null?cfn_parse.FromCloudFormation.getString(properties.InsufficientDataHealthStatus):void 0),ret.addPropertyResult("inverted","Inverted",properties.Inverted!=null?cfn_parse.FromCloudFormation.getBoolean(properties.Inverted):void 0),ret.addPropertyResult("measureLatency","MeasureLatency",properties.MeasureLatency!=null?cfn_parse.FromCloudFormation.getBoolean(properties.MeasureLatency):void 0),ret.addPropertyResult("port","Port",properties.Port!=null?cfn_parse.FromCloudFormation.getNumber(properties.Port):void 0),ret.addPropertyResult("regions","Regions",properties.Regions!=null?cfn_parse.FromCloudFormation.getStringArray(properties.Regions):void 0),ret.addPropertyResult("requestInterval","RequestInterval",properties.RequestInterval!=null?cfn_parse.FromCloudFormation.getNumber(properties.RequestInterval):void 0),ret.addPropertyResult("resourcePath","ResourcePath",properties.ResourcePath!=null?cfn_parse.FromCloudFormation.getString(properties.ResourcePath):void 0),ret.addPropertyResult("routingControlArn","RoutingControlArn",properties.RoutingControlArn!=null?cfn_parse.FromCloudFormation.getString(properties.RoutingControlArn):void 0),ret.addPropertyResult("searchString","SearchString",properties.SearchString!=null?cfn_parse.FromCloudFormation.getString(properties.SearchString):void 0),ret.addPropertyResult("type","Type",cfn_parse.FromCloudFormation.getString(properties.Type)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnHealthCheck_HealthCheckTagPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&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("value",cdk.requiredValidator)(properties.value)),errors.collect(cdk.propertyValidator("value",cdk.validateString)(properties.value)),errors.wrap('supplied properties not correct for "HealthCheckTagProperty"')}function cfnHealthCheckHealthCheckTagPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnHealthCheck_HealthCheckTagPropertyValidator(properties).assertSuccess(),{Key:cdk.stringToCloudFormation(properties.key),Value:cdk.stringToCloudFormation(properties.value)}):properties}function CfnHealthCheckHealthCheckTagPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("key","Key",cfn_parse.FromCloudFormation.getString(properties.Key)),ret.addPropertyResult("value","Value",cfn_parse.FromCloudFormation.getString(properties.Value)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnHostedZonePropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("hostedZoneConfig",CfnHostedZone_HostedZoneConfigPropertyValidator)(properties.hostedZoneConfig)),errors.collect(cdk.propertyValidator("hostedZoneTags",cdk.listValidator(CfnHostedZone_HostedZoneTagPropertyValidator))(properties.hostedZoneTags)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("queryLoggingConfig",CfnHostedZone_QueryLoggingConfigPropertyValidator)(properties.queryLoggingConfig)),errors.collect(cdk.propertyValidator("vpcs",cdk.listValidator(CfnHostedZone_VPCPropertyValidator))(properties.vpcs)),errors.wrap('supplied properties not correct for "CfnHostedZoneProps"')}function cfnHostedZonePropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnHostedZonePropsValidator(properties).assertSuccess(),{HostedZoneConfig:cfnHostedZoneHostedZoneConfigPropertyToCloudFormation(properties.hostedZoneConfig),HostedZoneTags:cdk.listMapper(cfnHostedZoneHostedZoneTagPropertyToCloudFormation)(properties.hostedZoneTags),Name:cdk.stringToCloudFormation(properties.name),QueryLoggingConfig:cfnHostedZoneQueryLoggingConfigPropertyToCloudFormation(properties.queryLoggingConfig),VPCs:cdk.listMapper(cfnHostedZoneVPCPropertyToCloudFormation)(properties.vpcs)}):properties}function CfnHostedZonePropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("hostedZoneConfig","HostedZoneConfig",properties.HostedZoneConfig!=null?CfnHostedZoneHostedZoneConfigPropertyFromCloudFormation(properties.HostedZoneConfig):void 0),ret.addPropertyResult("hostedZoneTags","HostedZoneTags",properties.HostedZoneTags!=null?cfn_parse.FromCloudFormation.getArray(CfnHostedZoneHostedZoneTagPropertyFromCloudFormation)(properties.HostedZoneTags):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse.FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("queryLoggingConfig","QueryLoggingConfig",properties.QueryLoggingConfig!=null?CfnHostedZoneQueryLoggingConfigPropertyFromCloudFormation(properties.QueryLoggingConfig):void 0),ret.addPropertyResult("vpcs","VPCs",properties.VPCs!=null?cfn_parse.FromCloudFormation.getArray(CfnHostedZoneVPCPropertyFromCloudFormation)(properties.VPCs):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnHostedZone extends cdk.CfnResource{constructor(scope,id,props={}){super(scope,id,{type:CfnHostedZone.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_route53_CfnHostedZoneProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnHostedZone),error}this.attrId=cdk.Token.asString(this.getAtt("Id",cdk.ResolutionTypeHint.STRING)),this.attrNameServers=cdk.Token.asList(this.getAtt("NameServers",cdk.ResolutionTypeHint.STRING_LIST)),this.hostedZoneConfig=props.hostedZoneConfig,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::Route53::HostedZone",props.hostedZoneTags,{tagPropertyName:"hostedZoneTags"}),this.name=props.name,this.queryLoggingConfig=props.queryLoggingConfig,this.vpcs=props.vpcs}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnHostedZonePropsFromCloudFormation(resourceProperties),ret=new CfnHostedZone(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}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",CfnHostedZone.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{hostedZoneConfig:this.hostedZoneConfig,hostedZoneTags:this.tags.renderTags(),name:this.name,queryLoggingConfig:this.queryLoggingConfig,vpcs:this.vpcs}}renderProperties(props){return cfnHostedZonePropsToCloudFormation(props)}}exports.CfnHostedZone=CfnHostedZone,_d=JSII_RTTI_SYMBOL_1,CfnHostedZone[_d]={fqn:"aws-cdk-lib.aws_route53.CfnHostedZone",version:"2.70.0"},CfnHostedZone.CFN_RESOURCE_TYPE_NAME="AWS::Route53::HostedZone";function CfnHostedZone_HostedZoneConfigPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("comment",cdk.validateString)(properties.comment)),errors.wrap('supplied properties not correct for "HostedZoneConfigProperty"')}function cfnHostedZoneHostedZoneConfigPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnHostedZone_HostedZoneConfigPropertyValidator(properties).assertSuccess(),{Comment:cdk.stringToCloudFormation(properties.comment)}):properties}function CfnHostedZoneHostedZoneConfigPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("comment","Comment",properties.Comment!=null?cfn_parse.FromCloudFormation.getString(properties.Comment):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnHostedZone_HostedZoneTagPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&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("value",cdk.requiredValidator)(properties.value)),errors.collect(cdk.propertyValidator("value",cdk.validateString)(properties.value)),errors.wrap('supplied properties not correct for "HostedZoneTagProperty"')}function cfnHostedZoneHostedZoneTagPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnHostedZone_HostedZoneTagPropertyValidator(properties).assertSuccess(),{Key:cdk.stringToCloudFormation(properties.key),Value:cdk.stringToCloudFormation(properties.value)}):properties}function CfnHostedZoneHostedZoneTagPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("key","Key",cfn_parse.FromCloudFormation.getString(properties.Key)),ret.addPropertyResult("value","Value",cfn_parse.FromCloudFormation.getString(properties.Value)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnHostedZone_QueryLoggingConfigPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("cloudWatchLogsLogGroupArn",cdk.requiredValidator)(properties.cloudWatchLogsLogGroupArn)),errors.collect(cdk.propertyValidator("cloudWatchLogsLogGroupArn",cdk.validateString)(properties.cloudWatchLogsLogGroupArn)),errors.wrap('supplied properties not correct for "QueryLoggingConfigProperty"')}function cfnHostedZoneQueryLoggingConfigPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnHostedZone_QueryLoggingConfigPropertyValidator(properties).assertSuccess(),{CloudWatchLogsLogGroupArn:cdk.stringToCloudFormation(properties.cloudWatchLogsLogGroupArn)}):properties}function CfnHostedZoneQueryLoggingConfigPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("cloudWatchLogsLogGroupArn","CloudWatchLogsLogGroupArn",cfn_parse.FromCloudFormation.getString(properties.CloudWatchLogsLogGroupArn)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnHostedZone_VPCPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("vpcId",cdk.requiredValidator)(properties.vpcId)),errors.collect(cdk.propertyValidator("vpcId",cdk.validateString)(properties.vpcId)),errors.collect(cdk.propertyValidator("vpcRegion",cdk.requiredValidator)(properties.vpcRegion)),errors.collect(cdk.propertyValidator("vpcRegion",cdk.validateString)(properties.vpcRegion)),errors.wrap('supplied properties not correct for "VPCProperty"')}function cfnHostedZoneVPCPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnHostedZone_VPCPropertyValidator(properties).assertSuccess(),{VPCId:cdk.stringToCloudFormation(properties.vpcId),VPCRegion:cdk.stringToCloudFormation(properties.vpcRegion)}):properties}function CfnHostedZoneVPCPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("vpcId","VPCId",cfn_parse.FromCloudFormation.getString(properties.VPCId)),ret.addPropertyResult("vpcRegion","VPCRegion",cfn_parse.FromCloudFormation.getString(properties.VPCRegion)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnKeySigningKeyPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("hostedZoneId",cdk.requiredValidator)(properties.hostedZoneId)),errors.collect(cdk.propertyValidator("hostedZoneId",cdk.validateString)(properties.hostedZoneId)),errors.collect(cdk.propertyValidator("keyManagementServiceArn",cdk.requiredValidator)(properties.keyManagementServiceArn)),errors.collect(cdk.propertyValidator("keyManagementServiceArn",cdk.validateString)(properties.keyManagementServiceArn)),errors.collect(cdk.propertyValidator("name",cdk.requiredValidator)(properties.name)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("status",cdk.requiredValidator)(properties.status)),errors.collect(cdk.propertyValidator("status",cdk.validateString)(properties.status)),errors.wrap('supplied properties not correct for "CfnKeySigningKeyProps"')}function cfnKeySigningKeyPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnKeySigningKeyPropsValidator(properties).assertSuccess(),{HostedZoneId:cdk.stringToCloudFormation(properties.hostedZoneId),KeyManagementServiceArn:cdk.stringToCloudFormation(properties.keyManagementServiceArn),Name:cdk.stringToCloudFormation(properties.name),Status:cdk.stringToCloudFormation(properties.status)}):properties}function CfnKeySigningKeyPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("hostedZoneId","HostedZoneId",cfn_parse.FromCloudFormation.getString(properties.HostedZoneId)),ret.addPropertyResult("keyManagementServiceArn","KeyManagementServiceArn",cfn_parse.FromCloudFormation.getString(properties.KeyManagementServiceArn)),ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("status","Status",cfn_parse.FromCloudFormation.getString(properties.Status)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnKeySigningKey extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnKeySigningKey.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_route53_CfnKeySigningKeyProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnKeySigningKey),error}cdk.requireProperty(props,"hostedZoneId",this),cdk.requireProperty(props,"keyManagementServiceArn",this),cdk.requireProperty(props,"name",this),cdk.requireProperty(props,"status",this),this.hostedZoneId=props.hostedZoneId,this.keyManagementServiceArn=props.keyManagementServiceArn,this.name=props.name,this.status=props.status}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnKeySigningKeyPropsFromCloudFormation(resourceProperties),ret=new CfnKeySigningKey(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}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",CfnKeySigningKey.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{hostedZoneId:this.hostedZoneId,keyManagementServiceArn:this.keyManagementServiceArn,name:this.name,status:this.status}}renderProperties(props){return cfnKeySigningKeyPropsToCloudFormation(props)}}exports.CfnKeySigningKey=CfnKeySigningKey,_e=JSII_RTTI_SYMBOL_1,CfnKeySigningKey[_e]={fqn:"aws-cdk-lib.aws_route53.CfnKeySigningKey",version:"2.70.0"},CfnKeySigningKey.CFN_RESOURCE_TYPE_NAME="AWS::Route53::KeySigningKey";function CfnRecordSetPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("aliasTarget",CfnRecordSet_AliasTargetPropertyValidator)(properties.aliasTarget)),errors.collect(cdk.propertyValidator("cidrRoutingConfig",CfnRecordSet_CidrRoutingConfigPropertyValidator)(properties.cidrRoutingConfig)),errors.collect(cdk.propertyValidator("comment",cdk.validateString)(properties.comment)),errors.collect(cdk.propertyValidator("failover",cdk.validateString)(properties.failover)),errors.collect(cdk.propertyValidator("geoLocation",CfnRecordSet_GeoLocationPropertyValidator)(properties.geoLocation)),errors.collect(cdk.propertyValidator("healthCheckId",cdk.validateString)(properties.healthCheckId)),errors.collect(cdk.propertyValidator("hostedZoneId",cdk.validateString)(properties.hostedZoneId)),errors.collect(cdk.propertyValidator("hostedZoneName",cdk.validateString)(properties.hostedZoneName)),errors.collect(cdk.propertyValidator("multiValueAnswer",cdk.validateBoolean)(properties.multiValueAnswer)),errors.collect(cdk.propertyValidator("name",cdk.requiredValidator)(properties.name)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("region",cdk.validateString)(properties.region)),errors.collect(cdk.propertyValidator("resourceRecords",cdk.listValidator(cdk.validateString))(properties.resourceRecords)),errors.collect(cdk.propertyValidator("setIdentifier",cdk.validateString)(properties.setIdentifier)),errors.collect(cdk.propertyValidator("ttl",cdk.validateString)(properties.ttl)),errors.collect(cdk.propertyValidator("type",cdk.requiredValidator)(properties.type)),errors.collect(cdk.propertyValidator("type",cdk.validateString)(properties.type)),errors.collect(cdk.propertyValidator("weight",cdk.validateNumber)(properties.weight)),errors.wrap('supplied properties not correct for "CfnRecordSetProps"')}function cfnRecordSetPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnRecordSetPropsValidator(properties).assertSuccess(),{Name:cdk.stringToCloudFormation(properties.name),Type:cdk.stringToCloudFormation(properties.type),AliasTarget:cfnRecordSetAliasTargetPropertyToCloudFormation(properties.aliasTarget),CidrRoutingConfig:cfnRecordSetCidrRoutingConfigPropertyToCloudFormation(properties.cidrRoutingConfig),Comment:cdk.stringToCloudFormation(properties.comment),Failover:cdk.stringToCloudFormation(properties.failover),GeoLocation:cfnRecordSetGeoLocationPropertyToCloudFormation(properties.geoLocation),HealthCheckId:cdk.stringToCloudFormation(properties.healthCheckId),HostedZoneId:cdk.stringToCloudFormation(properties.hostedZoneId),HostedZoneName:cdk.stringToCloudFormation(properties.hostedZoneName),MultiValueAnswer:cdk.booleanToCloudFormation(properties.multiValueAnswer),Region:cdk.stringToCloudFormation(properties.region),ResourceRecords:cdk.listMapper(cdk.stringToCloudFormation)(properties.resourceRecords),SetIdentifier:cdk.stringToCloudFormation(properties.setIdentifier),TTL:cdk.stringToCloudFormation(properties.ttl),Weight:cdk.numberToCloudFormation(properties.weight)}):properties}function CfnRecordSetPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("type","Type",cfn_parse.FromCloudFormation.getString(properties.Type)),ret.addPropertyResult("aliasTarget","AliasTarget",properties.AliasTarget!=null?CfnRecordSetAliasTargetPropertyFromCloudFormation(properties.AliasTarget):void 0),ret.addPropertyResult("cidrRoutingConfig","CidrRoutingConfig",properties.CidrRoutingConfig!=null?CfnRecordSetCidrRoutingConfigPropertyFromCloudFormation(properties.CidrRoutingConfig):void 0),ret.addPropertyResult("comment","Comment",properties.Comment!=null?cfn_parse.FromCloudFormation.getString(properties.Comment):void 0),ret.addPropertyResult("failover","Failover",properties.Failover!=null?cfn_parse.FromCloudFormation.getString(properties.Failover):void 0),ret.addPropertyResult("geoLocation","GeoLocation",properties.GeoLocation!=null?CfnRecordSetGeoLocationPropertyFromCloudFormation(properties.GeoLocation):void 0),ret.addPropertyResult("healthCheckId","HealthCheckId",properties.HealthCheckId!=null?cfn_parse.FromCloudFormation.getString(properties.HealthCheckId):void 0),ret.addPropertyResult("hostedZoneId","HostedZoneId",properties.HostedZoneId!=null?cfn_parse.FromCloudFormation.getString(properties.HostedZoneId):void 0),ret.addPropertyResult("hostedZoneName","HostedZoneName",properties.HostedZoneName!=null?cfn_parse.FromCloudFormation.getString(properties.HostedZoneName):void 0),ret.addPropertyResult("multiValueAnswer","MultiValueAnswer",properties.MultiValueAnswer!=null?cfn_parse.FromCloudFormation.getBoolean(properties.MultiValueAnswer):void 0),ret.addPropertyResult("region","Region",properties.Region!=null?cfn_parse.FromCloudFormation.getString(properties.Region):void 0),ret.addPropertyResult("resourceRecords","ResourceRecords",properties.ResourceRecords!=null?cfn_parse.FromCloudFormation.getStringArray(properties.ResourceRecords):void 0),ret.addPropertyResult("setIdentifier","SetIdentifier",properties.SetIdentifier!=null?cfn_parse.FromCloudFormation.getString(properties.SetIdentifier):void 0),ret.addPropertyResult("ttl","TTL",properties.TTL!=null?cfn_parse.FromCloudFormation.getString(properties.TTL):void 0),ret.addPropertyResult("weight","Weight",properties.Weight!=null?cfn_parse.FromCloudFormation.getNumber(properties.Weight):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnRecordSet extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnRecordSet.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_route53_CfnRecordSetProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnRecordSet),error}cdk.requireProperty(props,"name",this),cdk.requireProperty(props,"type",this),this.name=props.name,this.type=props.type,this.aliasTarget=props.aliasTarget,this.cidrRoutingConfig=props.cidrRoutingConfig,this.comment=props.comment,this.failover=props.failover,this.geoLocation=props.geoLocation,this.healthCheckId=props.healthCheckId,this.hostedZoneId=props.hostedZoneId,this.hostedZoneName=props.hostedZoneName,this.multiValueAnswer=props.multiValueAnswer,this.region=props.region,this.resourceRecords=props.resourceRecords,this.setIdentifier=props.setIdentifier,this.ttl=props.ttl,this.weight=props.weight}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnRecordSetPropsFromCloudFormation(resourceProperties),ret=new CfnRecordSet(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}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",CfnRecordSet.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{name:this.name,type:this.type,aliasTarget:this.aliasTarget,cidrRoutingConfig:this.cidrRoutingConfig,comment:this.comment,failover:this.failover,geoLocation:this.geoLocation,healthCheckId:this.healthCheckId,hostedZoneId:this.hostedZoneId,hostedZoneName:this.hostedZoneName,multiValueAnswer:this.multiValueAnswer,region:this.region,resourceRecords:this.resourceRecords,setIdentifier:this.setIdentifier,ttl:this.ttl,weight:this.weight}}renderProperties(props){return cfnRecordSetPropsToCloudFormation(props)}}exports.CfnRecordSet=CfnRecordSet,_f=JSII_RTTI_SYMBOL_1,CfnRecordSet[_f]={fqn:"aws-cdk-lib.aws_route53.CfnRecordSet",version:"2.70.0"},CfnRecordSet.CFN_RESOURCE_TYPE_NAME="AWS::Route53::RecordSet";function CfnRecordSet_AliasTargetPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("dnsName",cdk.requiredValidator)(properties.dnsName)),errors.collect(cdk.propertyValidator("dnsName",cdk.validateString)(properties.dnsName)),errors.collect(cdk.propertyValidator("evaluateTargetHealth",cdk.validateBoolean)(properties.evaluateTargetHealth)),errors.collect(cdk.propertyValidator("hostedZoneId",cdk.requiredValidator)(properties.hostedZoneId)),errors.collect(cdk.propertyValidator("hostedZoneId",cdk.validateString)(properties.hostedZoneId)),errors.wrap('supplied properties not correct for "AliasTargetProperty"')}function cfnRecordSetAliasTargetPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnRecordSet_AliasTargetPropertyValidator(properties).assertSuccess(),{DNSName:cdk.stringToCloudFormation(properties.dnsName),EvaluateTargetHealth:cdk.booleanToCloudFormation(properties.evaluateTargetHealth),HostedZoneId:cdk.stringToCloudFormation(properties.hostedZoneId)}):properties}function CfnRecordSetAliasTargetPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("dnsName","DNSName",cfn_parse.FromCloudFormation.getString(properties.DNSName)),ret.addPropertyResult("evaluateTargetHealth","EvaluateTargetHealth",properties.EvaluateTargetHealth!=null?cfn_parse.FromCloudFormation.getBoolean(properties.EvaluateTargetHealth):void 0),ret.addPropertyResult("hostedZoneId","HostedZoneId",cfn_parse.FromCloudFormation.getString(properties.HostedZoneId)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnRecordSet_CidrRoutingConfigPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("collectionId",cdk.requiredValidator)(properties.collectionId)),errors.collect(cdk.propertyValidator("collectionId",cdk.validateString)(properties.collectionId)),errors.collect(cdk.propertyValidator("locationName",cdk.requiredValidator)(properties.locationName)),errors.collect(cdk.propertyValidator("locationName",cdk.validateString)(properties.locationName)),errors.wrap('supplied properties not correct for "CidrRoutingConfigProperty"')}function cfnRecordSetCidrRoutingConfigPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnRecordSet_CidrRoutingConfigPropertyValidator(properties).assertSuccess(),{CollectionId:cdk.stringToCloudFormation(properties.collectionId),LocationName:cdk.stringToCloudFormation(properties.locationName)}):properties}function CfnRecordSetCidrRoutingConfigPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("collectionId","CollectionId",cfn_parse.FromCloudFormation.getString(properties.CollectionId)),ret.addPropertyResult("locationName","LocationName",cfn_parse.FromCloudFormation.getString(properties.LocationName)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnRecordSet_GeoLocationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors