Show / Hide Table of Contents

Interface CfnJobQueue.IJobStateTimeLimitActionProperty

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.

Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnJobQueue.IJobStateTimeLimitActionProperty
Syntax (vb)
Public Interface CfnJobQueue.IJobStateTimeLimitActionProperty
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobqueue-jobstatetimelimitaction.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.Batch;

             var jobStateTimeLimitActionProperty = new JobStateTimeLimitActionProperty {
                 Action = "action",
                 MaxTimeSeconds = 123,
                 Reason = "reason",
                 State = "state"
             };

Synopsis

Properties

Action

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.

MaxTimeSeconds

The approximate amount of time, in seconds, that must pass with the job in the specified state before the action is taken.

Reason

The reason to log for the action being taken.

State

The state of the job needed to trigger the action.

Properties

Action

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.

string Action { get; }
Property Value

string

Remarks

The only supported value is CANCEL , which will cancel the job.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobqueue-jobstatetimelimitaction.html#cfn-batch-jobqueue-jobstatetimelimitaction-action

MaxTimeSeconds

The approximate amount of time, in seconds, that must pass with the job in the specified state before the action is taken.

double MaxTimeSeconds { get; }
Property Value

double

Remarks

The minimum value is 600 (10 minutes) and the maximum value is 86,400 (24 hours).

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobqueue-jobstatetimelimitaction.html#cfn-batch-jobqueue-jobstatetimelimitaction-maxtimeseconds

Reason

The reason to log for the action being taken.

string Reason { get; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobqueue-jobstatetimelimitaction.html#cfn-batch-jobqueue-jobstatetimelimitaction-reason

State

The state of the job needed to trigger the action.

string State { get; }
Property Value

string

Remarks

The only supported value is RUNNABLE .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobqueue-jobstatetimelimitaction.html#cfn-batch-jobqueue-jobstatetimelimitaction-state

Back to top Generated by DocFX