delete_access_key¶
Operation¶
delete_access_key
¶
delete_access_key(request: DeleteAccessKeyInput | DeleteAccessKeyInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[DeleteAccessKeyInputDict]) -> 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 |
|---|---|---|---|
request
|
DeleteAccessKeyInput | DeleteAccessKeyInputDict | 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[DeleteAccessKeyInputDict]
|
The input fields as keyword arguments. |
{}
|
Returns:
| Type | Description |
|---|---|
DeleteAccessKeyOutput
|
An instance of |
delete_access_key
async
¶
delete_access_key(request: DeleteAccessKeyInput | DeleteAccessKeyInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[DeleteAccessKeyInputDict]) -> 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 |
|---|---|---|---|
request
|
DeleteAccessKeyInput | DeleteAccessKeyInputDict | 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[DeleteAccessKeyInputDict]
|
The input fields as keyword arguments. |
{}
|
Returns:
| Type | Description |
|---|---|
DeleteAccessKeyOutput
|
An instance of |
Input¶
Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.
DeleteAccessKeyInputDict
¶
Bases: TypedDict
Dictionary form of DeleteAccessKeyInput.
Attributes¶
access_key_id
instance-attribute
¶
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
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: _+=,.@-
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.