io.burkard.cdk.services.ec2.CfnNetworkAclEntry.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.ec2
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnNetworkAclEntry {
def apply(
internalResourceId: String,
networkAclId: String,
ruleNumber: Number,
ruleAction: String,
protocol: Number,
portRange: Option[software.amazon.awscdk.services.ec2.CfnNetworkAclEntry.PortRangeProperty] = None,
icmp: Option[software.amazon.awscdk.services.ec2.CfnNetworkAclEntry.IcmpProperty] = None,
cidrBlock: Option[String] = None,
egress: Option[Boolean] = None,
ipv6CidrBlock: Option[String] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.ec2.CfnNetworkAclEntry =
software.amazon.awscdk.services.ec2.CfnNetworkAclEntry.Builder
.create(stackCtx, internalResourceId)
.networkAclId(networkAclId)
.ruleNumber(ruleNumber)
.ruleAction(ruleAction)
.protocol(protocol)
.portRange(portRange.orNull)
.icmp(icmp.orNull)
.cidrBlock(cidrBlock.orNull)
.egress(egress.map(Boolean.box).orNull)
.ipv6CidrBlock(ipv6CidrBlock.orNull)
.build()
}