io.burkard.cdk.services.ecs.CommonTaskDefinitionProps.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.ecs
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CommonTaskDefinitionProps {
def apply(
executionRole: Option[software.amazon.awscdk.services.iam.IRole] = None,
volumes: Option[List[_ <: software.amazon.awscdk.services.ecs.Volume]] = None,
taskRole: Option[software.amazon.awscdk.services.iam.IRole] = None,
proxyConfiguration: Option[software.amazon.awscdk.services.ecs.ProxyConfiguration] = None,
family: Option[String] = None
): software.amazon.awscdk.services.ecs.CommonTaskDefinitionProps =
(new software.amazon.awscdk.services.ecs.CommonTaskDefinitionProps.Builder)
.executionRole(executionRole.orNull)
.volumes(volumes.map(_.asJava).orNull)
.taskRole(taskRole.orNull)
.proxyConfiguration(proxyConfiguration.orNull)
.family(family.orNull)
.build()
}