All Products
Search
Document Center

CloudOps Orchestration Service:ACS::Sleep

Last Updated:Mar 11, 2025

Description

The ACS::Sleep action can be used if waiting is required during O&M. For example, you must prefetch a newly created Elastic Compute Service (ECS) instance with an application for a period of time before you use the instance to perform O&M operations.

Syntax

  • YAML format

Tasks:
  - Name: sleepTask # The name of the task.
    Action: ACS::Sleep
    Properties:
      Duration: PT15M # Required. The waiting duration.
  • JSON format (For more information, see the attribute descriptions for the YAML format.)

{
  "Tasks": [
    {
      "Name": "sleepTask",
      "Action": "ACS::Sleep",
      "Properties": {
        "Duration": "PT15M"
      }
    }
  ]
}

Usage notes

Duration

  • The ISO 8601 standard is used to define the waiting duration.

  • The minimum duration is 1 second.

  • The value is not case-sensitive.

Examples:

  • 1S or 1s: specifies 1 second in the contracted form.

  • 1M or 1m: specifies 1 minute in the contracted form.

  • 1H or 1h: specifies 1 hour in the contracted form.

  • 1H2M: specifies 1 hour and 2 minutes in the contracted form.

  • PT1H2M: specifies 1 hour and 2 minutes in the standard form.