JobDefinitionTaskContainerPropertiesArgs

data class JobDefinitionTaskContainerPropertiesArgs(val command: Output<List<String>>? = null, val dependsOn: Output<List<JobDefinitionTaskContainerDependencyArgs>>? = null, val environment: Output<List<JobDefinitionEnvironmentArgs>>? = null, val essential: Output<Boolean>? = null, val firelensConfiguration: Output<JobDefinitionTaskContainerPropertiesFirelensConfigurationPropertiesArgs>? = null, val image: Output<String>, val linuxParameters: Output<JobDefinitionLinuxParametersArgs>? = null, val logConfiguration: Output<JobDefinitionLogConfigurationArgs>? = null, val mountPoints: Output<List<JobDefinitionMountPointArgs>>? = null, val name: Output<String>? = null, val privileged: Output<Boolean>? = null, val readonlyRootFilesystem: Output<Boolean>? = null, val repositoryCredentials: Output<JobDefinitionRepositoryCredentialsArgs>? = null, val resourceRequirements: Output<List<JobDefinitionResourceRequirementArgs>>? = null, val secrets: Output<List<JobDefinitionSecretArgs>>? = null, val ulimits: Output<List<JobDefinitionUlimitArgs>>? = null, val user: Output<String>? = null) : ConvertibleToJava<JobDefinitionTaskContainerPropertiesArgs>

Constructors

Link copied to clipboard
constructor(command: Output<List<String>>? = null, dependsOn: Output<List<JobDefinitionTaskContainerDependencyArgs>>? = null, environment: Output<List<JobDefinitionEnvironmentArgs>>? = null, essential: Output<Boolean>? = null, firelensConfiguration: Output<JobDefinitionTaskContainerPropertiesFirelensConfigurationPropertiesArgs>? = null, image: Output<String>, linuxParameters: Output<JobDefinitionLinuxParametersArgs>? = null, logConfiguration: Output<JobDefinitionLogConfigurationArgs>? = null, mountPoints: Output<List<JobDefinitionMountPointArgs>>? = null, name: Output<String>? = null, privileged: Output<Boolean>? = null, readonlyRootFilesystem: Output<Boolean>? = null, repositoryCredentials: Output<JobDefinitionRepositoryCredentialsArgs>? = null, resourceRequirements: Output<List<JobDefinitionResourceRequirementArgs>>? = null, secrets: Output<List<JobDefinitionSecretArgs>>? = null, ulimits: Output<List<JobDefinitionUlimitArgs>>? = null, user: Output<String>? = null)

Properties

Link copied to clipboard
val command: Output<List<String>>? = null

The command that's passed to the container. This parameter maps to Cmd in the Create a container section of the Docker Remote API and the COMMAND parameter to docker run . For more information, see Dockerfile reference: CMD .

Link copied to clipboard

A list of containers that this container depends on.

Link copied to clipboard

The environment variables to pass to a container. This parameter maps to Env in the Create a container section of the Docker Remote API and the --env parameter to docker run .

Link copied to clipboard
val essential: Output<Boolean>? = null

If the essential parameter of a container is marked as true , and that container fails or stops for any reason, all other containers that are part of the task are stopped. If the essential parameter of a container is marked as false, its failure doesn't affect the rest of the containers in a task. If this parameter is omitted, a container is assumed to be essential. All jobs must have at least one essential container. If you have an application that's composed of multiple containers, group containers that are used for a common purpose into components, and separate the different components into multiple task definitions. For more information, see Application Architecture in the Amazon Elastic Container Service Developer Guide .

Link copied to clipboard

The FireLens configuration for the container. This is used to specify and configure a log router for container logs. For more information, see Custom log routing in the Amazon Elastic Container Service Developer Guide .

Link copied to clipboard
val image: Output<String>

The image used to start a container. This string is passed directly to the Docker daemon. By default, images in the Docker Hub registry are available. Other repositories are specified with either repository-url/image:tag or repository-url/image@digest . Up to 255 letters (uppercase and lowercase), numbers, hyphens, underscores, colons, periods, forward slashes, and number signs are allowed. This parameter maps to Image in the Create a container section of the Docker Remote API and the IMAGE parameter of the docker run .

Link copied to clipboard

Linux-specific modifications that are applied to the container, such as Linux kernel capabilities. For more information, see KernelCapabilities .

Link copied to clipboard

The log configuration specification for the container. This parameter maps to LogConfig in the Create a container section of the Docker Remote API and the --log-driver option to docker run . By default, containers use the same logging driver that the Docker daemon uses. However the container can 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 about the options for different supported log drivers, see Configure logging drivers in the Docker documentation .

Link copied to clipboard

The mount points for data volumes in your container. This parameter maps to Volumes in the Create a container section of the Docker Remote API and the --volume option to docker run . Windows containers can mount whole directories on the same drive as $env:ProgramData . Windows containers can't mount directories on a different drive, and mount point can't be across drives.

Link copied to clipboard
val name: Output<String>? = null

The name of a container. The name can be used as a unique identifier to target your dependsOn and Overrides objects.

Link copied to clipboard
val privileged: Output<Boolean>? = null

When this parameter is true , the container is given elevated privileges on the host container instance (similar to the root user). This parameter maps to Privileged in the Create a container section of the Docker Remote API and the --privileged option to docker run .

Link copied to clipboard
val readonlyRootFilesystem: Output<Boolean>? = null

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 section of the Docker Remote API and the --read-only option to docker run .

Link copied to clipboard

The private repository authentication credentials to use.

Link copied to clipboard

The type and amount of a resource to assign to a container. The only supported resource is a GPU.

Link copied to clipboard
val secrets: Output<List<JobDefinitionSecretArgs>>? = null

The secrets to pass to the container. For more information, see Specifying Sensitive Data in the Amazon Elastic Container Service Developer Guide.

Link copied to clipboard
val ulimits: Output<List<JobDefinitionUlimitArgs>>? = null

A list of ulimits to set in the container. If a ulimit value is specified in a task definition, it overrides the default values set by Docker. This parameter maps to Ulimits in the Create a container section of the Docker Remote API and the --ulimit option to docker run . Amazon ECS tasks hosted on Fargate use the default resource limit values set by the operating system with the exception of the nofile resource limit parameter which Fargate overrides. The nofile resource limit sets a restriction on the number of open files that a container can use. The default nofile soft limit is 1024 and the default hard limit is 65535 . 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 --format '{{.Server.APIVersion}}'

Link copied to clipboard
val user: Output<String>? = null

The user to use inside the container. This parameter maps to User in the Create a container section of the Docker Remote API and the --user option to docker run.

Functions

Link copied to clipboard
open override fun toJava(): JobDefinitionTaskContainerPropertiesArgs