code: @Override
      @Deprecated
      public ListPrincipalPoliciesResult listPrincipalPolicies(ListPrincipalPoliciesRequest request) {
          request = beforeClientExecution(request);
          return executeListPrincipalPolicies(request);
      }
docs: <p>
  Lists the policies attached to the specified principal. If you use an Cognito identity, the ID must be in <a
  href=
  "https://docs.aws.amazon.com/cognitoidentity/latest/APIReference/API_GetCredentialsForIdentity.html#API_GetCredentialsForIdentity_RequestSyntax"
  >AmazonCognito Identity format</a>.
  </p>
  <p>
  <b>Note:</b> This API is deprecated. Please use <a>ListAttachedPolicies</a> instead.
  </p>
  
  @param listPrincipalPoliciesRequest
  The input for the ListPrincipalPolicies operation.
  @return Result of the ListPrincipalPolicies operation returned by the service.
  @throws ResourceNotFoundException
  The specified resource does not exist.
  @throws InvalidRequestException
  The request is not valid.
  @throws ThrottlingException
  The rate exceeds the limit.
  @throws UnauthorizedException
  You are not authorized to perform this operation.
  @throws ServiceUnavailableException
  The service is temporarily unavailable.
  @throws InternalFailureException
  An unexpected error has occurred.
  @sample AWSIot.ListPrincipalPolicies