UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

2 lines (1 loc) 46.2 kB
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnService=exports.CfnPublicDnsNamespace=exports.CfnPrivateDnsNamespace=exports.CfnInstance=exports.CfnHttpNamespace=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 CfnHttpNamespace extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_servicediscovery.CfnHttpNamespace",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::ServiceDiscovery::HttpNamespace";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnHttpNamespacePropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnHttpNamespace(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 isCfnHttpNamespace(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnHttpNamespace.CFN_RESOURCE_TYPE_NAME}static arnForHttpNamespace(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_servicediscovery_IHttpNamespaceRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForHttpNamespace),error}return resource.httpNamespaceRef.httpNamespaceArn}attrArn;attrId;description;name;tags;tagsRaw;constructor(scope,id,props){super(scope,id,{type:CfnHttpNamespace.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_servicediscovery_CfnHttpNamespaceProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnHttpNamespace),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.description=props.description,this.name=props.name,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::ServiceDiscovery::HttpNamespace",props.tags,{tagPropertyName:"tags"}),this.tagsRaw=props.tags}get httpNamespaceRef(){return{httpNamespaceId:this.ref,httpNamespaceArn:this.attrArn}}get cfnProperties(){return{description:this.description,name:this.name,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",CfnHttpNamespace.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnHttpNamespacePropsToCloudFormation(props)}}exports.CfnHttpNamespace=CfnHttpNamespace;function CfnHttpNamespacePropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("name",cdk().requiredValidator)(properties.name)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnHttpNamespaceProps"')}function convertCfnHttpNamespacePropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnHttpNamespacePropsValidator(properties).assertSuccess(),{Description:cdk().stringToCloudFormation(properties.description),Name:cdk().stringToCloudFormation(properties.name),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnHttpNamespacePropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnInstance extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_servicediscovery.CfnInstance",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::ServiceDiscovery::Instance";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnInstancePropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnInstance(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 isCfnInstance(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnInstance.CFN_RESOURCE_TYPE_NAME}instanceAttributes;instanceId;serviceId;constructor(scope,id,props){super(scope,id,{type:CfnInstance.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_servicediscovery_CfnInstanceProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnInstance),error}cdk().requireProperty(props,"instanceAttributes",this),cdk().requireProperty(props,"serviceId",this),this.instanceAttributes=props.instanceAttributes,this.instanceId=props.instanceId,this.serviceId=props.serviceId}get instanceRef(){return{instanceId:this.ref}}get cfnProperties(){return{instanceAttributes:this.instanceAttributes,instanceId:this.instanceId,serviceId:this.serviceId}}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",CfnInstance.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnInstancePropsToCloudFormation(props)}}exports.CfnInstance=CfnInstance;function CfnInstancePropsValidator(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("instanceAttributes",cdk().requiredValidator)(properties.instanceAttributes)),errors.collect(cdk().propertyValidator("instanceAttributes",cdk().validateObject)(properties.instanceAttributes)),errors.collect(cdk().propertyValidator("instanceId",cdk().validateString)(properties.instanceId)),errors.collect(cdk().propertyValidator("serviceId",cdk().requiredValidator)(properties.serviceId)),errors.collect(cdk().propertyValidator("serviceId",cdk().validateString)(properties.serviceId)),errors.wrap('supplied properties not correct for "CfnInstanceProps"')}function convertCfnInstancePropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnInstancePropsValidator(properties).assertSuccess(),{InstanceAttributes:cdk().objectToCloudFormation(properties.instanceAttributes),InstanceId:cdk().stringToCloudFormation(properties.instanceId),ServiceId:cdk().stringToCloudFormation(properties.serviceId)}):properties}function CfnInstancePropsFromCloudFormation(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("instanceAttributes","InstanceAttributes",properties.InstanceAttributes!=null?cfn_parse().FromCloudFormation.getAny(properties.InstanceAttributes):void 0),ret.addPropertyResult("instanceId","InstanceId",properties.InstanceId!=null?cfn_parse().FromCloudFormation.getString(properties.InstanceId):void 0),ret.addPropertyResult("serviceId","ServiceId",properties.ServiceId!=null?cfn_parse().FromCloudFormation.getString(properties.ServiceId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnPrivateDnsNamespace extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_servicediscovery.CfnPrivateDnsNamespace",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::ServiceDiscovery::PrivateDnsNamespace";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnPrivateDnsNamespacePropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnPrivateDnsNamespace(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 isCfnPrivateDnsNamespace(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnPrivateDnsNamespace.CFN_RESOURCE_TYPE_NAME}static arnForPrivateDnsNamespace(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_servicediscovery_IPrivateDnsNamespaceRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForPrivateDnsNamespace),error}return resource.privateDnsNamespaceRef.privateDnsNamespaceArn}attrArn;attrHostedZoneId;attrId;description;name;properties;tags;tagsRaw;vpc;constructor(scope,id,props){super(scope,id,{type:CfnPrivateDnsNamespace.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_servicediscovery_CfnPrivateDnsNamespaceProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnPrivateDnsNamespace),error}cdk().requireProperty(props,"name",this),cdk().requireProperty(props,"vpc",this),this.attrArn=cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING)),this.attrHostedZoneId=cdk().Token.asString(this.getAtt("HostedZoneId",cdk().ResolutionTypeHint.STRING)),this.attrId=cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING)),this.description=props.description,this.name=props.name,this.properties=props.properties,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::ServiceDiscovery::PrivateDnsNamespace",props.tags,{tagPropertyName:"tags"}),this.tagsRaw=props.tags,this.vpc=props.vpc}get privateDnsNamespaceRef(){return{privateDnsNamespaceId:this.ref,privateDnsNamespaceArn:this.attrArn}}get cfnProperties(){return{description:this.description,name:this.name,properties:this.properties,tags:this.tags.renderTags(),vpc:this.vpc}}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",CfnPrivateDnsNamespace.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnPrivateDnsNamespacePropsToCloudFormation(props)}}exports.CfnPrivateDnsNamespace=CfnPrivateDnsNamespace;function CfnPrivateDnsNamespaceSOAPropertyValidator(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("ttl",cdk().validateNumber)(properties.ttl)),errors.wrap('supplied properties not correct for "SOAProperty"')}function convertCfnPrivateDnsNamespaceSOAPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnPrivateDnsNamespaceSOAPropertyValidator(properties).assertSuccess(),{TTL:cdk().numberToCloudFormation(properties.ttl)}):properties}function CfnPrivateDnsNamespaceSOAPropertyFromCloudFormation(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("ttl","TTL",properties.TTL!=null?cfn_parse().FromCloudFormation.getNumber(properties.TTL):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnPrivateDnsNamespacePrivateDnsPropertiesMutablePropertyValidator(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("soa",CfnPrivateDnsNamespaceSOAPropertyValidator)(properties.soa)),errors.wrap('supplied properties not correct for "PrivateDnsPropertiesMutableProperty"')}function convertCfnPrivateDnsNamespacePrivateDnsPropertiesMutablePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnPrivateDnsNamespacePrivateDnsPropertiesMutablePropertyValidator(properties).assertSuccess(),{SOA:convertCfnPrivateDnsNamespaceSOAPropertyToCloudFormation(properties.soa)}):properties}function CfnPrivateDnsNamespacePrivateDnsPropertiesMutablePropertyFromCloudFormation(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("soa","SOA",properties.SOA!=null?CfnPrivateDnsNamespaceSOAPropertyFromCloudFormation(properties.SOA):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnPrivateDnsNamespacePropertiesPropertyValidator(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("dnsProperties",CfnPrivateDnsNamespacePrivateDnsPropertiesMutablePropertyValidator)(properties.dnsProperties)),errors.wrap('supplied properties not correct for "PropertiesProperty"')}function convertCfnPrivateDnsNamespacePropertiesPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnPrivateDnsNamespacePropertiesPropertyValidator(properties).assertSuccess(),{DnsProperties:convertCfnPrivateDnsNamespacePrivateDnsPropertiesMutablePropertyToCloudFormation(properties.dnsProperties)}):properties}function CfnPrivateDnsNamespacePropertiesPropertyFromCloudFormation(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("dnsProperties","DnsProperties",properties.DnsProperties!=null?CfnPrivateDnsNamespacePrivateDnsPropertiesMutablePropertyFromCloudFormation(properties.DnsProperties):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnPrivateDnsNamespacePropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("name",cdk().requiredValidator)(properties.name)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("properties",CfnPrivateDnsNamespacePropertiesPropertyValidator)(properties.properties)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.collect(cdk().propertyValidator("vpc",cdk().requiredValidator)(properties.vpc)),errors.collect(cdk().propertyValidator("vpc",cdk().validateString)(properties.vpc)),errors.wrap('supplied properties not correct for "CfnPrivateDnsNamespaceProps"')}function convertCfnPrivateDnsNamespacePropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnPrivateDnsNamespacePropsValidator(properties).assertSuccess(),{Description:cdk().stringToCloudFormation(properties.description),Name:cdk().stringToCloudFormation(properties.name),Properties:convertCfnPrivateDnsNamespacePropertiesPropertyToCloudFormation(properties.properties),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags),Vpc:cdk().stringToCloudFormation(properties.vpc)}):properties}function CfnPrivateDnsNamespacePropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("properties","Properties",properties.Properties!=null?CfnPrivateDnsNamespacePropertiesPropertyFromCloudFormation(properties.Properties):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addPropertyResult("vpc","Vpc",properties.Vpc!=null?cfn_parse().FromCloudFormation.getString(properties.Vpc):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnPublicDnsNamespace extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_servicediscovery.CfnPublicDnsNamespace",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::ServiceDiscovery::PublicDnsNamespace";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnPublicDnsNamespacePropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnPublicDnsNamespace(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 isCfnPublicDnsNamespace(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnPublicDnsNamespace.CFN_RESOURCE_TYPE_NAME}static arnForPublicDnsNamespace(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_servicediscovery_IPublicDnsNamespaceRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForPublicDnsNamespace),error}return resource.publicDnsNamespaceRef.publicDnsNamespaceArn}attrArn;attrHostedZoneId;attrId;description;name;properties;tags;tagsRaw;constructor(scope,id,props){super(scope,id,{type:CfnPublicDnsNamespace.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_servicediscovery_CfnPublicDnsNamespaceProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnPublicDnsNamespace),error}cdk().requireProperty(props,"name",this),this.attrArn=cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING)),this.attrHostedZoneId=cdk().Token.asString(this.getAtt("HostedZoneId",cdk().ResolutionTypeHint.STRING)),this.attrId=cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING)),this.description=props.description,this.name=props.name,this.properties=props.properties,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::ServiceDiscovery::PublicDnsNamespace",props.tags,{tagPropertyName:"tags"}),this.tagsRaw=props.tags}get publicDnsNamespaceRef(){return{publicDnsNamespaceId:this.ref,publicDnsNamespaceArn:this.attrArn}}get cfnProperties(){return{description:this.description,name:this.name,properties:this.properties,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",CfnPublicDnsNamespace.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnPublicDnsNamespacePropsToCloudFormation(props)}}exports.CfnPublicDnsNamespace=CfnPublicDnsNamespace;function CfnPublicDnsNamespaceSOAPropertyValidator(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("ttl",cdk().validateNumber)(properties.ttl)),errors.wrap('supplied properties not correct for "SOAProperty"')}function convertCfnPublicDnsNamespaceSOAPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnPublicDnsNamespaceSOAPropertyValidator(properties).assertSuccess(),{TTL:cdk().numberToCloudFormation(properties.ttl)}):properties}function CfnPublicDnsNamespaceSOAPropertyFromCloudFormation(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("ttl","TTL",properties.TTL!=null?cfn_parse().FromCloudFormation.getNumber(properties.TTL):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnPublicDnsNamespacePublicDnsPropertiesMutablePropertyValidator(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("soa",CfnPublicDnsNamespaceSOAPropertyValidator)(properties.soa)),errors.wrap('supplied properties not correct for "PublicDnsPropertiesMutableProperty"')}function convertCfnPublicDnsNamespacePublicDnsPropertiesMutablePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnPublicDnsNamespacePublicDnsPropertiesMutablePropertyValidator(properties).assertSuccess(),{SOA:convertCfnPublicDnsNamespaceSOAPropertyToCloudFormation(properties.soa)}):properties}function CfnPublicDnsNamespacePublicDnsPropertiesMutablePropertyFromCloudFormation(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("soa","SOA",properties.SOA!=null?CfnPublicDnsNamespaceSOAPropertyFromCloudFormation(properties.SOA):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnPublicDnsNamespacePropertiesPropertyValidator(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("dnsProperties",CfnPublicDnsNamespacePublicDnsPropertiesMutablePropertyValidator)(properties.dnsProperties)),errors.wrap('supplied properties not correct for "PropertiesProperty"')}function convertCfnPublicDnsNamespacePropertiesPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnPublicDnsNamespacePropertiesPropertyValidator(properties).assertSuccess(),{DnsProperties:convertCfnPublicDnsNamespacePublicDnsPropertiesMutablePropertyToCloudFormation(properties.dnsProperties)}):properties}function CfnPublicDnsNamespacePropertiesPropertyFromCloudFormation(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("dnsProperties","DnsProperties",properties.DnsProperties!=null?CfnPublicDnsNamespacePublicDnsPropertiesMutablePropertyFromCloudFormation(properties.DnsProperties):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnPublicDnsNamespacePropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("name",cdk().requiredValidator)(properties.name)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("properties",CfnPublicDnsNamespacePropertiesPropertyValidator)(properties.properties)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnPublicDnsNamespaceProps"')}function convertCfnPublicDnsNamespacePropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnPublicDnsNamespacePropsValidator(properties).assertSuccess(),{Description:cdk().stringToCloudFormation(properties.description),Name:cdk().stringToCloudFormation(properties.name),Properties:convertCfnPublicDnsNamespacePropertiesPropertyToCloudFormation(properties.properties),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnPublicDnsNamespacePropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("properties","Properties",properties.Properties!=null?CfnPublicDnsNamespacePropertiesPropertyFromCloudFormation(properties.Properties):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_servicediscovery.CfnService",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::ServiceDiscovery::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("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 fromServiceArn(scope,id,arn){class Import extends cdk().Resource{serviceRef;constructor(scope2,id2,arn2){super(scope2,id2,{environmentFromArn:arn2});const variables=new(cfn_parse()).TemplateString("arn:${Partition}:servicediscovery:${Region}:${Account}:service/${ServiceId}").parse(arn2);this.serviceRef={serviceId:variables.ServiceId,serviceArn:arn2}}}return new Import(scope,id,arn)}static fromServiceId(scope,id,serviceId){class Import extends cdk().Resource{serviceRef;constructor(scope2,id2,serviceId2){const arn=new(cfn_parse()).TemplateString("arn:${Partition}:servicediscovery:${Region}:${Account}:service/${ServiceId}").interpolate({Partition:cdk().Stack.of(scope2).partition,Region:cdk().Stack.of(scope2).region,Account:cdk().Stack.of(scope2).account,ServiceId:serviceId2});super(scope2,id2,{environmentFromArn:arn}),this.serviceRef={serviceId:serviceId2,serviceArn:arn}}}return new Import(scope,id,serviceId)}static arnForService(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_servicediscovery_IServiceRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForService),error}return resource.serviceRef.serviceArn}attrArn;attrId;attrName;description;dnsConfig;healthCheckConfig;healthCheckCustomConfig;name;namespaceId;serviceAttributes;tags;tagsRaw;type;constructor(scope,id,props={}){super(scope,id,{type:CfnService.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_servicediscovery_CfnServiceProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnService),error}this.attrArn=cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING)),this.attrId=cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING)),this.attrName=cdk().Token.asString(this.getAtt("Name",cdk().ResolutionTypeHint.STRING)),this.description=props.description,this.dnsConfig=props.dnsConfig,this.healthCheckConfig=props.healthCheckConfig,this.healthCheckCustomConfig=props.healthCheckCustomConfig,this.name=props.name,this.namespaceId=props.namespaceId,this.serviceAttributes=props.serviceAttributes,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::ServiceDiscovery::Service",props.tags,{tagPropertyName:"tags"}),this.tagsRaw=props.tags,this.type=props.type}get serviceRef(){return{serviceId:this.ref,serviceArn:this.attrArn}}get cfnProperties(){return{description:this.description,dnsConfig:this.dnsConfig,healthCheckConfig:this.healthCheckConfig,healthCheckCustomConfig:this.healthCheckCustomConfig,name:this.name,namespaceId:this.namespaceId,serviceAttributes:this.serviceAttributes,tags:this.tags.renderTags(),type:this.type}}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:props",this.cfnProperties)}renderProperties(props){return convertCfnServicePropsToCloudFormation(props)}}exports.CfnService=CfnService;function CfnServiceHealthCheckCustomConfigPropertyValidator(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("failureThreshold",cdk().validateNumber)(properties.failureThreshold)),errors.wrap('supplied properties not correct for "HealthCheckCustomConfigProperty"')}function convertCfnServiceHealthCheckCustomConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnServiceHealthCheckCustomConfigPropertyValidator(properties).assertSuccess(),{FailureThreshold:cdk().numberToCloudFormation(properties.failureThreshold)}):properties}function CfnServiceHealthCheckCustomConfigPropertyFromCloudFormation(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("failureThreshold","FailureThreshold",properties.FailureThreshold!=null?cfn_parse().FromCloudFormation.getNumber(properties.FailureThreshold):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnServiceDnsRecordPropertyValidator(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("ttl",cdk().requiredValidator)(properties.ttl)),errors.collect(cdk().propertyValidator("ttl",cdk().validateNumber)(properties.ttl)),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 "DnsRecordProperty"')}function convertCfnServiceDnsRecordPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnServiceDnsRecordPropertyValidator(properties).assertSuccess(),{TTL:cdk().numberToCloudFormation(properties.ttl),Type:cdk().stringToCloudFormation(properties.type)}):properties}function CfnServiceDnsRecordPropertyFromCloudFormation(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("ttl","TTL",properties.TTL!=null?cfn_parse().FromCloudFormation.getNumber(properties.TTL):void 0),ret.addPropertyResult("type","Type",properties.Type!=null?cfn_parse().FromCloudFormation.getString(properties.Type):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnServiceDnsConfigPropertyValidator(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("dnsRecords",cdk().requiredValidator)(properties.dnsRecords)),errors.collect(cdk().propertyValidator("dnsRecords",cdk().listValidator(CfnServiceDnsRecordPropertyValidator))(properties.dnsRecords)),errors.collect(cdk().propertyValidator("namespaceId",cdk().validateString)(properties.namespaceId)),errors.collect(cdk().propertyValidator("routingPolicy",cdk().validateString)(properties.routingPolicy)),errors.wrap('supplied properties not correct for "DnsConfigProperty"')}function convertCfnServiceDnsConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnServiceDnsConfigPropertyValidator(properties).assertSuccess(),{DnsRecords:cdk().listMapper(convertCfnServiceDnsRecordPropertyToCloudFormation)(properties.dnsRecords),NamespaceId:cdk().stringToCloudFormation(properties.namespaceId),RoutingPolicy:cdk().stringToCloudFormation(properties.routingPolicy)}):properties}function CfnServiceDnsConfigPropertyFromCloudFormation(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("dnsRecords","DnsRecords",properties.DnsRecords!=null?cfn_parse().FromCloudFormation.getArray(CfnServiceDnsRecordPropertyFromCloudFormation)(properties.DnsRecords):void 0),ret.addPropertyResult("namespaceId","NamespaceId",properties.NamespaceId!=null?cfn_parse().FromCloudFormation.getString(properties.NamespaceId):void 0),ret.addPropertyResult("routingPolicy","RoutingPolicy",properties.RoutingPolicy!=null?cfn_parse().FromCloudFormation.getString(properties.RoutingPolicy):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnServiceHealthCheckConfigPropertyValidator(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("failureThreshold",cdk().validateNumber)(properties.failureThreshold)),errors.collect(cdk().propertyValidator("resourcePath",cdk().validateString)(properties.resourcePath)),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 convertCfnServiceHealthCheckConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnServiceHealthCheckConfigPropertyValidator(properties).assertSuccess(),{FailureThreshold:cdk().numberToCloudFormation(properties.failureThreshold),ResourcePath:cdk().stringToCloudFormation(properties.resourcePath),Type:cdk().stringToCloudFormation(properties.type)}):properties}function CfnServiceHealthCheckConfigPropertyFromCloudFormation(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("failureThreshold","FailureThreshold",properties.FailureThreshold!=null?cfn_parse().FromCloudFormation.getNumber(properties.FailureThreshold):void 0),ret.addPropertyResult("resourcePath","ResourcePath",properties.ResourcePath!=null?cfn_parse().FromCloudFormation.getString(properties.ResourcePath):void 0),ret.addPropertyResult("type","Type",properties.Type!=null?cfn_parse().FromCloudFormation.getString(properties.Type):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnServicePropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("dnsConfig",CfnServiceDnsConfigPropertyValidator)(properties.dnsConfig)),errors.collect(cdk().propertyValidator("healthCheckConfig",CfnServiceHealthCheckConfigPropertyValidator)(properties.healthCheckConfig)),errors.collect(cdk().propertyValidator("healthCheckCustomConfig",CfnServiceHealthCheckCustomConfigPropertyValidator)(properties.healthCheckCustomConfig)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("namespaceId",cdk().validateString)(properties.namespaceId)),errors.collect(cdk().propertyValidator("serviceAttributes",cdk().validateObject)(properties.serviceAttributes)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.collect(cdk().propertyValidator("type",cdk().validateString)(properties.type)),errors.wrap('supplied properties not correct for "CfnServiceProps"')}function convertCfnServicePropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnServicePropsValidator(properties).assertSuccess(),{Description:cdk().stringToCloudFormation(properties.description),DnsConfig:convertCfnServiceDnsConfigPropertyToCloudFormation(properties.dnsConfig),HealthCheckConfig:convertCfnServiceHealthCheckConfigPropertyToCloudFormation(properties.healthCheckConfig),HealthCheckCustomConfig:convertCfnServiceHealthCheckCustomConfigPropertyToCloudFormation(properties.healthCheckCustomConfig),Name:cdk().stringToCloudFormation(properties.name),NamespaceId:cdk().stringToCloudFormation(properties.namespaceId),ServiceAttributes:cdk().objectToCloudFormation(properties.serviceAttributes),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags),Type:cdk().stringToCloudFormation(properties.type)}):properties}function CfnServicePropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("dnsConfig","DnsConfig",properties.DnsConfig!=null?CfnServiceDnsConfigPropertyFromCloudFormation(properties.DnsConfig):void 0),ret.addPropertyResult("healthCheckConfig","HealthCheckConfig",properties.HealthCheckConfig!=null?CfnServiceHealthCheckConfigPropertyFromCloudFormation(properties.HealthCheckConfig):void 0),ret.addPropertyResult("healthCheckCustomConfig","HealthCheckCustomConfig",properties.HealthCheckCustomConfig!=null?CfnServiceHealthCheckCustomConfigPropertyFromCloudFormation(properties.HealthCheckCustomConfig):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("namespaceId","NamespaceId",properties.NamespaceId!=null?cfn_parse().FromCloudFormation.getString(properties.NamespaceId):void 0),ret.addPropertyResult("serviceAttributes","ServiceAttributes",properties.ServiceAttributes!=null?cfn_parse().FromCloudFormation.getAny(properties.ServiceAttributes):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addPropertyResult("type","Type",properties.Type!=null?cfn_parse().FromCloudFormation.getString(properties.Type):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}