interface JobStateTimeLimitActionProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Batch.CfnJobQueue.JobStateTimeLimitActionProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsbatch#CfnJobQueue_JobStateTimeLimitActionProperty |
![]() | software.amazon.awscdk.services.batch.CfnJobQueue.JobStateTimeLimitActionProperty |
![]() | aws_cdk.aws_batch.CfnJobQueue.JobStateTimeLimitActionProperty |
![]() | aws-cdk-lib » aws_batch » CfnJobQueue » JobStateTimeLimitActionProperty |
Specifies an action that AWS Batch will take after the job has remained at the head of the queue in the specified state for longer than the specified time.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_batch as batch } from 'aws-cdk-lib';
const jobStateTimeLimitActionProperty: batch.CfnJobQueue.JobStateTimeLimitActionProperty = {
action: 'action',
maxTimeSeconds: 123,
reason: 'reason',
state: 'state',
};
Properties
Name | Type | Description |
---|---|---|
action | string | The action to take when a job is at the head of the job queue in the specified state for the specified period of time. |
max | number | The approximate amount of time, in seconds, that must pass with the job in the specified state before the action is taken. |
reason | string | The reason to log for the action being taken. |
state | string | The state of the job needed to trigger the action. |
action
Type:
string
The action to take when a job is at the head of the job queue in the specified state for the specified period of time.
The only supported value is CANCEL
, which will cancel the job.
maxTimeSeconds
Type:
number
The approximate amount of time, in seconds, that must pass with the job in the specified state before the action is taken.
The minimum value is 600 (10 minutes) and the maximum value is 86,400 (24 hours).
reason
Type:
string
The reason to log for the action being taken.
state
Type:
string
The state of the job needed to trigger the action.
The only supported value is RUNNABLE
.