Timeout

class aws_cdk.aws_stepfunctions.Timeout

Bases: object

Timeout for a task or heartbeat.

ExampleMetadata:

infused

Example:

tasks.GlueStartJobRun(self, "Task",
    glue_job_name="my-glue-job",
    arguments=sfn.TaskInput.from_object({
        "key": "value"
    }),
    task_timeout=sfn.Timeout.duration(Duration.minutes(30)),
    notify_delay_after=Duration.minutes(5)
)

Attributes

jsonata_expression

JSONata expression for this timeout.

path

Path for this timeout.

seconds

Seconds for this timeout.

Static Methods

classmethod at(path)

Use a dynamic timeout specified by a path in the state input.

The path must select a field whose value is a positive integer.

Parameters:

path (str) –

Return type:

Timeout

classmethod duration(duration)

Use a duration as timeout.

Parameters:

duration (Duration) –

Return type:

Timeout

classmethod jsonata(jsonata_expression)

Use a dynamic timeout specified by a JSONata expression.

The JSONata expression value must be a positive integer.

Parameters:

jsonata_expression (str) –

Return type:

Timeout