ALIYUN::AppFlow::Flow类型用于创建连接流。
语法
{
"Type": "ALIYUN::AppFlow::Flow",
"Properties": {
"FlowName": String,
"FlowId": String,
"FlowDesc": String,
"FlowStatus": String,
"LaunchFlow": Boolean,
"Parameters": Map,
"TemplateId": String,
"Template": Map
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
FlowName | String | 是 | 否 | 连接流名称。 | 无 |
FlowId | String | 否 | 否 | 连接流ID。 | 无 |
FlowDesc | String | 否 | 否 | 连接流描述。 | 无 |
FlowStatus | String | 否 | 是 | 连接流状态。 | 取值:
|
LaunchFlow | Boolean | 否 | 否 | 是否启动连接流。 | 无 |
Parameters | Map | 否 | 是 | 连接流参数配置。 | 无 |
TemplateId | String | 否 | 是 | 连接流模板ID。 | 无 |
Template | Map | 否 | 否 | 连接流模板配置。 | 无 |
返回值
Fn::GetAtt
FlowId:连接流ID。
WebhookAddress:连接流的Webhook地址。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
FlowName:
Type: String
Description:
en: The name of the flow.
Required: true
Resources:
Flow:
Type: ALIYUN::AppFlow::Flow
Properties:
FlowName:
Ref: FlowName
Outputs:
FlowId:
Description: The ID of the flow.
Value:
Fn::GetAtt:
- Flow
- FlowId
WebhookAddress:
Description: The webhook address of the flow.
Value:
Fn::GetAtt:
- Flow
- WebhookAddress
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"FlowName": {
"Type": "String",
"Description": {
"en": "The name of the flow."
},
"Required": true
}
},
"Resources": {
"Flow": {
"Type": "ALIYUN::AppFlow::Flow",
"Properties": {
"FlowName": {
"Ref": "FlowName"
}
}
}
},
"Outputs": {
"FlowId": {
"Description": "The ID of the flow.",
"Value": {
"Fn::GetAtt": [
"Flow",
"FlowId"
]
}
},
"WebhookAddress": {
"Description": "The webhook address of the flow.",
"Value": {
"Fn::GetAtt": [
"Flow",
"WebhookAddress"
]
}
}
}
}
该文章对您有帮助吗?