/AWS1/IF_KFC=>UPDATECONNECTOR()¶
About UpdateConnector¶
Updates the specified connector.
Method Signature¶
METHODS /AWS1/IF_KFC~UPDATECONNECTOR
IMPORTING
!IO_CAPACITY TYPE REF TO /AWS1/CL_KFCCAPACITYUPDATE OPTIONAL
!IT_CONNECTORCONFIGURATION TYPE /AWS1/CL_KFCCNCTORCONFUPDATE_W=>TT_CONNECTORCONFUPDATE OPTIONAL
!IV_CONNECTORARN TYPE /AWS1/KFC__STRING OPTIONAL
!IV_CURRENTVERSION TYPE /AWS1/KFC__STRING OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_kfcupdateconnectorrsp
RAISING
/AWS1/CX_KFCBADREQUESTEX
/AWS1/CX_KFCFORBIDDENEXCEPTION
/AWS1/CX_KFCINTERNALSERVERER00
/AWS1/CX_KFCNOTFOUNDEXCEPTION
/AWS1/CX_KFCSERVICEUNAVAILEX
/AWS1/CX_KFCTOOMANYREQUESTSEX
/AWS1/CX_KFCUNAUTHORIZEDEX
/AWS1/CX_KFCCLIENTEXC
/AWS1/CX_KFCSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_connectorarn TYPE /AWS1/KFC__STRING /AWS1/KFC__STRING¶
The Amazon Resource Name (ARN) of the connector that you want to update.
iv_currentversion TYPE /AWS1/KFC__STRING /AWS1/KFC__STRING¶
The current version of the connector that you want to update.
Optional arguments:¶
io_capacity TYPE REF TO /AWS1/CL_KFCCAPACITYUPDATE /AWS1/CL_KFCCAPACITYUPDATE¶
The target capacity.
it_connectorconfiguration TYPE /AWS1/CL_KFCCNCTORCONFUPDATE_W=>TT_CONNECTORCONFUPDATE TT_CONNECTORCONFUPDATE¶
A map of keys to values that represent the configuration for the connector.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_kfcupdateconnectorrsp /AWS1/CL_KFCUPDATECONNECTORRSP¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
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->updateconnector(
io_capacity = new /aws1/cl_kfccapacityupdate(
io_autoscaling = new /aws1/cl_kfcautoscalingupdate(
io_scaleinpolicy = new /aws1/cl_kfcscaleinplyupdate( 123 )
io_scaleoutpolicy = new /aws1/cl_kfcscaleoutplyupdate( 123 )
iv_maxworkercount = 123
iv_mcucount = 123
iv_minworkercount = 123
)
io_provisionedcapacity = new /aws1/cl_kfcprovcapacityupdate(
iv_mcucount = 123
iv_workercount = 123
)
)
it_connectorconfiguration = VALUE /aws1/cl_kfccnctorconfupdate_w=>tt_connectorconfupdate(
(
VALUE /aws1/cl_kfccnctorconfupdate_w=>ts_connectorconfupdate_maprow(
key = |string|
value = new /aws1/cl_kfccnctorconfupdate_w( |string| )
)
)
)
iv_connectorarn = |string|
iv_currentversion = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv___string = lo_result->get_connectorarn( ).
lv_connectorstate = lo_result->get_connectorstate( ).
lv___string = lo_result->get_connectoroperationarn( ).
ENDIF.