aws_sdk_workmail/client/
list_resources.rs

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 [`ListResources`](crate::operation::list_resources::builders::ListResourcesFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_resources::builders::ListResourcesFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    ///   - [`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>
    /// - On success, responds with [`ListResourcesOutput`](crate::operation::list_resources::ListResourcesOutput) with field(s):
    ///   - [`resources(Option<Vec::<Resource>>)`](crate::operation::list_resources::ListResourcesOutput::resources): <p>One page of the organization's resource representation.</p>
    ///   - [`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>
    /// - On failure, responds with [`SdkError<ListResourcesError>`](crate::operation::list_resources::ListResourcesError)
    pub fn list_resources(&self) -> crate::operation::list_resources::builders::ListResourcesFluentBuilder {
        crate::operation::list_resources::builders::ListResourcesFluentBuilder::new(self.handle.clone())
    }
}