amazonka-batch-2.0: Amazon Batch SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Batch.Types.EksContainerDetail

Description

 
Synopsis

Documentation

data EksContainerDetail Source #

The details for container properties that are returned by DescribeJobs for jobs that use Amazon EKS.

See: newEksContainerDetail smart constructor.

Constructors

EksContainerDetail' 

Fields

  • args :: Maybe [Text]

    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 CMD in the Dockerfile reference and Define a command and arguments for a pod in the Kubernetes documentation.

  • command :: Maybe [Text]

    The entrypoint for the container. For more information, see Entrypoint in the Kubernetes documentation.

  • env :: Maybe [EksContainerEnvironmentVariable]

    The environment variables to pass to a container.

    Environment variables cannot start with "AWS_BATCH". This naming convention is reserved for variables that Batch sets.

  • exitCode :: Maybe Int

    The exit code for the job attempt. A non-zero exit code is considered failed.

  • image :: Maybe Text

    The Docker image used to start the container.

  • imagePullPolicy :: Maybe Text

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

  • name :: Maybe Text

    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.

  • reason :: Maybe Text

    A short human-readable string to provide additional details for a running or stopped container. It can be up to 255 characters long.

  • resources :: Maybe EksContainerResourceRequirements

    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.

  • securityContext :: Maybe EksContainerSecurityContext

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

  • volumeMounts :: Maybe [EksContainerVolumeMount]

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

Instances

Instances details
FromJSON EksContainerDetail Source # 
Instance details

Defined in Amazonka.Batch.Types.EksContainerDetail

Generic EksContainerDetail Source # 
Instance details

Defined in Amazonka.Batch.Types.EksContainerDetail

Associated Types

type Rep EksContainerDetail :: Type -> Type #

Read EksContainerDetail Source # 
Instance details

Defined in Amazonka.Batch.Types.EksContainerDetail

Show EksContainerDetail Source # 
Instance details

Defined in Amazonka.Batch.Types.EksContainerDetail

NFData EksContainerDetail Source # 
Instance details

Defined in Amazonka.Batch.Types.EksContainerDetail

Methods

rnf :: EksContainerDetail -> () #

Eq EksContainerDetail Source # 
Instance details

Defined in Amazonka.Batch.Types.EksContainerDetail

Hashable EksContainerDetail Source # 
Instance details

Defined in Amazonka.Batch.Types.EksContainerDetail

type Rep EksContainerDetail Source # 
Instance details

Defined in Amazonka.Batch.Types.EksContainerDetail

type Rep EksContainerDetail = D1 ('MetaData "EksContainerDetail" "Amazonka.Batch.Types.EksContainerDetail" "amazonka-batch-2.0-Ey2VZ5obnq65VwmlrJ2r2K" 'False) (C1 ('MetaCons "EksContainerDetail'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "args") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "command") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 ('MetaSel ('Just "env") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [EksContainerEnvironmentVariable])) :*: (S1 ('MetaSel ('Just "exitCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "image") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "imagePullPolicy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "reason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "resources") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EksContainerResourceRequirements)) :*: (S1 ('MetaSel ('Just "securityContext") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EksContainerSecurityContext)) :*: S1 ('MetaSel ('Just "volumeMounts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [EksContainerVolumeMount])))))))

newEksContainerDetail :: EksContainerDetail Source #

Create a value of EksContainerDetail with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:args:EksContainerDetail', eksContainerDetail_args - 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 CMD in the Dockerfile reference and Define a command and arguments for a pod in the Kubernetes documentation.

$sel:command:EksContainerDetail', eksContainerDetail_command - The entrypoint for the container. For more information, see Entrypoint in the Kubernetes documentation.

$sel:env:EksContainerDetail', eksContainerDetail_env - The environment variables to pass to a container.

Environment variables cannot start with "AWS_BATCH". This naming convention is reserved for variables that Batch sets.

$sel:exitCode:EksContainerDetail', eksContainerDetail_exitCode - The exit code for the job attempt. A non-zero exit code is considered failed.

$sel:image:EksContainerDetail', eksContainerDetail_image - The Docker image used to start the container.

$sel:imagePullPolicy:EksContainerDetail', eksContainerDetail_imagePullPolicy - The image pull policy for the container. Supported values are Always, IfNotPresent, and Never. This parameter defaults to Always if the :latest tag is specified, IfNotPresent otherwise. For more information, see Updating images in the Kubernetes documentation.

EksContainerDetail, eksContainerDetail_name - 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.

$sel:reason:EksContainerDetail', eksContainerDetail_reason - A short human-readable string to provide additional details for a running or stopped container. It can be up to 255 characters long.

$sel:resources:EksContainerDetail', eksContainerDetail_resources - 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.

$sel:securityContext:EksContainerDetail', eksContainerDetail_securityContext - The security context for a job. For more information, see Configure a security context for a pod or container in the Kubernetes documentation.

$sel:volumeMounts:EksContainerDetail', eksContainerDetail_volumeMounts - The volume mounts for the container. Batch supports emptyDir, hostPath, and secret volume types. For more information about volumes and volume mounts in Kubernetes, see Volumes in the Kubernetes documentation.

eksContainerDetail_args :: Lens' EksContainerDetail (Maybe [Text]) Source #

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 CMD in the Dockerfile reference and Define a command and arguments for a pod in the Kubernetes documentation.

eksContainerDetail_command :: Lens' EksContainerDetail (Maybe [Text]) Source #

The entrypoint for the container. For more information, see Entrypoint in the Kubernetes documentation.

eksContainerDetail_env :: Lens' EksContainerDetail (Maybe [EksContainerEnvironmentVariable]) Source #

The environment variables to pass to a container.

Environment variables cannot start with "AWS_BATCH". This naming convention is reserved for variables that Batch sets.

eksContainerDetail_exitCode :: Lens' EksContainerDetail (Maybe Int) Source #

The exit code for the job attempt. A non-zero exit code is considered failed.

eksContainerDetail_image :: Lens' EksContainerDetail (Maybe Text) Source #

The Docker image used to start the container.

eksContainerDetail_imagePullPolicy :: Lens' EksContainerDetail (Maybe Text) Source #

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

eksContainerDetail_name :: Lens' EksContainerDetail (Maybe Text) Source #

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.

eksContainerDetail_reason :: Lens' EksContainerDetail (Maybe Text) Source #

A short human-readable string to provide additional details for a running or stopped container. It can be up to 255 characters long.

eksContainerDetail_resources :: Lens' EksContainerDetail (Maybe EksContainerResourceRequirements) Source #

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.

eksContainerDetail_securityContext :: Lens' EksContainerDetail (Maybe EksContainerSecurityContext) Source #

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

eksContainerDetail_volumeMounts :: Lens' EksContainerDetail (Maybe [EksContainerVolumeMount]) Source #

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