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

Description

 
Synopsis

Documentation

data JobDetail Source #

An object that represents an Batch job.

See: newJobDetail smart constructor.

Constructors

JobDetail' 

Fields

  • arrayProperties :: Maybe ArrayPropertiesDetail

    The array properties of the job, if it's an array job.

  • attempts :: Maybe [AttemptDetail]

    A list of job attempts that are associated with this job.

  • container :: Maybe ContainerDetail

    An object that represents the details for the container that's associated with the job.

  • 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. This is specifically 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.

  • dependsOn :: Maybe [JobDependency]

    A list of job IDs that this job depends on.

  • eksAttempts :: Maybe [EksAttemptDetail]

    A list of job attempts that are associated with this job.

  • eksProperties :: Maybe EksPropertiesDetail

    An object with various properties that are specific to Amazon EKS based jobs. Only one of container, eksProperties, or nodeDetails is specified.

  • isCancelled :: Maybe Bool

    Indicates whether the job is canceled.

  • isTerminated :: Maybe Bool

    Indicates whether the job is terminated.

  • jobArn :: Maybe Text

    The Amazon Resource Name (ARN) of the job.

  • nodeDetails :: Maybe NodeDetails

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

  • nodeProperties :: Maybe NodeProperties

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

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

  • parameters :: Maybe (HashMap Text Text)

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

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

  • 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 when the tasks are created. 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.

  • retryStrategy :: Maybe RetryStrategy

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

  • schedulingPriority :: Maybe Int

    The scheduling policy of the job definition. This only affects jobs in job queues with a fair share policy. Jobs with a higher scheduling priority are scheduled before jobs with a lower scheduling priority.

  • shareIdentifier :: Maybe Text

    The share identifier for the job.

  • startedAt :: Maybe Integer

    The Unix timestamp (in milliseconds) for when the job was started. More specifically, it's 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.

  • statusReason :: Maybe Text

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

  • stoppedAt :: Maybe Integer

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

  • tags :: Maybe (HashMap Text Text)

    The tags that are applied to the job.

  • timeout :: Maybe JobTimeout

    The timeout configuration for the job.

  • jobName :: Text

    The job name.

  • jobId :: Text

    The job ID.

  • 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 Amazon Resource Name (ARN) of the job definition that this job uses.

Instances

Instances details
FromJSON 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 #

Read JobDetail Source # 
Instance details

Defined in Amazonka.Batch.Types.JobDetail

Show JobDetail Source # 
Instance details

Defined in Amazonka.Batch.Types.JobDetail

NFData JobDetail Source # 
Instance details

Defined in Amazonka.Batch.Types.JobDetail

Methods

rnf :: JobDetail -> () #

Eq JobDetail Source # 
Instance details

Defined in Amazonka.Batch.Types.JobDetail

