All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.burkard.cdk.services.ec2.CfnNetworkAclEntryProps.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 CfnNetworkAclEntryProps {

  def apply(
    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
  ): software.amazon.awscdk.services.ec2.CfnNetworkAclEntryProps =
    (new software.amazon.awscdk.services.ec2.CfnNetworkAclEntryProps.Builder)
      .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()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy