libZSservicesZSamazonka-batchZSamazonka-batch
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Batch.Types.JobDetail

Description

 
Synopsis

Documentation

data JobDetail Source #

An object representing an Batch job.

See: newJobDetail smart constructor.

Constructors

JobDetail' 

Fields

  • stoppedAt :: Maybe Integer

    The Unix timestamp (in milliseconds) for when the job was stopped (when the job transitioned from the RUNNING state to a terminal state, such as SUCCEEDED or FAILED).

  • jobArn :: Maybe Text

    The Amazon Resource Name (ARN) of the job.

  • propagateTags :: Maybe Bool

    Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task. If no value is specified, the tags aren't propagated. Tags can only be propagated to the tasks during task creation. For tags with the same name, job tags are given priority over job definitions tags. If the total number of combined tags from the job and job definition is over 50, the job is moved to the FAILED state.

  • createdAt :: Maybe Integer

    The Unix timestamp (in milliseconds) for when the job was created. For non-array jobs and parent array jobs, this is when the job entered the SUBMITTED state (at the time SubmitJob was called). For array child jobs, this is when the child job was spawned by its parent and entered the PENDING state.

  • retryStrategy :: Maybe RetryStrategy

    The retry strategy to use for this job if an attempt fails.

  • attempts :: Maybe [AttemptDetail]

    A list of job attempts associated with this job.

  • platformCapabilities :: Maybe [PlatformCapability]

    The platform capabilities required by the job definition. If no value is specified, it defaults to EC2. Jobs run on Fargate resources specify FARGATE.

  • startedAt :: Maybe Integer

    The Unix timestamp (in milliseconds) for when the job was started (when the job transitioned from the STARTING state to the RUNNING state). This parameter isn't provided for child jobs of array jobs or multi-node parallel jobs.

  • dependsOn :: Maybe [JobDependency]

    A list of job IDs that this job depends on.

  • container :: Maybe ContainerDetail

    An object representing the details of the container that's associated with the job.

  • nodeDetails :: Maybe NodeDetails

    An object representing the details of a node that's associated with a multi-node parallel job.

  • parameters :: Maybe (HashMap Text Text)

    Additional parameters passed to the job that replace parameter substitution placeholders or override any corresponding parameter defaults from the job definition.

  • statusReason :: Maybe Text

    A short, human-readable string to provide additional details about the current status of the job.

  • arrayProperties :: Maybe ArrayPropertiesDetail

    The array properties of the job, if it is an array job.

  • timeout :: Maybe JobTimeout

    The timeout configuration for the job.

  • nodeProperties :: Maybe NodeProperties

    An object representing the node properties of a multi-node parallel job.

    This isn't applicable to jobs that are running on Fargate resources.

  • tags :: Maybe (HashMap Text Text)

    The tags applied to the job.

  • jobName :: Text

    The name of the job.

  • jobId :: Text

    The ID for the job.

  • jobQueue :: Text

    The Amazon Resource Name (ARN) of the job queue that the job is associated with.

  • status :: JobStatus

    The current status for the job.

    If your jobs don't progress to STARTING, see Jobs Stuck in RUNNABLE Status in the troubleshooting section of the Batch User Guide.

  • jobDefinition :: Text

    The job definition that's used by this job.

Instances

Instances details
Eq JobDetail Source # 
Instance details

Defined in Amazonka.Batch.Types.JobDetail

Read JobDetail Source # 
Instance details

Defined in Amazonka.Batch.Types.JobDetail

Show JobDetail Source # 
Instance details

Defined in Amazonka.Batch.Types.JobDetail

Generic JobDetail Source # 
Instance details

Defined in Amazonka.Batch.Types.JobDetail

Associated Types

type Rep JobDetail :: Type -> Type #

NFData JobDetail Source # 
Instance details

Defined in Amazonka.Batch.Types.JobDetail

Methods

rnf :: JobDetail -> () #

Hashable JobDetail Source # 
Instance details

Defined in Amazonka.Batch.Types.JobDetail

FromJSON JobDetail Source # 
Instance details

Defined in Amazonka.Batch.Types.JobDetail

type Rep JobDetail Source # 
Instance details

Defined in Amazonka.Batch.Types.JobDetail

