Skip to content

/AWS1/CL_SHB=>CREATECONNECTORV2()

About CreateConnectorV2

Grants permission to create a connectorV2 based on input parameters. This API is in preview release and subject to change.

Method Signature

IMPORTING

Required arguments:

iv_name TYPE /AWS1/SHBNONEMPTYSTRING /AWS1/SHBNONEMPTYSTRING

The unique name of the connectorV2.

io_provider TYPE REF TO /AWS1/CL_SHBPROVIDERCONF /AWS1/CL_SHBPROVIDERCONF

The third-party provider’s service configuration.

Optional arguments:

iv_description TYPE /AWS1/SHBNONEMPTYSTRING /AWS1/SHBNONEMPTYSTRING

The description of the connectorV2.

iv_kmskeyarn TYPE /AWS1/SHBNONEMPTYSTRING /AWS1/SHBNONEMPTYSTRING

The Amazon Resource Name (ARN) of KMS key used to encrypt secrets for the connectorV2.

it_tags TYPE /AWS1/CL_SHBTAGMAP_W=>TT_TAGMAP TT_TAGMAP

The tags to add to the connectorV2 when you create.

iv_clienttoken TYPE /AWS1/SHBCLIENTTOKEN /AWS1/SHBCLIENTTOKEN

A unique identifier used to ensure idempotency.

RETURNING

oo_output TYPE REF TO /aws1/cl_shbcreatecnctorv2rsp /AWS1/CL_SHBCREATECNCTORV2RSP

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_shb~createconnectorv2(
  io_provider = new /aws1/cl_shbproviderconf(
    io_jiracloud = new /aws1/cl_shbjiracloudpvdrconf( |string| )
    io_servicenow = new /aws1/cl_shbservicenowpvdrconf(
      iv_clientid = |string|
      iv_clientsecret = |string|
      iv_instancename = |string|
    )
  )
  it_tags = VALUE /aws1/cl_shbtagmap_w=>tt_tagmap(
    (
      VALUE /aws1/cl_shbtagmap_w=>ts_tagmap_maprow(
        key = |string|
        value = new /aws1/cl_shbtagmap_w( |string| )
      )
    )
  )
  iv_clienttoken = |string|
  iv_description = |string|
  iv_kmskeyarn = |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_nonemptystring = lo_result->get_connectorarn( ).
  lv_nonemptystring = lo_result->get_connectorid( ).
  lv_nonemptystring = lo_result->get_authurl( ).
ENDIF.