Skip to content

IAM  >  Operations  >  get_access_key_last_used

get_access_key_last_used

Operation

get_access_key_last_used async

get_access_key_last_used(request: GetAccessKeyLastUsedInput | GetAccessKeyLastUsedInputDict, /, *, plugins: list[Plugin] | None = None) -> GetAccessKeyLastUsedOutput
get_access_key_last_used(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[GetAccessKeyLastUsedInputDict]) -> GetAccessKeyLastUsedOutput

Retrieves information about when the specified access key was last used. The information includes the date and time of last use, along with the Amazon Web Services service and Region that were specified in the last request made with that key.

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
GetAccessKeyLastUsedOutput

An instance of GetAccessKeyLastUsedOutput.

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

GetAccessKeyLastUsedInput dataclass

Bases: _SerdeShape

Dataclass for GetAccessKeyLastUsedInput structure.

Attributes
access_key_id class-attribute instance-attribute
access_key_id: str | None = ...

The identifier of an access key.

This parameter allows (through its regex pattern) a string of characters that can consist of any upper or lowercased letter or digit.

Dictionaries

GetAccessKeyLastUsedInputDict

Bases: TypedDict

Dictionary form of GetAccessKeyLastUsedInput.

Attributes
access_key_id instance-attribute
access_key_id: Required[str]

The identifier of an access key.

This parameter allows (through its regex pattern) a string of characters that can consist of any upper or lowercased letter or digit.

Output

GetAccessKeyLastUsedOutput dataclass

Bases: _SerdeShape

Contains the response to a successful GetAccessKeyLastUsed request. It is also returned as a member of the AccessKeyMetaData structure returned by the ListAccessKeys action.

Attributes

access_key_last_used class-attribute instance-attribute
access_key_last_used: AccessKeyLastUsed | None = ...

Contains information about the last time the access key was used.

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.

user_name class-attribute instance-attribute
user_name: str | None = ...

The name of the IAM user that owns this access key.