All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.burkard.cdk.services.ecs.FargateTaskDefinitionAttributes.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 FargateTaskDefinitionAttributes {

  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.FargateTaskDefinitionAttributes =
    (new software.amazon.awscdk.services.ecs.FargateTaskDefinitionAttributes.Builder)
      .taskRole(taskRole.orNull)
      .networkMode(networkMode.orNull)
      .taskDefinitionArn(taskDefinitionArn.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy