|« PreviousNext »|
|Did this page help you? Yes | No | Tell us about it...|
Lists the names of the policies associated with the specified role. If there are none, the action returns an empty list.
You can paginate the results using the
For information about the common parameters that all actions use, see Common Parameters.
Use this parameter only when paginating results, and only in a subsequent request after
you've received a response where the results are truncated. Set it to the value of the
Marker element in the response you just received.
Length constraints: Minimum length of 1. Maximum length of 320.
Use this parameter only when paginating results to indicate the maximum number of user names
you want in the response. If there are additional user names beyond the maximum you specify,
IsTruncated response element is
true. This parameter is
optional. If you do not include it, it defaults to 100.
The name of the role to list policies for.
Length constraints: Minimum length of 1. Maximum length of 64.
returned in a structure named
A flag that indicates whether there are more policy names to list. If your results were
truncated, you can make a subsequent pagination request using the
parameter to retrieve more policy names in the list.
true, this element is present and contains the
value to use for the
Marker parameter in a subsequent pagination request.
A list of policy names.
Type: String list
For information about the errors that are common to all actions, see Common Errors.
The request was rejected because it referenced an entity that does not exist. The error message describes the entity.
HTTP Status Code: 404
https://iam.amazonaws.com/ ?Action=ListRolePolicies &MaxItems=100 &RoleName=S3Access &Version=2010-05-08 &AUTHPARAMS
<ListRolePoliciesResponse xmlns="https://iam.amazonaws.com/doc/2010-05-08/"> <ListRolePoliciesResult> <PolicyNames> <member>CloudwatchPutMetricPolicy</member> <member>S3AccessPolicy</member> </PolicyNames> <IsTruncated>false</IsTruncated> </ListRolePoliciesResult> <ResponseMetadata> <RequestId>8c7e1816-99f0-11e1-a4c3-27EXAMPLE804</RequestId> </ResponseMetadata> </ListRolePoliciesResponse>