aws_sdk_fms/client/list_resource_sets.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 [`ListResourceSets`](crate::operation::list_resource_sets::builders::ListResourceSetsFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`next_token(impl Into<String>)`](crate::operation::list_resource_sets::builders::ListResourceSetsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_resource_sets::builders::ListResourceSetsFluentBuilder::set_next_token):<br>required: **false**<br><p>When you request a list of objects with a <code>MaxResults</code> setting, if the number of objects that are still available for retrieval exceeds the maximum you requested, Firewall Manager returns a <code>NextToken</code> value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request.</p><br>
7 /// - [`max_results(i32)`](crate::operation::list_resource_sets::builders::ListResourceSetsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_resource_sets::builders::ListResourceSetsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of objects that you want Firewall Manager to return for this request. If more objects are available, in the response, Firewall Manager provides a <code>NextToken</code> value that you can use in a subsequent call to get the next batch of objects.</p><br>
8 /// - On success, responds with [`ListResourceSetsOutput`](crate::operation::list_resource_sets::ListResourceSetsOutput) with field(s):
9 /// - [`resource_sets(Option<Vec::<ResourceSetSummary>>)`](crate::operation::list_resource_sets::ListResourceSetsOutput::resource_sets): <p>An array of <code>ResourceSetSummary</code> objects.</p>
10 /// - [`next_token(Option<String>)`](crate::operation::list_resource_sets::ListResourceSetsOutput::next_token): <p>When you request a list of objects with a <code>MaxResults</code> setting, if the number of objects that are still available for retrieval exceeds the maximum you requested, Firewall Manager returns a <code>NextToken</code> value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request.</p>
11 /// - On failure, responds with [`SdkError<ListResourceSetsError>`](crate::operation::list_resource_sets::ListResourceSetsError)
12 pub fn list_resource_sets(&self) -> crate::operation::list_resource_sets::builders::ListResourceSetsFluentBuilder {
13 crate::operation::list_resource_sets::builders::ListResourceSetsFluentBuilder::new(self.handle.clone())
14 }
15}