io.burkard.cdk.services.ecs.cfnTaskSet.AwsVpcConfigurationProperty.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.ecs.cfnTaskSet
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object AwsVpcConfigurationProperty {
def apply(
subnets: List[String],
securityGroups: Option[List[String]] = None,
assignPublicIp: Option[String] = None
): software.amazon.awscdk.services.ecs.CfnTaskSet.AwsVpcConfigurationProperty =
(new software.amazon.awscdk.services.ecs.CfnTaskSet.AwsVpcConfigurationProperty.Builder)
.subnets(subnets.asJava)
.securityGroups(securityGroups.map(_.asJava).orNull)
.assignPublicIp(assignPublicIp.orNull)
.build()
}