type Rep JobDetail = D1 ('MetaData "JobDetail" "Amazonka.Batch.Types.JobDetail" "libZSservicesZSamazonka-batchZSamazonka-batch" 'False) (C1 ('MetaCons "JobDetail'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "stoppedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "jobArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "propagateTags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "createdAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "retryStrategy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RetryStrategy))))) :*: ((S1 ('MetaSel ('Just "attempts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [AttemptDetail])) :*: (S1 ('MetaSel ('Just "platformCapabilities") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [PlatformCapability])) :*: S1 ('MetaSel ('Just "startedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)))) :*: (S1 ('MetaSel ('Just "dependsOn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [JobDependency])) :*: (S1 ('MetaSel ('Just "container") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ContainerDetail)) :*: S1 ('MetaSel ('Just "nodeDetails") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe NodeDetails)))))) :*: (((S1 ('MetaSel ('Just "parameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "statusReason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "arrayProperties") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ArrayPropertiesDetail)) :*: (S1 ('MetaSel ('Just "timeout") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe JobTimeout)) :*: S1 ('MetaSel ('Just "nodeProperties") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe NodeProperties))))) :*: ((S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: (S1 ('MetaSel ('Just "jobName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "jobId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) :*: (S1 ('MetaSel ('Just "jobQueue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 JobStatus) :*: S1 ('MetaSel ('Just "jobDefinition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))))

newJobDetail Source #

Create a value of JobDetail 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:stoppedAt:JobDetail', jobDetail_stoppedAt - The Unix timestamp (in milliseconds) for when the job was stopped (when the job transitioned from the RUNNING state to a terminal state, such as SUCCEEDED or FAILED).

$sel:jobArn:JobDetail', jobDetail_jobArn - The Amazon Resource Name (ARN) of the job.

$sel:propagateTags:JobDetail', jobDetail_propagateTags - Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task. If no value is specified, the tags aren't propagated. Tags can only be propagated to the tasks during task creation. For tags with the same name, job tags are given priority over job definitions tags. If the total number of combined tags from the job and job definition is over 50, the job is moved to the FAILED state.

$sel:createdAt:JobDetail', jobDetail_createdAt - The Unix timestamp (in milliseconds) for when the job was created. For non-array jobs and parent array jobs, this is when the job entered the SUBMITTED state (at the time SubmitJob was called). For array child jobs, this is when the child job was spawned by its parent and entered the PENDING state.

$sel:retryStrategy:JobDetail', jobDetail_retryStrategy - The retry strategy to use for this job if an attempt fails.

$sel:attempts:JobDetail', jobDetail_attempts - A list of job attempts associated with this job.

$sel:platformCapabilities:JobDetail', jobDetail_platformCapabilities - The platform capabilities required by the job definition. If no value is specified, it defaults to EC2. Jobs run on Fargate resources specify FARGATE.

$sel:startedAt:JobDetail', jobDetail_startedAt - The Unix timestamp (in milliseconds) for when the job was started (when the job transitioned from the STARTING state to the RUNNING state). This parameter isn't provided for child jobs of array jobs or multi-node parallel jobs.

$sel:dependsOn:JobDetail', jobDetail_dependsOn - A list of job IDs that this job depends on.

$sel:container:JobDetail', jobDetail_container - An object representing the details of the container that's associated with the job.

$sel:nodeDetails:JobDetail', jobDetail_nodeDetails - An object representing the details of a node that's associated with a multi-node parallel job.

$sel:parameters:JobDetail', jobDetail_parameters - Additional parameters passed to the job that replace parameter substitution placeholders or override any corresponding parameter defaults from the job definition.

$sel:statusReason:JobDetail', jobDetail_statusReason - A short, human-readable string to provide additional details about the current status of the job.

$sel:arrayProperties:JobDetail', jobDetail_arrayProperties - The array properties of the job, if it is an array job.

$sel:timeout:JobDetail', jobDetail_timeout - The timeout configuration for the job.

$sel:nodeProperties:JobDetail', jobDetail_nodeProperties - An object representing the node properties of a multi-node parallel job.

This isn't applicable to jobs that are running on Fargate resources.

$sel:tags:JobDetail', jobDetail_tags - The tags applied to the job.

$sel:jobName:JobDetail', jobDetail_jobName - The name of the job.

$sel:jobId:JobDetail', jobDetail_jobId - The ID for the job.

$sel:jobQueue:JobDetail', jobDetail_jobQueue - The Amazon Resource Name (ARN) of the job queue that the job is associated with.

$sel:status:JobDetail', jobDetail_status - The current status for the job.

If your jobs don't progress to STARTING, see Jobs Stuck in RUNNABLE Status in the troubleshooting section of the Batch User Guide.

$sel:jobDefinition:JobDetail', jobDetail_jobDefinition - The job definition that's used by this job.

jobDetail_stoppedAt :: Lens' JobDetail (Maybe Integer) Source #

The Unix timestamp (in milliseconds) for when the job was stopped (when the job transitioned from the RUNNING state to a terminal state, such as SUCCEEDED or FAILED).

jobDetail_jobArn :: Lens' JobDetail (Maybe Text) Source #

The Amazon Resource Name (ARN) of the job.

jobDetail_propagateTags :: Lens' JobDetail (Maybe Bool) Source #

Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task. If no value is specified, the tags aren't propagated. Tags can only be propagated to the tasks during task creation. For tags with the same name, job tags are given priority over job definitions tags. If the total number of combined tags from the job and job definition is over 50, the job is moved to the FAILED state.

jobDetail_createdAt :: Lens' JobDetail (Maybe Integer) Source #

The Unix timestamp (in milliseconds) for when the job was created. For non-array jobs and parent array jobs, this is when the job entered the SUBMITTED state (at the time SubmitJob was called). For array child jobs, this is when the child job was spawned by its parent and entered the PENDING state.

jobDetail_retryStrategy :: Lens' JobDetail (Maybe RetryStrategy) Source #

The retry strategy to use for this job if an attempt fails.

jobDetail_attempts :: Lens' JobDetail (Maybe [AttemptDetail]) Source #

A list of job attempts associated with this job.

jobDetail_platformCapabilities :: Lens' JobDetail (Maybe [PlatformCapability]) Source #

The platform capabilities required by the job definition. If no value is specified, it defaults to EC2. Jobs run on Fargate resources specify FARGATE.

jobDetail_startedAt :: Lens' JobDetail (Maybe Integer) Source #

The Unix timestamp (in milliseconds) for when the job was started (when the job transitioned from the STARTING state to the RUNNING state). This parameter isn't provided for child jobs of array jobs or multi-node parallel jobs.

jobDetail_dependsOn :: Lens' JobDetail (Maybe [JobDependency]) Source #

A list of job IDs that this job depends on.

jobDetail_container :: Lens' JobDetail (Maybe ContainerDetail) Source #

An object representing the details of the container that's associated with the job.

jobDetail_nodeDetails :: Lens' JobDetail (Maybe NodeDetails) Source #

An object representing the details of a node that's associated with a multi-node parallel job.

jobDetail_parameters :: Lens' JobDetail (Maybe (HashMap Text Text)) Source #

Additional parameters passed to the job that replace parameter substitution placeholders or override any corresponding parameter defaults from the job definition.

jobDetail_statusReason :: Lens' JobDetail (Maybe Text) Source #

A short, human-readable string to provide additional details about the current status of the job.

jobDetail_arrayProperties :: Lens' JobDetail (Maybe ArrayPropertiesDetail) Source #

The array properties of the job, if it is an array job.

jobDetail_timeout :: Lens' JobDetail (Maybe JobTimeout) Source #

The timeout configuration for the job.

jobDetail_nodeProperties :: Lens' JobDetail (Maybe NodeProperties) Source #

An object representing the node properties of a multi-node parallel job.

This isn't applicable to jobs that are running on Fargate resources.

jobDetail_tags :: Lens' JobDetail (Maybe (HashMap Text Text)) Source #

The tags applied to the job.

jobDetail_jobName :: Lens' JobDetail Text Source #

The name of the job.

jobDetail_jobId :: Lens' JobDetail Text Source #

The ID for the job.

jobDetail_jobQueue :: Lens' JobDetail Text Source #

The Amazon Resource Name (ARN) of the job queue that the job is associated with.

jobDetail_status :: Lens' JobDetail JobStatus Source #

The current status for the job.

If your jobs don't progress to STARTING, see Jobs Stuck in RUNNABLE Status in the troubleshooting section of the Batch User Guide.

jobDetail_jobDefinition :: Lens' JobDetail Text Source #

The job definition that's used by this job.