Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data JobDetail = JobDetail' {
- stoppedAt :: Maybe Integer
- jobArn :: Maybe Text
- propagateTags :: Maybe Bool
- createdAt :: Maybe Integer
- retryStrategy :: Maybe RetryStrategy
- attempts :: Maybe [AttemptDetail]
- platformCapabilities :: Maybe [PlatformCapability]
- startedAt :: Maybe Integer
- dependsOn :: Maybe [JobDependency]
- container :: Maybe ContainerDetail
- nodeDetails :: Maybe NodeDetails
- parameters :: Maybe (HashMap Text Text)
- statusReason :: Maybe Text
- arrayProperties :: Maybe ArrayPropertiesDetail
- timeout :: Maybe JobTimeout
- nodeProperties :: Maybe NodeProperties
- tags :: Maybe (HashMap Text Text)
- jobName :: Text
- jobId :: Text
- jobQueue :: Text
- status :: JobStatus
- jobDefinition :: Text
- newJobDetail :: Text -> Text -> Text -> JobStatus -> Text -> JobDetail
- jobDetail_stoppedAt :: Lens' JobDetail (Maybe Integer)
- jobDetail_jobArn :: Lens' JobDetail (Maybe Text)
- jobDetail_propagateTags :: Lens' JobDetail (Maybe Bool)
- jobDetail_createdAt :: Lens' JobDetail (Maybe Integer)
- jobDetail_retryStrategy :: Lens' JobDetail (Maybe RetryStrategy)
- jobDetail_attempts :: Lens' JobDetail (Maybe [AttemptDetail])
- jobDetail_platformCapabilities :: Lens' JobDetail (Maybe [PlatformCapability])
- jobDetail_startedAt :: Lens' JobDetail (Maybe Integer)
- jobDetail_dependsOn :: Lens' JobDetail (Maybe [JobDependency])
- jobDetail_container :: Lens' JobDetail (Maybe ContainerDetail)
- jobDetail_nodeDetails :: Lens' JobDetail (Maybe NodeDetails)
- jobDetail_parameters :: Lens' JobDetail (Maybe (HashMap Text Text))
- jobDetail_statusReason :: Lens' JobDetail (Maybe Text)
- jobDetail_arrayProperties :: Lens' JobDetail (Maybe ArrayPropertiesDetail)
- jobDetail_timeout :: Lens' JobDetail (Maybe JobTimeout)
- jobDetail_nodeProperties :: Lens' JobDetail (Maybe NodeProperties)
- jobDetail_tags :: Lens' JobDetail (Maybe (HashMap Text Text))
- jobDetail_jobName :: Lens' JobDetail Text
- jobDetail_jobId :: Lens' JobDetail Text
- jobDetail_jobQueue :: Lens' JobDetail Text
- jobDetail_status :: Lens' JobDetail JobStatus
- jobDetail_jobDefinition :: Lens' JobDetail Text
Documentation
An object representing an Batch job.
See: newJobDetail
smart constructor.
JobDetail' | |
|
Instances
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_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_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.