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

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

  def apply(
    pidMode: Option[String] = None,
    inferenceAccelerators: Option[List[_]] = None,
    taskRoleArn: Option[String] = None,
    tags: Option[List[_ <: software.amazon.awscdk.CfnTag]] = None,
    volumes: Option[List[_]] = None,
    ephemeralStorage: Option[software.amazon.awscdk.services.ecs.CfnTaskDefinition.EphemeralStorageProperty] = None,
    ipcMode: Option[String] = None,
    requiresCompatibilities: Option[List[String]] = None,
    proxyConfiguration: Option[software.amazon.awscdk.services.ecs.CfnTaskDefinition.ProxyConfigurationProperty] = None,
    cpu: Option[String] = None,
    executionRoleArn: Option[String] = None,
    containerDefinitions: Option[List[_]] = None,
    networkMode: Option[String] = None,
    placementConstraints: Option[List[_]] = None,
    runtimePlatform: Option[software.amazon.awscdk.services.ecs.CfnTaskDefinition.RuntimePlatformProperty] = None,
    family: Option[String] = None,
    memory: Option[String] = None
  ): software.amazon.awscdk.services.ecs.CfnTaskDefinitionProps =
    (new software.amazon.awscdk.services.ecs.CfnTaskDefinitionProps.Builder)
      .pidMode(pidMode.orNull)
      .inferenceAccelerators(inferenceAccelerators.map(_.asJava).orNull)
      .taskRoleArn(taskRoleArn.orNull)
      .tags(tags.map(_.asJava).orNull)
      .volumes(volumes.map(_.asJava).orNull)
      .ephemeralStorage(ephemeralStorage.orNull)
      .ipcMode(ipcMode.orNull)
      .requiresCompatibilities(requiresCompatibilities.map(_.asJava).orNull)
      .proxyConfiguration(proxyConfiguration.orNull)
      .cpu(cpu.orNull)
      .executionRoleArn(executionRoleArn.orNull)
      .containerDefinitions(containerDefinitions.map(_.asJava).orNull)
      .networkMode(networkMode.orNull)
      .placementConstraints(placementConstraints.map(_.asJava).orNull)
      .runtimePlatform(runtimePlatform.orNull)
      .family(family.orNull)
      .memory(memory.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy