io.burkard.cdk.services.ecs.patterns.NetworkLoadBalancedTaskImageOptions.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.ecs.patterns
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object NetworkLoadBalancedTaskImageOptions {
def apply(
image: software.amazon.awscdk.services.ecs.ContainerImage,
containerName: Option[String] = None,
containerPort: Option[Number] = None,
secrets: Option[Map[String, _ <: software.amazon.awscdk.services.ecs.Secret]] = None,
executionRole: Option[software.amazon.awscdk.services.iam.IRole] = None,
taskRole: Option[software.amazon.awscdk.services.iam.IRole] = None,
logDriver: Option[software.amazon.awscdk.services.ecs.LogDriver] = None,
enableLogging: Option[Boolean] = None,
environment: Option[Map[String, String]] = None,
dockerLabels: Option[Map[String, String]] = None,
family: Option[String] = None
): software.amazon.awscdk.services.ecs.patterns.NetworkLoadBalancedTaskImageOptions =
(new software.amazon.awscdk.services.ecs.patterns.NetworkLoadBalancedTaskImageOptions.Builder)
.image(image)
.containerName(containerName.orNull)
.containerPort(containerPort.orNull)
.secrets(secrets.map(_.asJava).orNull)
.executionRole(executionRole.orNull)
.taskRole(taskRole.orNull)
.logDriver(logDriver.orNull)
.enableLogging(enableLogging.map(Boolean.box).orNull)
.environment(environment.map(_.asJava).orNull)
.dockerLabels(dockerLabels.map(_.asJava).orNull)
.family(family.orNull)
.build()
}