Skip to content

disassociate_iam_instance_profile

Operation

disassociate_iam_instance_profile

disassociate_iam_instance_profile(request: DisassociateIamInstanceProfileInput | DisassociateIamInstanceProfileInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[DisassociateIamInstanceProfileInputDict]) -> DisassociateIamInstanceProfileOutput

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

Use DescribeIamInstanceProfileAssociations to get the association ID.

Parameters:

Name Type Description Default
request DisassociateIamInstanceProfileInput | DisassociateIamInstanceProfileInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[DisassociateIamInstanceProfileInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
DisassociateIamInstanceProfileOutput

An instance of DisassociateIamInstanceProfileOutput.

disassociate_iam_instance_profile async

disassociate_iam_instance_profile(request: DisassociateIamInstanceProfileInput | DisassociateIamInstanceProfileInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[DisassociateIamInstanceProfileInputDict]) -> DisassociateIamInstanceProfileOutput

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

Use DescribeIamInstanceProfileAssociations to get the association ID.

Parameters:

Name Type Description Default
request DisassociateIamInstanceProfileInput | DisassociateIamInstanceProfileInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[DisassociateIamInstanceProfileInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
DisassociateIamInstanceProfileOutput

An instance of DisassociateIamInstanceProfileOutput.

Input

Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.

DisassociateIamInstanceProfileInputDict

Bases: TypedDict

Dictionary form of DisassociateIamInstanceProfileInput.

Attributes

association_id instance-attribute
association_id: Required[str]

The ID of the IAM instance profile association.

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.