Constructor

Constructor #

Overview #

This method is used to instantiate the class.

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

  • i_region.
  • i_user_name.

Import Parameters #

  • i_region

    Required: Yes.

    Name of the region.

  • i_user_name

    Required: Yes.

    The IAM user of AWS account.


Example #

DATA: lo_sns_topic TYPE REF TO /lnkaws/cl_aws_sns_topic.
TRY.
    CREATE OBJECT lo_sns_topic
      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.