aws-sdk-bedrockagentcore 1.23.0

AWS SDK for Amazon Bedrock AgentCore
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListSessions`](crate::operation::list_sessions::builders::ListSessionsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_sessions::builders::ListSessionsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`memory_id(impl Into<String>)`](crate::operation::list_sessions::builders::ListSessionsFluentBuilder::memory_id) / [`set_memory_id(Option<String>)`](crate::operation::list_sessions::builders::ListSessionsFluentBuilder::set_memory_id):<br>required: **true**<br><p>The identifier of the AgentCore Memory resource for which to list sessions.</p><br>
    ///   - [`actor_id(impl Into<String>)`](crate::operation::list_sessions::builders::ListSessionsFluentBuilder::actor_id) / [`set_actor_id(Option<String>)`](crate::operation::list_sessions::builders::ListSessionsFluentBuilder::set_actor_id):<br>required: **true**<br><p>The identifier of the actor for which to list sessions.</p><br>
    ///   - [`max_results(i32)`](crate::operation::list_sessions::builders::ListSessionsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_sessions::builders::ListSessionsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return in a single call. The default value is 20.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_sessions::builders::ListSessionsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_sessions::builders::ListSessionsFluentBuilder::set_next_token):<br>required: **false**<br><p>The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.</p><br>
    /// - On success, responds with [`ListSessionsOutput`](crate::operation::list_sessions::ListSessionsOutput) with field(s):
    ///   - [`session_summaries(Vec::<SessionSummary>)`](crate::operation::list_sessions::ListSessionsOutput::session_summaries): <p>The list of session summaries that match the specified criteria.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_sessions::ListSessionsOutput::next_token): <p>The token to use in a subsequent request to get the next set of results. This value is null when there are no more results to return.</p>
    /// - On failure, responds with [`SdkError<ListSessionsError>`](crate::operation::list_sessions::ListSessionsError)
    pub fn list_sessions(&self) -> crate::operation::list_sessions::builders::ListSessionsFluentBuilder {
        crate::operation::list_sessions::builders::ListSessionsFluentBuilder::new(self.handle.clone())
    }
}