Skip to content

/AWS1/IF_MDI=>LISTFEEDS()

About ListFeeds

Displays a list of feeds that belong to this AWS account.

Method Signature

METHODS /AWS1/IF_MDI~LISTFEEDS
  IMPORTING
    !IV_MAXRESULTS TYPE /AWS1/MDIINTEGER OPTIONAL
    !IV_NEXTTOKEN TYPE /AWS1/MDISTRING OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mdilistfeedsresponse
  RAISING
    /AWS1/CX_MDIACCESSDENIEDEX
    /AWS1/CX_MDIINTSERVERERROREX
    /AWS1/CX_MDIRESOURCENOTFOUNDEX
    /AWS1/CX_MDITOOMANYREQUESTEX
    /AWS1/CX_MDIVLDTNEXCEPTION
    /AWS1/CX_MDICLIENTEXC
    /AWS1/CX_MDISERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Optional arguments:

iv_maxresults TYPE /AWS1/MDIINTEGER /AWS1/MDIINTEGER

The maximum number of results to return per API request.

For example, you submit a list request with MaxResults set at 5. Although 20 items match your request, the service returns no more than the first 5 items. (The service also returns a NextToken value that you can use to fetch the next batch of results.)

The service might return fewer results than the MaxResults value. If MaxResults is not included in the request, the service defaults to pagination with a maximum of 10 results per page.

Valid Range: Minimum value of 1. Maximum value of 1000.

iv_nexttoken TYPE /AWS1/MDISTRING /AWS1/MDISTRING

The token that identifies the batch of results that you want to see.

For example, you submit a ListBridges request with MaxResults set at 5. The service returns the first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the ListBridges request a second time and specify the NextToken value.

RETURNING

oo_output TYPE REF TO /aws1/cl_mdilistfeedsresponse /AWS1/CL_MDILISTFEEDSRESPONSE

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->listfeeds(
  iv_maxresults = 123
  iv_nexttoken = |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_feeds( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_feedarn = lo_row_1->get_arn( ).
      lv_feedid = lo_row_1->get_id( ).
      lv_resourcename = lo_row_1->get_name( ).
      lo_feedassociation = lo_row_1->get_association( ).
      IF lo_feedassociation IS NOT INITIAL.
        lv_associatedresourcename = lo_feedassociation->get_associatedresourcename( ).
      ENDIF.
      lv_feedstatus = lo_row_1->get_status( ).
    ENDIF.
  ENDLOOP.
  lv_string = lo_result->get_nexttoken( ).
ENDIF.