aws:sleep – Delay an automation - AWS Systems Manager

aws:sleep – Delay an automation

Delays an automation for a specified amount of time. This action uses the International Organization for Standardization (ISO) 8601 date and time format. For more information about this date and time format, see ISO 8601.

Input

You can delay an automation for a specified duration.

YAML
name: sleep action: aws:sleep inputs: Duration: PT10M
JSON
{ "name":"sleep", "action":"aws:sleep", "inputs":{ "Duration":"PT10M" } }

You can also delay an automation until a specified date and time. If the specified date and time has passed, the action proceeds immediately.

YAML
name: sleep action: aws:sleep inputs: Timestamp: '2020-01-01T01:00:00Z'
JSON
{ "name": "sleep", "action": "aws:sleep", "inputs": { "Timestamp": "2020-01-01T01:00:00Z" } }
Note

Automation supports a maximum delay of 604799 seconds (7 days).

Duration

An ISO 8601 duration. You can't specify a negative duration.

Type: String

Required: No

Timestamp

An ISO 8601 timestamp. If you don't specify a value for this parameter, then you must specify a value for the Duration parameter.

Type: String

Required: No

Output
None