GetUser

GetUser #

Retrieves information about the specified IAM user, including the user’s creation date, path, unique ID, and ARN.

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

Method #

GET_USER

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.


Example #

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.
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_user
    IMPORTING
      e_http_status      = lv_http_status
      e_response_headers = lv_headers
      e_response_content = lv_content.
  CATCH /lnkaws/cx_aws_s3.
ENDTRY.