aws_sdk_mpa/client/
list_policy_versions.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 [`ListPolicyVersions`](crate::operation::list_policy_versions::builders::ListPolicyVersionsFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_policy_versions::builders::ListPolicyVersionsFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`max_results(i32)`](crate::operation::list_policy_versions::builders::ListPolicyVersionsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_policy_versions::builders::ListPolicyVersionsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of items to return in the response. If more results exist than the specified <code>MaxResults</code> value, a token is included in the response so that you can retrieve the remaining results.</p><br>
8    ///   - [`next_token(impl Into<String>)`](crate::operation::list_policy_versions::builders::ListPolicyVersionsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_policy_versions::builders::ListPolicyVersionsFluentBuilder::set_next_token):<br>required: **false**<br><p>If present, indicates that more output is available than is included in the current response. Use this value in the <code>NextToken</code> request parameter in a next call to the operation to get more output. You can repeat this until the <code>NextToken</code> response element returns <code>null</code>.</p><br>
9    ///   - [`policy_arn(impl Into<String>)`](crate::operation::list_policy_versions::builders::ListPolicyVersionsFluentBuilder::policy_arn) / [`set_policy_arn(Option<String>)`](crate::operation::list_policy_versions::builders::ListPolicyVersionsFluentBuilder::set_policy_arn):<br>required: **true**<br><p>Amazon Resource Name (ARN) for the policy.</p><br>
10    /// - On success, responds with [`ListPolicyVersionsOutput`](crate::operation::list_policy_versions::ListPolicyVersionsOutput) with field(s):
11    ///   - [`next_token(Option<String>)`](crate::operation::list_policy_versions::ListPolicyVersionsOutput::next_token): <p>If present, indicates that more output is available than is included in the current response. Use this value in the <code>NextToken</code> request parameter in a next call to the operation to get more output. You can repeat this until the <code>NextToken</code> response element returns <code>null</code>.</p>
12    ///   - [`policy_versions(Option<Vec::<PolicyVersionSummary>>)`](crate::operation::list_policy_versions::ListPolicyVersionsOutput::policy_versions): <p>An array of <code>PolicyVersionSummary</code> objects. Contains details for the version of the policies that define the permissions for team resources.</p> <p>The protected operation for a service integration might require specific permissions. For more information, see <a href="https://docs.aws.amazon.com/mpa/latest/userguide/mpa-integrations.html">How other services work with Multi-party approval</a> in the <i>Multi-party approval User Guide</i>.</p>
13    /// - On failure, responds with [`SdkError<ListPolicyVersionsError>`](crate::operation::list_policy_versions::ListPolicyVersionsError)
14    pub fn list_policy_versions(&self) -> crate::operation::list_policy_versions::builders::ListPolicyVersionsFluentBuilder {
15        crate::operation::list_policy_versions::builders::ListPolicyVersionsFluentBuilder::new(self.handle.clone())
16    }
17}