Skip to main content

IAM Get Access Key Last Used

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.

External Documentation

To learn more, visit the AWS documentation.

Basic Parameters

ParameterDescription
AWS Region(s)Enter the desired AWS Region(s).

To execute the action in multiple regions, provide a comma-separated list.
For example: us-east-1,eu-west-2.

If you wish to run the action in all available regions, use the asterisk symbol (*) instead.
Access Key IDThe 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.

Advanced Parameters

ParameterDescription
Disable XML To JSON Auto ConvertWhen checked, XML responses are not automatically converted into JSON format.

Example Output

{
"AccessKeyLastUsed": {
"LastUsedDate": "date-time",
"Region": "string",
"ServiceName": "string"
},
"UserName": "[\\w+=,.@-]+"
}

Automation Library Example

Iam Get Access Key Last Used with Aws and Send Results Via Email

Automation LibraryPreview this Automation on desktop