Skip to content

/AWS1/IF_CFS=>GETCONNECTOR()

About GetConnector

Returns the details of the specified connector.

Method Signature

METHODS /AWS1/IF_CFS~GETCONNECTOR
  IMPORTING
    !IV_ARN TYPE /AWS1/CFSAMAZONRESOURCENAME OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cfsgetcnctrresponse
  RAISING
    /AWS1/CX_CFSRESOURCENOTFOUNDEX
    /AWS1/CX_CFSVALIDATIONEX
    /AWS1/CX_CFSCLIENTEXC
    /AWS1/CX_CFSSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_arn TYPE /AWS1/CFSAMAZONRESOURCENAME /AWS1/CFSAMAZONRESOURCENAME

The Amazon Resource Name (ARN) of the connector.

RETURNING

oo_output TYPE REF TO /aws1/cl_cfsgetcnctrresponse /AWS1/CL_CFSGETCNCTRRESPONSE

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->getconnector( |string| ).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_connector = lo_result->get_connector( ).
  IF lo_connector IS NOT INITIAL.
    lv_connectorname = lo_connector->get_name( ).
    lv_amazonresourcename = lo_connector->get_arn( ).
    lo_connectorconfiguration = lo_connector->get_connectorconfiguration( ).
    IF lo_connectorconfiguration IS NOT INITIAL.
      lo_azureconnectorconfigura = lo_connectorconfiguration->get_azure( ).
      IF lo_azureconnectorconfigura IS NOT INITIAL.
        lv_azuretenantidentifier = lo_azureconnectorconfigura->get_tenantidentifier( ).
        lv_azureclientidentifier = lo_azureconnectorconfigura->get_clientidentifier( ).
      ENDIF.
    ENDIF.
    lv_date = lo_connector->get_createdtime( ).
  ENDIF.
ENDIF.