/AWS1/CL_IOX=>CREATECLOUDCONNECTOR()
¶
About CreateCloudConnector¶
Creates a C2C (cloud-to-cloud) connector.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_name
TYPE /AWS1/IOXDISPLAYNAME
/AWS1/IOXDISPLAYNAME
¶
The display name of the C2C connector.
io_endpointconfig
TYPE REF TO /AWS1/CL_IOXENDPOINTCONFIG
/AWS1/CL_IOXENDPOINTCONFIG
¶
The configuration details for the cloud connector endpoint, including connection parameters and authentication requirements.
Optional arguments:¶
iv_description
TYPE /AWS1/IOXCLOUDCONNECTORDESC
/AWS1/IOXCLOUDCONNECTORDESC
¶
A description of the C2C connector.
iv_endpointtype
TYPE /AWS1/IOXENDPOINTTYPE
/AWS1/IOXENDPOINTTYPE
¶
The type of endpoint used for the cloud connector, which defines how the connector communicates with external services.
iv_clienttoken
TYPE /AWS1/IOXCLIENTTOKEN
/AWS1/IOXCLIENTTOKEN
¶
An idempotency token. If you retry a request that completed successfully initially using the same client token and parameters, then the retry attempt will succeed without performing any further actions.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_ioxcrecloudcnctorrsp
/AWS1/CL_IOXCRECLOUDCNCTORRSP
¶
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->/aws1/if_iox~createcloudconnector(
io_endpointconfig = new /aws1/cl_ioxendpointconfig( new /aws1/cl_ioxlambdaconfig( |string| ) )
iv_clienttoken = |string|
iv_description = |string|
iv_endpointtype = |string|
iv_name = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_cloudconnectorid = lo_result->get_id( ).
ENDIF.
CreateCloudConnector happy path for TP Link¶
CreateCloudConnector happy path for TP Link
DATA(lo_result) = lo_client->/aws1/if_iox~createcloudconnector(
io_endpointconfig = new /aws1/cl_ioxendpointconfig( new /aws1/cl_ioxlambdaconfig( |arn:aws:lambda:us-east-1:111122223333:function:my-function:myVersion| ) )
iv_clienttoken = |1234567890|
iv_endpointtype = |LAMBDA|
iv_name = |Connector for TP Link Cloud|
).
CreateCloudConnector happy path for Ring¶
CreateCloudConnector happy path for Ring
DATA(lo_result) = lo_client->/aws1/if_iox~createcloudconnector(
io_endpointconfig = new /aws1/cl_ioxendpointconfig( new /aws1/cl_ioxlambdaconfig( |arn:aws:lambda:us-east-1:111122223333:function:my-function:myVersion| ) )
iv_clienttoken = |12312321|
iv_endpointtype = |LAMBDA|
iv_name = |Connector for Ring Cloud|
).
CreateCloudConnector error path for Ring connector which already exists¶
CreateCloudConnector error path for Ring connector which already exists
DATA(lo_result) = lo_client->/aws1/if_iox~createcloudconnector(
io_endpointconfig = new /aws1/cl_ioxendpointconfig( new /aws1/cl_ioxlambdaconfig( |arn:aws:lambda:us-east-1:111122223333:function:my-function:myVersion2| ) )
iv_clienttoken = |1213123123|
iv_endpointtype = |LAMBDA|
iv_name = |Connector for Ring Cloud|
).