aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
1 lines • 79.4 kB
JavaScript
"use strict";var _a,_b,_c,_d,_e,_f,_g,_h,_j,_k;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnTargetGroup=exports.CfnServiceNetworkVpcAssociation=exports.CfnServiceNetworkServiceAssociation=exports.CfnServiceNetwork=exports.CfnService=exports.CfnRule=exports.CfnResourcePolicy=exports.CfnListener=exports.CfnAuthPolicy=exports.CfnAccessLogSubscription=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 CfnAccessLogSubscriptionPropsValidator(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("destinationArn",cdk.requiredValidator)(properties.destinationArn)),errors.collect(cdk.propertyValidator("destinationArn",cdk.validateString)(properties.destinationArn)),errors.collect(cdk.propertyValidator("resourceIdentifier",cdk.validateString)(properties.resourceIdentifier)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnAccessLogSubscriptionProps"')}function cfnAccessLogSubscriptionPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAccessLogSubscriptionPropsValidator(properties).assertSuccess(),{DestinationArn:cdk.stringToCloudFormation(properties.destinationArn),ResourceIdentifier:cdk.stringToCloudFormation(properties.resourceIdentifier),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags)}):properties}function CfnAccessLogSubscriptionPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("destinationArn","DestinationArn",cfn_parse.FromCloudFormation.getString(properties.DestinationArn)),ret.addPropertyResult("resourceIdentifier","ResourceIdentifier",properties.ResourceIdentifier!=null?cfn_parse.FromCloudFormation.getString(properties.ResourceIdentifier):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 CfnAccessLogSubscription extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnAccessLogSubscription.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_vpclattice_CfnAccessLogSubscriptionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnAccessLogSubscription),error}cdk.requireProperty(props,"destinationArn",this),this.attrArn=cdk.Token.asString(this.getAtt("Arn",cdk.ResolutionTypeHint.STRING)),this.attrId=cdk.Token.asString(this.getAtt("Id",cdk.ResolutionTypeHint.STRING)),this.attrResourceArn=cdk.Token.asString(this.getAtt("ResourceArn",cdk.ResolutionTypeHint.STRING)),this.attrResourceId=cdk.Token.asString(this.getAtt("ResourceId",cdk.ResolutionTypeHint.STRING)),this.destinationArn=props.destinationArn,this.resourceIdentifier=props.resourceIdentifier,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::VpcLattice::AccessLogSubscription",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnAccessLogSubscriptionPropsFromCloudFormation(resourceProperties),ret=new CfnAccessLogSubscription(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",CfnAccessLogSubscription.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{destinationArn:this.destinationArn,resourceIdentifier:this.resourceIdentifier,tags:this.tags.renderTags()}}renderProperties(props){return cfnAccessLogSubscriptionPropsToCloudFormation(props)}}exports.CfnAccessLogSubscription=CfnAccessLogSubscription,_a=JSII_RTTI_SYMBOL_1,CfnAccessLogSubscription[_a]={fqn:"aws-cdk-lib.aws_vpclattice.CfnAccessLogSubscription",version:"2.70.0"},CfnAccessLogSubscription.CFN_RESOURCE_TYPE_NAME="AWS::VpcLattice::AccessLogSubscription";function CfnAuthPolicyPropsValidator(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("policy",cdk.requiredValidator)(properties.policy)),errors.collect(cdk.propertyValidator("policy",cdk.validateObject)(properties.policy)),errors.collect(cdk.propertyValidator("resourceIdentifier",cdk.requiredValidator)(properties.resourceIdentifier)),errors.collect(cdk.propertyValidator("resourceIdentifier",cdk.validateString)(properties.resourceIdentifier)),errors.wrap('supplied properties not correct for "CfnAuthPolicyProps"')}function cfnAuthPolicyPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAuthPolicyPropsValidator(properties).assertSuccess(),{Policy:cdk.objectToCloudFormation(properties.policy),ResourceIdentifier:cdk.stringToCloudFormation(properties.resourceIdentifier)}):properties}function CfnAuthPolicyPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("policy","Policy",cfn_parse.FromCloudFormation.getAny(properties.Policy)),ret.addPropertyResult("resourceIdentifier","ResourceIdentifier",cfn_parse.FromCloudFormation.getString(properties.ResourceIdentifier)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnAuthPolicy extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnAuthPolicy.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_vpclattice_CfnAuthPolicyProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnAuthPolicy),error}cdk.requireProperty(props,"policy",this),cdk.requireProperty(props,"resourceIdentifier",this),this.attrState=cdk.Token.asString(this.getAtt("State",cdk.ResolutionTypeHint.STRING)),this.policy=props.policy,this.resourceIdentifier=props.resourceIdentifier}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnAuthPolicyPropsFromCloudFormation(resourceProperties),ret=new CfnAuthPolicy(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",CfnAuthPolicy.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{policy:this.policy,resourceIdentifier:this.resourceIdentifier}}renderProperties(props){return cfnAuthPolicyPropsToCloudFormation(props)}}exports.CfnAuthPolicy=CfnAuthPolicy,_b=JSII_RTTI_SYMBOL_1,CfnAuthPolicy[_b]={fqn:"aws-cdk-lib.aws_vpclattice.CfnAuthPolicy",version:"2.70.0"},CfnAuthPolicy.CFN_RESOURCE_TYPE_NAME="AWS::VpcLattice::AuthPolicy";function CfnListenerPropsValidator(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("defaultAction",cdk.requiredValidator)(properties.defaultAction)),errors.collect(cdk.propertyValidator("defaultAction",CfnListener_DefaultActionPropertyValidator)(properties.defaultAction)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("port",cdk.validateNumber)(properties.port)),errors.collect(cdk.propertyValidator("protocol",cdk.requiredValidator)(properties.protocol)),errors.collect(cdk.propertyValidator("protocol",cdk.validateString)(properties.protocol)),errors.collect(cdk.propertyValidator("serviceIdentifier",cdk.validateString)(properties.serviceIdentifier)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnListenerProps"')}function cfnListenerPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnListenerPropsValidator(properties).assertSuccess(),{DefaultAction:cfnListenerDefaultActionPropertyToCloudFormation(properties.defaultAction),Protocol:cdk.stringToCloudFormation(properties.protocol),Name:cdk.stringToCloudFormation(properties.name),Port:cdk.numberToCloudFormation(properties.port),ServiceIdentifier:cdk.stringToCloudFormation(properties.serviceIdentifier),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags)}):properties}function CfnListenerPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("defaultAction","DefaultAction",CfnListenerDefaultActionPropertyFromCloudFormation(properties.DefaultAction)),ret.addPropertyResult("protocol","Protocol",cfn_parse.FromCloudFormation.getString(properties.Protocol)),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse.FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("port","Port",properties.Port!=null?cfn_parse.FromCloudFormation.getNumber(properties.Port):void 0),ret.addPropertyResult("serviceIdentifier","ServiceIdentifier",properties.ServiceIdentifier!=null?cfn_parse.FromCloudFormation.getString(properties.ServiceIdentifier):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 CfnListener extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnListener.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_vpclattice_CfnListenerProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnListener),error}cdk.requireProperty(props,"defaultAction",this),cdk.requireProperty(props,"protocol",this),this.attrArn=cdk.Token.asString(this.getAtt("Arn",cdk.ResolutionTypeHint.STRING)),this.attrId=cdk.Token.asString(this.getAtt("Id",cdk.ResolutionTypeHint.STRING)),this.attrServiceArn=cdk.Token.asString(this.getAtt("ServiceArn",cdk.ResolutionTypeHint.STRING)),this.attrServiceId=cdk.Token.asString(this.getAtt("ServiceId",cdk.ResolutionTypeHint.STRING)),this.defaultAction=props.defaultAction,this.protocol=props.protocol,this.name=props.name,this.port=props.port,this.serviceIdentifier=props.serviceIdentifier,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::VpcLattice::Listener",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnListenerPropsFromCloudFormation(resourceProperties),ret=new CfnListener(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",CfnListener.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{defaultAction:this.defaultAction,protocol:this.protocol,name:this.name,port:this.port,serviceIdentifier:this.serviceIdentifier,tags:this.tags.renderTags()}}renderProperties(props){return cfnListenerPropsToCloudFormation(props)}}exports.CfnListener=CfnListener,_c=JSII_RTTI_SYMBOL_1,CfnListener[_c]={fqn:"aws-cdk-lib.aws_vpclattice.CfnListener",version:"2.70.0"},CfnListener.CFN_RESOURCE_TYPE_NAME="AWS::VpcLattice::Listener";function CfnListener_DefaultActionPropertyValidator(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("forward",cdk.requiredValidator)(properties.forward)),errors.collect(cdk.propertyValidator("forward",CfnListener_ForwardPropertyValidator)(properties.forward)),errors.wrap('supplied properties not correct for "DefaultActionProperty"')}function cfnListenerDefaultActionPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnListener_DefaultActionPropertyValidator(properties).assertSuccess(),{Forward:cfnListenerForwardPropertyToCloudFormation(properties.forward)}):properties}function CfnListenerDefaultActionPropertyFromCloudFormation(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("forward","Forward",CfnListenerForwardPropertyFromCloudFormation(properties.Forward)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnListener_ForwardPropertyValidator(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("targetGroups",cdk.requiredValidator)(properties.targetGroups)),errors.collect(cdk.propertyValidator("targetGroups",cdk.listValidator(CfnListener_WeightedTargetGroupPropertyValidator))(properties.targetGroups)),errors.wrap('supplied properties not correct for "ForwardProperty"')}function cfnListenerForwardPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnListener_ForwardPropertyValidator(properties).assertSuccess(),{TargetGroups:cdk.listMapper(cfnListenerWeightedTargetGroupPropertyToCloudFormation)(properties.targetGroups)}):properties}function CfnListenerForwardPropertyFromCloudFormation(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("targetGroups","TargetGroups",cfn_parse.FromCloudFormation.getArray(CfnListenerWeightedTargetGroupPropertyFromCloudFormation)(properties.TargetGroups)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnListener_WeightedTargetGroupPropertyValidator(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("targetGroupIdentifier",cdk.requiredValidator)(properties.targetGroupIdentifier)),errors.collect(cdk.propertyValidator("targetGroupIdentifier",cdk.validateString)(properties.targetGroupIdentifier)),errors.collect(cdk.propertyValidator("weight",cdk.validateNumber)(properties.weight)),errors.wrap('supplied properties not correct for "WeightedTargetGroupProperty"')}function cfnListenerWeightedTargetGroupPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnListener_WeightedTargetGroupPropertyValidator(properties).assertSuccess(),{TargetGroupIdentifier:cdk.stringToCloudFormation(properties.targetGroupIdentifier),Weight:cdk.numberToCloudFormation(properties.weight)}):properties}function CfnListenerWeightedTargetGroupPropertyFromCloudFormation(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("targetGroupIdentifier","TargetGroupIdentifier",cfn_parse.FromCloudFormation.getString(properties.TargetGroupIdentifier)),ret.addPropertyResult("weight","Weight",properties.Weight!=null?cfn_parse.FromCloudFormation.getNumber(properties.Weight):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnResourcePolicyPropsValidator(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("policy",cdk.requiredValidator)(properties.policy)),errors.collect(cdk.propertyValidator("policy",cdk.validateObject)(properties.policy)),errors.collect(cdk.propertyValidator("resourceArn",cdk.requiredValidator)(properties.resourceArn)),errors.collect(cdk.propertyValidator("resourceArn",cdk.validateString)(properties.resourceArn)),errors.wrap('supplied properties not correct for "CfnResourcePolicyProps"')}function cfnResourcePolicyPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnResourcePolicyPropsValidator(properties).assertSuccess(),{Policy:cdk.objectToCloudFormation(properties.policy),ResourceArn:cdk.stringToCloudFormation(properties.resourceArn)}):properties}function CfnResourcePolicyPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("policy","Policy",cfn_parse.FromCloudFormation.getAny(properties.Policy)),ret.addPropertyResult("resourceArn","ResourceArn",cfn_parse.FromCloudFormation.getString(properties.ResourceArn)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnResourcePolicy extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnResourcePolicy.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_vpclattice_CfnResourcePolicyProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnResourcePolicy),error}cdk.requireProperty(props,"policy",this),cdk.requireProperty(props,"resourceArn",this),this.policy=props.policy,this.resourceArn=props.resourceArn}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnResourcePolicyPropsFromCloudFormation(resourceProperties),ret=new CfnResourcePolicy(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",CfnResourcePolicy.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{policy:this.policy,resourceArn:this.resourceArn}}renderProperties(props){return cfnResourcePolicyPropsToCloudFormation(props)}}exports.CfnResourcePolicy=CfnResourcePolicy,_d=JSII_RTTI_SYMBOL_1,CfnResourcePolicy[_d]={fqn:"aws-cdk-lib.aws_vpclattice.CfnResourcePolicy",version:"2.70.0"},CfnResourcePolicy.CFN_RESOURCE_TYPE_NAME="AWS::VpcLattice::ResourcePolicy";function CfnRulePropsValidator(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("action",cdk.requiredValidator)(properties.action)),errors.collect(cdk.propertyValidator("action",CfnRule_ActionPropertyValidator)(properties.action)),errors.collect(cdk.propertyValidator("listenerIdentifier",cdk.validateString)(properties.listenerIdentifier)),errors.collect(cdk.propertyValidator("match",cdk.requiredValidator)(properties.match)),errors.collect(cdk.propertyValidator("match",CfnRule_MatchPropertyValidator)(properties.match)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("priority",cdk.requiredValidator)(properties.priority)),errors.collect(cdk.propertyValidator("priority",cdk.validateNumber)(properties.priority)),errors.collect(cdk.propertyValidator("serviceIdentifier",cdk.validateString)(properties.serviceIdentifier)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnRuleProps"')}function cfnRulePropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnRulePropsValidator(properties).assertSuccess(),{Action:cfnRuleActionPropertyToCloudFormation(properties.action),Match:cfnRuleMatchPropertyToCloudFormation(properties.match),Priority:cdk.numberToCloudFormation(properties.priority),ListenerIdentifier:cdk.stringToCloudFormation(properties.listenerIdentifier),Name:cdk.stringToCloudFormation(properties.name),ServiceIdentifier:cdk.stringToCloudFormation(properties.serviceIdentifier),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags)}):properties}function CfnRulePropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("action","Action",CfnRuleActionPropertyFromCloudFormation(properties.Action)),ret.addPropertyResult("match","Match",CfnRuleMatchPropertyFromCloudFormation(properties.Match)),ret.addPropertyResult("priority","Priority",cfn_parse.FromCloudFormation.getNumber(properties.Priority)),ret.addPropertyResult("listenerIdentifier","ListenerIdentifier",properties.ListenerIdentifier!=null?cfn_parse.FromCloudFormation.getString(properties.ListenerIdentifier):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse.FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("serviceIdentifier","ServiceIdentifier",properties.ServiceIdentifier!=null?cfn_parse.FromCloudFormation.getString(properties.ServiceIdentifier):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 CfnRule extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnRule.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_vpclattice_CfnRuleProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnRule),error}cdk.requireProperty(props,"action",this),cdk.requireProperty(props,"match",this),cdk.requireProperty(props,"priority",this),this.attrArn=cdk.Token.asString(this.getAtt("Arn",cdk.ResolutionTypeHint.STRING)),this.attrId=cdk.Token.asString(this.getAtt("Id",cdk.ResolutionTypeHint.STRING)),this.action=props.action,this.match=props.match,this.priority=props.priority,this.listenerIdentifier=props.listenerIdentifier,this.name=props.name,this.serviceIdentifier=props.serviceIdentifier,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::VpcLattice::Rule",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnRulePropsFromCloudFormation(resourceProperties),ret=new CfnRule(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",CfnRule.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{action:this.action,match:this.match,priority:this.priority,listenerIdentifier:this.listenerIdentifier,name:this.name,serviceIdentifier:this.serviceIdentifier,tags:this.tags.renderTags()}}renderProperties(props){return cfnRulePropsToCloudFormation(props)}}exports.CfnRule=CfnRule,_e=JSII_RTTI_SYMBOL_1,CfnRule[_e]={fqn:"aws-cdk-lib.aws_vpclattice.CfnRule",version:"2.70.0"},CfnRule.CFN_RESOURCE_TYPE_NAME="AWS::VpcLattice::Rule";function CfnRule_ActionPropertyValidator(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("forward",cdk.requiredValidator)(properties.forward)),errors.collect(cdk.propertyValidator("forward",CfnRule_ForwardPropertyValidator)(properties.forward)),errors.wrap('supplied properties not correct for "ActionProperty"')}function cfnRuleActionPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnRule_ActionPropertyValidator(properties).assertSuccess(),{Forward:cfnRuleForwardPropertyToCloudFormation(properties.forward)}):properties}function CfnRuleActionPropertyFromCloudFormation(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("forward","Forward",CfnRuleForwardPropertyFromCloudFormation(properties.Forward)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnRule_ForwardPropertyValidator(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("targetGroups",cdk.requiredValidator)(properties.targetGroups)),errors.collect(cdk.propertyValidator("targetGroups",cdk.listValidator(CfnRule_WeightedTargetGroupPropertyValidator))(properties.targetGroups)),errors.wrap('supplied properties not correct for "ForwardProperty"')}function cfnRuleForwardPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnRule_ForwardPropertyValidator(properties).assertSuccess(),{TargetGroups:cdk.listMapper(cfnRuleWeightedTargetGroupPropertyToCloudFormation)(properties.targetGroups)}):properties}function CfnRuleForwardPropertyFromCloudFormation(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("targetGroups","TargetGroups",cfn_parse.FromCloudFormation.getArray(CfnRuleWeightedTargetGroupPropertyFromCloudFormation)(properties.TargetGroups)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnRule_HeaderMatchPropertyValidator(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("caseSensitive",cdk.validateBoolean)(properties.caseSensitive)),errors.collect(cdk.propertyValidator("match",cdk.requiredValidator)(properties.match)),errors.collect(cdk.propertyValidator("match",CfnRule_HeaderMatchTypePropertyValidator)(properties.match)),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 "HeaderMatchProperty"')}function cfnRuleHeaderMatchPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnRule_HeaderMatchPropertyValidator(properties).assertSuccess(),{CaseSensitive:cdk.booleanToCloudFormation(properties.caseSensitive),Match:cfnRuleHeaderMatchTypePropertyToCloudFormation(properties.match),Name:cdk.stringToCloudFormation(properties.name)}):properties}function CfnRuleHeaderMatchPropertyFromCloudFormation(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("caseSensitive","CaseSensitive",properties.CaseSensitive!=null?cfn_parse.FromCloudFormation.getBoolean(properties.CaseSensitive):void 0),ret.addPropertyResult("match","Match",CfnRuleHeaderMatchTypePropertyFromCloudFormation(properties.Match)),ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnRule_HeaderMatchTypePropertyValidator(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("contains",cdk.validateString)(properties.contains)),errors.collect(cdk.propertyValidator("exact",cdk.validateString)(properties.exact)),errors.collect(cdk.propertyValidator("prefix",cdk.validateString)(properties.prefix)),errors.wrap('supplied properties not correct for "HeaderMatchTypeProperty"')}function cfnRuleHeaderMatchTypePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnRule_HeaderMatchTypePropertyValidator(properties).assertSuccess(),{Contains:cdk.stringToCloudFormation(properties.contains),Exact:cdk.stringToCloudFormation(properties.exact),Prefix:cdk.stringToCloudFormation(properties.prefix)}):properties}function CfnRuleHeaderMatchTypePropertyFromCloudFormation(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("contains","Contains",properties.Contains!=null?cfn_parse.FromCloudFormation.getString(properties.Contains):void 0),ret.addPropertyResult("exact","Exact",properties.Exact!=null?cfn_parse.FromCloudFormation.getString(properties.Exact):void 0),ret.addPropertyResult("prefix","Prefix",properties.Prefix!=null?cfn_parse.FromCloudFormation.getString(properties.Prefix):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnRule_HttpMatchPropertyValidator(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("headerMatches",cdk.listValidator(CfnRule_HeaderMatchPropertyValidator))(properties.headerMatches)),errors.collect(cdk.propertyValidator("method",cdk.validateString)(properties.method)),errors.collect(cdk.propertyValidator("pathMatch",CfnRule_PathMatchPropertyValidator)(properties.pathMatch)),errors.wrap('supplied properties not correct for "HttpMatchProperty"')}function cfnRuleHttpMatchPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnRule_HttpMatchPropertyValidator(properties).assertSuccess(),{HeaderMatches:cdk.listMapper(cfnRuleHeaderMatchPropertyToCloudFormation)(properties.headerMatches),Method:cdk.stringToCloudFormation(properties.method),PathMatch:cfnRulePathMatchPropertyToCloudFormation(properties.pathMatch)}):properties}function CfnRuleHttpMatchPropertyFromCloudFormation(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("headerMatches","HeaderMatches",properties.HeaderMatches!=null?cfn_parse.FromCloudFormation.getArray(CfnRuleHeaderMatchPropertyFromCloudFormation)(properties.HeaderMatches):void 0),ret.addPropertyResult("method","Method",properties.Method!=null?cfn_parse.FromCloudFormation.getString(properties.Method):void 0),ret.addPropertyResult("pathMatch","PathMatch",properties.PathMatch!=null?CfnRulePathMatchPropertyFromCloudFormation(properties.PathMatch):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnRule_MatchPropertyValidator(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("httpMatch",cdk.requiredValidator)(properties.httpMatch)),errors.collect(cdk.propertyValidator("httpMatch",CfnRule_HttpMatchPropertyValidator)(properties.httpMatch)),errors.wrap('supplied properties not correct for "MatchProperty"')}function cfnRuleMatchPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnRule_MatchPropertyValidator(properties).assertSuccess(),{HttpMatch:cfnRuleHttpMatchPropertyToCloudFormation(properties.httpMatch)}):properties}function CfnRuleMatchPropertyFromCloudFormation(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("httpMatch","HttpMatch",CfnRuleHttpMatchPropertyFromCloudFormation(properties.HttpMatch)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnRule_PathMatchPropertyValidator(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("caseSensitive",cdk.validateBoolean)(properties.caseSensitive)),errors.collect(cdk.propertyValidator("match",cdk.requiredValidator)(properties.match)),errors.collect(cdk.propertyValidator("match",CfnRule_PathMatchTypePropertyValidator)(properties.match)),errors.wrap('supplied properties not correct for "PathMatchProperty"')}function cfnRulePathMatchPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnRule_PathMatchPropertyValidator(properties).assertSuccess(),{CaseSensitive:cdk.booleanToCloudFormation(properties.caseSensitive),Match:cfnRulePathMatchTypePropertyToCloudFormation(properties.match)}):properties}function CfnRulePathMatchPropertyFromCloudFormation(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("caseSensitive","CaseSensitive",properties.CaseSensitive!=null?cfn_parse.FromCloudFormation.getBoolean(properties.CaseSensitive):void 0),ret.addPropertyResult("match","Match",CfnRulePathMatchTypePropertyFromCloudFormation(properties.Match)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnRule_PathMatchTypePropertyValidator(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("exact",cdk.validateString)(properties.exact)),errors.collect(cdk.propertyValidator("prefix",cdk.validateString)(properties.prefix)),errors.wrap('supplied properties not correct for "PathMatchTypeProperty"')}function cfnRulePathMatchTypePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnRule_PathMatchTypePropertyValidator(properties).assertSuccess(),{Exact:cdk.stringToCloudFormation(properties.exact),Prefix:cdk.stringToCloudFormation(properties.prefix)}):properties}function CfnRulePathMatchTypePropertyFromCloudFormation(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("exact","Exact",properties.Exact!=null?cfn_parse.FromCloudFormation.getString(properties.Exact):void 0),ret.addPropertyResult("prefix","Prefix",properties.Prefix!=null?cfn_parse.FromCloudFormation.getString(properties.Prefix):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnRule_WeightedTargetGroupPropertyValidator(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("targetGroupIdentifier",cdk.requiredValidator)(properties.targetGroupIdentifier)),errors.collect(cdk.propertyValidator("targetGroupIdentifier",cdk.validateString)(properties.targetGroupIdentifier)),errors.collect(cdk.propertyValidator("weight",cdk.validateNumber)(properties.weight)),errors.wrap('supplied properties not correct for "WeightedTargetGroupProperty"')}function cfnRuleWeightedTargetGroupPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnRule_WeightedTargetGroupPropertyValidator(properties).assertSuccess(),{TargetGroupIdentifier:cdk.stringToCloudFormation(properties.targetGroupIdentifier),Weight:cdk.numberToCloudFormation(properties.weight)}):properties}function CfnRuleWeightedTargetGroupPropertyFromCloudFormation(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("targetGroupIdentifier","TargetGroupIdentifier",cfn_parse.FromCloudFormation.getString(properties.TargetGroupIdentifier)),ret.addPropertyResult("weight","Weight",properties.Weight!=null?cfn_parse.FromCloudFormation.getNumber(properties.Weight):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnServicePropsValidator(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("authType",cdk.validateString)(properties.authType)),errors.collect(cdk.propertyValidator("certificateArn",cdk.validateString)(properties.certificateArn)),errors.collect(cdk.propertyValidator("customDomainName",cdk.validateString)(properties.customDomainName)),errors.collect(cdk.propertyValidator("dnsEntry",CfnService_DnsEntryPropertyValidator)(properties.dnsEntry)),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 "CfnServiceProps"')}function cfnServicePropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnServicePropsValidator(properties).assertSuccess(),{AuthType:cdk.stringToCloudFormation(properties.authType),CertificateArn:cdk.stringToCloudFormation(properties.certificateArn),CustomDomainName:cdk.stringToCloudFormation(properties.customDomainName),DnsEntry:cfnServiceDnsEntryPropertyToCloudFormation(properties.dnsEntry),Name:cdk.stringToCloudFormation(properties.name),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags)}):properties}function CfnServicePropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("authType","AuthType",properties.AuthType!=null?cfn_parse.FromCloudFormation.getString(properties.AuthType):void 0),ret.addPropertyResult("certificateArn","CertificateArn",properties.CertificateArn!=null?cfn_parse.FromCloudFormation.getString(properties.CertificateArn):void 0),ret.addPropertyResult("customDomainName","CustomDomainName",properties.CustomDomainName!=null?cfn_parse.FromCloudFormation.getString(properties.CustomDomainName):void 0),ret.addPropertyResult("dnsEntry","DnsEntry",properties.DnsEntry!=null?CfnServiceDnsEntryPropertyFromCloudFormation(properties.DnsEntry):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse.FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(cfn_parse.FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnService extends cdk.CfnResource{constructor(scope,id,props={}){super(scope,id,{type:CfnService.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_vpclattice_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.attrCreatedAt=cdk.Token.asString(this.getAtt("CreatedAt",cdk.ResolutionTypeHint.STRING)),this.attrDnsEntryDomainName=cdk.Token.asString(this.getAtt("DnsEntry.DomainName",cdk.ResolutionTypeHint.STRING)),this.attrDnsEntryHostedZoneId=cdk.Token.asString(this.getAtt("DnsEntry.HostedZoneId",cdk.ResolutionTypeHint.STRING)),this.attrId=cdk.Token.asString(this.getAtt("Id",cdk.ResolutionTypeHint.STRING)),this.attrLastUpdatedAt=cdk.Token.asString(this.getAtt("LastUpdatedAt",cdk.ResolutionTypeHint.STRING)),this.attrStatus=cdk.Token.asString(this.getAtt("Status",cdk.ResolutionTypeHint.STRING)),this.authType=props.authType,this.certificateArn=props.certificateArn,this.customDomainName=props.customDomainName,this.dnsEntry=props.dnsEntry,this.name=props.name,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::VpcLattice::Service",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnServicePropsFromCloudFormation(resourceProperties),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}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)}get cfnProperties(){return{authType:this.authType,certificateArn:this.certificateArn,customDomainName:this.customDomainName,dnsEntry:this.dnsEntry,name:this.name,tags:this.tags.renderTags()}}renderProperties(props){return cfnServicePropsToCloudFormation(props)}}exports.CfnService=CfnService,_f=JSII_RTTI_SYMBOL_1,CfnService[_f]={fqn:"aws-cdk-lib.aws_vpclattice.CfnService",version:"2.70.0"},CfnService.CFN_RESOURCE_TYPE_NAME="AWS::VpcLattice::Service";function CfnService_DnsEntryPropertyValidator(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("domainName",cdk.validateString)(properties.domainName)),errors.collect(cdk.propertyValidator("hostedZoneId",cdk.validateString)(properties.hostedZoneId)),errors.wrap('supplied properties not correct for "DnsEntryProperty"')}function cfnServiceDnsEntryPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnService_DnsEntryPropertyValidator(properties).assertSuccess(),{DomainName:cdk.stringToCloudFormation(properties.domainName),HostedZoneId:cdk.stringToCloudFormation(properties.hostedZoneId)}):properties}function CfnServiceDnsEntryPropertyFromCloudFormation(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("domainName","DomainName",properties.DomainName!=null?cfn_parse.FromCloudFormation.getString(properties.DomainName):void 0),ret.addPropertyResult("hostedZoneId","HostedZoneId",properties.HostedZoneId!=null?cfn_parse.FromCloudFormation.getString(properties.HostedZoneId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnServiceNetworkPropsValidator(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("authType",cdk.validateString)(properties.authType)),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 "CfnServiceNetworkProps"')}function cfnServiceNetworkPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnServiceNetworkPropsValidator(properties).assertSuccess(),{AuthType:cdk.stringToCloudFormation(properties.authType),Name:cdk.stringToCloudFormation(properties.name),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags)}):properties}function CfnServiceNetworkPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("authType","AuthType",properties.AuthType!=null?cfn_parse.FromCloudFormation.getString(properties.AuthType):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 CfnServiceNetwork extends cdk.CfnResource{constructor(scope,id,props={}){s