JobDefinitionEksContainerArgs

data class JobDefinitionEksContainerArgs(val args: Output<List<String>>? = null, val command: Output<List<String>>? = null, val env: Output<List<JobDefinitionEksContainerEnvironmentVariableArgs>>? = null, val image: Output<String>, val imagePullPolicy: Output<String>? = null, val name: Output<String>? = null, val resources: Output<JobDefinitionEksContainerResourceRequirementsArgs>? = null, val securityContext: Output<JobDefinitionEksContainerSecurityContextArgs>? = null, val volumeMounts: Output<List<JobDefinitionEksContainerVolumeMountArgs>>? = null) : ConvertibleToJava<JobDefinitionEksContainerArgs>

Constructors

Link copied to clipboard
constructor(args: Output<List<String>>? = null, command: Output<List<String>>? = null, env: Output<List<JobDefinitionEksContainerEnvironmentVariableArgs>>? = null, image: Output<String>, imagePullPolicy: Output<String>? = null, name: Output<String>? = null, resources: Output<JobDefinitionEksContainerResourceRequirementsArgs>? = null, securityContext: Output<JobDefinitionEksContainerSecurityContextArgs>? = null, volumeMounts: Output<List<JobDefinitionEksContainerVolumeMountArgs>>? = null)

Properties

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

An array of arguments to the entrypoint. If this isn't specified, the CMD of the container image is used. This corresponds to the args member in the Entrypoint portion of the Pod in Kubernetes. Environment variable references are expanded using the container's environment. If the referenced environment variable doesn't exist, the reference in the command isn't changed. For example, if the reference is to " $(NAME1) " and the NAME1 environment variable doesn't exist, the command string will remain " $(NAME1) ." $$ is replaced with $ , and the resulting string isn't expanded. For example, $$(VAR_NAME) is passed as $(VAR_NAME) whether or not the VAR_NAME environment variable exists. For more information, see Dockerfile reference: CMD and Define a command and arguments for a pod in the Kubernetes documentation .

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

The entrypoint for the container. This isn't run within a shell. If this isn't specified, the ENTRYPOINT of the container image is used. Environment variable references are expanded using the container's environment. If the referenced environment variable doesn't exist, the reference in the command isn't changed. For example, if the reference is to " $(NAME1) " and the NAME1 environment variable doesn't exist, the command string will remain " $(NAME1) ." $$ is replaced with $ and the resulting string isn't expanded. For example, $$(VAR_NAME) will be passed as $(VAR_NAME) whether or not the VAR_NAME environment variable exists. The entrypoint can't be updated. For more information, see ENTRYPOINT in the Dockerfile reference and Define a command and arguments for a container and Entrypoint in the Kubernetes documentation .

Link copied to clipboard

The environment variables to pass to a container.

Link copied to clipboard
val image: Output<String>

The Docker image used to start the container.

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

The image pull policy for the container. Supported values are Always , IfNotPresent , and Never . This parameter defaults to IfNotPresent . However, if the :latest tag is specified, it defaults to Always . For more information, see Updating images in the Kubernetes documentation .

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

The name of the container. If the name isn't specified, the default name " Default " is used. Each container in a pod must have a unique name.

Link copied to clipboard

The type and amount of resources to assign to a container. The supported resources include memory , cpu , and nvidia.com/gpu . For more information, see Resource management for pods and containers in the Kubernetes documentation .

Link copied to clipboard

The security context for a job. For more information, see Configure a security context for a pod or container in the Kubernetes documentation .

Link copied to clipboard

The volume mounts for the container. AWS Batch supports emptyDir , hostPath , and secret volume types. For more information about volumes and volume mounts in Kubernetes, see Volumes in the Kubernetes documentation .

Functions

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