Constructor

Constructor #

Overview #

This method is used to instantiate the class.


Import parameters #

This constructor uses the following import parameters.

  • i_user_name

    Required: Yes.

    The IAM user of AWS account.

  • i_region

    Name of the region where Athena database was created.

    Default: ‘us-east-1’.


Example #

DATA: lo_athena_tables TYPE REF TO /lnkaws/cl_aws_athena_tables,
      lo_cx_aws_s3     TYPE REF TO /lnkaws/cx_aws_s3.
TRY.
    CREATE OBJECT lo_athena_tables
      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.