aws_sdk_bedrockagentruntime/client/
create_invocation.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 [`CreateInvocation`](crate::operation::create_invocation::builders::CreateInvocationFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`invocation_id(impl Into<String>)`](crate::operation::create_invocation::builders::CreateInvocationFluentBuilder::invocation_id) / [`set_invocation_id(Option<String>)`](crate::operation::create_invocation::builders::CreateInvocationFluentBuilder::set_invocation_id):<br>required: **false**<br><p>A unique identifier for the invocation in UUID format.</p><br>
7    ///   - [`description(impl Into<String>)`](crate::operation::create_invocation::builders::CreateInvocationFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_invocation::builders::CreateInvocationFluentBuilder::set_description):<br>required: **false**<br><p>A description for the interactions in the invocation. For example, "User asking about weather in Seattle".</p><br>
8    ///   - [`session_identifier(impl Into<String>)`](crate::operation::create_invocation::builders::CreateInvocationFluentBuilder::session_identifier) / [`set_session_identifier(Option<String>)`](crate::operation::create_invocation::builders::CreateInvocationFluentBuilder::set_session_identifier):<br>required: **true**<br><p>The unique identifier for the associated session for the invocation. You can specify either the session's <code>sessionId</code> or its Amazon Resource Name (ARN).</p><br>
9    /// - On success, responds with [`CreateInvocationOutput`](crate::operation::create_invocation::CreateInvocationOutput) with field(s):
10    ///   - [`session_id(String)`](crate::operation::create_invocation::CreateInvocationOutput::session_id): <p>The unique identifier for the session associated with the invocation.</p>
11    ///   - [`invocation_id(String)`](crate::operation::create_invocation::CreateInvocationOutput::invocation_id): <p>The unique identifier for the invocation.</p>
12    ///   - [`created_at(DateTime)`](crate::operation::create_invocation::CreateInvocationOutput::created_at): <p>The timestamp for when the invocation was created.</p>
13    /// - On failure, responds with [`SdkError<CreateInvocationError>`](crate::operation::create_invocation::CreateInvocationError)
14    pub fn create_invocation(&self) -> crate::operation::create_invocation::builders::CreateInvocationFluentBuilder {
15        crate::operation::create_invocation::builders::CreateInvocationFluentBuilder::new(self.handle.clone())
16    }
17}