Constructor

Constructor #

Overview #

This method is used to instantiate the class.

To use this method must inform one of the 2 optional parameters:

  • i_user_name
  • i_access_key
  • i_secret_access_key
  • i_dbg

Import Parameters #

i_bucket_name (Required)

  • User Name

i_access_key (Required)

  • Access Key ID

i_secret_access_key (Required)

  • Secret Access Key

i_dbg

  • Indicates if the request headers have to be writed. (Only for development)

Example #

  DATA: lo_s3           TYPE REF TO /lnkc/cl_sdk_aws_s3,
        lo_cx_sdk_aws   TYPE REF TO /lnkc/cx_sdk_aws.

  TRY.
      CREATE OBJECT lo_s3
        EXPORTING
          i_user_name         = 'i_user_name'
          i_access_key        = 'i_access_key'
          i_secret_access_key = 'i_secret_access_key'.
    CATCH /lnkc/cx_sdk_aws INTO lo_cx_sdk_aws.
      " Error Message
  ENDTRY.