delete_access_key¶
Operation¶
delete_access_key
async
¶
delete_access_key(input: DeleteAccessKeyInput, plugins: list[Plugin] | None = None) -> DeleteAccessKeyOutput
Deletes the access key pair associated with the specified IAM user.
If you do not specify a user name, IAM determines the user name implicitly based on the Amazon Web Services access key ID signing the request. This operation works for access keys under the Amazon Web Services account. Consequently, you can use this operation to manage Amazon Web Services account root user credentials even if the Amazon Web Services account has no associated users.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
DeleteAccessKeyInput
|
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 |
|---|---|
DeleteAccessKeyOutput
|
An instance of |
Input¶
DeleteAccessKeyInput
dataclass
¶
Bases: _SerdeShape
Dataclass for DeleteAccessKeyInput structure.
Attributes¶
access_key_id
class-attribute
instance-attribute
¶
access_key_id: str | None = ...
The access key ID for the access key ID and secret access key you want to delete.
This parameter allows (through its regex pattern) a string of characters that can consist of any upper or lowercased letter or digit.
user_name
class-attribute
instance-attribute
¶
user_name: str | None = ...
The name of the user whose access key pair you want 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¶
DeleteAccessKeyOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for DeleteAccessKeyOutput structure.