delete_instance_profile¶
Operation¶
delete_instance_profile
async
¶
delete_instance_profile(input: DeleteInstanceProfileInput, plugins: list[Plugin] | None = None) -> DeleteInstanceProfileOutput
Deletes the specified instance profile. The instance profile must not have an associated role.
Warning
Make sure that you do not have any Amazon EC2 instances running with the instance profile you are about to delete. Deleting a role or instance profile that is associated with a running instance will break any applications running on the instance.
For more information about instance profiles, see Using instance profiles in the IAM User Guide.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
DeleteInstanceProfileInput
|
An instance of |
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 |
|---|---|
DeleteInstanceProfileOutput
|
An instance of |
Input¶
DeleteInstanceProfileInput
dataclass
¶
Bases: _SerdeShape
Dataclass for DeleteInstanceProfileInput structure.
Attributes¶
instance_profile_name
class-attribute
instance-attribute
¶
instance_profile_name: str | None = ...
The name of the instance profile to delete.
This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
Output¶
DeleteInstanceProfileOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for DeleteInstanceProfileOutput structure.