ListQueues #
Overview #
Returns the list of the existing SQS queues in e_queue_url_t export parameter.
AWS API Reference: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_CreateQueue.html
Method #
CREATE_QUEUE
Import parameters #
This method uses the following import parameters:
-
i_user_name
Required: Yes.
The IAM user of AWS account.
-
i_queue
Required: Yes.
Name of the queue.
-
i_region
Required: Yes.
Name of the region.
Export Parameters #
This method use the following export parameters:
-
e_http_status
HTTP Status code. Returns 200 if no errors found.
-
e_response_headers
Returns information about the request in format Name/Value pair values.
-
e_response_content
Response content in string format.
-
e_queue_url_t
Table with the list of the SQS queues.
This table has two fields:
- queue: Name of the queue.
- url: URL adress of the queue.
Example #
DATA: lo_sqs_queue TYPE REF TO /lnkaws/cl_aws_sqs_queue,
lo_cx_aws_s3 TYPE REF TO /lnkaws/cx_aws_s3,
lv_http_status TYPE i,
lv_headers TYPE tihttpnvp,
lv_content TYPE string,
lt_queues TYPE /lnkaws/sqs_queue_url_tt.
TRY.
CREATE OBJECT lo_sqs_queue
EXPORTING
i_region = 'eu-west-1'
i_user_name = 'userawsconnector'.
CALL METHOD lo_sqs_queue->list_queue
EXPORTING
i_user_name = 'userawsconnector'
i_region = 'eu-west-1'
IMPORTING
e_http_status = lv_http_status
e_response_headers = lv_headers
e_response_content = lv_content
e_queue_url_t = lt_queues.
CATCH /lnkaws/cx_aws_s3 INTO lo_cx_aws_s3.
RAISE EXCEPTION lo_cx_aws_s3.
ENDTRY.