io.burkard.cdk.services.ecs.cfnService.AwsVpcConfigurationProperty.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.ecs.cfnService
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.CfnService.AwsVpcConfigurationProperty =
(new software.amazon.awscdk.services.ecs.CfnService.AwsVpcConfigurationProperty.Builder)
.subnets(subnets.asJava)
.securityGroups(securityGroups.map(_.asJava).orNull)
.assignPublicIp(assignPublicIp.orNull)
.build()
}