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 /// - [`scopes(ResourceScopes)`](crate::operation::get_resources_v2::builders::GetResourcesV2FluentBuilder::scopes) / [`set_scopes(Option<ResourceScopes>)`](crate::operation::get_resources_v2::builders::GetResourcesV2FluentBuilder::set_scopes):<br>required: **false**<br><p>Limits the results to resources from specific organizational units or from the delegated administrator's organization. Only the delegated administrator account can use this parameter. Other accounts receive an <code>AccessDeniedException</code>.</p> <p>This parameter is optional. If you omit it, the delegated administrator sees resources from all accounts across the entire organization. Other accounts see only their own resources.</p> <p>You can specify up to 10 entries in <code>Scopes.AwsOrganizations</code>. If multiple entries are specified, the entries are combined using OR logic.</p><br>
9 /// - [`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 resource attributes used to sort the list of returned resources.</p><br>
10 /// - [`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>
11 /// - [`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>
12 /// - On success, responds with [`GetResourcesV2Output`](crate::operation::get_resources_v2::GetResourcesV2Output) with field(s):
13 /// - [`resources(Option<Vec::<ResourceResult>>)`](crate::operation::get_resources_v2::GetResourcesV2Output::resources): <p>An array of resources returned by the operation.</p>
14 /// - [`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>
15 /// - On failure, responds with [`SdkError<GetResourcesV2Error>`](crate::operation::get_resources_v2::GetResourcesV2Error)
16 pub fn get_resources_v2(&self) -> crate::operation::get_resources_v2::builders::GetResourcesV2FluentBuilder {
17 crate::operation::get_resources_v2::builders::GetResourcesV2FluentBuilder::new(self.handle.clone())
18 }
19}