1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListPolicyVersions`](crate::operation::list_policy_versions::builders::ListPolicyVersionsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_policy_versions::builders::ListPolicyVersionsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`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>The Amazon Resource Name (ARN) of the IAM policy for which you want the versions.</p>  <p>For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i>.</p><br>
    ///   - [`marker(impl Into<String>)`](crate::operation::list_policy_versions::builders::ListPolicyVersionsFluentBuilder::marker) / [`set_marker(Option<String>)`](crate::operation::list_policy_versions::builders::ListPolicyVersionsFluentBuilder::set_marker):<br>required: **false**<br><p>Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the <code>Marker</code> element in the response that you received to indicate where the next call should start.</p><br>
    ///   - [`max_items(i32)`](crate::operation::list_policy_versions::builders::ListPolicyVersionsFluentBuilder::max_items) / [`set_max_items(Option<i32>)`](crate::operation::list_policy_versions::builders::ListPolicyVersionsFluentBuilder::set_max_items):<br>required: **false**<br><p>Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the <code>IsTruncated</code> response element is <code>true</code>.</p>  <p>If you do not include this parameter, the number of items defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the <code>IsTruncated</code> response element returns <code>true</code>, and <code>Marker</code> contains a value to include in the subsequent call that tells the service where to continue from.</p><br>
    /// - On success, responds with [`ListPolicyVersionsOutput`](crate::operation::list_policy_versions::ListPolicyVersionsOutput) with field(s):
    ///   - [`versions(Option<Vec::<PolicyVersion>>)`](crate::operation::list_policy_versions::ListPolicyVersionsOutput::versions): <p>A list of policy versions.</p>  <p>For more information about managed policy versions, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html">Versioning for managed policies</a> in the <i>IAM User Guide</i>.</p>
    ///   - [`is_truncated(bool)`](crate::operation::list_policy_versions::ListPolicyVersionsOutput::is_truncated): <p>A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the <code>Marker</code> request parameter to retrieve more items. Note that IAM might return fewer than the <code>MaxItems</code> number of results even when there are more results available. We recommend that you check <code>IsTruncated</code> after every call to ensure that you receive all your results.</p>
    ///   - [`marker(Option<String>)`](crate::operation::list_policy_versions::ListPolicyVersionsOutput::marker): <p>When <code>IsTruncated</code> is <code>true</code>, this element is present and contains the value to use for the <code>Marker</code> parameter in a subsequent pagination request.</p>
    /// - On failure, responds with [`SdkError<ListPolicyVersionsError>`](crate::operation::list_policy_versions::ListPolicyVersionsError)
    pub fn list_policy_versions(&self) -> crate::operation::list_policy_versions::builders::ListPolicyVersionsFluentBuilder {
        crate::operation::list_policy_versions::builders::ListPolicyVersionsFluentBuilder::new(self.handle.clone())
    }
}