Hashable 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" "amazonka-batch-2.0-Ey2VZ5obnq65VwmlrJ2r2K" 'False) (C1 ('MetaCons "JobDetail'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "arrayProperties") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ArrayPropertiesDetail)) :*: (S1 ('MetaSel ('Just "attempts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [AttemptDetail])) :*: S1 ('MetaSel ('Just "container") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ContainerDetail)))) :*: ((S1 ('MetaSel ('Just "createdAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "dependsOn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [JobDependency]))) :*: (S1 ('MetaSel ('Just "eksAttempts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [EksAttemptDetail])) :*: S1 ('MetaSel ('Just "eksProperties") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EksPropertiesDetail))))) :*: ((S1 ('MetaSel ('Just "isCancelled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "isTerminated") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "jobArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "nodeDetails") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe NodeDetails)) :*: S1 ('MetaSel ('Just "nodeProperties") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe NodeProperties))) :*: (S1 ('MetaSel ('Just "parameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "platformCapabilities") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [PlatformCapability])))))) :*: (((S1 ('MetaSel ('Just "propagateTags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "retryStrategy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RetryStrategy)) :*: S1 ('MetaSel ('Just "schedulingPriority") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)))) :*: ((S1 ('MetaSel ('Just "shareIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "startedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer))) :*: (S1 ('MetaSel ('Just "statusReason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "stoppedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer))))) :*: ((S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: (S1 ('MetaSel ('Just "timeout") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe JobTimeout)) :*: 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:arrayProperties:JobDetail', jobDetail_arrayProperties - The array properties of the job, if it's an array job.

JobDetail, jobDetail_attempts - A list of job attempts that are associated with this job.

JobDetail, jobDetail_container - An object that represents the details for the container that's associated with the job.

$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. This is specifically 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:dependsOn:JobDetail', jobDetail_dependsOn - A list of job IDs that this job depends on.

$sel:eksAttempts:JobDetail', jobDetail_eksAttempts - A list of job attempts that are associated with this job.

$sel:eksProperties:JobDetail', jobDetail_eksProperties - An object with various properties that are specific to Amazon EKS based jobs. Only one of container, eksProperties, or nodeDetails is specified.

$sel:isCancelled:JobDetail', jobDetail_isCancelled - Indicates whether the job is canceled.

$sel:isTerminated:JobDetail', jobDetail_isTerminated - Indicates whether the job is terminated.

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

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

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

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

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

$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: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 when the tasks are created. 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:retryStrategy:JobDetail', jobDetail_retryStrategy - The retry strategy to use for this job if an attempt fails.

$sel:schedulingPriority:JobDetail', jobDetail_schedulingPriority - The scheduling policy of the job definition. This only affects jobs in job queues with a fair share policy. Jobs with a higher scheduling priority are scheduled before jobs with a lower scheduling priority.

$sel:shareIdentifier:JobDetail', jobDetail_shareIdentifier - The share identifier for the job.

JobDetail, jobDetail_startedAt - The Unix timestamp (in milliseconds) for when the job was started. More specifically, it's 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, jobDetail_statusReason - A short, human-readable string to provide more details for the current status of the job.

JobDetail, jobDetail_stoppedAt - The Unix timestamp (in milliseconds) for when the job was stopped. More specifically, it's when the job transitioned from the RUNNING state to a terminal state, such as SUCCEEDED or FAILED.

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

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

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

JobDetail, jobDetail_jobId - The job ID.

$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 Amazon Resource Name (ARN) of the job definition that this job uses.

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

The array properties of the job, if it's an array job.

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

A list of job attempts that are associated with this job.

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

An object that represents the details for the container that's associated with the job.

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. This is specifically 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_dependsOn :: Lens' JobDetail (Maybe [JobDependency]) Source #

A list of job IDs that this job depends on.

jobDetail_eksAttempts :: Lens' JobDetail (Maybe [EksAttemptDetail]) Source #

A list of job attempts that are associated with this job.

jobDetail_eksProperties :: Lens' JobDetail (Maybe EksPropertiesDetail) Source #

An object with various properties that are specific to Amazon EKS based jobs. Only one of container, eksProperties, or nodeDetails is specified.

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

Indicates whether the job is canceled.

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

Indicates whether the job is terminated.

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

The Amazon Resource Name (ARN) of the job.

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

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

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

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

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

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

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

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_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 when the tasks are created. 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_retryStrategy :: Lens' JobDetail (Maybe RetryStrategy) Source #

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

jobDetail_schedulingPriority :: Lens' JobDetail (Maybe Int) Source #

The scheduling policy of the job definition. This only affects jobs in job queues with a fair share policy. Jobs with a higher scheduling priority are scheduled before jobs with a lower scheduling priority.

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

The share identifier for the job.

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

The Unix timestamp (in milliseconds) for when the job was started. More specifically, it's 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_statusReason :: Lens' JobDetail (Maybe Text) Source #

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

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

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

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

The tags that are applied to the job.

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

The timeout configuration 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 Amazon Resource Name (ARN) of the job definition that this job uses.