aws_sdk_workmail/client/
list_resources.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 [`ListResources`](crate::operation::list_resources::builders::ListResourcesFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_resources::builders::ListResourcesFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`organization_id(impl Into<String>)`](crate::operation::list_resources::builders::ListResourcesFluentBuilder::organization_id) / [`set_organization_id(Option<String>)`](crate::operation::list_resources::builders::ListResourcesFluentBuilder::set_organization_id):<br>required: **true**<br><p>The identifier for the organization under which the resources exist.</p><br>
8    ///   - [`next_token(impl Into<String>)`](crate::operation::list_resources::builders::ListResourcesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_resources::builders::ListResourcesFluentBuilder::set_next_token):<br>required: **false**<br><p>The token to use to retrieve the next page of results. The first call does not contain any tokens.</p><br>
9    ///   - [`max_results(i32)`](crate::operation::list_resources::builders::ListResourcesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_resources::builders::ListResourcesFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return in a single call.</p><br>
10    ///   - [`filters(ListResourcesFilters)`](crate::operation::list_resources::builders::ListResourcesFluentBuilder::filters) / [`set_filters(Option<ListResourcesFilters>)`](crate::operation::list_resources::builders::ListResourcesFluentBuilder::set_filters):<br>required: **false**<br><p>Limit the resource search results based on the filter criteria. You can only use one filter per request.</p><br>
11    /// - On success, responds with [`ListResourcesOutput`](crate::operation::list_resources::ListResourcesOutput) with field(s):
12    ///   - [`resources(Option<Vec::<Resource>>)`](crate::operation::list_resources::ListResourcesOutput::resources): <p>One page of the organization's resource representation.</p>
13    ///   - [`next_token(Option<String>)`](crate::operation::list_resources::ListResourcesOutput::next_token): <p>The token used to paginate through all the organization's resources. While results are still available, it has an associated value. When the last page is reached, the token is empty.</p>
14    /// - On failure, responds with [`SdkError<ListResourcesError>`](crate::operation::list_resources::ListResourcesError)
15    pub fn list_resources(&self) -> crate::operation::list_resources::builders::ListResourcesFluentBuilder {
16        crate::operation::list_resources::builders::ListResourcesFluentBuilder::new(self.handle.clone())
17    }
18}