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

io.burkard.cdk.services.ec2.SubnetSelection.scala Maven / Gradle / Ivy

The newest version!
package io.burkard.cdk.services.ec2

import scala.collection.JavaConverters._

@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object SubnetSelection {

  def apply(
    subnets: Option[List[_ <: software.amazon.awscdk.services.ec2.ISubnet]] = None,
    onePerAz: Option[Boolean] = None,
    subnetGroupName: Option[String] = None,
    subnetFilters: Option[List[_ <: software.amazon.awscdk.services.ec2.SubnetFilter]] = None,
    subnetType: Option[software.amazon.awscdk.services.ec2.SubnetType] = None,
    availabilityZones: Option[List[String]] = None
  ): software.amazon.awscdk.services.ec2.SubnetSelection =
    (new software.amazon.awscdk.services.ec2.SubnetSelection.Builder)
      .subnets(subnets.map(_.asJava).orNull)
      .onePerAz(onePerAz.map(Boolean.box).orNull)
      .subnetGroupName(subnetGroupName.orNull)
      .subnetFilters(subnetFilters.map(_.asJava).orNull)
      .subnetType(subnetType.orNull)
      .availabilityZones(availabilityZones.map(_.asJava).orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy