ALIYUN::ROS::WaitCondition is used to create an instance to process UserData messages.

Syntax

{
  "Type": "ALIYUN::ROS::WaitCondition",
  "Properties": {
    "Count": Number ,
    "Handle": String,
    "Timeout": Number 
  }
}

Properties

Name Type Required Editable Description Validity
Handle String Yes Yes The reference to the wait condition handle used to signal this wait condition. None
Timeout Number Yes No The timeout period to wait for UserData messages to arrive. Valid values: 1 to 43,200. Unit: second.
Count Number No No The total number of messages to be received. None

Response parameters

Fn::GetAtt

Data: the received message content.

Examples

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Resources": {
    "WaitCondition": {
      "Type": "ALIYUN::ROS::WaitCondition",
      "Properties": {
        "Handle": {
          "Ref": "WaitConHandle"
        },
        "Timeout": 5,
        "Count": 2
      }
    },
    "WaitConHandle": {
      "Type": "ALIYUN::ROS::WaitConditionHandle"
    }
  },
  "Outputs": {
    "CurlCli": {
      "Value": {
        "Fn::GetAtt": [
          "WaitConHandle",
          "CurlCli"
        ]
      }
    },
    "Data": {
      "Value": {
        "Fn::GetAtt": [
          "WaitCondition",
          "Data"
        ]
      }
    }
  }
}