ALIYUN::AppFlow::Flow

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

连接流状态。

取值:

  • Enable:启用连接流。

  • Disable:禁用连接流。

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"
        ]
      }
    }
  }
}