Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GetAccessKeyLastUsedCommand

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.

example

Use a bare-bones client and the command you need to make an API call.

import { IAMClient, GetAccessKeyLastUsedCommand } from "@aws-sdk/client-iam"; // ES Modules import
// const { IAMClient, GetAccessKeyLastUsedCommand } = require("@aws-sdk/client-iam"); // CommonJS import
const client = new IAMClient(config);
const command = new GetAccessKeyLastUsedCommand(input);
const response = await client.send(command);
see

GetAccessKeyLastUsedCommandInput for command's input shape.

see

GetAccessKeyLastUsedCommandOutput for command's response shape.

see

config for IAMClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: GetAccessKeyLastUsedCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions