describe_iam_instance_profile_associations
async
¶
describe_iam_instance_profile_associations(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
association_ids: Optional[AssociationIdList] = None,
filters: Optional[FilterList] = None,
max_results: Optional[DescribeIamInstanceProfileAssociationsMaxResults] = None,
next_token: Optional[NextToken] = None,
) -> DescribeIamInstanceProfileAssociationsResult
Describes your IAM instance profile associations.
Parameters:
-
association_ids(Optional[AssociationIdList], default:None) –The IAM instance profile associations.
-
filters(Optional[FilterList], default:None) –The filters.
-
instance-id- The ID of the instance. -
state- The state of the association (associating|associated|disassociating).
-
-
max_results(Optional[DescribeIamInstanceProfileAssociationsMaxResults], default:None) –The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.
-
next_token(Optional[NextToken], default:None) –The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To describe an IAM instance profile association This example describes the specified IAM instance profile association.
>>> await client.describe_iam_instance_profile_associations(association_ids=['iip-assoc-0db249b1f25fa24b8'])
Source code in docs_src/capo_ec2/_services/async_ec2.py
25732 25733 25734 25735 25736 25737 25738 25739 25740 25741 25742 25743 25744 25745 25746 25747 25748 25749 25750 25751 25752 25753 25754 25755 25756 25757 25758 25759 25760 25761 25762 25763 25764 25765 25766 25767 25768 25769 25770 25771 25772 25773 25774 25775 25776 25777 25778 25779 25780 25781 25782 25783 25784 25785 25786 25787 25788 25789 25790 25791 25792 25793 25794 25795 25796 25797 | |