aws_sdk_networksecuritymanager/client/list_policy_snapshots.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 [`ListPolicySnapshots`](crate::operation::list_policy_snapshots::builders::ListPolicySnapshotsFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_policy_snapshots::builders::ListPolicySnapshotsFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`policy_identifier(impl Into<String>)`](crate::operation::list_policy_snapshots::builders::ListPolicySnapshotsFluentBuilder::policy_identifier) / [`set_policy_identifier(Option<String>)`](crate::operation::list_policy_snapshots::builders::ListPolicySnapshotsFluentBuilder::set_policy_identifier):<br>required: **true**<br><p>The identifier of the policy. This is the policy's Amazon Resource Name (ARN).</p><br>
8 /// - [`max_results(i32)`](crate::operation::list_policy_snapshots::builders::ListPolicySnapshotsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_policy_snapshots::builders::ListPolicySnapshotsFluentBuilder::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>
9 /// - [`next_token(impl Into<String>)`](crate::operation::list_policy_snapshots::builders::ListPolicySnapshotsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_policy_snapshots::builders::ListPolicySnapshotsFluentBuilder::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>
10 /// - On success, responds with [`ListPolicySnapshotsOutput`](crate::operation::list_policy_snapshots::ListPolicySnapshotsOutput) with field(s):
11 /// - [`next_token(Option<String>)`](crate::operation::list_policy_snapshots::ListPolicySnapshotsOutput::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 /// - [`snapshots(Vec::<PolicySummary>)`](crate::operation::list_policy_snapshots::ListPolicySnapshotsOutput::snapshots): <p>The snapshots of the policy.</p>
13 /// - On failure, responds with [`SdkError<ListPolicySnapshotsError>`](crate::operation::list_policy_snapshots::ListPolicySnapshotsError)
14 pub fn list_policy_snapshots(&self) -> crate::operation::list_policy_snapshots::builders::ListPolicySnapshotsFluentBuilder {
15 crate::operation::list_policy_snapshots::builders::ListPolicySnapshotsFluentBuilder::new(self.handle.clone())
16 }
17}