GetAccessKeyLastUsed

GetAccessKeyLastUsed #

Overview #

Retrieves information about when the specified access key was last used.

AWS API Reference: https://docs.aws.amazon.com/IAM/latest/APIReference/API_GetAccessKeyLastUsed.html

Method #

GET_ACCESS_KEY_LAST_USED

Export Parameters #

This method use the following export parameters:

  • e_http_status

    HTTP Status code. Returns 200 if no errors found.

  • e_response_headers

    Returns information about the request in format Name/Value pair values.

  • e_response_content

    Returns response information.

  • e_region

    Returns the last used region.

  • e_service_name

    Returns the last used service name.


Examples #

DATA: lo_iam         TYPE REF TO /lnkaws/cl_aws_iam,
      lo_cx_aws_s3   TYPE REF TO /lnkaws/cx_aws_s3,
      lv_http_status TYPE i,
      lv_headers     TYPE tihttpnvp,
      lv_content     TYPE string,
      lv_region      TYPE string,
      lv_servicename TYPE string.
TRY.
  CREATE OBJECT lo_iam
    EXPORTING
      i_user_name         = 'user_name'
      i_access_key        = 'access_key'
      i_secret_access_key = 'secret_access_key'.

  CALL METHOD lo_iam->get_access_key_last_used
    IMPORTING
      e_http_status      = lv_http_status
      e_response_headers = lv_headers
      e_response_content = lv_content
      e_region           = lv_region
      e_servicename      = lv_servicename.
  CATCH /lnkaws/cx_aws_s3 INTO lo_cx_aws_s3.
ENDTRY.