// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`ListPolicies`](crate::operation::list_policies::builders::ListPoliciesFluentBuilder) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::operation::list_policies::builders::ListPoliciesFluentBuilder::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`scope(PolicyScopeType)`](crate::operation::list_policies::builders::ListPoliciesFluentBuilder::scope) / [`set_scope(Option<PolicyScopeType>)`](crate::operation::list_policies::builders::ListPoliciesFluentBuilder::set_scope):<br>required: **false**<br><p>The scope to use for filtering the results.</p> <p>To list only Amazon Web Services managed policies, set <code>Scope</code> to <code>AWS</code>. To list only the customer managed policies in your Amazon Web Services account, set <code>Scope</code> to <code>Local</code>.</p> <p>This parameter is optional. If it is not included, or if it is set to <code>All</code>, all policies are returned.</p><br>
/// - [`only_attached(bool)`](crate::operation::list_policies::builders::ListPoliciesFluentBuilder::only_attached) / [`set_only_attached(Option<bool>)`](crate::operation::list_policies::builders::ListPoliciesFluentBuilder::set_only_attached):<br>required: **false**<br><p>A flag to filter the results to only the attached policies.</p> <p>When <code>OnlyAttached</code> is <code>true</code>, the returned list contains only the policies that are attached to an IAM user, group, or role. When <code>OnlyAttached</code> is <code>false</code>, or when the parameter is not included, all policies are returned.</p><br>
/// - [`path_prefix(impl Into<String>)`](crate::operation::list_policies::builders::ListPoliciesFluentBuilder::path_prefix) / [`set_path_prefix(Option<String>)`](crate::operation::list_policies::builders::ListPoliciesFluentBuilder::set_path_prefix):<br>required: **false**<br><p>The path prefix for filtering the results. This parameter is optional. If it is not included, it defaults to a slash (/), listing all policies. This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! (<code>\u0021</code>) through the DEL character (<code>\u007F</code>), including most punctuation characters, digits, and upper and lowercased letters.</p><br>
/// - [`policy_usage_filter(PolicyUsageType)`](crate::operation::list_policies::builders::ListPoliciesFluentBuilder::policy_usage_filter) / [`set_policy_usage_filter(Option<PolicyUsageType>)`](crate::operation::list_policies::builders::ListPoliciesFluentBuilder::set_policy_usage_filter):<br>required: **false**<br><p>The policy usage method to use for filtering the results.</p> <p>To list only permissions policies, set <code>PolicyUsageFilter</code> to <code>PermissionsPolicy</code>. To list only the policies used to set permissions boundaries, set the value to <code>PermissionsBoundary</code>.</p> <p>This parameter is optional. If it is not included, all policies are returned. </p><br>
/// - [`marker(impl Into<String>)`](crate::operation::list_policies::builders::ListPoliciesFluentBuilder::marker) / [`set_marker(Option<String>)`](crate::operation::list_policies::builders::ListPoliciesFluentBuilder::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_policies::builders::ListPoliciesFluentBuilder::max_items) / [`set_max_items(Option<i32>)`](crate::operation::list_policies::builders::ListPoliciesFluentBuilder::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 [`ListPoliciesOutput`](crate::operation::list_policies::ListPoliciesOutput) with field(s):
/// - [`policies(Option<Vec::<Policy>>)`](crate::operation::list_policies::ListPoliciesOutput::policies): <p>A list of policies.</p>
/// - [`is_truncated(bool)`](crate::operation::list_policies::ListPoliciesOutput::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_policies::ListPoliciesOutput::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<ListPoliciesError>`](crate::operation::list_policies::ListPoliciesError)
pub fn list_policies(&self) -> crate::operation::list_policies::builders::ListPoliciesFluentBuilder {
crate::operation::list_policies::builders::ListPoliciesFluentBuilder::new(self.handle.clone())
}
}