Skip to content

/AWS1/IF_SSM=>LISTCLOUDCONNECTORS()

About ListCloudConnectors

Returns a list of cloud connectors in the current Amazon Web Services account and Amazon Web Services Region.

Method Signature

METHODS /AWS1/IF_SSM~LISTCLOUDCONNECTORS
  IMPORTING
    !IV_MAXRESULTS TYPE /AWS1/SSMCLOUDCNCTRMAXRESULTS OPTIONAL
    !IV_NEXTTOKEN TYPE /AWS1/SSMNEXTTOKEN OPTIONAL
    !IT_FILTERS TYPE /AWS1/CL_SSMCLOUDCNCTRFILTER=>TT_CLOUDCONNECTORFILTERLIST OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ssmlistcloudcnctrslt
  RAISING
    /AWS1/CX_SSMINTERNALSERVERERR
    /AWS1/CX_SSMCLIENTEXC
    /AWS1/CX_SSMSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Optional arguments:

iv_maxresults TYPE /AWS1/SSMCLOUDCNCTRMAXRESULTS /AWS1/SSMCLOUDCNCTRMAXRESULTS

The maximum number of items to return for this call.

iv_nexttoken TYPE /AWS1/SSMNEXTTOKEN /AWS1/SSMNEXTTOKEN

The token for the next set of items to return. (You received this token from a previous call.)

it_filters TYPE /AWS1/CL_SSMCLOUDCNCTRFILTER=>TT_CLOUDCONNECTORFILTERLIST TT_CLOUDCONNECTORFILTERLIST

One or more filters to limit the cloud connectors returned in the response.

RETURNING

oo_output TYPE REF TO /aws1/cl_ssmlistcloudcnctrslt /AWS1/CL_SSMLISTCLOUDCNCTRSLT

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->listcloudconnectors(
  it_filters = VALUE /aws1/cl_ssmcloudcnctrfilter=>tt_cloudconnectorfilterlist(
    (
      new /aws1/cl_ssmcloudcnctrfilter(
        it_filtervalues = VALUE /aws1/cl_ssmcloudconnfltval_w=>tt_cloudconnectorfiltervalues(
          ( new /aws1/cl_ssmcloudconnfltval_w( |string| ) )
        )
        iv_filterkey = |string|
      )
    )
  )
  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_cloudconnectors( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_cloudconnectorid = lo_row_1->get_cloudconnectorid( ).
      lv_displayname = lo_row_1->get_displayname( ).
      lv_cloudconnectordescripti = lo_row_1->get_description( ).
      lv_cloudconnectoriamrolear = lo_row_1->get_rolearn( ).
      lv_datetime = lo_row_1->get_createdat( ).
      lv_datetime = lo_row_1->get_updatedat( ).
    ENDIF.
  ENDLOOP.
  lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.