UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

1 lines 146 kB
"use strict";var _a,_b,_c,_d,_e,_f,_g,_h,_j,_k,_l,_m,_o,_p,_q;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnDirectConnectGatewayAttachment=exports.CfnVpcAttachment=exports.CfnTransitGatewayRouteTableAttachment=exports.CfnTransitGatewayRegistration=exports.CfnTransitGatewayPeering=exports.CfnSiteToSiteVpnAttachment=exports.CfnSite=exports.CfnLinkAssociation=exports.CfnLink=exports.CfnGlobalNetwork=exports.CfnDevice=exports.CfnCustomerGatewayAssociation=exports.CfnCoreNetwork=exports.CfnConnectPeer=exports.CfnConnectAttachment=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");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 CfnConnectAttachment extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnConnectAttachmentPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnConnectAttachment(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}constructor(scope,id,props){super(scope,id,{type:CfnConnectAttachment.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_networkmanager_CfnConnectAttachmentProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnConnectAttachment),error}cdk().requireProperty(props,"coreNetworkId",this),cdk().requireProperty(props,"edgeLocation",this),cdk().requireProperty(props,"options",this),cdk().requireProperty(props,"transportAttachmentId",this),this.attrAttachmentId=cdk().Token.asString(this.getAtt("AttachmentId",cdk().ResolutionTypeHint.STRING)),this.attrAttachmentPolicyRuleNumber=cdk().Token.asNumber(this.getAtt("AttachmentPolicyRuleNumber",cdk().ResolutionTypeHint.NUMBER)),this.attrAttachmentType=cdk().Token.asString(this.getAtt("AttachmentType",cdk().ResolutionTypeHint.STRING)),this.attrCoreNetworkArn=cdk().Token.asString(this.getAtt("CoreNetworkArn",cdk().ResolutionTypeHint.STRING)),this.attrCreatedAt=cdk().Token.asString(this.getAtt("CreatedAt",cdk().ResolutionTypeHint.STRING)),this.attrOwnerAccountId=cdk().Token.asString(this.getAtt("OwnerAccountId",cdk().ResolutionTypeHint.STRING)),this.attrResourceArn=cdk().Token.asString(this.getAtt("ResourceArn",cdk().ResolutionTypeHint.STRING)),this.attrSegmentName=cdk().Token.asString(this.getAtt("SegmentName",cdk().ResolutionTypeHint.STRING)),this.attrState=cdk().Token.asString(this.getAtt("State",cdk().ResolutionTypeHint.STRING)),this.attrUpdatedAt=cdk().Token.asString(this.getAtt("UpdatedAt",cdk().ResolutionTypeHint.STRING)),this.coreNetworkId=props.coreNetworkId,this.edgeLocation=props.edgeLocation,this.networkFunctionGroupName=props.networkFunctionGroupName,this.options=props.options,this.proposedNetworkFunctionGroupChange=props.proposedNetworkFunctionGroupChange,this.proposedSegmentChange=props.proposedSegmentChange,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::NetworkManager::ConnectAttachment",props.tags,{tagPropertyName:"tags"}),this.tagsRaw=props.tags,this.transportAttachmentId=props.transportAttachmentId}get cfnProperties(){return{coreNetworkId:this.coreNetworkId,edgeLocation:this.edgeLocation,networkFunctionGroupName:this.networkFunctionGroupName,options:this.options,proposedNetworkFunctionGroupChange:this.proposedNetworkFunctionGroupChange,proposedSegmentChange:this.proposedSegmentChange,tags:this.tags.renderTags(),transportAttachmentId:this.transportAttachmentId}}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",CfnConnectAttachment.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnConnectAttachmentPropsToCloudFormation(props)}}exports.CfnConnectAttachment=CfnConnectAttachment,_a=JSII_RTTI_SYMBOL_1,CfnConnectAttachment[_a]={fqn:"aws-cdk-lib.aws_networkmanager.CfnConnectAttachment",version:"2.202.0"},CfnConnectAttachment.CFN_RESOURCE_TYPE_NAME="AWS::NetworkManager::ConnectAttachment";function CfnConnectAttachmentProposedSegmentChangePropertyValidator(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("attachmentPolicyRuleNumber",cdk().validateNumber)(properties.attachmentPolicyRuleNumber)),errors.collect(cdk().propertyValidator("segmentName",cdk().validateString)(properties.segmentName)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "ProposedSegmentChangeProperty"')}function convertCfnConnectAttachmentProposedSegmentChangePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnConnectAttachmentProposedSegmentChangePropertyValidator(properties).assertSuccess(),{AttachmentPolicyRuleNumber:cdk().numberToCloudFormation(properties.attachmentPolicyRuleNumber),SegmentName:cdk().stringToCloudFormation(properties.segmentName),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnConnectAttachmentProposedSegmentChangePropertyFromCloudFormation(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("attachmentPolicyRuleNumber","AttachmentPolicyRuleNumber",properties.AttachmentPolicyRuleNumber!=null?cfn_parse().FromCloudFormation.getNumber(properties.AttachmentPolicyRuleNumber):void 0),ret.addPropertyResult("segmentName","SegmentName",properties.SegmentName!=null?cfn_parse().FromCloudFormation.getString(properties.SegmentName):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}function CfnConnectAttachmentConnectAttachmentOptionsPropertyValidator(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("protocol",cdk().validateString)(properties.protocol)),errors.wrap('supplied properties not correct for "ConnectAttachmentOptionsProperty"')}function convertCfnConnectAttachmentConnectAttachmentOptionsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnConnectAttachmentConnectAttachmentOptionsPropertyValidator(properties).assertSuccess(),{Protocol:cdk().stringToCloudFormation(properties.protocol)}):properties}function CfnConnectAttachmentConnectAttachmentOptionsPropertyFromCloudFormation(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("protocol","Protocol",properties.Protocol!=null?cfn_parse().FromCloudFormation.getString(properties.Protocol):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnConnectAttachmentProposedNetworkFunctionGroupChangePropertyValidator(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("attachmentPolicyRuleNumber",cdk().validateNumber)(properties.attachmentPolicyRuleNumber)),errors.collect(cdk().propertyValidator("networkFunctionGroupName",cdk().validateString)(properties.networkFunctionGroupName)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "ProposedNetworkFunctionGroupChangeProperty"')}function convertCfnConnectAttachmentProposedNetworkFunctionGroupChangePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnConnectAttachmentProposedNetworkFunctionGroupChangePropertyValidator(properties).assertSuccess(),{AttachmentPolicyRuleNumber:cdk().numberToCloudFormation(properties.attachmentPolicyRuleNumber),NetworkFunctionGroupName:cdk().stringToCloudFormation(properties.networkFunctionGroupName),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnConnectAttachmentProposedNetworkFunctionGroupChangePropertyFromCloudFormation(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("attachmentPolicyRuleNumber","AttachmentPolicyRuleNumber",properties.AttachmentPolicyRuleNumber!=null?cfn_parse().FromCloudFormation.getNumber(properties.AttachmentPolicyRuleNumber):void 0),ret.addPropertyResult("networkFunctionGroupName","NetworkFunctionGroupName",properties.NetworkFunctionGroupName!=null?cfn_parse().FromCloudFormation.getString(properties.NetworkFunctionGroupName):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}function CfnConnectAttachmentPropsValidator(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("coreNetworkId",cdk().requiredValidator)(properties.coreNetworkId)),errors.collect(cdk().propertyValidator("coreNetworkId",cdk().validateString)(properties.coreNetworkId)),errors.collect(cdk().propertyValidator("edgeLocation",cdk().requiredValidator)(properties.edgeLocation)),errors.collect(cdk().propertyValidator("edgeLocation",cdk().validateString)(properties.edgeLocation)),errors.collect(cdk().propertyValidator("networkFunctionGroupName",cdk().validateString)(properties.networkFunctionGroupName)),errors.collect(cdk().propertyValidator("options",cdk().requiredValidator)(properties.options)),errors.collect(cdk().propertyValidator("options",CfnConnectAttachmentConnectAttachmentOptionsPropertyValidator)(properties.options)),errors.collect(cdk().propertyValidator("proposedNetworkFunctionGroupChange",CfnConnectAttachmentProposedNetworkFunctionGroupChangePropertyValidator)(properties.proposedNetworkFunctionGroupChange)),errors.collect(cdk().propertyValidator("proposedSegmentChange",CfnConnectAttachmentProposedSegmentChangePropertyValidator)(properties.proposedSegmentChange)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.collect(cdk().propertyValidator("transportAttachmentId",cdk().requiredValidator)(properties.transportAttachmentId)),errors.collect(cdk().propertyValidator("transportAttachmentId",cdk().validateString)(properties.transportAttachmentId)),errors.wrap('supplied properties not correct for "CfnConnectAttachmentProps"')}function convertCfnConnectAttachmentPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnConnectAttachmentPropsValidator(properties).assertSuccess(),{CoreNetworkId:cdk().stringToCloudFormation(properties.coreNetworkId),EdgeLocation:cdk().stringToCloudFormation(properties.edgeLocation),NetworkFunctionGroupName:cdk().stringToCloudFormation(properties.networkFunctionGroupName),Options:convertCfnConnectAttachmentConnectAttachmentOptionsPropertyToCloudFormation(properties.options),ProposedNetworkFunctionGroupChange:convertCfnConnectAttachmentProposedNetworkFunctionGroupChangePropertyToCloudFormation(properties.proposedNetworkFunctionGroupChange),ProposedSegmentChange:convertCfnConnectAttachmentProposedSegmentChangePropertyToCloudFormation(properties.proposedSegmentChange),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags),TransportAttachmentId:cdk().stringToCloudFormation(properties.transportAttachmentId)}):properties}function CfnConnectAttachmentPropsFromCloudFormation(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("coreNetworkId","CoreNetworkId",properties.CoreNetworkId!=null?cfn_parse().FromCloudFormation.getString(properties.CoreNetworkId):void 0),ret.addPropertyResult("edgeLocation","EdgeLocation",properties.EdgeLocation!=null?cfn_parse().FromCloudFormation.getString(properties.EdgeLocation):void 0),ret.addPropertyResult("networkFunctionGroupName","NetworkFunctionGroupName",properties.NetworkFunctionGroupName!=null?cfn_parse().FromCloudFormation.getString(properties.NetworkFunctionGroupName):void 0),ret.addPropertyResult("options","Options",properties.Options!=null?CfnConnectAttachmentConnectAttachmentOptionsPropertyFromCloudFormation(properties.Options):void 0),ret.addPropertyResult("proposedNetworkFunctionGroupChange","ProposedNetworkFunctionGroupChange",properties.ProposedNetworkFunctionGroupChange!=null?CfnConnectAttachmentProposedNetworkFunctionGroupChangePropertyFromCloudFormation(properties.ProposedNetworkFunctionGroupChange):void 0),ret.addPropertyResult("proposedSegmentChange","ProposedSegmentChange",properties.ProposedSegmentChange!=null?CfnConnectAttachmentProposedSegmentChangePropertyFromCloudFormation(properties.ProposedSegmentChange):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addPropertyResult("transportAttachmentId","TransportAttachmentId",properties.TransportAttachmentId!=null?cfn_parse().FromCloudFormation.getString(properties.TransportAttachmentId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnConnectPeer extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnConnectPeerPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnConnectPeer(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}constructor(scope,id,props){super(scope,id,{type:CfnConnectPeer.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_networkmanager_CfnConnectPeerProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnConnectPeer),error}cdk().requireProperty(props,"connectAttachmentId",this),cdk().requireProperty(props,"peerAddress",this),this.attrConfiguration=this.getAtt("Configuration"),this.attrConfigurationBgpConfigurations=this.getAtt("Configuration.BgpConfigurations"),this.attrConfigurationCoreNetworkAddress=cdk().Token.asString(this.getAtt("Configuration.CoreNetworkAddress",cdk().ResolutionTypeHint.STRING)),this.attrConfigurationInsideCidrBlocks=cdk().Token.asList(this.getAtt("Configuration.InsideCidrBlocks",cdk().ResolutionTypeHint.STRING_LIST)),this.attrConfigurationPeerAddress=cdk().Token.asString(this.getAtt("Configuration.PeerAddress",cdk().ResolutionTypeHint.STRING)),this.attrConfigurationProtocol=cdk().Token.asString(this.getAtt("Configuration.Protocol",cdk().ResolutionTypeHint.STRING)),this.attrConnectPeerId=cdk().Token.asString(this.getAtt("ConnectPeerId",cdk().ResolutionTypeHint.STRING)),this.attrCoreNetworkId=cdk().Token.asString(this.getAtt("CoreNetworkId",cdk().ResolutionTypeHint.STRING)),this.attrCreatedAt=cdk().Token.asString(this.getAtt("CreatedAt",cdk().ResolutionTypeHint.STRING)),this.attrEdgeLocation=cdk().Token.asString(this.getAtt("EdgeLocation",cdk().ResolutionTypeHint.STRING)),this.attrState=cdk().Token.asString(this.getAtt("State",cdk().ResolutionTypeHint.STRING)),this.bgpOptions=props.bgpOptions,this.connectAttachmentId=props.connectAttachmentId,this.coreNetworkAddress=props.coreNetworkAddress,this.insideCidrBlocks=props.insideCidrBlocks,this.peerAddress=props.peerAddress,this.subnetArn=props.subnetArn,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::NetworkManager::ConnectPeer",props.tags,{tagPropertyName:"tags"}),this.tagsRaw=props.tags}get cfnProperties(){return{bgpOptions:this.bgpOptions,connectAttachmentId:this.connectAttachmentId,coreNetworkAddress:this.coreNetworkAddress,insideCidrBlocks:this.insideCidrBlocks,peerAddress:this.peerAddress,subnetArn:this.subnetArn,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",CfnConnectPeer.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnConnectPeerPropsToCloudFormation(props)}}exports.CfnConnectPeer=CfnConnectPeer,_b=JSII_RTTI_SYMBOL_1,CfnConnectPeer[_b]={fqn:"aws-cdk-lib.aws_networkmanager.CfnConnectPeer",version:"2.202.0"},CfnConnectPeer.CFN_RESOURCE_TYPE_NAME="AWS::NetworkManager::ConnectPeer";function CfnConnectPeerBgpOptionsPropertyValidator(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("peerAsn",cdk().validateNumber)(properties.peerAsn)),errors.wrap('supplied properties not correct for "BgpOptionsProperty"')}function convertCfnConnectPeerBgpOptionsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnConnectPeerBgpOptionsPropertyValidator(properties).assertSuccess(),{PeerAsn:cdk().numberToCloudFormation(properties.peerAsn)}):properties}function CfnConnectPeerBgpOptionsPropertyFromCloudFormation(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("peerAsn","PeerAsn",properties.PeerAsn!=null?cfn_parse().FromCloudFormation.getNumber(properties.PeerAsn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnConnectPeerConnectPeerBgpConfigurationPropertyValidator(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("coreNetworkAddress",cdk().validateString)(properties.coreNetworkAddress)),errors.collect(cdk().propertyValidator("coreNetworkAsn",cdk().validateNumber)(properties.coreNetworkAsn)),errors.collect(cdk().propertyValidator("peerAddress",cdk().validateString)(properties.peerAddress)),errors.collect(cdk().propertyValidator("peerAsn",cdk().validateNumber)(properties.peerAsn)),errors.wrap('supplied properties not correct for "ConnectPeerBgpConfigurationProperty"')}function convertCfnConnectPeerConnectPeerBgpConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnConnectPeerConnectPeerBgpConfigurationPropertyValidator(properties).assertSuccess(),{CoreNetworkAddress:cdk().stringToCloudFormation(properties.coreNetworkAddress),CoreNetworkAsn:cdk().numberToCloudFormation(properties.coreNetworkAsn),PeerAddress:cdk().stringToCloudFormation(properties.peerAddress),PeerAsn:cdk().numberToCloudFormation(properties.peerAsn)}):properties}function CfnConnectPeerConnectPeerBgpConfigurationPropertyFromCloudFormation(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("coreNetworkAddress","CoreNetworkAddress",properties.CoreNetworkAddress!=null?cfn_parse().FromCloudFormation.getString(properties.CoreNetworkAddress):void 0),ret.addPropertyResult("coreNetworkAsn","CoreNetworkAsn",properties.CoreNetworkAsn!=null?cfn_parse().FromCloudFormation.getNumber(properties.CoreNetworkAsn):void 0),ret.addPropertyResult("peerAddress","PeerAddress",properties.PeerAddress!=null?cfn_parse().FromCloudFormation.getString(properties.PeerAddress):void 0),ret.addPropertyResult("peerAsn","PeerAsn",properties.PeerAsn!=null?cfn_parse().FromCloudFormation.getNumber(properties.PeerAsn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnConnectPeerConnectPeerConfigurationPropertyValidator(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("bgpConfigurations",cdk().listValidator(CfnConnectPeerConnectPeerBgpConfigurationPropertyValidator))(properties.bgpConfigurations)),errors.collect(cdk().propertyValidator("coreNetworkAddress",cdk().validateString)(properties.coreNetworkAddress)),errors.collect(cdk().propertyValidator("insideCidrBlocks",cdk().listValidator(cdk().validateString))(properties.insideCidrBlocks)),errors.collect(cdk().propertyValidator("peerAddress",cdk().validateString)(properties.peerAddress)),errors.collect(cdk().propertyValidator("protocol",cdk().validateString)(properties.protocol)),errors.wrap('supplied properties not correct for "ConnectPeerConfigurationProperty"')}function convertCfnConnectPeerConnectPeerConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnConnectPeerConnectPeerConfigurationPropertyValidator(properties).assertSuccess(),{BgpConfigurations:cdk().listMapper(convertCfnConnectPeerConnectPeerBgpConfigurationPropertyToCloudFormation)(properties.bgpConfigurations),CoreNetworkAddress:cdk().stringToCloudFormation(properties.coreNetworkAddress),InsideCidrBlocks:cdk().listMapper(cdk().stringToCloudFormation)(properties.insideCidrBlocks),PeerAddress:cdk().stringToCloudFormation(properties.peerAddress),Protocol:cdk().stringToCloudFormation(properties.protocol)}):properties}function CfnConnectPeerConnectPeerConfigurationPropertyFromCloudFormation(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("bgpConfigurations","BgpConfigurations",properties.BgpConfigurations!=null?cfn_parse().FromCloudFormation.getArray(CfnConnectPeerConnectPeerBgpConfigurationPropertyFromCloudFormation)(properties.BgpConfigurations):void 0),ret.addPropertyResult("coreNetworkAddress","CoreNetworkAddress",properties.CoreNetworkAddress!=null?cfn_parse().FromCloudFormation.getString(properties.CoreNetworkAddress):void 0),ret.addPropertyResult("insideCidrBlocks","InsideCidrBlocks",properties.InsideCidrBlocks!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.InsideCidrBlocks):void 0),ret.addPropertyResult("peerAddress","PeerAddress",properties.PeerAddress!=null?cfn_parse().FromCloudFormation.getString(properties.PeerAddress):void 0),ret.addPropertyResult("protocol","Protocol",properties.Protocol!=null?cfn_parse().FromCloudFormation.getString(properties.Protocol):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnConnectPeerPropsValidator(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("bgpOptions",CfnConnectPeerBgpOptionsPropertyValidator)(properties.bgpOptions)),errors.collect(cdk().propertyValidator("connectAttachmentId",cdk().requiredValidator)(properties.connectAttachmentId)),errors.collect(cdk().propertyValidator("connectAttachmentId",cdk().validateString)(properties.connectAttachmentId)),errors.collect(cdk().propertyValidator("coreNetworkAddress",cdk().validateString)(properties.coreNetworkAddress)),errors.collect(cdk().propertyValidator("insideCidrBlocks",cdk().listValidator(cdk().validateString))(properties.insideCidrBlocks)),errors.collect(cdk().propertyValidator("peerAddress",cdk().requiredValidator)(properties.peerAddress)),errors.collect(cdk().propertyValidator("peerAddress",cdk().validateString)(properties.peerAddress)),errors.collect(cdk().propertyValidator("subnetArn",cdk().validateString)(properties.subnetArn)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnConnectPeerProps"')}function convertCfnConnectPeerPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnConnectPeerPropsValidator(properties).assertSuccess(),{BgpOptions:convertCfnConnectPeerBgpOptionsPropertyToCloudFormation(properties.bgpOptions),ConnectAttachmentId:cdk().stringToCloudFormation(properties.connectAttachmentId),CoreNetworkAddress:cdk().stringToCloudFormation(properties.coreNetworkAddress),InsideCidrBlocks:cdk().listMapper(cdk().stringToCloudFormation)(properties.insideCidrBlocks),PeerAddress:cdk().stringToCloudFormation(properties.peerAddress),SubnetArn:cdk().stringToCloudFormation(properties.subnetArn),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnConnectPeerPropsFromCloudFormation(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("bgpOptions","BgpOptions",properties.BgpOptions!=null?CfnConnectPeerBgpOptionsPropertyFromCloudFormation(properties.BgpOptions):void 0),ret.addPropertyResult("connectAttachmentId","ConnectAttachmentId",properties.ConnectAttachmentId!=null?cfn_parse().FromCloudFormation.getString(properties.ConnectAttachmentId):void 0),ret.addPropertyResult("coreNetworkAddress","CoreNetworkAddress",properties.CoreNetworkAddress!=null?cfn_parse().FromCloudFormation.getString(properties.CoreNetworkAddress):void 0),ret.addPropertyResult("insideCidrBlocks","InsideCidrBlocks",properties.InsideCidrBlocks!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.InsideCidrBlocks):void 0),ret.addPropertyResult("peerAddress","PeerAddress",properties.PeerAddress!=null?cfn_parse().FromCloudFormation.getString(properties.PeerAddress):void 0),ret.addPropertyResult("subnetArn","SubnetArn",properties.SubnetArn!=null?cfn_parse().FromCloudFormation.getString(properties.SubnetArn):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 CfnCoreNetwork extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnCoreNetworkPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnCoreNetwork(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}constructor(scope,id,props){super(scope,id,{type:CfnCoreNetwork.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_networkmanager_CfnCoreNetworkProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnCoreNetwork),error}cdk().requireProperty(props,"globalNetworkId",this),this.attrCoreNetworkArn=cdk().Token.asString(this.getAtt("CoreNetworkArn",cdk().ResolutionTypeHint.STRING)),this.attrCoreNetworkId=cdk().Token.asString(this.getAtt("CoreNetworkId",cdk().ResolutionTypeHint.STRING)),this.attrCreatedAt=cdk().Token.asString(this.getAtt("CreatedAt",cdk().ResolutionTypeHint.STRING)),this.attrEdges=this.getAtt("Edges"),this.attrNetworkFunctionGroups=this.getAtt("NetworkFunctionGroups"),this.attrOwnerAccount=cdk().Token.asString(this.getAtt("OwnerAccount",cdk().ResolutionTypeHint.STRING)),this.attrSegments=this.getAtt("Segments"),this.attrState=cdk().Token.asString(this.getAtt("State",cdk().ResolutionTypeHint.STRING)),this.description=props.description,this.globalNetworkId=props.globalNetworkId,this.policyDocument=props.policyDocument,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::NetworkManager::CoreNetwork",props.tags,{tagPropertyName:"tags"}),this.tagsRaw=props.tags}get cfnProperties(){return{description:this.description,globalNetworkId:this.globalNetworkId,policyDocument:this.policyDocument,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",CfnCoreNetwork.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnCoreNetworkPropsToCloudFormation(props)}}exports.CfnCoreNetwork=CfnCoreNetwork,_c=JSII_RTTI_SYMBOL_1,CfnCoreNetwork[_c]={fqn:"aws-cdk-lib.aws_networkmanager.CfnCoreNetwork",version:"2.202.0"},CfnCoreNetwork.CFN_RESOURCE_TYPE_NAME="AWS::NetworkManager::CoreNetwork";function CfnCoreNetworkCoreNetworkSegmentPropertyValidator(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("edgeLocations",cdk().listValidator(cdk().validateString))(properties.edgeLocations)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("sharedSegments",cdk().listValidator(cdk().validateString))(properties.sharedSegments)),errors.wrap('supplied properties not correct for "CoreNetworkSegmentProperty"')}function convertCfnCoreNetworkCoreNetworkSegmentPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnCoreNetworkCoreNetworkSegmentPropertyValidator(properties).assertSuccess(),{EdgeLocations:cdk().listMapper(cdk().stringToCloudFormation)(properties.edgeLocations),Name:cdk().stringToCloudFormation(properties.name),SharedSegments:cdk().listMapper(cdk().stringToCloudFormation)(properties.sharedSegments)}):properties}function CfnCoreNetworkCoreNetworkSegmentPropertyFromCloudFormation(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("edgeLocations","EdgeLocations",properties.EdgeLocations!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.EdgeLocations):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("sharedSegments","SharedSegments",properties.SharedSegments!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.SharedSegments):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnCoreNetworkCoreNetworkEdgePropertyValidator(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("asn",cdk().validateNumber)(properties.asn)),errors.collect(cdk().propertyValidator("edgeLocation",cdk().validateString)(properties.edgeLocation)),errors.collect(cdk().propertyValidator("insideCidrBlocks",cdk().listValidator(cdk().validateString))(properties.insideCidrBlocks)),errors.wrap('supplied properties not correct for "CoreNetworkEdgeProperty"')}function convertCfnCoreNetworkCoreNetworkEdgePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnCoreNetworkCoreNetworkEdgePropertyValidator(properties).assertSuccess(),{Asn:cdk().numberToCloudFormation(properties.asn),EdgeLocation:cdk().stringToCloudFormation(properties.edgeLocation),InsideCidrBlocks:cdk().listMapper(cdk().stringToCloudFormation)(properties.insideCidrBlocks)}):properties}function CfnCoreNetworkCoreNetworkEdgePropertyFromCloudFormation(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("asn","Asn",properties.Asn!=null?cfn_parse().FromCloudFormation.getNumber(properties.Asn):void 0),ret.addPropertyResult("edgeLocation","EdgeLocation",properties.EdgeLocation!=null?cfn_parse().FromCloudFormation.getString(properties.EdgeLocation):void 0),ret.addPropertyResult("insideCidrBlocks","InsideCidrBlocks",properties.InsideCidrBlocks!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.InsideCidrBlocks):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnCoreNetworkSegmentsPropertyValidator(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("sendTo",cdk().listValidator(cdk().validateString))(properties.sendTo)),errors.collect(cdk().propertyValidator("sendVia",cdk().listValidator(cdk().validateString))(properties.sendVia)),errors.wrap('supplied properties not correct for "SegmentsProperty"')}function convertCfnCoreNetworkSegmentsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnCoreNetworkSegmentsPropertyValidator(properties).assertSuccess(),{SendTo:cdk().listMapper(cdk().stringToCloudFormation)(properties.sendTo),SendVia:cdk().listMapper(cdk().stringToCloudFormation)(properties.sendVia)}):properties}function CfnCoreNetworkSegmentsPropertyFromCloudFormation(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("sendTo","SendTo",properties.SendTo!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.SendTo):void 0),ret.addPropertyResult("sendVia","SendVia",properties.SendVia!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.SendVia):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnCoreNetworkCoreNetworkNetworkFunctionGroupPropertyValidator(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("edgeLocations",cdk().listValidator(cdk().validateString))(properties.edgeLocations)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("segments",CfnCoreNetworkSegmentsPropertyValidator)(properties.segments)),errors.wrap('supplied properties not correct for "CoreNetworkNetworkFunctionGroupProperty"')}function convertCfnCoreNetworkCoreNetworkNetworkFunctionGroupPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnCoreNetworkCoreNetworkNetworkFunctionGroupPropertyValidator(properties).assertSuccess(),{EdgeLocations:cdk().listMapper(cdk().stringToCloudFormation)(properties.edgeLocations),Name:cdk().stringToCloudFormation(properties.name),Segments:convertCfnCoreNetworkSegmentsPropertyToCloudFormation(properties.segments)}):properties}function CfnCoreNetworkCoreNetworkNetworkFunctionGroupPropertyFromCloudFormation(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("edgeLocations","EdgeLocations",properties.EdgeLocations!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.EdgeLocations):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("segments","Segments",properties.Segments!=null?CfnCoreNetworkSegmentsPropertyFromCloudFormation(properties.Segments):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnCoreNetworkPropsValidator(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("globalNetworkId",cdk().requiredValidator)(properties.globalNetworkId)),errors.collect(cdk().propertyValidator("globalNetworkId",cdk().validateString)(properties.globalNetworkId)),errors.collect(cdk().propertyValidator("policyDocument",cdk().validateObject)(properties.policyDocument)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnCoreNetworkProps"')}function convertCfnCoreNetworkPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnCoreNetworkPropsValidator(properties).assertSuccess(),{Description:cdk().stringToCloudFormation(properties.description),GlobalNetworkId:cdk().stringToCloudFormation(properties.globalNetworkId),PolicyDocument:cdk().objectToCloudFormation(properties.policyDocument),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnCoreNetworkPropsFromCloudFormation(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("globalNetworkId","GlobalNetworkId",properties.GlobalNetworkId!=null?cfn_parse().FromCloudFormation.getString(properties.GlobalNetworkId):void 0),ret.addPropertyResult("policyDocument","PolicyDocument",properties.PolicyDocument!=null?cfn_parse().FromCloudFormation.getAny(properties.PolicyDocument):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 CfnCustomerGatewayAssociation extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnCustomerGatewayAssociationPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnCustomerGatewayAssociation(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}constructor(scope,id,props){super(scope,id,{type:CfnCustomerGatewayAssociation.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_networkmanager_CfnCustomerGatewayAssociationProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnCustomerGatewayAssociation),error}cdk().requireProperty(props,"customerGatewayArn",this),cdk().requireProperty(props,"deviceId",this),cdk().requireProperty(props,"globalNetworkId",this),this.customerGatewayArn=props.customerGatewayArn,this.deviceId=props.deviceId,this.globalNetworkId=props.globalNetworkId,this.linkId=props.linkId}get cfnProperties(){return{customerGatewayArn:this.customerGatewayArn,deviceId:this.deviceId,globalNetworkId:this.globalNetworkId,linkId:this.linkId}}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",CfnCustomerGatewayAssociation.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnCustomerGatewayAssociationPropsToCloudFormation(props)}}exports.CfnCustomerGatewayAssociation=CfnCustomerGatewayAssociation,_d=JSII_RTTI_SYMBOL_1,CfnCustomerGatewayAssociation[_d]={fqn:"aws-cdk-lib.aws_networkmanager.CfnCustomerGatewayAssociation",version:"2.202.0"},CfnCustomerGatewayAssociation.CFN_RESOURCE_TYPE_NAME="AWS::NetworkManager::CustomerGatewayAssociation";function CfnCustomerGatewayAssociationPropsValidator(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("customerGatewayArn",cdk().requiredValidator)(properties.customerGatewayArn)),errors.collect(cdk().propertyValidator("customerGatewayArn",cdk().validateString)(properties.customerGatewayArn)),errors.collect(cdk().propertyValidator("deviceId",cdk().requiredValidator)(properties.deviceId)),errors.collect(cdk().propertyValidator("deviceId",cdk().validateString)(properties.deviceId)),errors.collect(cdk().propertyValidator("globalNetworkId",cdk().requiredValidator)(properties.globalNetworkId)),errors.collect(cdk().propertyValidator("globalNetworkId",cdk().validateString)(properties.globalNetworkId)),errors.collect(cdk().propertyValidator("linkId",cdk().validateString)(properties.linkId)),errors.wrap('supplied properties not correct for "CfnCustomerGatewayAssociationProps"')}function convertCfnCustomerGatewayAssociationPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnCustomerGatewayAssociationPropsValidator(properties).assertSuccess(),{CustomerGatewayArn:cdk().stringToCloudFormation(properties.customerGatewayArn),DeviceId:cdk().stringToCloudFormation(properties.deviceId),GlobalNetworkId:cdk().stringToCloudFormation(properties.globalNetworkId),LinkId:cdk().stringToCloudFormation(properties.linkId)}):properties}function CfnCustomerGatewayAssociationPropsFromCloudFormation(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("customerGatewayArn","CustomerGatewayArn",properties.CustomerGatewayArn!=null?cfn_parse().FromCloudFormation.getString(properties.CustomerGatewayArn):void 0),ret.addPropertyResult("deviceId","DeviceId",properties.DeviceId!=null?cfn_parse().FromCloudFormation.getString(properties.DeviceId):void 0),ret.addPropertyResult("globalNetworkId","GlobalNetworkId",properties.GlobalNetworkId!=null?cfn_parse().FromCloudFormation.getString(properties.GlobalNetworkId):void 0),ret.addPropertyResult("linkId","LinkId",properties.LinkId!=null?cfn_parse().FromCloudFormation.getString(properties.LinkId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnDevice extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnDevicePropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnDevice(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}constructor(scope,id,props){super(scope,id,{type:CfnDevice.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_networkmanager_CfnDeviceProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnDevice),error}cdk().requireProperty(props,"globalNetworkId",this),this.attrCreatedAt=cdk().Token.asString(this.getAtt("Creat