EC2.Paginator.
DescribeIamInstanceProfileAssociations
¶paginator = client.get_paginator('describe_iam_instance_profile_associations')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from EC2.Client.describe_iam_instance_profile_associations()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
AssociationIds=[
'string',
],
Filters=[
{
'Name': 'string',
'Values': [
'string',
]
},
],
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
The IAM instance profile associations.
The filters.
instance-id
- The ID of the instance.state
- The state of the association ( associating
| associated
| disassociating
).A filter name and value pair that is used to return a more specific list of results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.
If you specify multiple filters, the filters are joined with an AND
, and the request returns only results that match all of the specified filters.
The name of the filter. Filter names are case-sensitive.
The filter values. Filter values are case-sensitive. If you specify multiple values for a filter, the values are joined with an OR
, and the request returns all results that match any of the specified values.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
dict
Response Syntax
{
'IamInstanceProfileAssociations': [
{
'AssociationId': 'string',
'InstanceId': 'string',
'IamInstanceProfile': {
'Arn': 'string',
'Id': 'string'
},
'State': 'associating'|'associated'|'disassociating'|'disassociated',
'Timestamp': datetime(2015, 1, 1)
},
],
}
Response Structure
(dict) --
IamInstanceProfileAssociations (list) --
Information about the IAM instance profile associations.
(dict) --
Describes an association between an IAM instance profile and an instance.
AssociationId (string) --
The ID of the association.
InstanceId (string) --
The ID of the instance.
IamInstanceProfile (dict) --
The IAM instance profile.
Arn (string) --
The Amazon Resource Name (ARN) of the instance profile.
Id (string) --
The ID of the instance profile.
State (string) --
The state of the association.
Timestamp (datetime) --
The time the IAM instance profile was associated with the instance.