Skip to main content

aws_sdk_networksecuritymanager/client/
list_policies.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 [`ListPolicies`](crate::operation::list_policies::builders::ListPoliciesFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_policies::builders::ListPoliciesFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`max_results(i32)`](crate::operation::list_policies::builders::ListPoliciesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_policies::builders::ListPoliciesFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return in a single call. Valid range: 1-100. To retrieve the remaining results, use the returned <code>nextToken</code> value in a subsequent call.</p><br>
8    ///   - [`next_token(impl Into<String>)`](crate::operation::list_policies::builders::ListPoliciesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_policies::builders::ListPoliciesFluentBuilder::set_next_token):<br>required: **false**<br><p>The token for the next page of results. To retrieve the next page, call the operation again and provide this value. When there are no more results, this value is null.</p><br>
9    ///   - [`status(EntityStatusFilter)`](crate::operation::list_policies::builders::ListPoliciesFluentBuilder::status) / [`set_status(Option<EntityStatusFilter>)`](crate::operation::list_policies::builders::ListPoliciesFluentBuilder::set_status):<br>required: **false**<br><p>Filters the results by status, either <code>ACTIVE</code> or <code>DRAFT</code>.</p><br>
10    /// - On success, responds with [`ListPoliciesOutput`](crate::operation::list_policies::ListPoliciesOutput) with field(s):
11    ///   - [`next_token(Option<String>)`](crate::operation::list_policies::ListPoliciesOutput::next_token): <p>The token for the next page of results. To retrieve the next page, call the operation again and provide this value. When there are no more results, this value is null.</p>
12    ///   - [`policies(Vec::<PolicySummary>)`](crate::operation::list_policies::ListPoliciesOutput::policies): <p>The list of policies.</p>
13    /// - On failure, responds with [`SdkError<ListPoliciesError>`](crate::operation::list_policies::ListPoliciesError)
14    pub fn list_policies(&self) -> crate::operation::list_policies::builders::ListPoliciesFluentBuilder {
15        crate::operation::list_policies::builders::ListPoliciesFluentBuilder::new(self.handle.clone())
16    }
17}