aws_sdk_securityagent/client/list_agent_spaces.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 [`ListAgentSpaces`](crate::operation::list_agent_spaces::builders::ListAgentSpacesFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_agent_spaces::builders::ListAgentSpacesFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`next_token(impl Into<String>)`](crate::operation::list_agent_spaces::builders::ListAgentSpacesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_agent_spaces::builders::ListAgentSpacesFluentBuilder::set_next_token):<br>required: **false**<br>Token for pagination<br>
8 /// - [`max_results(i32)`](crate::operation::list_agent_spaces::builders::ListAgentSpacesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_agent_spaces::builders::ListAgentSpacesFluentBuilder::set_max_results):<br>required: **false**<br>Maximum number of agent spaces to return<br>
9 /// - On success, responds with [`ListAgentSpacesOutput`](crate::operation::list_agent_spaces::ListAgentSpacesOutput) with field(s):
10 /// - [`agent_space_summaries(Option<Vec::<AgentSpaceSummary>>)`](crate::operation::list_agent_spaces::ListAgentSpacesOutput::agent_space_summaries): List of agent space summaries
11 /// - [`next_token(Option<String>)`](crate::operation::list_agent_spaces::ListAgentSpacesOutput::next_token): Token for next page of results
12 /// - On failure, responds with [`SdkError<ListAgentSpacesError>`](crate::operation::list_agent_spaces::ListAgentSpacesError)
13 pub fn list_agent_spaces(&self) -> crate::operation::list_agent_spaces::builders::ListAgentSpacesFluentBuilder {
14 crate::operation::list_agent_spaces::builders::ListAgentSpacesFluentBuilder::new(self.handle.clone())
15 }
16}