| « PreviousNext » | |
![]() ![]() | Did this page help you? Yes | No | Tell us about it... |
Lists the instance profiles that have the specified associated role. If there are none, the action returns an empty list. For more information about instance profiles, go to About Instance Profiles.
You can paginate the results using the MaxItems and Marker parameters.
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.
Type: String
Length constraints: Minimum length of 1. Maximum length of 320.
Required: No
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, the IsTruncated response element
is true. This parameter is optional. If you do not include it, it defaults to 100.
Type: Integer
Required: No
The name of the role to list instance profiles for.
Type: String
Length constraints: Minimum length of 1. Maximum length of 64.
Required: Yes
The following
elements are
returned in a ListInstanceProfilesForRoleResult structure.
A list of instance profiles.
Type: InstanceProfile list
A flag that indicates whether there are more instance profiles to list. If your results were truncated, you can make a
subsequent pagination request using the Marker request parameter to retrieve more instance profiles in the list.
Type: Boolean
If IsTruncated is true, this element is present and contains the value to use for
the Marker parameter in a subsequent pagination request.
Type: String
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=ListInstanceProfilesForRole
&MaxItems=100
&RoleName=S3Access
&Version=2010-05-08
&AUTHPARAMS
<ListInstanceProfilesForRoleResponse xmlns="https://iam.amazonaws.com/doc/2010-05-08/">
<ListInstanceProfilesForRoleResult>
<IsTruncated>false</IsTruncated>
<InstanceProfiles>
<member>
<Id>AIPACZLS2EYYXMEXAMPLE</Id>
<Roles>
<member>
<Path>/application_abc/component_xyz/</Path>
<Arn>arn:aws:iam::123456789012:role/application_abc/component_xyz/S3Access</Arn>
<RoleName>S3Access</RoleName>
<AssumeRolePolicyDocument>{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Principal":{"Service":["ec2.amazonaws.com"]},"Action":["sts:AssumeRole"]}]}</AssumeRolePolicyDocument>
<CreateDate>2012-05-09T15:45:35Z</CreateDate>
<RoleId>AROACVSVTSZYK3EXAMPLE</RoleId>
</member>
</Roles>
<InstanceProfileName>Webserver</InstanceProfileName>
<Path>/application_abc/component_xyz/</Path>
<Arn>arn:aws:iam::123456789012:instance-profile/application_abc/component_xyz/Webserver</Arn>
<CreateDate>2012-05-09T16:27:11Z</CreateDate>
</member>
</InstanceProfiles>
</ListInstanceProfilesForRoleResult>
<ResponseMetadata>
<RequestId>6a8c3992-99f4-11e1-a4c3-27EXAMPLE804</RequestId>
</ResponseMetadata>
</ListInstanceProfilesForRoleResponse>