"use strict";var _a,_b;Object.defineProperty(exports,"__esModule",{value:!0}),exports.AclTraffic=exports.AclCidr=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");class AclCidr{static ipv4(ipv4Cidr){return new AclCidrImpl({cidrBlock:ipv4Cidr})}static anyIpv4(){return AclCidr.ipv4("0.0.0.0/0")}static ipv6(ipv6Cidr){return new AclCidrImpl({ipv6CidrBlock:ipv6Cidr})}static anyIpv6(){return AclCidr.ipv6("::/0")}}exports.AclCidr=AclCidr,_a=JSII_RTTI_SYMBOL_1,AclCidr[_a]={fqn:"aws-cdk-lib.aws_ec2.AclCidr",version:"2.159.0"};class AclCidrImpl extends AclCidr{constructor(config){super(),this.config=config}toCidrConfig(){return this.config}}class AclTraffic{static allTraffic(){return new AclTrafficImpl({protocol:-1})}static icmp(props){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_ec2_AclIcmp(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.icmp),error}return new AclTrafficImpl({protocol:1,icmp:props})}static icmpv6(props){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_ec2_AclIcmp(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.icmpv6),error}return new AclTrafficImpl({protocol:58,icmp:props})}static tcpPort(port){return new AclTrafficImpl({protocol:6,portRange:{from:port,to:port}})}static tcpPortRange(startPort,endPort){return new AclTrafficImpl({protocol:6,portRange:{from:startPort,to:endPort}})}static udpPort(port){return new AclTrafficImpl({protocol:17,portRange:{from:port,to:port}})}static udpPortRange(startPort,endPort){return new AclTrafficImpl({protocol:17,portRange:{from:startPort,to:endPort}})}}exports.AclTraffic=AclTraffic,_b=JSII_RTTI_SYMBOL_1,AclTraffic[_b]={fqn:"aws-cdk-lib.aws_ec2.AclTraffic",version:"2.159.0"};class AclTrafficImpl extends AclTraffic{constructor(config){super(),this.config=config}toTrafficConfig(){return this.config}}
