io.burkard.cdk.services.ecs.ExternalTaskDefinitionAttributes.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.ecs
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object ExternalTaskDefinitionAttributes {
def apply(
taskRole: Option[software.amazon.awscdk.services.iam.IRole] = None,
networkMode: Option[software.amazon.awscdk.services.ecs.NetworkMode] = None,
taskDefinitionArn: Option[String] = None
): software.amazon.awscdk.services.ecs.ExternalTaskDefinitionAttributes =
(new software.amazon.awscdk.services.ecs.ExternalTaskDefinitionAttributes.Builder)
.taskRole(taskRole.orNull)
.networkMode(networkMode.orNull)
.taskDefinitionArn(taskDefinitionArn.orNull)
.build()
}