AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
You can filter the list of policies that is returned using the optional OnlyAttached,
Scope, and PathPrefix parameters. For example, to list only
the customer managed policies in your AWS account, set Scope to Local.
To list only AWS managed policies, set Scope to AWS.
You can paginate the results using the MaxItems and Marker
parameters.
For more information about managed policies, refer to Managed Policies and Inline Policies in the IAM User Guide.
Namespace: Amazon.IdentityManagement
Assembly: AWSSDK.dll
Version: (assembly version)
public virtual ListPoliciesResponse ListPolicies()
| Exception | Condition |
|---|---|
| ServiceFailureException | The request processing has failed because of an unknown error, exception or failure. |
.NET Framework:
Supported in: 4.5, 4.0, 3.5