All Products
Search
Document Center

CloudOps Orchestration Service:ACS::Sleep

Last Updated:Jun 16, 2026

Usage

Use this action to insert a waiting period during O&M workflows. For example, if an ECS instance for a new application needs time to prefetch data, this action pauses execution until the prefetch completes before subsequent operations run.

Syntax

  • YAML format

Tasks:
  - Name: sleepTask # The name of the task.
    Action: ACS::Sleep
    Properties:
      Duration: PT15M # Optional. The sleep duration in the ISO 8601 format. Specify either Duration or EndDate.
      EndDate: '2025-01-01T00:00:00Z' # Optional. The absolute time when the sleep ends, in the ISO 8601 format. Specify either Duration or EndDate.
  • JSON format (See the YAML example for comments.)

{
  "Tasks": [
    {
      "Name": "sleepTask",
      "Action": "ACS::Sleep",
      "Properties": {
        "Duration": "PT15M", // Optional. The sleep duration in the ISO 8601 format. Specify either Duration or EndDate.
        "EndDate": "2025-01-01T00:00:00Z" // Optional. The absolute time when the sleep ends, in the ISO 8601 format. Specify either Duration or EndDate.
      }
    }
  ]
}

Notes

Duration

  • Follows the ISO 8601 duration format.

  • The minimum duration is 1 second.

  • Case-insensitive.

Examples:

  • 1S or 1s: A simplified format for 1 second.

  • 1M or 1m: A simplified format for 1 minute.

  • 1H or 1h: A simplified format for 1 hour.

  • 1H2M: A simplified format for 1 hour and 2 minutes.

  • PT1H2M: The standard format for 1 hour and 2 minutes.

EndDate

  • Follows the ISO 8601 absolute time format.

  • Must be in Coordinated Universal Time (UTC) and end with Z.

  • Case-insensitive.

Example:

  • 2025-01-01T00:00:00Z: The standard format for 00:00:00 on January 1, 2025 (UTC).