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_sqs_queue TYPE REF TO /lnkaws/cl_aws_sqs_queue,
lo_cx_aws_s3 TYPE REF TO /lnkaws/cx_aws_s3.
TRY.
CREATE OBJECT lo_sqs_queue
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.