alicloud_chatbot_publish_task
更新时间:
Provides a Chatbot Publish Task resource.
For information about Chatbot Publish Task and how to use it, see What is Publish Task.
-> NOTE: Available since v1.203.0+.
Example Usage
Basic Usage
provider "alicloud" {
region = "cn-shanghai"
}
data "alicloud_chatbot_agents" "default" {}
resource "alicloud_chatbot_publish_task" "default" {
biz_type = "faq"
agent_key = data.alicloud_chatbot_agents.default.agents.0.agent_key
}
Argument Reference
The following arguments are supported:
agent_key
- (Optional) The business space key. If you do not set it, the default business space is accessed. The key value is obtained on the business management page of the primary account.biz_type
- (Required, ForceNew) The type of the publishing unit. Please use the CreateInstancePublishTask API to publish the robot.data_id_list
- (Optional) Additional release information. Currently supported: If the BizType is faq, enter the category Id in this field to indicate that only the knowledge under these categories is published.
Attributes Reference
The following attributes are exported:
id
- Thekey
of the resource supplied above.create_time
- UTC time of task creationmodify_time
- UTC time for task modificationstatus
- The status of the task.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the Publish Task.
Import
Chatbot Publish Task can be imported using the id, e.g.
$ terraform import alicloud_chatbot_publish_task.example <id>
文档内容是否对您有帮助?