describe_iam_instance_profile_associations
¶
describe_iam_instance_profile_associations(
*,
config_overrides: Optional[EC2ClientConfig] = 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.
>>> client.describe_iam_instance_profile_associations(association_ids=['iip-assoc-0db249b1f25fa24b8'])
Source code in docs_src/capo_ec2/_services/ec2.py
25380 25381 25382 25383 25384 25385 25386 25387 25388 25389 25390 25391 25392 25393 25394 25395 25396 25397 25398 25399 25400 25401 25402 25403 25404 25405 25406 25407 25408 25409 25410 25411 25412 25413 25414 25415 25416 25417 25418 25419 25420 25421 25422 25423 25424 25425 25426 25427 25428 25429 25430 25431 25432 25433 25434 25435 25436 25437 25438 25439 25440 25441 25442 25443 25444 | |