aws_sdk_novaact/client/create_session.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 [`CreateSession`](crate::operation::create_session::builders::CreateSessionFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`workflow_definition_name(impl Into<String>)`](crate::operation::create_session::builders::CreateSessionFluentBuilder::workflow_definition_name) / [`set_workflow_definition_name(Option<String>)`](crate::operation::create_session::builders::CreateSessionFluentBuilder::set_workflow_definition_name):<br>required: **true**<br><p>The name of the workflow definition containing the workflow run.</p><br>
7 /// - [`workflow_run_id(impl Into<String>)`](crate::operation::create_session::builders::CreateSessionFluentBuilder::workflow_run_id) / [`set_workflow_run_id(Option<String>)`](crate::operation::create_session::builders::CreateSessionFluentBuilder::set_workflow_run_id):<br>required: **true**<br><p>The unique identifier of the workflow run to create the session in.</p><br>
8 /// - [`client_token(impl Into<String>)`](crate::operation::create_session::builders::CreateSessionFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_session::builders::CreateSessionFluentBuilder::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>
9 /// - On success, responds with [`CreateSessionOutput`](crate::operation::create_session::CreateSessionOutput) with field(s):
10 /// - [`session_id(String)`](crate::operation::create_session::CreateSessionOutput::session_id): <p>The unique identifier for the created session.</p>
11 /// - On failure, responds with [`SdkError<CreateSessionError>`](crate::operation::create_session::CreateSessionError)
12 pub fn create_session(&self) -> crate::operation::create_session::builders::CreateSessionFluentBuilder {
13 crate::operation::create_session::builders::CreateSessionFluentBuilder::new(self.handle.clone())
14 }
15}