disassociate_iam_instance_profile
¶
disassociate_iam_instance_profile(
*,
config_overrides: Optional[EC2ClientConfig] = 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/ec2.py
40005 40006 40007 40008 40009 40010 40011 40012 40013 40014 40015 40016 40017 40018 40019 40020 40021 40022 40023 40024 40025 40026 40027 40028 40029 40030 40031 40032 40033 40034 40035 40036 40037 40038 40039 40040 40041 40042 40043 40044 40045 40046 40047 40048 40049 40050 40051 40052 40053 40054 40055 | |