Skip to content

EC2  >  Operations  >  disassociate_iam_instance_profile

disassociate_iam_instance_profile

Operation

disassociate_iam_instance_profile async

disassociate_iam_instance_profile(input: DisassociateIamInstanceProfileInput, plugins: list[Plugin] | None = None) -> DisassociateIamInstanceProfileOutput

Disassociates an IAM instance profile from a running or stopped instance.

Use DescribeIamInstanceProfileAssociations to get the association ID.

Parameters:

Name Type Description Default
input DisassociateIamInstanceProfileInput

An instance of DisassociateIamInstanceProfileInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
DisassociateIamInstanceProfileOutput

An instance of DisassociateIamInstanceProfileOutput.

Input

DisassociateIamInstanceProfileInput dataclass

Bases: _SerdeShape

Dataclass for DisassociateIamInstanceProfileInput structure.

Attributes

association_id class-attribute instance-attribute
association_id: str | None = ...

The ID of the IAM instance profile association.

Output

DisassociateIamInstanceProfileOutput dataclass

Bases: _SerdeShape

Dataclass for DisassociateIamInstanceProfileOutput structure.

Attributes

iam_instance_profile_association class-attribute instance-attribute
iam_instance_profile_association: IamInstanceProfileAssociation | None = ...

Information about the IAM instance profile association.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.