aws_sdk_novaact/client/create_act.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`CreateAct`](crate::operation::create_act::builders::CreateActFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`workflow_definition_name(impl Into<String>)`](crate::operation::create_act::builders::CreateActFluentBuilder::workflow_definition_name) / [`set_workflow_definition_name(Option<String>)`](crate::operation::create_act::builders::CreateActFluentBuilder::set_workflow_definition_name):<br>required: **true**<br><p>The name of the workflow definition containing the session.</p><br>
7 /// - [`workflow_run_id(impl Into<String>)`](crate::operation::create_act::builders::CreateActFluentBuilder::workflow_run_id) / [`set_workflow_run_id(Option<String>)`](crate::operation::create_act::builders::CreateActFluentBuilder::set_workflow_run_id):<br>required: **true**<br><p>The unique identifier of the workflow run containing the session.</p><br>
8 /// - [`session_id(impl Into<String>)`](crate::operation::create_act::builders::CreateActFluentBuilder::session_id) / [`set_session_id(Option<String>)`](crate::operation::create_act::builders::CreateActFluentBuilder::set_session_id):<br>required: **true**<br><p>The unique identifier of the session to create the act in.</p><br>
9 /// - [`task(impl Into<String>)`](crate::operation::create_act::builders::CreateActFluentBuilder::task) / [`set_task(Option<String>)`](crate::operation::create_act::builders::CreateActFluentBuilder::set_task):<br>required: **true**<br><p>The task description that defines what the act should accomplish.</p><br>
10 /// - [`tool_specs(ToolSpec)`](crate::operation::create_act::builders::CreateActFluentBuilder::tool_specs) / [`set_tool_specs(Option<Vec::<ToolSpec>>)`](crate::operation::create_act::builders::CreateActFluentBuilder::set_tool_specs):<br>required: **false**<br><p>A list of tool specifications that the act can invoke to complete its task.</p><br>
11 /// - [`client_token(impl Into<String>)`](crate::operation::create_act::builders::CreateActFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_act::builders::CreateActFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p><br>
12 /// - On success, responds with [`CreateActOutput`](crate::operation::create_act::CreateActOutput) with field(s):
13 /// - [`act_id(String)`](crate::operation::create_act::CreateActOutput::act_id): <p>The unique identifier for the created act.</p>
14 /// - [`status(ActStatus)`](crate::operation::create_act::CreateActOutput::status): <p>The initial status of the act after creation.</p>
15 /// - On failure, responds with [`SdkError<CreateActError>`](crate::operation::create_act::CreateActError)
16 pub fn create_act(&self) -> crate::operation::create_act::builders::CreateActFluentBuilder {
17 crate::operation::create_act::builders::CreateActFluentBuilder::new(self.handle.clone())
18 }
19}