ALIYUN::AppFlow::ChatbotFlow

ALIYUN::AppFlow::ChatbotFlow类型用于创建Chatbot流程。

语法

{
  "Type": "ALIYUN::AppFlow::ChatbotFlow",
  "Properties": {
    "ChatbotId": String,
    "FlowConfig": Map,
    "FlowName": String,
    "FlowType": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

ChatbotId

String

聊天机器人ID。

FlowConfig

Map

聊天机器人流程的配置。

FlowName

String

聊天机器人流的名称。

FlowType

String

聊天机器人流的类型。

返回值

Fn::GetAtt

ChatbotFlowId:聊天机器人流程ID。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  ChatbotId:
    Type: String
    Description:
      en: The ID of the chatbot.
    Required: true
  FlowName:
    Type: String
    Description:
      en: The name of the chatbot flow.
    Required: false
Resources:
  ChatbotFlow:
    Type: ALIYUN::AppFlow::ChatbotFlow
    Properties:
      ChatbotId:
        Ref: ChatbotId
      FlowName:
        Ref: FlowName
Outputs:
  ChatbotFlowId:
    Description: The ID of the chatbot flow.
    Value:
      Fn::GetAtt:
        - ChatbotFlow
        - ChatbotFlowId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "ChatbotId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the chatbot."
      },
      "Required": true
    },
    "FlowName": {
      "Type": "String",
      "Description": {
        "en": "The name of the chatbot flow."
      },
      "Required": false
    }
  },
  "Resources": {
    "ChatbotFlow": {
      "Type": "ALIYUN::AppFlow::ChatbotFlow",
      "Properties": {
        "ChatbotId": {
          "Ref": "ChatbotId"
        },
        "FlowName": {
          "Ref": "FlowName"
        }
      }
    }
  },
  "Outputs": {
    "ChatbotFlowId": {
      "Description": "The ID of the chatbot flow.",
      "Value": {
        "Fn::GetAtt": [
          "ChatbotFlow",
          "ChatbotFlowId"
        ]
      }
    }
  }
}