Skip to content

/AWS1/IF_ACU=>LISTSERVICES()

About ListServices

Returns a paginated list of Amazon Web Services service identifiers that you can use as values for the visibleServices setting in UpdateAccountCustomizations. The available services vary by Amazon Web Services partition. Use pagination to retrieve all results.

The visibleServices setting controls only the appearance of services in the Amazon Web Services Management Console. It does not restrict access through the CLI, SDKs, or other APIs.

Method Signature

METHODS /AWS1/IF_ACU~LISTSERVICES
  IMPORTING
    !IV_NEXTTOKEN TYPE /AWS1/ACUNEXTTOKEN OPTIONAL
    !IV_MAXRESULTS TYPE /AWS1/ACUMAXRESULTS OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_aculistservicesoutput
  RAISING
    /AWS1/CX_ACUACCESSDENIEDEX
    /AWS1/CX_ACUINTERNALSERVEREX
    /AWS1/CX_ACUTHROTTLINGEX
    /AWS1/CX_ACUVLDTNEXCEPTION
    /AWS1/CX_ACUCLIENTEXC
    /AWS1/CX_ACUSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Optional arguments:

iv_nexttoken TYPE /AWS1/ACUNEXTTOKEN /AWS1/ACUNEXTTOKEN

The token for retrieving the next page of results. Use the nextToken value from a previous response.

iv_maxresults TYPE /AWS1/ACUMAXRESULTS /AWS1/ACUMAXRESULTS

The maximum number of results to return per page.

RETURNING

oo_output TYPE REF TO /aws1/cl_aculistservicesoutput /AWS1/CL_ACULISTSERVICESOUTPUT

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->listservices(
  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.
  lv_nexttoken = lo_result->get_nexttoken( ).
  LOOP AT lo_result->get_services( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_service = lo_row_1->get_value( ).
    ENDIF.
  ENDLOOP.
ENDIF.

List available services

Retrieves a paginated list of available AWS services

DATA(lo_result) = lo_client->listservices( ).