Skip to content

Get Access Key Last Used

iam_get_access_key_last_used R Documentation

Retrieves information about when the specified access key was last used

Description

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.

Usage

iam_get_access_key_last_used(AccessKeyId)

Arguments

AccessKeyId

[required] 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.

Value

A list with the following syntax:

list(
  UserName = "string",
  AccessKeyLastUsed = list(
    LastUsedDate = as.POSIXct(
      "2015-01-01"
    ),
    ServiceName = "string",
    Region = "string"
  )
)

Request syntax

svc$get_access_key_last_used(
  AccessKeyId = "string"
)