aws_sdk_securityhub/client/
get_resources_v2.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 [`GetResourcesV2`](crate::operation::get_resources_v2::builders::GetResourcesV2FluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::get_resources_v2::builders::GetResourcesV2FluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`filters(ResourcesFilters)`](crate::operation::get_resources_v2::builders::GetResourcesV2FluentBuilder::filters) / [`set_filters(Option<ResourcesFilters>)`](crate::operation::get_resources_v2::builders::GetResourcesV2FluentBuilder::set_filters):<br>required: **false**<br><p>Filters resources based on a set of criteria.</p><br>
8    ///   - [`sort_criteria(SortCriterion)`](crate::operation::get_resources_v2::builders::GetResourcesV2FluentBuilder::sort_criteria) / [`set_sort_criteria(Option<Vec::<SortCriterion>>)`](crate::operation::get_resources_v2::builders::GetResourcesV2FluentBuilder::set_sort_criteria):<br>required: **false**<br><p>The finding attributes used to sort the list of returned findings.</p><br>
9    ///   - [`next_token(impl Into<String>)`](crate::operation::get_resources_v2::builders::GetResourcesV2FluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::get_resources_v2::builders::GetResourcesV2FluentBuilder::set_next_token):<br>required: **false**<br><p>The token required for pagination. On your first call, set the value of this parameter to <code>NULL</code>. For subsequent calls, to continue listing data, set the value of this parameter to the value returned in the previous response.</p><br>
10    ///   - [`max_results(i32)`](crate::operation::get_resources_v2::builders::GetResourcesV2FluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::get_resources_v2::builders::GetResourcesV2FluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return.</p><br>
11    /// - On success, responds with [`GetResourcesV2Output`](crate::operation::get_resources_v2::GetResourcesV2Output) with field(s):
12    ///   - [`resources(Option<Vec::<ResourceResult>>)`](crate::operation::get_resources_v2::GetResourcesV2Output::resources): <p>Filters resources based on a set of criteria.</p>
13    ///   - [`next_token(Option<String>)`](crate::operation::get_resources_v2::GetResourcesV2Output::next_token): <p>The pagination token to use to request the next page of results. Otherwise, this parameter is null.</p>
14    /// - On failure, responds with [`SdkError<GetResourcesV2Error>`](crate::operation::get_resources_v2::GetResourcesV2Error)
15    pub fn get_resources_v2(&self) -> crate::operation::get_resources_v2::builders::GetResourcesV2FluentBuilder {
16        crate::operation::get_resources_v2::builders::GetResourcesV2FluentBuilder::new(self.handle.clone())
17    }
18}