code: @Override
      public ListPoliciesResult listPolicies(ListPoliciesRequest request) {
          request = beforeClientExecution(request);
          return executeListPolicies(request);
      }
docs: <p>
  Lists all the managed policies that are available in your AWS account, including your own customer-defined
  managed policies and all AWS managed policies.
  </p>
  <p>
  You can filter the list of policies that is returned using the optional <code>OnlyAttached</code>,
  <code>Scope</code>, and <code>PathPrefix</code> parameters. For example, to list only the customer managed
  policies in your AWS account, set <code>Scope</code> to <code>Local</code>. To list only AWS managed policies,
  set <code>Scope</code> to <code>AWS</code>.
  </p>
  <p>
  You can paginate the results using the <code>MaxItems</code> and <code>Marker</code> parameters.
  </p>
  <p>
  For more information about managed policies, see <a
  href="https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html">Managed Policies and
  Inline Policies</a> in the <i>IAM User Guide</i>.
  </p>
  
  @param listPoliciesRequest
  @return Result of the ListPolicies operation returned by the service.
  @throws ServiceFailureException
  The request processing has failed because of an unknown error, exception or failure.
  @sample AmazonIdentityManagement.ListPolicies
  @see <a href="http://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListPolicies" target="_top">AWS API
  Documentation</a>