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

com.pulumi.awsnative.batch.kotlin.inputs.JobDefinitionContainerPropertiesArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.batch.kotlin.inputs

import com.pulumi.awsnative.batch.inputs.JobDefinitionContainerPropertiesArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property command The command that's passed to the container. This parameter maps to `Cmd` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `COMMAND` parameter to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) . For more information, see [https://docs.docker.com/engine/reference/builder/#cmd](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/builder/#cmd) .
 * @property environment The environment variables to pass to a container. This parameter maps to `Env` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--env` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
 * > We don't recommend using plaintext environment variables for sensitive information, such as credential data. > Environment variables cannot start with " `AWS_BATCH` ". This naming convention is reserved for variables that AWS Batch sets.
 * @property ephemeralStorage The amount of ephemeral storage to allocate for the task. This parameter is used to expand the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on AWS Fargate .
 * @property executionRoleArn The Amazon Resource Name (ARN) of the execution role that AWS Batch can assume. For jobs that run on Fargate resources, you must provide an execution role. For more information, see [AWS Batch execution IAM role](https://docs.aws.amazon.com/batch/latest/userguide/execution-IAM-role.html) in the *AWS Batch User Guide* .
 * @property fargatePlatformConfiguration The platform configuration for jobs that are running on Fargate resources. Jobs that are running on Amazon EC2 resources must not specify this parameter.
 * @property image Required. The image used to start a container. This string is passed directly to the Docker daemon. Images in the Docker Hub registry are available by default. Other repositories are specified with `*repository-url* / *image* : *tag*` . It can be 255 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), underscores (_), colons (:), periods (.), forward slashes (/), and number signs (#). This parameter maps to `Image` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `IMAGE` parameter of [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
 * > Docker image architecture must match the processor architecture of the compute resources that they're scheduled on. For example, ARM-based Docker images can only run on ARM-based compute resources.
 * - Images in Amazon ECR Public repositories use the full `registry/repository[:tag]` or `registry/repository[@digest]` naming conventions. For example, `public.ecr.aws/ *registry_alias* / *my-web-app* : *latest*` .
 * - Images in Amazon ECR repositories use the full registry and repository URI (for example, `123456789012.dkr.ecr..amazonaws.com/` ).
 * - Images in official repositories on Docker Hub use a single name (for example, `ubuntu` or `mongo` ).
 * - Images in other repositories on Docker Hub are qualified with an organization name (for example, `amazon/amazon-ecs-agent` ).
 * - Images in other online repositories are qualified further by a domain name (for example, `quay.io/assemblyline/ubuntu` ).
 * @property instanceType The instance type to use for a multi-node parallel job. All node groups in a multi-node parallel job must use the same instance type.
 * > This parameter isn't applicable to single-node container jobs or jobs that run on Fargate resources, and shouldn't be provided.
 * @property jobRoleArn The Amazon Resource Name (ARN) of the IAM role that the container can assume for AWS permissions. For more information, see [IAM roles for tasks](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html) in the *Amazon Elastic Container Service Developer Guide* .
 * @property linuxParameters Linux-specific modifications that are applied to the container, such as details for device mappings.
 * @property logConfiguration The log configuration specification for the container.
 * This parameter maps to `LogConfig` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--log-driver` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) . By default, containers use the same logging driver that the Docker daemon uses. However the container might use a different logging driver than the Docker daemon by specifying a log driver with this parameter in the container definition. To use a different logging driver for a container, the log system must be configured properly on the container instance (or on a different log server for remote logging options). For more information on the options for different supported log drivers, see [Configure logging drivers](https://docs.aws.amazon.com/https://docs.docker.com/engine/admin/logging/overview/) in the Docker documentation.
 * > AWS Batch currently supports a subset of the logging drivers available to the Docker daemon (shown in the [LogConfiguration](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-containerproperties-logconfiguration.html) data type).
 * This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: `sudo docker version | grep "Server API version"`
 * > The Amazon ECS container agent running on a container instance must register the logging drivers available on that instance with the `ECS_AVAILABLE_LOGGING_DRIVERS` environment variable before containers placed on that instance can use these log configuration options. For more information, see [Amazon ECS container agent configuration](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html) in the *Amazon Elastic Container Service Developer Guide* .
 * @property memory This parameter is deprecated, use `resourceRequirements` to specify the memory requirements for the job definition. It's not supported for jobs running on Fargate resources. For jobs that run on Amazon EC2 resources, it specifies the memory hard limit (in MiB) for a container. If your container attempts to exceed the specified number, it's terminated. You must specify at least 4 MiB of memory for a job using this parameter. The memory hard limit can be specified in several places. It must be specified for each node at least once.
 * @property mountPoints The mount points for data volumes in your container. This parameter maps to `Volumes` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--volume` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
 * @property networkConfiguration The network configuration for jobs that are running on Fargate resources. Jobs that are running on Amazon EC2 resources must not specify this parameter.
 * @property privileged When this parameter is true, the container is given elevated permissions on the host container instance (similar to the `root` user). This parameter maps to `Privileged` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--privileged` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) . The default value is false.
 * > This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided, or specified as false.
 * @property readonlyRootFilesystem When this parameter is true, the container is given read-only access to its root file system. This parameter maps to `ReadonlyRootfs` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--read-only` option to `docker run` .
 * @property repositoryCredentials The private repository authentication credentials to use.
 * @property resourceRequirements The type and amount of resources to assign to a container. The supported resources include `GPU` , `MEMORY` , and `VCPU` .
 * @property runtimePlatform An object that represents the compute environment architecture for AWS Batch jobs on Fargate.
 * @property secrets The secrets for the container. For more information, see [Specifying sensitive data](https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data.html) in the *AWS Batch User Guide* .
 * @property ulimits A list of `ulimits` to set in the container. This parameter maps to `Ulimits` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--ulimit` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
 * > This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.
 * @property user The user name to use inside the container. This parameter maps to `User` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--user` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
 * @property vcpus This parameter is deprecated, use `resourceRequirements` to specify the vCPU requirements for the job definition. It's not supported for jobs running on Fargate resources. For jobs running on Amazon EC2 resources, it specifies the number of vCPUs reserved for the job.
 * Each vCPU is equivalent to 1,024 CPU shares. This parameter maps to `CpuShares` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--cpu-shares` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) . The number of vCPUs must be specified but can be specified in several places. You must specify it at least once for each node.
 * @property volumes A list of data volumes used in a job.
 */
