associate_iam_instance_profile¶
Operation¶
associate_iam_instance_profile
async
¶
associate_iam_instance_profile(request: AssociateIamInstanceProfileInput | AssociateIamInstanceProfileInputDict, /, *, plugins: list[Plugin] | None = None) -> AssociateIamInstanceProfileOutput
associate_iam_instance_profile(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[AssociateIamInstanceProfileInputDict]) -> AssociateIamInstanceProfileOutput
Associates an IAM instance profile with a running or stopped instance. You cannot associate more than one IAM instance profile with an instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
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 |
|---|---|
AssociateIamInstanceProfileOutput
|
An instance of |
Input¶
Pass the input fields as keyword arguments, or pass a model or dictionary as the first positional argument. Pass plugins separately as a keyword argument.
Model¶
AssociateIamInstanceProfileInput
dataclass
¶
Bases: _SerdeShape
Dataclass for AssociateIamInstanceProfileInput structure.
Attributes¶
iam_instance_profile
class-attribute
instance-attribute
¶
iam_instance_profile: IamInstanceProfileSpecification | None = ...
The IAM instance profile.
Dictionaries¶
AssociateIamInstanceProfileInputDict
¶
Bases: TypedDict
Dictionary form of AssociateIamInstanceProfileInput.
Attributes¶
iam_instance_profile
instance-attribute
¶
iam_instance_profile: Required[IamInstanceProfileSpecification | IamInstanceProfileSpecificationDict]
The IAM instance profile.
Output¶
AssociateIamInstanceProfileOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for AssociateIamInstanceProfileOutput 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
¶
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.