disassociate_iam_instance_profile
async
¶
disassociate_iam_instance_profile(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
association_id: Optional[IamInstanceProfileAssociationId] = None,
) -> DisassociateIamInstanceProfileResult
Disassociates an IAM instance profile from a running or stopped instance.
Use DescribeIamInstanceProfileAssociations to get the association ID.
Parameters:
-
association_id(Optional[IamInstanceProfileAssociationId], default:None) –The ID of the IAM instance profile association.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To disassociate an IAM instance profile This example disassociates the specified IAM instance profile from an instance.
Source code in docs_src/capo_ec2/_services/async_ec2.py
40542 40543 40544 40545 40546 40547 40548 40549 40550 40551 40552 40553 40554 40555 40556 40557 40558 40559 40560 40561 40562 40563 40564 40565 40566 40567 40568 40569 40570 40571 40572 40573 40574 40575 40576 40577 40578 40579 40580 40581 40582 40583 40584 40585 40586 40587 40588 40589 40590 40591 40592 40593 | |