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.AttemptContainerDetail

Description

 
Synopsis

Documentation

data AttemptContainerDetail Source #

An object that represents the details of a container that's part of a job attempt.

See: newAttemptContainerDetail smart constructor.

Constructors

AttemptContainerDetail' 

Fields

  • containerInstanceArn :: Maybe Text

    The Amazon Resource Name (ARN) of the Amazon ECS container instance that hosts the job attempt.

  • exitCode :: Maybe Int

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

  • logStreamName :: Maybe Text

    The name of the CloudWatch Logs log stream that's associated with the container. The log group for Batch jobs is /aws/batch/job. Each container attempt receives a log stream name when they reach the RUNNING status.

  • networkInterfaces :: Maybe [NetworkInterface]

    The network interfaces that are associated with the job attempt.

  • reason :: Maybe Text

    A short (255 max characters) human-readable string to provide additional details for a running or stopped container.

  • taskArn :: Maybe Text

    The Amazon Resource Name (ARN) of the Amazon ECS task that's associated with the job attempt. Each container attempt receives a task ARN when they reach the STARTING status.

Instances

Instances details
FromJSON AttemptContainerDetail Source # 
Instance details

Defined in Amazonka.Batch.Types.AttemptContainerDetail

Generic AttemptContainerDetail Source # 
Instance details

Defined in Amazonka.Batch.Types.AttemptContainerDetail

Associated Types

type Rep AttemptContainerDetail :: Type -> Type #

Read AttemptContainerDetail Source # 
Instance details

Defined in Amazonka.Batch.Types.AttemptContainerDetail

Show AttemptContainerDetail Source # 
Instance details

Defined in Amazonka.Batch.Types.AttemptContainerDetail

NFData AttemptContainerDetail Source # 
Instance details

Defined in Amazonka.Batch.Types.AttemptContainerDetail

Methods

rnf :: AttemptContainerDetail -> () #

Eq AttemptContainerDetail Source # 
Instance details

Defined in Amazonka.Batch.Types.AttemptContainerDetail

Hashable AttemptContainerDetail Source # 
Instance details

Defined in Amazonka.Batch.Types.AttemptContainerDetail

type Rep AttemptContainerDetail Source # 
Instance details

Defined in Amazonka.Batch.Types.AttemptContainerDetail

type Rep AttemptContainerDetail = D1 ('MetaData "AttemptContainerDetail" "Amazonka.Batch.Types.AttemptContainerDetail" "amazonka-batch-2.0-Ey2VZ5obnq65VwmlrJ2r2K" 'False) (C1 ('MetaCons "AttemptContainerDetail'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "containerInstanceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "exitCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "logStreamName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "networkInterfaces") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [NetworkInterface])) :*: (S1 ('MetaSel ('Just "reason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "taskArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

newAttemptContainerDetail :: AttemptContainerDetail Source #

Create a value of AttemptContainerDetail 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:containerInstanceArn:AttemptContainerDetail', attemptContainerDetail_containerInstanceArn - The Amazon Resource Name (ARN) of the Amazon ECS container instance that hosts the job attempt.

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

$sel:logStreamName:AttemptContainerDetail', attemptContainerDetail_logStreamName - The name of the CloudWatch Logs log stream that's associated with the container. The log group for Batch jobs is /aws/batch/job. Each container attempt receives a log stream name when they reach the RUNNING status.

$sel:networkInterfaces:AttemptContainerDetail', attemptContainerDetail_networkInterfaces - The network interfaces that are associated with the job attempt.

$sel:reason:AttemptContainerDetail', attemptContainerDetail_reason - A short (255 max characters) human-readable string to provide additional details for a running or stopped container.

$sel:taskArn:AttemptContainerDetail', attemptContainerDetail_taskArn - The Amazon Resource Name (ARN) of the Amazon ECS task that's associated with the job attempt. Each container attempt receives a task ARN when they reach the STARTING status.

attemptContainerDetail_containerInstanceArn :: Lens' AttemptContainerDetail (Maybe Text) Source #

The Amazon Resource Name (ARN) of the Amazon ECS container instance that hosts the job attempt.

attemptContainerDetail_exitCode :: Lens' AttemptContainerDetail (Maybe Int) Source #

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

attemptContainerDetail_logStreamName :: Lens' AttemptContainerDetail (Maybe Text) Source #

The name of the CloudWatch Logs log stream that's associated with the container. The log group for Batch jobs is /aws/batch/job. Each container attempt receives a log stream name when they reach the RUNNING status.

attemptContainerDetail_networkInterfaces :: Lens' AttemptContainerDetail (Maybe [NetworkInterface]) Source #

The network interfaces that are associated with the job attempt.

attemptContainerDetail_reason :: Lens' AttemptContainerDetail (Maybe Text) Source #

A short (255 max characters) human-readable string to provide additional details for a running or stopped container.

attemptContainerDetail_taskArn :: Lens' AttemptContainerDetail (Maybe Text) Source #

The Amazon Resource Name (ARN) of the Amazon ECS task that's associated with the job attempt. Each container attempt receives a task ARN when they reach the STARTING status.