forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 1
/
wait-condition-handle.yml
37 lines (37 loc) · 1.64 KB
/
wait-condition-handle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
ROSTemplateFormatVersion: '2015-09-01'
Description: ROS WaitConditionHandle resource example
Resources:
WaitConditionHandle:
Type: ALIYUN::ROS::WaitConditionHandle
Properties: {}
Outputs:
WindowsCurlCli:
Description: 'Convenience attribute, provides curl CLI command prefix for Windows,
which can be used for signalling handle completion or failure. As Windows does
not support curl command, you need to install curl.exe and add it to PATH first.
You can signal success by adding --data-binary "{\"status\": \"SUCCESS\"}" ,
or signal failure by adding --data-binary "{\"status\": \"FAILURE\"}" '
Value:
Fn::GetAtt:
- WaitConditionHandle
- WindowsCurlCli
CurlCli:
Description: 'Convenience attribute, provides curl CLI command prefix, which can
be used for signalling handle completion or failure. You can signal success
by adding --data-binary ''{"status": "SUCCESS"}'' , or signal failure by adding
--data-binary ''{"status": "FAILURE"}'''
Value:
Fn::GetAtt:
- WaitConditionHandle
- CurlCli
PowerShellCurlCli:
Description: 'Convenience attribute, provides curl CLI command prefix for PowerShell,
which can be used for signalling handle completion or failure. As this cmdlet
was introduced in PowerShell 3.0, ensure the version of PowerShell satisfies
the constraint. (Show the version via $PSVersionTable.PSVersion.) You can signal
success by adding -Body ''{"status": "SUCCESS"}'' , or signal failure by adding
-Body ''{"status": "FAILURE"}'' '
Value:
Fn::GetAtt:
- WaitConditionHandle
- PowerShellCurlCli