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"
]
}
}
}
}
该文章对您有帮助吗?