PublishTaskArgs

data class PublishTaskArgs(val agentKey: Output<String>? = null, val bizType: Output<String>? = null, val dataIdLists: Output<List<String>>? = null) : ConvertibleToJava<PublishTaskArgs>

Provides a Chatbot Publish Task resource. For information about Chatbot Publish Task and how to use it, see What is Publish Task.

NOTE: Available in v1.203.0+.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.chatbot.ChatbotFunctions;
import com.pulumi.alicloud.chatbot.inputs.GetAgentsArgs;
import com.pulumi.alicloud.chatbot.PublishTask;
import com.pulumi.alicloud.chatbot.PublishTaskArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var defaultAgents = ChatbotFunctions.getAgents();
var defaultPublishTask = new PublishTask("defaultPublishTask", PublishTaskArgs.builder()
.bizType("faq")
.agentKey(defaultAgents.applyValue(getAgentsResult -> getAgentsResult.agents()[0].agentKey()))
.build());
}
}

Import

Chatbot Publish Task can be imported using the id, e.g.

$ pulumi import alicloud:chatbot/publishTask:PublishTask example <id>

Constructors

Link copied to clipboard
fun PublishTaskArgs(agentKey: Output<String>? = null, bizType: Output<String>? = null, dataIdLists: Output<List<String>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): PublishTaskArgs

Properties

Link copied to clipboard
val agentKey: Output<String>? = null

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.

Link copied to clipboard
val bizType: Output<String>? = null

The type of the publishing unit. Please use the CreateInstancePublishTask API to publish the robot.

Link copied to clipboard
val dataIdLists: Output<List<String>>? = null

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.