aws:sleep – Delay an automation - AWS Systems Manager

AWS Systems Manager Change Manager is no longer open to new customers. Existing customers can continue to use the service as normal. For more information, see AWS Systems Manager Change Manager availability change.

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