UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

1 lines 100 kB
"use strict";var _a,_b,_c,_d,_e,_f,_g,_h,_j,_k,_l,_m,_o,_p;Object.defineProperty(exports,"__esModule",{value:!0}),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;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 CfnConnectAttachmentPropsValidator(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("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("options",cdk.requiredValidator)(properties.options)),errors.collect(cdk.propertyValidator("options",CfnConnectAttachment_ConnectAttachmentOptionsPropertyValidator)(properties.options)),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 cfnConnectAttachmentPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConnectAttachmentPropsValidator(properties).assertSuccess(),{CoreNetworkId:cdk.stringToCloudFormation(properties.coreNetworkId),EdgeLocation:cdk.stringToCloudFormation(properties.edgeLocation),Options:cfnConnectAttachmentConnectAttachmentOptionsPropertyToCloudFormation(properties.options),TransportAttachmentId:cdk.stringToCloudFormation(properties.transportAttachmentId),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags)}):properties}function CfnConnectAttachmentPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("coreNetworkId","CoreNetworkId",cfn_parse.FromCloudFormation.getString(properties.CoreNetworkId)),ret.addPropertyResult("edgeLocation","EdgeLocation",cfn_parse.FromCloudFormation.getString(properties.EdgeLocation)),ret.addPropertyResult("options","Options",CfnConnectAttachmentConnectAttachmentOptionsPropertyFromCloudFormation(properties.Options)),ret.addPropertyResult("transportAttachmentId","TransportAttachmentId",cfn_parse.FromCloudFormation.getString(properties.TransportAttachmentId)),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(cfn_parse.FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnConnectAttachment extends cdk.CfnResource{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.attrProposedSegmentChangeAttachmentPolicyRuleNumber=cdk.Token.asNumber(this.getAtt("ProposedSegmentChange.AttachmentPolicyRuleNumber",cdk.ResolutionTypeHint.NUMBER)),this.attrProposedSegmentChangeSegmentName=cdk.Token.asString(this.getAtt("ProposedSegmentChange.SegmentName",cdk.ResolutionTypeHint.STRING)),this.attrProposedSegmentChangeTags=this.getAtt("ProposedSegmentChange.Tags",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.options=props.options,this.transportAttachmentId=props.transportAttachmentId,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::NetworkManager::ConnectAttachment",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnConnectAttachmentPropsFromCloudFormation(resourceProperties),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}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)}get cfnProperties(){return{coreNetworkId:this.coreNetworkId,edgeLocation:this.edgeLocation,options:this.options,transportAttachmentId:this.transportAttachmentId,tags:this.tags.renderTags()}}renderProperties(props){return cfnConnectAttachmentPropsToCloudFormation(props)}}exports.CfnConnectAttachment=CfnConnectAttachment,_a=JSII_RTTI_SYMBOL_1,CfnConnectAttachment[_a]={fqn:"aws-cdk-lib.aws_networkmanager.CfnConnectAttachment",version:"2.70.0"},CfnConnectAttachment.CFN_RESOURCE_TYPE_NAME="AWS::NetworkManager::ConnectAttachment";function CfnConnectAttachment_ConnectAttachmentOptionsPropertyValidator(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("protocol",cdk.validateString)(properties.protocol)),errors.wrap('supplied properties not correct for "ConnectAttachmentOptionsProperty"')}function cfnConnectAttachmentConnectAttachmentOptionsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConnectAttachment_ConnectAttachmentOptionsPropertyValidator(properties).assertSuccess(),{Protocol:cdk.stringToCloudFormation(properties.protocol)}):properties}function CfnConnectAttachmentConnectAttachmentOptionsPropertyFromCloudFormation(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("protocol","Protocol",properties.Protocol!=null?cfn_parse.FromCloudFormation.getString(properties.Protocol):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnConnectAttachment_ProposedSegmentChangePropertyValidator(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("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 cfnConnectAttachmentProposedSegmentChangePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConnectAttachment_ProposedSegmentChangePropertyValidator(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??{},typeof properties!="object")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 CfnConnectPeerPropsValidator(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("bgpOptions",CfnConnectPeer_BgpOptionsPropertyValidator)(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.requiredValidator)(properties.insideCidrBlocks)),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("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnConnectPeerProps"')}function cfnConnectPeerPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConnectPeerPropsValidator(properties).assertSuccess(),{ConnectAttachmentId:cdk.stringToCloudFormation(properties.connectAttachmentId),InsideCidrBlocks:cdk.listMapper(cdk.stringToCloudFormation)(properties.insideCidrBlocks),PeerAddress:cdk.stringToCloudFormation(properties.peerAddress),BgpOptions:cfnConnectPeerBgpOptionsPropertyToCloudFormation(properties.bgpOptions),CoreNetworkAddress:cdk.stringToCloudFormation(properties.coreNetworkAddress),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags)}):properties}function CfnConnectPeerPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("connectAttachmentId","ConnectAttachmentId",cfn_parse.FromCloudFormation.getString(properties.ConnectAttachmentId)),ret.addPropertyResult("insideCidrBlocks","InsideCidrBlocks",cfn_parse.FromCloudFormation.getStringArray(properties.InsideCidrBlocks)),ret.addPropertyResult("peerAddress","PeerAddress",cfn_parse.FromCloudFormation.getString(properties.PeerAddress)),ret.addPropertyResult("bgpOptions","BgpOptions",properties.BgpOptions!=null?CfnConnectPeerBgpOptionsPropertyFromCloudFormation(properties.BgpOptions):void 0),ret.addPropertyResult("coreNetworkAddress","CoreNetworkAddress",properties.CoreNetworkAddress!=null?cfn_parse.FromCloudFormation.getString(properties.CoreNetworkAddress):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 CfnConnectPeer extends cdk.CfnResource{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,"insideCidrBlocks",this),cdk.requireProperty(props,"peerAddress",this),this.attrConfigurationBgpConfigurations=this.getAtt("Configuration.BgpConfigurations",cdk.ResolutionTypeHint.STRING),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.connectAttachmentId=props.connectAttachmentId,this.insideCidrBlocks=props.insideCidrBlocks,this.peerAddress=props.peerAddress,this.bgpOptions=props.bgpOptions,this.coreNetworkAddress=props.coreNetworkAddress,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::NetworkManager::ConnectPeer",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnConnectPeerPropsFromCloudFormation(resourceProperties),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}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)}get cfnProperties(){return{connectAttachmentId:this.connectAttachmentId,insideCidrBlocks:this.insideCidrBlocks,peerAddress:this.peerAddress,bgpOptions:this.bgpOptions,coreNetworkAddress:this.coreNetworkAddress,tags:this.tags.renderTags()}}renderProperties(props){return cfnConnectPeerPropsToCloudFormation(props)}}exports.CfnConnectPeer=CfnConnectPeer,_b=JSII_RTTI_SYMBOL_1,CfnConnectPeer[_b]={fqn:"aws-cdk-lib.aws_networkmanager.CfnConnectPeer",version:"2.70.0"},CfnConnectPeer.CFN_RESOURCE_TYPE_NAME="AWS::NetworkManager::ConnectPeer";function CfnConnectPeer_BgpOptionsPropertyValidator(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("peerAsn",cdk.validateNumber)(properties.peerAsn)),errors.wrap('supplied properties not correct for "BgpOptionsProperty"')}function cfnConnectPeerBgpOptionsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConnectPeer_BgpOptionsPropertyValidator(properties).assertSuccess(),{PeerAsn:cdk.numberToCloudFormation(properties.peerAsn)}):properties}function CfnConnectPeerBgpOptionsPropertyFromCloudFormation(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("peerAsn","PeerAsn",properties.PeerAsn!=null?cfn_parse.FromCloudFormation.getNumber(properties.PeerAsn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnConnectPeer_ConnectPeerBgpConfigurationPropertyValidator(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("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 cfnConnectPeerConnectPeerBgpConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConnectPeer_ConnectPeerBgpConfigurationPropertyValidator(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??{},typeof properties!="object")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 CfnConnectPeer_ConnectPeerConfigurationPropertyValidator(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("bgpConfigurations",cdk.listValidator(CfnConnectPeer_ConnectPeerBgpConfigurationPropertyValidator))(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 cfnConnectPeerConnectPeerConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConnectPeer_ConnectPeerConfigurationPropertyValidator(properties).assertSuccess(),{BgpConfigurations:cdk.listMapper(cfnConnectPeerConnectPeerBgpConfigurationPropertyToCloudFormation)(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??{},typeof properties!="object")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.getStringArray(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 CfnCoreNetworkPropsValidator(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("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 cfnCoreNetworkPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnCoreNetworkPropsValidator(properties).assertSuccess(),{GlobalNetworkId:cdk.stringToCloudFormation(properties.globalNetworkId),Description:cdk.stringToCloudFormation(properties.description),PolicyDocument:cdk.objectToCloudFormation(properties.policyDocument),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags)}):properties}function CfnCoreNetworkPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("globalNetworkId","GlobalNetworkId",cfn_parse.FromCloudFormation.getString(properties.GlobalNetworkId)),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse.FromCloudFormation.getString(properties.Description):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 CfnCoreNetwork extends cdk.CfnResource{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",cdk.ResolutionTypeHint.STRING),this.attrOwnerAccount=cdk.Token.asString(this.getAtt("OwnerAccount",cdk.ResolutionTypeHint.STRING)),this.attrSegments=this.getAtt("Segments",cdk.ResolutionTypeHint.STRING),this.attrState=cdk.Token.asString(this.getAtt("State",cdk.ResolutionTypeHint.STRING)),this.globalNetworkId=props.globalNetworkId,this.description=props.description,this.policyDocument=props.policyDocument,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::NetworkManager::CoreNetwork",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnCoreNetworkPropsFromCloudFormation(resourceProperties),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}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)}get cfnProperties(){return{globalNetworkId:this.globalNetworkId,description:this.description,policyDocument:this.policyDocument,tags:this.tags.renderTags()}}renderProperties(props){return cfnCoreNetworkPropsToCloudFormation(props)}}exports.CfnCoreNetwork=CfnCoreNetwork,_c=JSII_RTTI_SYMBOL_1,CfnCoreNetwork[_c]={fqn:"aws-cdk-lib.aws_networkmanager.CfnCoreNetwork",version:"2.70.0"},CfnCoreNetwork.CFN_RESOURCE_TYPE_NAME="AWS::NetworkManager::CoreNetwork";function CfnCoreNetwork_CoreNetworkEdgePropertyValidator(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("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 cfnCoreNetworkCoreNetworkEdgePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnCoreNetwork_CoreNetworkEdgePropertyValidator(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??{},typeof properties!="object")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.getStringArray(properties.InsideCidrBlocks):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnCoreNetwork_CoreNetworkSegmentPropertyValidator(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("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 cfnCoreNetworkCoreNetworkSegmentPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnCoreNetwork_CoreNetworkSegmentPropertyValidator(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??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("edgeLocations","EdgeLocations",properties.EdgeLocations!=null?cfn_parse.FromCloudFormation.getStringArray(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.getStringArray(properties.SharedSegments):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnCustomerGatewayAssociationPropsValidator(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("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 cfnCustomerGatewayAssociationPropsToCloudFormation(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(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("customerGatewayArn","CustomerGatewayArn",cfn_parse.FromCloudFormation.getString(properties.CustomerGatewayArn)),ret.addPropertyResult("deviceId","DeviceId",cfn_parse.FromCloudFormation.getString(properties.DeviceId)),ret.addPropertyResult("globalNetworkId","GlobalNetworkId",cfn_parse.FromCloudFormation.getString(properties.GlobalNetworkId)),ret.addPropertyResult("linkId","LinkId",properties.LinkId!=null?cfn_parse.FromCloudFormation.getString(properties.LinkId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnCustomerGatewayAssociation extends cdk.CfnResource{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}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnCustomerGatewayAssociationPropsFromCloudFormation(resourceProperties),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}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)}get cfnProperties(){return{customerGatewayArn:this.customerGatewayArn,deviceId:this.deviceId,globalNetworkId:this.globalNetworkId,linkId:this.linkId}}renderProperties(props){return cfnCustomerGatewayAssociationPropsToCloudFormation(props)}}exports.CfnCustomerGatewayAssociation=CfnCustomerGatewayAssociation,_d=JSII_RTTI_SYMBOL_1,CfnCustomerGatewayAssociation[_d]={fqn:"aws-cdk-lib.aws_networkmanager.CfnCustomerGatewayAssociation",version:"2.70.0"},CfnCustomerGatewayAssociation.CFN_RESOURCE_TYPE_NAME="AWS::NetworkManager::CustomerGatewayAssociation";function CfnDevicePropsValidator(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("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("location",CfnDevice_LocationPropertyValidator)(properties.location)),errors.collect(cdk.propertyValidator("model",cdk.validateString)(properties.model)),errors.collect(cdk.propertyValidator("serialNumber",cdk.validateString)(properties.serialNumber)),errors.collect(cdk.propertyValidator("siteId",cdk.validateString)(properties.siteId)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.collect(cdk.propertyValidator("type",cdk.validateString)(properties.type)),errors.collect(cdk.propertyValidator("vendor",cdk.validateString)(properties.vendor)),errors.wrap('supplied properties not correct for "CfnDeviceProps"')}function cfnDevicePropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDevicePropsValidator(properties).assertSuccess(),{GlobalNetworkId:cdk.stringToCloudFormation(properties.globalNetworkId),Description:cdk.stringToCloudFormation(properties.description),Location:cfnDeviceLocationPropertyToCloudFormation(properties.location),Model:cdk.stringToCloudFormation(properties.model),SerialNumber:cdk.stringToCloudFormation(properties.serialNumber),SiteId:cdk.stringToCloudFormation(properties.siteId),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags),Type:cdk.stringToCloudFormation(properties.type),Vendor:cdk.stringToCloudFormation(properties.vendor)}):properties}function CfnDevicePropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("globalNetworkId","GlobalNetworkId",cfn_parse.FromCloudFormation.getString(properties.GlobalNetworkId)),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse.FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("location","Location",properties.Location!=null?CfnDeviceLocationPropertyFromCloudFormation(properties.Location):void 0),ret.addPropertyResult("model","Model",properties.Model!=null?cfn_parse.FromCloudFormation.getString(properties.Model):void 0),ret.addPropertyResult("serialNumber","SerialNumber",properties.SerialNumber!=null?cfn_parse.FromCloudFormation.getString(properties.SerialNumber):void 0),ret.addPropertyResult("siteId","SiteId",properties.SiteId!=null?cfn_parse.FromCloudFormation.getString(properties.SiteId):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(cfn_parse.FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addPropertyResult("type","Type",properties.Type!=null?cfn_parse.FromCloudFormation.getString(properties.Type):void 0),ret.addPropertyResult("vendor","Vendor",properties.Vendor!=null?cfn_parse.FromCloudFormation.getString(properties.Vendor):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnDevice extends cdk.CfnResource{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.attrDeviceArn=cdk.Token.asString(this.getAtt("DeviceArn",cdk.ResolutionTypeHint.STRING)),this.attrDeviceId=cdk.Token.asString(this.getAtt("DeviceId",cdk.ResolutionTypeHint.STRING)),this.globalNetworkId=props.globalNetworkId,this.description=props.description,this.location=props.location,this.model=props.model,this.serialNumber=props.serialNumber,this.siteId=props.siteId,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::NetworkManager::Device",props.tags,{tagPropertyName:"tags"}),this.type=props.type,this.vendor=props.vendor}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnDevicePropsFromCloudFormation(resourceProperties),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}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",CfnDevice.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{globalNetworkId:this.globalNetworkId,description:this.description,location:this.location,model:this.model,serialNumber:this.serialNumber,siteId:this.siteId,tags:this.tags.renderTags(),type:this.type,vendor:this.vendor}}renderProperties(props){return cfnDevicePropsToCloudFormation(props)}}exports.CfnDevice=CfnDevice,_e=JSII_RTTI_SYMBOL_1,CfnDevice[_e]={fqn:"aws-cdk-lib.aws_networkmanager.CfnDevice",version:"2.70.0"},CfnDevice.CFN_RESOURCE_TYPE_NAME="AWS::NetworkManager::Device";function CfnDevice_LocationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("address",cdk.validateString)(properties.address)),errors.collect(cdk.propertyValidator("latitude",cdk.validateString)(properties.latitude)),errors.collect(cdk.propertyValidator("longitude",cdk.validateString)(properties.longitude)),errors.wrap('supplied properties not correct for "LocationProperty"')}function cfnDeviceLocationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDevice_LocationPropertyValidator(properties).assertSuccess(),{Address:cdk.stringToCloudFormation(properties.address),Latitude:cdk.stringToCloudFormation(properties.latitude),Longitude:cdk.stringToCloudFormation(properties.longitude)}):properties}function CfnDeviceLocationPropertyFromCloudFormation(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("address","Address",properties.Address!=null?cfn_parse.FromCloudFormation.getString(properties.Address):void 0),ret.addPropertyResult("latitude","Latitude",properties.Latitude!=null?cfn_parse.FromCloudFormation.getString(properties.Latitude):void 0),ret.addPropertyResult("longitude","Longitude",properties.Longitude!=null?cfn_parse.FromCloudFormation.getString(properties.Longitude):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnGlobalNetworkPropsValidator(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("description",cdk.validateString)(properties.description)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnGlobalNetworkProps"')}function cfnGlobalNetworkPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnGlobalNetworkPropsValidator(properties).assertSuccess(),{Description:cdk.stringToCloudFormation(properties.description),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags)}):properties}function CfnGlobalNetworkPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")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("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(cfn_parse.FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnGlobalNetwork extends cdk.CfnResource{constructor(scope,id,props={}){super(scope,id,{type:CfnGlobalNetwork.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_networkmanager_CfnGlobalNetworkProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnGlobalNetwork),error}this.attrArn=cdk.Token.asString(this.getAtt("Arn",cdk.ResolutionTypeHint.STRING)),this.attrId=cdk.Token.asString(this.getAtt("Id",cdk.ResolutionTypeHint.STRING)),this.description=props.description,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::NetworkManager::GlobalNetwork",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnGlobalNetworkPropsFromCloudFormation(resourceProperties),ret=new CfnGlobalNetwork(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",CfnGlobalNetwork.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{description:this.description,tags:this.tags.renderTags()}}renderProperties(props){return cfnGlobalNetworkPropsToCloudFormation(props)}}exports.CfnGlobalNetwork=CfnGlobalNetwork,_f=JSII_RTTI_SYMBOL_1,CfnGlobalNetwork[_f]={fqn:"aws-cdk-lib.aws_networkmanager.CfnGlobalNetwork",version:"2.70.0"},CfnGlobalNetwork.CFN_RESOURCE_TYPE_NAME="AWS::NetworkManager::GlobalNetwork";function CfnLinkPropsValidator(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("bandwidth",cdk.requiredValidator)(properties.bandwidth)),errors.collect(cdk.propertyValidator("bandwidth",CfnLink_BandwidthPropertyValidator)(properties.bandwidth)),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("provider",cdk.validateString)(properties.provider)),errors.collect(cdk.propertyValidator("siteId",cdk.requiredValidator)(properties.siteId)),errors.collect(cdk.propertyValidator("siteId",cdk.validateString)(properties.siteId)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.collect(cdk.propertyValidator("type",cdk.validateString)(properties.type)),errors.wrap('supplied properties not correct for "CfnLinkProps"')}function cfnLinkPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnLinkPropsValidator(properties).assertSuccess(),{Bandwidth:cfnLinkBandwidthPropertyToCloudFormation(properties.bandwidth),GlobalNetworkId:cdk.stringToCloudFormation(properties.globalNetworkId),SiteId:cdk.stringToCloudFormation(properties.siteId),Description:cdk.stringToCloudFormation(properties.description),Provider:cdk.stringToCloudFormation(properties.provider),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags),Type: