Constructor

Constructor #

Overview #

This method is used to instantiate the class.


Import parameters #

This constructor uses the following import parameters.

  • i_region

    Required: Yes.

    Name of the region.

  • i_user_name

    Required: Yes.

    The IAM user of AWS account.


Example #

DATA: lo_kms_function TYPE REF TO /lnkaws/cl_aws_kms_function,
      lo_cx_aws_s3    TYPE REF TO /lnkaws/cx_aws_s3.
TRY.
    CREATE OBJECT lo_kms_function
      EXPORTING
        i_region    = 'eu-west-1'
        i_user_name = 'userawsconnector'.
  CATCH /lnkaws/cx_aws_s3 INTO lo_cx_aws_s3.
    RAISE EXCEPTION lo_cx_aws_s3.
ENDTRY.