/AWS1/IF_SQS=>LISTDEADLETTERSOURCEQUEUES()¶
About ListDeadLetterSourceQueues¶
Returns a list of your queues that have the RedrivePolicy queue attribute
configured with a dead-letter queue.
The ListDeadLetterSourceQueues methods supports pagination. Set
parameter MaxResults in the request to specify the maximum number of
results to be returned in the response. If you do not set MaxResults, the
response includes a maximum of 1,000 results. If you set MaxResults and
there are additional results to display, the response includes a value for
NextToken. Use NextToken as a parameter in your next
request to ListDeadLetterSourceQueues to receive the next page of results.
For more information about using dead-letter queues, see Using Amazon SQS Dead-Letter Queues in the Amazon SQS Developer Guide.
Method Signature¶
METHODS /AWS1/IF_SQS~LISTDEADLETTERSOURCEQUEUES
IMPORTING
!IV_QUEUEURL TYPE /AWS1/SQSSTRING OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/SQSTOKEN OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/SQSBOXEDINTEGER OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_sqslstdeadlettersrc01
RAISING
/AWS1/CX_SQSINVALIDADDRESS
/AWS1/CX_SQSINVALIDSECURITY
/AWS1/CX_SQSQUEUEDOESNOTEXIST
/AWS1/CX_SQSREQUESTTHROTTLED
/AWS1/CX_SQSUNSUPPORTEDOP
/AWS1/CX_SQSCLIENTEXC
/AWS1/CX_SQSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_queueurl TYPE /AWS1/SQSSTRING /AWS1/SQSSTRING¶
The URL of a dead-letter queue.
Queue URLs and names are case-sensitive.
Optional arguments:¶
iv_nexttoken TYPE /AWS1/SQSTOKEN /AWS1/SQSTOKEN¶
Pagination token to request the next set of results.
iv_maxresults TYPE /AWS1/SQSBOXEDINTEGER /AWS1/SQSBOXEDINTEGER¶
Maximum number of results to include in the response. Value range is 1 to 1000. You must set
MaxResultsto receive a value forNextTokenin the response.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_sqslstdeadlettersrc01 /AWS1/CL_SQSLSTDEADLETTERSRC01¶
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->listdeadlettersourcequeues(
iv_maxresults = 123
iv_nexttoken = |string|
iv_queueurl = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
LOOP AT lo_result->get_queueurls( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
lv_token = lo_result->get_nexttoken( ).
ENDIF.