public data class JobDefinitionContainerPropertiesArgs(
    public val command: Output>? = null,
    public val environment: Output>? = null,
    public val ephemeralStorage: Output? = null,
    public val executionRoleArn: Output? = null,
    public val fargatePlatformConfiguration: Output? =
        null,
    public val image: Output,
    public val instanceType: Output? = null,
    public val jobRoleArn: Output? = null,
    public val linuxParameters: Output? = null,
    public val logConfiguration: Output? = null,
    public val memory: Output? = null,
    public val mountPoints: Output>? = null,
    public val networkConfiguration: Output? = null,
    public val privileged: Output? = null,
    public val readonlyRootFilesystem: Output? = null,
    public val repositoryCredentials: Output? = null,
    public val resourceRequirements: Output>? = null,
    public val runtimePlatform: Output? = null,
    public val secrets: Output>? = null,
    public val ulimits: Output>? = null,
    public val user: Output? = null,
    public val vcpus: Output? = null,
    public val volumes: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.batch.inputs.JobDefinitionContainerPropertiesArgs =
        com.pulumi.awsnative.batch.inputs.JobDefinitionContainerPropertiesArgs.builder()
            .command(command?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .environment(
                environment?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .ephemeralStorage(ephemeralStorage?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .executionRoleArn(executionRoleArn?.applyValue({ args0 -> args0 }))
            .fargatePlatformConfiguration(
                fargatePlatformConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .image(image.applyValue({ args0 -> args0 }))
            .instanceType(instanceType?.applyValue({ args0 -> args0 }))
            .jobRoleArn(jobRoleArn?.applyValue({ args0 -> args0 }))
            .linuxParameters(linuxParameters?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .logConfiguration(logConfiguration?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .memory(memory?.applyValue({ args0 -> args0 }))
            .mountPoints(
                mountPoints?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .networkConfiguration(
                networkConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .privileged(privileged?.applyValue({ args0 -> args0 }))
            .readonlyRootFilesystem(readonlyRootFilesystem?.applyValue({ args0 -> args0 }))
            .repositoryCredentials(
                repositoryCredentials?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .resourceRequirements(
                resourceRequirements?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .runtimePlatform(runtimePlatform?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .secrets(
                secrets?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .ulimits(
                ulimits?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .user(user?.applyValue({ args0 -> args0 }))
            .vcpus(vcpus?.applyValue({ args0 -> args0 }))
            .volumes(
                volumes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [JobDefinitionContainerPropertiesArgs].
 */
@PulumiTagMarker
public class JobDefinitionContainerPropertiesArgsBuilder internal constructor() {
    private var command: Output>? = null

    private var environment: Output>? = null

    private var ephemeralStorage: Output? = null

    private var executionRoleArn: Output? = null

    private var fargatePlatformConfiguration: Output? =
        null

    private var image: Output? = null

    private var instanceType: Output? = null

    private var jobRoleArn: Output? = null

    private var linuxParameters: Output? = null

    private var logConfiguration: Output? = null

    private var memory: Output? = null

    private var mountPoints: Output>? = null

    private var networkConfiguration: Output? = null

    private var privileged: Output? = null

    private var readonlyRootFilesystem: Output? = null

    private var repositoryCredentials: Output? = null

    private var resourceRequirements: Output>? = null

    private var runtimePlatform: Output? = null

    private var secrets: Output>? = null

    private var ulimits: Output>? = null

    private var user: Output? = null

    private var vcpus: Output? = null

    private var volumes: Output>? = null

    /**
     * @param value The command that's passed to the container. This parameter maps to `Cmd` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `COMMAND` parameter to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) . For more information, see [https://docs.docker.com/engine/reference/builder/#cmd](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/builder/#cmd) .
     */
    @JvmName("nkndhehqikcgmqlw")
    public suspend fun command(`value`: Output>) {
        this.command = value
    }

    @JvmName("uvfsmjthbkqbwhop")
    public suspend fun command(vararg values: Output) {
        this.command = Output.all(values.asList())
    }

    /**
     * @param values The command that's passed to the container. This parameter maps to `Cmd` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `COMMAND` parameter to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) . For more information, see [https://docs.docker.com/engine/reference/builder/#cmd](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/builder/#cmd) .
     */
    @JvmName("sidmxlagetilpgvd")
    public suspend fun command(values: List>) {
        this.command = Output.all(values)
    }

    /**
     * @param value The environment variables to pass to a container. This parameter maps to `Env` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--env` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
     * > We don't recommend using plaintext environment variables for sensitive information, such as credential data. > Environment variables cannot start with " `AWS_BATCH` ". This naming convention is reserved for variables that AWS Batch sets.
     */
    @JvmName("hvidvorfekurnmgs")
    public suspend fun environment(`value`: Output>) {
        this.environment = value
    }

    @JvmName("gecyuursfyqjoaxh")
    public suspend fun environment(vararg values: Output) {
        this.environment = Output.all(values.asList())
    }

    /**
     * @param values The environment variables to pass to a container. This parameter maps to `Env` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--env` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
     * > We don't recommend using plaintext environment variables for sensitive information, such as credential data. > Environment variables cannot start with " `AWS_BATCH` ". This naming convention is reserved for variables that AWS Batch sets.
     */
    @JvmName("ftdxnjwhjkkinpek")
    public suspend fun environment(values: List>) {
        this.environment = Output.all(values)
    }

    /**
     * @param value The amount of ephemeral storage to allocate for the task. This parameter is used to expand the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on AWS Fargate .
     */
    @JvmName("trykuolwgjtmwnsn")
    public suspend fun ephemeralStorage(`value`: Output) {
        this.ephemeralStorage = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the execution role that AWS Batch can assume. For jobs that run on Fargate resources, you must provide an execution role. For more information, see [AWS Batch execution IAM role](https://docs.aws.amazon.com/batch/latest/userguide/execution-IAM-role.html) in the *AWS Batch User Guide* .
     */
    @JvmName("kmtrqjxspeususuf")
    public suspend fun executionRoleArn(`value`: Output) {
        this.executionRoleArn = value
    }

    /**
     * @param value The platform configuration for jobs that are running on Fargate resources. Jobs that are running on Amazon EC2 resources must not specify this parameter.
     */
    @JvmName("imlnofxmqxoesfkh")
    public suspend fun fargatePlatformConfiguration(`value`: Output) {
        this.fargatePlatformConfiguration = value
    }

    /**
     * @param value Required. The image used to start a container. This string is passed directly to the Docker daemon. Images in the Docker Hub registry are available by default. Other repositories are specified with `*repository-url* / *image* : *tag*` . It can be 255 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), underscores (_), colons (:), periods (.), forward slashes (/), and number signs (#). This parameter maps to `Image` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `IMAGE` parameter of [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
     * > Docker image architecture must match the processor architecture of the compute resources that they're scheduled on. For example, ARM-based Docker images can only run on ARM-based compute resources.
     * - Images in Amazon ECR Public repositories use the full `registry/repository[:tag]` or `registry/repository[@digest]` naming conventions. For example, `public.ecr.aws/ *registry_alias* / *my-web-app* : *latest*` .
     * - Images in Amazon ECR repositories use the full registry and repository URI (for example, `123456789012.dkr.ecr..amazonaws.com/` ).
     * - Images in official repositories on Docker Hub use a single name (for example, `ubuntu` or `mongo` ).
     * - Images in other repositories on Docker Hub are qualified with an organization name (for example, `amazon/amazon-ecs-agent` ).
     * - Images in other online repositories are qualified further by a domain name (for example, `quay.io/assemblyline/ubuntu` ).
     */
    @JvmName("svivgoyxadguxykn")
    public suspend fun image(`value`: Output) {
        this.image = value
    }

    /**
     * @param value The instance type to use for a multi-node parallel job. All node groups in a multi-node parallel job must use the same instance type.
     * > This parameter isn't applicable to single-node container jobs or jobs that run on Fargate resources, and shouldn't be provided.
     */
    @JvmName("arflimonntbvxbht")
    public suspend fun instanceType(`value`: Output) {
        this.instanceType = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the IAM role that the container can assume for AWS permissions. For more information, see [IAM roles for tasks](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html) in the *Amazon Elastic Container Service Developer Guide* .
     */
    @JvmName("gdyhuigstlbjumch")
    public suspend fun jobRoleArn(`value`: Output) {
        this.jobRoleArn = value
    }

    /**
     * @param value Linux-specific modifications that are applied to the container, such as details for device mappings.
     */
    @JvmName("qowagdsqjmmosllp")
    public suspend fun linuxParameters(`value`: Output) {
        this.linuxParameters = value
    }

    /**
     * @param value The log configuration specification for the container.
     * This parameter maps to `LogConfig` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--log-driver` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) . By default, containers use the same logging driver that the Docker daemon uses. However the container might use a different logging driver than the Docker daemon by specifying a log driver with this parameter in the container definition. To use a different logging driver for a container, the log system must be configured properly on the container instance (or on a different log server for remote logging options). For more information on the options for different supported log drivers, see [Configure logging drivers](https://docs.aws.amazon.com/https://docs.docker.com/engine/admin/logging/overview/) in the Docker documentation.
     * > AWS Batch currently supports a subset of the logging drivers available to the Docker daemon (shown in the [LogConfiguration](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-containerproperties-logconfiguration.html) data type).
     * This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: `sudo docker version | grep "Server API version"`
     * > The Amazon ECS container agent running on a container instance must register the logging drivers available on that instance with the `ECS_AVAILABLE_LOGGING_DRIVERS` environment variable before containers placed on that instance can use these log configuration options. For more information, see [Amazon ECS container agent configuration](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html) in the *Amazon Elastic Container Service Developer Guide* .
     */
    @JvmName("rhabynlxckvdyyvn")
    public suspend fun logConfiguration(`value`: Output) {
        this.logConfiguration = value
    }

    /**
     * @param value This parameter is deprecated, use `resourceRequirements` to specify the memory requirements for the job definition. It's not supported for jobs running on Fargate resources. For jobs that run on Amazon EC2 resources, it specifies the memory hard limit (in MiB) for a container. If your container attempts to exceed the specified number, it's terminated. You must specify at least 4 MiB of memory for a job using this parameter. The memory hard limit can be specified in several places. It must be specified for each node at least once.
     */
    @JvmName("yxtrcekhqrjflbjp")
    public suspend fun memory(`value`: Output) {
        this.memory = value
    }

    /**
     * @param value The mount points for data volumes in your container. This parameter maps to `Volumes` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--volume` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
     */
    @JvmName("ewaexohlvplwgclm")
    public suspend fun mountPoints(`value`: Output>) {
        this.mountPoints = value
    }

    @JvmName("cnevtqkhbcqelrjo")
    public suspend fun mountPoints(vararg values: Output) {
        this.mountPoints = Output.all(values.asList())
    }

    /**
     * @param values The mount points for data volumes in your container. This parameter maps to `Volumes` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--volume` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
     */
    @JvmName("fmicuvhkdxlotmra")
    public suspend fun mountPoints(values: List>) {
        this.mountPoints = Output.all(values)
    }

    /**
     * @param value The network configuration for jobs that are running on Fargate resources. Jobs that are running on Amazon EC2 resources must not specify this parameter.
     */
    @JvmName("ggsiexospcugwmlp")
    public suspend fun networkConfiguration(`value`: Output) {
        this.networkConfiguration = value
    }

    /**
     * @param value When this parameter is true, the container is given elevated permissions on the host container instance (similar to the `root` user). This parameter maps to `Privileged` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--privileged` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) . The default value is false.
     * > This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided, or specified as false.
     */
    @JvmName("aafeqcwpukhjjhtc")
    public suspend fun privileged(`value`: Output) {
        this.privileged = value
    }

    /**
     * @param value When this parameter is true, the container is given read-only access to its root file system. This parameter maps to `ReadonlyRootfs` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--read-only` option to `docker run` .
     */
    @JvmName("rfqrtamqiavbrxfy")
    public suspend fun readonlyRootFilesystem(`value`: Output) {
        this.readonlyRootFilesystem = value
    }

    /**
     * @param value The private repository authentication credentials to use.
     */
    @JvmName("nnwvqwjoyjxfnnwg")
    public suspend fun repositoryCredentials(`value`: Output) {
        this.repositoryCredentials = value
    }

    /**
     * @param value The type and amount of resources to assign to a container. The supported resources include `GPU` , `MEMORY` , and `VCPU` .
     */
    @JvmName("jndwlsqfhsecbrba")
    public suspend fun resourceRequirements(`value`: Output>) {
        this.resourceRequirements = value
    }

    @JvmName("bxchkyaleljcalki")
    public suspend fun resourceRequirements(vararg values: Output) {
        this.resourceRequirements = Output.all(values.asList())
    }

    /**
     * @param values The type and amount of resources to assign to a container. The supported resources include `GPU` , `MEMORY` , and `VCPU` .
     */
    @JvmName("oiqnsbneggstwewi")
    public suspend fun resourceRequirements(values: List>) {
        this.resourceRequirements = Output.all(values)
    }

    /**
     * @param value An object that represents the compute environment architecture for AWS Batch jobs on Fargate.
     */
    @JvmName("jgvlketfqhqdiyec")
    public suspend fun runtimePlatform(`value`: Output) {
        this.runtimePlatform = value
    }

    /**
     * @param value The secrets for the container. For more information, see [Specifying sensitive data](https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data.html) in the *AWS Batch User Guide* .
     */
    @JvmName("nygctkdejljhqdfg")
    public suspend fun secrets(`value`: Output>) {
        this.secrets = value
    }

    @JvmName("abwwceneokacjxmm")
    public suspend fun secrets(vararg values: Output) {
        this.secrets = Output.all(values.asList())
    }

    /**
     * @param values The secrets for the container. For more information, see [Specifying sensitive data](https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data.html) in the *AWS Batch User Guide* .
     */
    @JvmName("etavjlpromewagsq")
    public suspend fun secrets(values: List>) {
        this.secrets = Output.all(values)
    }

    /**
     * @param value A list of `ulimits` to set in the container. This parameter maps to `Ulimits` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--ulimit` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
     * > This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.
     */
    @JvmName("xmbtilwqqcfpancj")
    public suspend fun ulimits(`value`: Output>) {
        this.ulimits = value
    }

    @JvmName("oaixswvrymmmlkxk")
    public suspend fun ulimits(vararg values: Output) {
        this.ulimits = Output.all(values.asList())
    }

    /**
     * @param values A list of `ulimits` to set in the container. This parameter maps to `Ulimits` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--ulimit` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
     * > This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.
     */
    @JvmName("hryphlubybqstsgm")
    public suspend fun ulimits(values: List>) {
        this.ulimits = Output.all(values)
    }

    /**
     * @param value The user name to use inside the container. This parameter maps to `User` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--user` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
     */
    @JvmName("luevnnvijqeeqvec")
    public suspend fun user(`value`: Output) {
        this.user = value
    }

    /**
     * @param value This parameter is deprecated, use `resourceRequirements` to specify the vCPU requirements for the job definition. It's not supported for jobs running on Fargate resources. For jobs running on Amazon EC2 resources, it specifies the number of vCPUs reserved for the job.
     * Each vCPU is equivalent to 1,024 CPU shares. This parameter maps to `CpuShares` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--cpu-shares` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) . The number of vCPUs must be specified but can be specified in several places. You must specify it at least once for each node.
     */
    @JvmName("xjmyqbfrcvcinuqc")
    public suspend fun vcpus(`value`: Output) {
        this.vcpus = value
    }

    /**
     * @param value A list of data volumes used in a job.
     */
    @JvmName("cnifsupslxfhcxev")
    public suspend fun volumes(`value`: Output>) {
        this.volumes = value
    }

    @JvmName("gitqwrmfavtnwkuj")
    public suspend fun volumes(vararg values: Output) {
        this.volumes = Output.all(values.asList())
    }

    /**
     * @param values A list of data volumes used in a job.
     */
    @JvmName("klhgfspjtcwcrbka")
    public suspend fun volumes(values: List>) {
        this.volumes = Output.all(values)
    }

    /**
     * @param value The command that's passed to the container. This parameter maps to `Cmd` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `COMMAND` parameter to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) . For more information, see [https://docs.docker.com/engine/reference/builder/#cmd](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/builder/#cmd) .
     */
    @JvmName("pfaitcfkkxmtmufd")
    public suspend fun command(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.command = mapped
    }

    /**
     * @param values The command that's passed to the container. This parameter maps to `Cmd` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `COMMAND` parameter to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) . For more information, see [https://docs.docker.com/engine/reference/builder/#cmd](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/builder/#cmd) .
     */
    @JvmName("tsjnmjxjqmuqycqs")
    public suspend fun command(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.command = mapped
    }

    /**
     * @param value The environment variables to pass to a container. This parameter maps to `Env` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--env` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
     * > We don't recommend using plaintext environment variables for sensitive information, such as credential data. > Environment variables cannot start with " `AWS_BATCH` ". This naming convention is reserved for variables that AWS Batch sets.
     */
    @JvmName("umaxceudoxtmmjjc")
    public suspend fun environment(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.environment = mapped
    }

    /**
     * @param argument The environment variables to pass to a container. This parameter maps to `Env` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--env` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
     * > We don't recommend using plaintext environment variables for sensitive information, such as credential data. > Environment variables cannot start with " `AWS_BATCH` ". This naming convention is reserved for variables that AWS Batch sets.
     */
    @JvmName("wndombdohgrqmkkn")
    public suspend fun environment(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            JobDefinitionEnvironmentArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.environment = mapped
    }

    /**
     * @param argument The environment variables to pass to a container. This parameter maps to `Env` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--env` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
     * > We don't recommend using plaintext environment variables for sensitive information, such as credential data. > Environment variables cannot start with " `AWS_BATCH` ". This naming convention is reserved for variables that AWS Batch sets.
     */
    @JvmName("dsuacikjjwjlxros")
    public suspend fun environment(vararg argument: suspend JobDefinitionEnvironmentArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            JobDefinitionEnvironmentArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.environment = mapped
    }

    /**
     * @param argument The environment variables to pass to a container. This parameter maps to `Env` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--env` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
     * > We don't recommend using plaintext environment variables for sensitive information, such as credential data. > Environment variables cannot start with " `AWS_BATCH` ". This naming convention is reserved for variables that AWS Batch sets.
     */
    @JvmName("opgkagqxjbclbklf")
    public suspend fun environment(argument: suspend JobDefinitionEnvironmentArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            JobDefinitionEnvironmentArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.environment = mapped
    }

    /**
     * @param values The environment variables to pass to a container. This parameter maps to `Env` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--env` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
     * > We don't recommend using plaintext environment variables for sensitive information, such as credential data. > Environment variables cannot start with " `AWS_BATCH` ". This naming convention is reserved for variables that AWS Batch sets.
     */
    @JvmName("wuupatefdcnwvxku")
    public suspend fun environment(vararg values: JobDefinitionEnvironmentArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.environment = mapped
    }

    /**
     * @param value The amount of ephemeral storage to allocate for the task. This parameter is used to expand the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on AWS Fargate .
     */
    @JvmName("bgxwqrpkaxlherhs")
    public suspend fun ephemeralStorage(`value`: JobDefinitionEphemeralStorageArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ephemeralStorage = mapped
    }

    /**
     * @param argument The amount of ephemeral storage to allocate for the task. This parameter is used to expand the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on AWS Fargate .
     */
    @JvmName("xumcwyoklybacaxx")
    public suspend fun ephemeralStorage(argument: suspend JobDefinitionEphemeralStorageArgsBuilder.() -> Unit) {
        val toBeMapped = JobDefinitionEphemeralStorageArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.ephemeralStorage = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the execution role that AWS Batch can assume. For jobs that run on Fargate resources, you must provide an execution role. For more information, see [AWS Batch execution IAM role](https://docs.aws.amazon.com/batch/latest/userguide/execution-IAM-role.html) in the *AWS Batch User Guide* .
     */
    @JvmName("vsptdongyslturyp")
    public suspend fun executionRoleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.executionRoleArn = mapped
    }

    /**
     * @param value The platform configuration for jobs that are running on Fargate resources. Jobs that are running on Amazon EC2 resources must not specify this parameter.
     */
    @JvmName("yemntystnetoyiyt")
    public suspend fun fargatePlatformConfiguration(`value`: JobDefinitionFargatePlatformConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fargatePlatformConfiguration = mapped
    }

    /**
     * @param argument The platform configuration for jobs that are running on Fargate resources. Jobs that are running on Amazon EC2 resources must not specify this parameter.
     */
    @JvmName("xhmktqjmkugylqej")
    public suspend fun fargatePlatformConfiguration(argument: suspend JobDefinitionFargatePlatformConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = JobDefinitionFargatePlatformConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.fargatePlatformConfiguration = mapped
    }

    /**
     * @param value Required. The image used to start a container. This string is passed directly to the Docker daemon. Images in the Docker Hub registry are available by default. Other repositories are specified with `*repository-url* / *image* : *tag*` . It can be 255 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), underscores (_), colons (:), periods (.), forward slashes (/), and number signs (#). This parameter maps to `Image` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `IMAGE` parameter of [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
     * > Docker image architecture must match the processor architecture of the compute resources that they're scheduled on. For example, ARM-based Docker images can only run on ARM-based compute resources.
     * - Images in Amazon ECR Public repositories use the full `registry/repository[:tag]` or `registry/repository[@digest]` naming conventions. For example, `public.ecr.aws/ *registry_alias* / *my-web-app* : *latest*` .
     * - Images in Amazon ECR repositories use the full registry and repository URI (for example, `123456789012.dkr.ecr..amazonaws.com/` ).
     * - Images in official repositories on Docker Hub use a single name (for example, `ubuntu` or `mongo` ).
     * - Images in other repositories on Docker Hub are qualified with an organization name (for example, `amazon/amazon-ecs-agent` ).
     * - Images in other online repositories are qualified further by a domain name (for example, `quay.io/assemblyline/ubuntu` ).
     */
    @JvmName("cqencggnywugqrfm")
    public suspend fun image(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.image = mapped
    }

    /**
     * @param value The instance type to use for a multi-node parallel job. All node groups in a multi-node parallel job must use the same instance type.
     * > This parameter isn't applicable to single-node container jobs or jobs that run on Fargate resources, and shouldn't be provided.
     */
    @JvmName("pwoswncmbnsotlcj")
    public suspend fun instanceType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceType = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the IAM role that the container can assume for AWS permissions. For more information, see [IAM roles for tasks](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html) in the *Amazon Elastic Container Service Developer Guide* .
     */
    @JvmName("vdonnjsomainkdsh")
    public suspend fun jobRoleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.jobRoleArn = mapped
    }

    /**
     * @param value Linux-specific modifications that are applied to the container, such as details for device mappings.
     */
    @JvmName("vnsqnyiorqyqivwj")
    public suspend fun linuxParameters(`value`: JobDefinitionLinuxParametersArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.linuxParameters = mapped
    }

    /**
     * @param argument Linux-specific modifications that are applied to the container, such as details for device mappings.
     */
    @JvmName("abwqfdeiwjvtgycy")
    public suspend fun linuxParameters(argument: suspend JobDefinitionLinuxParametersArgsBuilder.() -> Unit) {
        val toBeMapped = JobDefinitionLinuxParametersArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.linuxParameters = mapped
    }

    /**
     * @param value The log configuration specification for the container.
     * This parameter maps to `LogConfig` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--log-driver` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) . By default, containers use the same logging driver that the Docker daemon uses. However the container might use a different logging driver than the Docker daemon by specifying a log driver with this parameter in the container definition. To use a different logging driver for a container, the log system must be configured properly on the container instance (or on a different log server for remote logging options). For more information on the options for different supported log drivers, see [Configure logging drivers](https://docs.aws.amazon.com/https://docs.docker.com/engine/admin/logging/overview/) in the Docker documentation.
     * > AWS Batch currently supports a subset of the logging drivers available to the Docker daemon (shown in the [LogConfiguration](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-containerproperties-logconfiguration.html) data type).
     * This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: `sudo docker version | grep "Server API version"`
     * > The Amazon ECS container agent running on a container instance must register the logging drivers available on that instance with the `ECS_AVAILABLE_LOGGING_DRIVERS` environment variable before containers placed on that instance can use these log configuration options. For more information, see [Amazon ECS container agent configuration](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html) in the *Amazon Elastic Container Service Developer Guide* .
     */
    @JvmName("onwkmiqwcbbeqymj")
    public suspend fun logConfiguration(`value`: JobDefinitionLogConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.logConfiguration = mapped
    }

    /**
     * @param argument The log configuration specification for the container.
     * This parameter maps to `LogConfig` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--log-driver` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) . By default, containers use the same logging driver that the Docker daemon uses. However the container might use a different logging driver than the Docker daemon by specifying a log driver with this parameter in the container definition. To use a different logging driver for a container, the log system must be configured properly on the container instance (or on a different log server for remote logging options). For more information on the options for different supported log drivers, see [Configure logging drivers](https://docs.aws.amazon.com/https://docs.docker.com/engine/admin/logging/overview/) in the Docker documentation.
     * > AWS Batch currently supports a subset of the logging drivers available to the Docker daemon (shown in the [LogConfiguration](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-containerproperties-logconfiguration.html) data type).
     * This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: `sudo docker version | grep "Server API version"`
     * > The Amazon ECS container agent running on a container instance must register the logging drivers available on that instance with the `ECS_AVAILABLE_LOGGING_DRIVERS` environment variable before containers placed on that instance can use these log configuration options. For more information, see [Amazon ECS container agent configuration](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html) in the *Amazon Elastic Container Service Developer Guide* .
     */
    @JvmName("qtbsgvnqxarqesrv")
    public suspend fun logConfiguration(argument: suspend JobDefinitionLogConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = JobDefinitionLogConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.logConfiguration = mapped
    }

    /**
     * @param value This parameter is deprecated, use `resourceRequirements` to specify the memory requirements for the job definition. It's not supported for jobs running on Fargate resources. For jobs that run on Amazon EC2 resources, it specifies the memory hard limit (in MiB) for a container. If your container attempts to exceed the specified number, it's terminated. You must specify at least 4 MiB of memory for a job using this parameter. The memory hard limit can be specified in several places. It must be specified for each node at least once.
     */
    @JvmName("tmindkjurgqidjds")
    public suspend fun memory(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.memory = mapped
    }

    /**
     * @param value The mount points for data volumes in your container. This parameter maps to `Volumes` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--volume` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
     */
    @JvmName("kiuxgqnbhmuuchwy")
    public suspend fun mountPoints(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mountPoints = mapped
    }

    /**
     * @param argument The mount points for data volumes in your container. This parameter maps to `Volumes` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--volume` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
     */
    @JvmName("hwqlpxdjwqfhswqx")
    public suspend fun mountPoints(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            JobDefinitionMountPointsArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.mountPoints = mapped
    }

    /**
     * @param argument The mount points for data volumes in your container. This parameter maps to `Volumes` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--volume` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
     */
    @JvmName("vljruosjfvwijemn")
    public suspend fun mountPoints(vararg argument: suspend JobDefinitionMountPointsArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            JobDefinitionMountPointsArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.mountPoints = mapped
    }

    /**
     * @param argument The mount points for data volumes in your container. This parameter maps to `Volumes` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--volume` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
     */
    @JvmName("kleqvunhvwfnuexp")
    public suspend fun mountPoints(argument: suspend JobDefinitionMountPointsArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            JobDefinitionMountPointsArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.mountPoints = mapped
    }

    /**
     * @param values The mount points for data volumes in your container. This parameter maps to `Volumes` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--volume` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
     */
    @JvmName("jlgkcgfjytuuvnji")
    public suspend fun mountPoints(vararg values: JobDefinitionMountPointsArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mountPoints = mapped
    }

    /**
     * @param value The network configuration for jobs that are running on Fargate resources. Jobs that are running on Amazon EC2 resources must not specify this parameter.
     */
    @JvmName("rvbyyfycdcibiyev")
    public suspend fun networkConfiguration(`value`: JobDefinitionNetworkConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.networkConfiguration = mapped
    }

    /**
     * @param argument The network configuration for jobs that are running on Fargate resources. Jobs that are running on Amazon EC2 resources must not specify this parameter.
     */
    @JvmName("hopesbvnhmqciudj")
    public suspend fun networkConfiguration(argument: suspend JobDefinitionNetworkConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = JobDefinitionNetworkConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.networkConfiguration = mapped
    }

    /**
     * @param value When this parameter is true, the container is given elevated permissions on the host container instance (similar to the `root` user). This parameter maps to `Privileged` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--privileged` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) . The default value is false.
     * > This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided, or specified as false.
     */
    @JvmName("lqmlxsrywnljfjis")
    public suspend fun privileged(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.privileged = mapped
    }

    /**
     * @param value When this parameter is true, the container is given read-only access to its root file system. This parameter maps to `ReadonlyRootfs` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--read-only` option to `docker run` .
     */
    @JvmName("estwhajkhsimtjsi")
    public suspend fun readonlyRootFilesystem(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.readonlyRootFilesystem = mapped
    }

    /**
     * @param value The private repository authentication credentials to use.
     */
    @JvmName("ggececkabsjftytj")
    public suspend fun repositoryCredentials(`value`: JobDefinitionRepositoryCredentialsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.repositoryCredentials = mapped
    }

    /**
     * @param argument The private repository authentication credentials to use.
     */
    @JvmName("ubbdslroyermwahw")
    public suspend fun repositoryCredentials(argument: suspend JobDefinitionRepositoryCredentialsArgsBuilder.() -> Unit) {
        val toBeMapped = JobDefinitionRepositoryCredentialsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.repositoryCredentials = mapped
    }

    /**
     * @param value The type and amount of resources to assign to a container. The supported resources include `GPU` , `MEMORY` , and `VCPU` .
     */
    @JvmName("vqrvkjwmycvjwubo")
    public suspend fun resourceRequirements(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceRequirements = mapped
    }

    /**
     * @param argument The type and amount of resources to assign to a container. The supported resources include `GPU` , `MEMORY` , and `VCPU` .
     */
    @JvmName("vbeevketksqptepl")
    public suspend fun resourceRequirements(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            JobDefinitionResourceRequirementArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.resourceRequirements = mapped
    }

    /**
     * @param argument The type and amount of resources to assign to a container. The supported resources include `GPU` , `MEMORY` , and `VCPU` .
     */
    @JvmName("wlvlxsncpvloixxr")
    public suspend fun resourceRequirements(vararg argument: suspend JobDefinitionResourceRequirementArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            JobDefinitionResourceRequirementArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.resourceRequirements = mapped
    }

    /**
     * @param argument The type and amount of resources to assign to a container. The supported resources include `GPU` , `MEMORY` , and `VCPU` .
     */
    @JvmName("nxgvqhyorupugfrq")
    public suspend fun resourceRequirements(argument: suspend JobDefinitionResourceRequirementArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            JobDefinitionResourceRequirementArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.resourceRequirements = mapped
    }

    /**
     * @param values The type and amount of resources to assign to a container. The supported resources include `GPU` , `MEMORY` , and `VCPU` .
     */
    @JvmName("rosvuxbbmjdjmeae")
    public suspend fun resourceRequirements(vararg values: JobDefinitionResourceRequirementArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.resourceRequirements = mapped
    }

    /**
     * @param value An object that represents the compute environment architecture for AWS Batch jobs on Fargate.
     */
    @JvmName("kyanqummldicicfs")
    public suspend fun runtimePlatform(`value`: JobDefinitionRuntimePlatformArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.runtimePlatform = mapped
    }

    /**
     * @param argument An object that represents the compute environment architecture for AWS Batch jobs on Fargate.
     */
    @JvmName("vxqxtjlocppihexh")
    public suspend fun runtimePlatform(argument: suspend JobDefinitionRuntimePlatformArgsBuilder.() -> Unit) {
        val toBeMapped = JobDefinitionRuntimePlatformArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.runtimePlatform = mapped
    }

    /**
     * @param value The secrets for the container. For more information, see [Specifying sensitive data](https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data.html) in the *AWS Batch User Guide* .
     */
    @JvmName("hjkbocclsqdddblr")
    public suspend fun secrets(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.secrets = mapped
    }

    /**
     * @param argument The secrets for the container. For more information, see [Specifying sensitive data](https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data.html) in the *AWS Batch User Guide* .
     */
    @JvmName("rmkxmjbuijvuaunw")
    public suspend fun secrets(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            JobDefinitionSecretArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.secrets = mapped
    }

    /**
     * @param argument The secrets for the container. For more information, see [Specifying sensitive data](https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data.html) in the *AWS Batch User Guide* .
     */
    @JvmName("lxqbplowcaleixee")
    public suspend fun secrets(vararg argument: suspend JobDefinitionSecretArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            JobDefinitionSecretArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.secrets = mapped
    }

    /**
     * @param argument The secrets for the container. For more information, see [Specifying sensitive data](https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data.html) in the *AWS Batch User Guide* .
     */
    @JvmName("cmbowmymrgwvtorx")
    public suspend fun secrets(argument: suspend JobDefinitionSecretArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(JobDefinitionSecretArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.secrets = mapped
    }

    /**
     * @param values The secrets for the container. For more information, see [Specifying sensitive data](https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data.html) in the *AWS Batch User Guide* .
     */
    @JvmName("yhwfwfhusdgjbhfe")
    public suspend fun secrets(vararg values: JobDefinitionSecretArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.secrets = mapped
    }

    /**
     * @param value A list of `ulimits` to set in the container. This parameter maps to `Ulimits` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--ulimit` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
     * > This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.
     */
    @JvmName("bkgftylokahytcbb")
    public suspend fun ulimits(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ulimits = mapped
    }

    /**
     * @param argument A list of `ulimits` to set in the container. This parameter maps to `Ulimits` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--ulimit` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
     * > This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.
     */
    @JvmName("vsxkhlkiergvvuro")
    public suspend fun ulimits(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            JobDefinitionUlimitArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.ulimits = mapped
    }

    /**
     * @param argument A list of `ulimits` to set in the container. This parameter maps to `Ulimits` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--ulimit` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
     * > This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.
     */
    @JvmName("tqscejekonqicoln")
    public suspend fun ulimits(vararg argument: suspend JobDefinitionUlimitArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            JobDefinitionUlimitArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.ulimits = mapped
    }

    /**
     * @param argument A list of `ulimits` to set in the container. This parameter maps to `Ulimits` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--ulimit` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
     * > This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.
     */
    @JvmName("lxmkdyspnhoxhtys")
    public suspend fun ulimits(argument: suspend JobDefinitionUlimitArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(JobDefinitionUlimitArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.ulimits = mapped
    }

    /**
     * @param values A list of `ulimits` to set in the container. This parameter maps to `Ulimits` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--ulimit` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
     * > This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.
     */
    @JvmName("puqynhqbfmukpdsh")
    public suspend fun ulimits(vararg values: JobDefinitionUlimitArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ulimits = mapped
    }

    /**
     * @param value The user name to use inside the container. This parameter maps to `User` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--user` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) .
     */
    @JvmName("qaaqiauotxenokcc")
    public suspend fun user(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.user = mapped
    }

    /**
     * @param value This parameter is deprecated, use `resourceRequirements` to specify the vCPU requirements for the job definition. It's not supported for jobs running on Fargate resources. For jobs running on Amazon EC2 resources, it specifies the number of vCPUs reserved for the job.
     * Each vCPU is equivalent to 1,024 CPU shares. This parameter maps to `CpuShares` in the [Create a container](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container) section of the [Docker Remote API](https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/) and the `--cpu-shares` option to [docker run](https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/) . The number of vCPUs must be specified but can be specified in several places. You must specify it at least once for each node.
     */
    @JvmName("cisaqnqwcxvwbkux")
    public suspend fun vcpus(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vcpus = mapped
    }

    /**
     * @param value A list of data volumes used in a job.
     */
    @JvmName("gigjaklbcbqknxiy")
    public suspend fun volumes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.volumes = mapped
    }

    /**
     * @param argument A list of data volumes used in a job.
     */
    @JvmName("ttwipmefppmnwfuv")
    public suspend fun volumes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            JobDefinitionVolumesArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.volumes = mapped
    }

    /**
     * @param argument A list of data volumes used in a job.
     */
    @JvmName("okxjovaadjwsjnoc")
    public suspend fun volumes(vararg argument: suspend JobDefinitionVolumesArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            JobDefinitionVolumesArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.volumes = mapped
    }

    /**
     * @param argument A list of data volumes used in a job.
     */
    @JvmName("kdehfqsawygayjgh")
    public suspend fun volumes(argument: suspend JobDefinitionVolumesArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(JobDefinitionVolumesArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.volumes = mapped
    }

    /**
     * @param values A list of data volumes used in a job.
     */
    @JvmName("ixxutwuyboxjbgrq")
    public suspend fun volumes(vararg values: JobDefinitionVolumesArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.volumes = mapped
    }

    internal fun build(): JobDefinitionContainerPropertiesArgs = JobDefinitionContainerPropertiesArgs(
        command = command,
        environment = environment,
        ephemeralStorage = ephemeralStorage,
        executionRoleArn = executionRoleArn,
        fargatePlatformConfiguration = fargatePlatformConfiguration,
        image = image ?: throw PulumiNullFieldException("image"),
        instanceType = instanceType,
        jobRoleArn = jobRoleArn,
        linuxParameters = linuxParameters,
        logConfiguration = logConfiguration,
        memory = memory,
        mountPoints = mountPoints,
        networkConfiguration = networkConfiguration,
        privileged = privileged,
        readonlyRootFilesystem = readonlyRootFilesystem,
        repositoryCredentials = repositoryCredentials,
        resourceRequirements = resourceRequirements,
        runtimePlatform = runtimePlatform,
        secrets = secrets,
        ulimits = ulimits,
        user = user,
        vcpus = vcpus,
        volumes = volumes,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy