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

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

  def apply(
    internalResourceId: String,
    networkAcl: software.amazon.awscdk.services.ec2.INetworkAcl,
    networkAclEntryName: Option[String] = None,
    cidr: Option[software.amazon.awscdk.services.ec2.AclCidr] = None,
    direction: Option[software.amazon.awscdk.services.ec2.TrafficDirection] = None,
    traffic: Option[software.amazon.awscdk.services.ec2.AclTraffic] = None,
    ruleNumber: Option[Number] = None,
    ruleAction: Option[software.amazon.awscdk.services.ec2.Action] = None
  )(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.ec2.NetworkAclEntry =
    software.amazon.awscdk.services.ec2.NetworkAclEntry.Builder
      .create(stackCtx, internalResourceId)
      .networkAcl(networkAcl)
      .networkAclEntryName(networkAclEntryName.orNull)
      .cidr(cidr.orNull)
      .direction(direction.orNull)
      .traffic(traffic.orNull)
      .ruleNumber(ruleNumber.orNull)
      .ruleAction(ruleAction.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy