Skip to content

/AWS1/IF_IOX=>CREATECONNECTORDESTINATION()

About CreateConnectorDestination

Create a connector destination for connecting a cloud-to-cloud (C2C) connector to the customer's Amazon Web Services account.

Method Signature

METHODS /AWS1/IF_IOX~CREATECONNECTORDESTINATION
  IMPORTING
    !IV_NAME TYPE /AWS1/IOXCONNECTORDSTNAME OPTIONAL
    !IV_DESCRIPTION TYPE /AWS1/IOXCONNECTORDSTDESC OPTIONAL
    !IV_CLOUDCONNECTORID TYPE /AWS1/IOXCLOUDCONNECTORID OPTIONAL
    !IV_AUTHTYPE TYPE /AWS1/IOXAUTHTYPE OPTIONAL
    !IO_AUTHCONFIG TYPE REF TO /AWS1/CL_IOXAUTHCONFIG OPTIONAL
    !IO_SECRETSMANAGER TYPE REF TO /AWS1/CL_IOXSECRETSMANAGER OPTIONAL
    !IV_CLIENTTOKEN TYPE /AWS1/IOXCLIENTTOKEN OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ioxcreatecnctordstrsp
  RAISING
    /AWS1/CX_IOXACCESSDENIEDEX
    /AWS1/CX_IOXCONFLICTEXCEPTION
    /AWS1/CX_IOXINTERNALSERVEREX
    /AWS1/CX_IOXTHROTTLINGEX
    /AWS1/CX_IOXVALIDATIONEX
    /AWS1/CX_IOXCLIENTEXC
    /AWS1/CX_IOXSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_cloudconnectorid TYPE /AWS1/IOXCLOUDCONNECTORID /AWS1/IOXCLOUDCONNECTORID

The identifier of the C2C connector.

iv_authtype TYPE /AWS1/IOXAUTHTYPE /AWS1/IOXAUTHTYPE

The authentication type used for the connector destination, which determines how credentials and access are managed.

io_authconfig TYPE REF TO /AWS1/CL_IOXAUTHCONFIG /AWS1/CL_IOXAUTHCONFIG

The authentication configuration details for the connector destination, including OAuth settings and other authentication parameters.

io_secretsmanager TYPE REF TO /AWS1/CL_IOXSECRETSMANAGER /AWS1/CL_IOXSECRETSMANAGER

The AWS Secrets Manager configuration used to securely store and manage sensitive information for the connector destination.

Optional arguments:

iv_name TYPE /AWS1/IOXCONNECTORDSTNAME /AWS1/IOXCONNECTORDSTNAME

The display name of the connector destination.

iv_description TYPE /AWS1/IOXCONNECTORDSTDESC /AWS1/IOXCONNECTORDSTDESC

A description of the connector destination.

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_ioxcreatecnctordstrsp /AWS1/CL_IOXCREATECNCTORDSTRSP

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->createconnectordestination(
  io_authconfig = new /aws1/cl_ioxauthconfig(
    io_oauth = new /aws1/cl_ioxoauthconfig(
      io_proactrefreshtokenrenewal = new /aws1/cl_ioxproactrefreshtok00(
        iv_daysbeforerenewal = 123
        iv_enabled = ABAP_TRUE
      )
      iv_authurl = |string|
      iv_oauthcompleteredirecturl = |string|
      iv_scope = |string|
      iv_tokenendptauthntctnscheme = |string|
      iv_tokenurl = |string|
    )
  )
  io_secretsmanager = new /aws1/cl_ioxsecretsmanager(
    iv_arn = |string|
    iv_versionid = |string|
  )
  iv_authtype = |string|
  iv_clienttoken = |string|
  iv_cloudconnectorid = |string|
  iv_description = |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_connectordestinationid = lo_result->get_id( ).
ENDIF.