aws-sdk-bedrockagentruntime 1.126.0

AWS SDK for Agents for Amazon Bedrock Runtime
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateInvocation`](crate::operation::create_invocation::builders::CreateInvocationFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    /// - On success, responds with [`CreateInvocationOutput`](crate::operation::create_invocation::CreateInvocationOutput) with field(s):
    ///   - [`session_id(String)`](crate::operation::create_invocation::CreateInvocationOutput::session_id): <p>The unique identifier for the session associated with the invocation.</p>
    ///   - [`invocation_id(String)`](crate::operation::create_invocation::CreateInvocationOutput::invocation_id): <p>The unique identifier for the invocation.</p>
    ///   - [`created_at(DateTime)`](crate::operation::create_invocation::CreateInvocationOutput::created_at): <p>The timestamp for when the invocation was created.</p>
    /// - On failure, responds with [`SdkError<CreateInvocationError>`](crate::operation::create_invocation::CreateInvocationError)
    pub fn create_invocation(&self) -> crate::operation::create_invocation::builders::CreateInvocationFluentBuilder {
        crate::operation::create_invocation::builders::CreateInvocationFluentBuilder::new(self.handle.clone())
    }
}