Skip to content

/AWS1/IF_SHB=>CREATECONNECTORV2()

About CreateConnectorV2

Grants permission to create a connectorV2 based on input parameters.

Method Signature

METHODS /AWS1/IF_SHB~CREATECONNECTORV2
  IMPORTING
    !IV_NAME TYPE /AWS1/SHBNONEMPTYSTRING OPTIONAL
    !IV_DESCRIPTION TYPE /AWS1/SHBNONEMPTYSTRING OPTIONAL
    !IO_PROVIDER TYPE REF TO /AWS1/CL_SHBPROVIDERCONF OPTIONAL
    !IV_KMSKEYARN TYPE /AWS1/SHBNONEMPTYSTRING OPTIONAL
    !IT_TAGS TYPE /AWS1/CL_SHBTAGMAP_W=>TT_TAGMAP OPTIONAL
    !IV_CLIENTTOKEN TYPE /AWS1/SHBCLIENTTOKEN OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_shbcreatecnctorv2rsp
  RAISING
    /AWS1/CX_SHBACCESSDENIEDEX
    /AWS1/CX_SHBCONFLICTEXCEPTION
    /AWS1/CX_SHBINTERNALSERVEREX
    /AWS1/CX_SHBRESOURCENOTFOUNDEX
    /AWS1/CX_SHBSERVICEQUOTAEXCDEX
    /AWS1/CX_SHBTHROTTLINGEX
    /AWS1/CX_SHBVALIDATIONEX
    /AWS1/CX_SHBCLIENTEXC
    /AWS1/CX_SHBSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

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->createconnectorv2(
  io_provider = new /aws1/cl_shbproviderconf(
    io_jiracloud = new /aws1/cl_shbjiracloudpvdrconf( |string| )
    io_servicenow = new /aws1/cl_shbservicenowpvdrconf(
      iv_instancename = |string|
      iv_secretarn = |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( ).
  lv_connectorstatus = lo_result->get_connectorstatus( ).
ENDIF.