Skip to main content

aws_sdk_securityagent/client/
batch_get_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 [`BatchGetAgentSpaces`](crate::operation::batch_get_agent_spaces::builders::BatchGetAgentSpacesFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`agent_space_ids(impl Into<String>)`](crate::operation::batch_get_agent_spaces::builders::BatchGetAgentSpacesFluentBuilder::agent_space_ids) / [`set_agent_space_ids(Option<Vec::<String>>)`](crate::operation::batch_get_agent_spaces::builders::BatchGetAgentSpacesFluentBuilder::set_agent_space_ids):<br>required: **true**<br>List of agent space IDs to retrieve<br>
7    /// - On success, responds with [`BatchGetAgentSpacesOutput`](crate::operation::batch_get_agent_spaces::BatchGetAgentSpacesOutput) with field(s):
8    ///   - [`agent_spaces(Option<Vec::<AgentSpace>>)`](crate::operation::batch_get_agent_spaces::BatchGetAgentSpacesOutput::agent_spaces): List of agent spaces that were successfully retrieved
9    ///   - [`not_found(Option<Vec::<String>>)`](crate::operation::batch_get_agent_spaces::BatchGetAgentSpacesOutput::not_found): List of agent space IDs that could not be found
10    /// - On failure, responds with [`SdkError<BatchGetAgentSpacesError>`](crate::operation::batch_get_agent_spaces::BatchGetAgentSpacesError)
11    pub fn batch_get_agent_spaces(&self) -> crate::operation::batch_get_agent_spaces::builders::BatchGetAgentSpacesFluentBuilder {
12        crate::operation::batch_get_agent_spaces::builders::BatchGetAgentSpacesFluentBuilder::new(self.handle.clone())
13    }
14}