Skip to content

/AWS1/IF_IN2=>UPDATECONNECTOR()

About UpdateConnector

Updates the description or provider-specific configuration details of an existing connector.

Method Signature

METHODS /AWS1/IF_IN2~UPDATECONNECTOR
  IMPORTING
    !IV_CONNECTORARN TYPE /AWS1/IN2CONNECTORARN OPTIONAL
    !IV_DESCRIPTION TYPE /AWS1/IN2CONNECTORDESCRIPTION OPTIONAL
    !IO_PROVIDERDETAIL TYPE REF TO /AWS1/CL_IN2PVDRDETAILUPDATE OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_in2updatecnctrrsp
  RAISING
    /AWS1/CX_IN2ACCESSDENIEDEX
    /AWS1/CX_IN2CONFLICTEXCEPTION
    /AWS1/CX_IN2INTERNALSERVEREX
    /AWS1/CX_IN2RESOURCENOTFOUNDEX
    /AWS1/CX_IN2THROTTLINGEX
    /AWS1/CX_IN2VALIDATIONEX
    /AWS1/CX_IN2CLIENTEXC
    /AWS1/CX_IN2SERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_connectorarn TYPE /AWS1/IN2CONNECTORARN /AWS1/IN2CONNECTORARN

The Amazon Resource Name (ARN) of the connector to update.

Optional arguments:

iv_description TYPE /AWS1/IN2CONNECTORDESCRIPTION /AWS1/IN2CONNECTORDESCRIPTION

The updated description of the connector.

io_providerdetail TYPE REF TO /AWS1/CL_IN2PVDRDETAILUPDATE /AWS1/CL_IN2PVDRDETAILUPDATE

The updated provider-specific configuration details for the connector.

RETURNING

oo_output TYPE REF TO /aws1/cl_in2updatecnctrrsp /AWS1/CL_IN2UPDATECNCTRRSP

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_providerdetail = new /aws1/cl_in2pvdrdetailupdate(
    io_azure = new /aws1/cl_in2azurepvdrdetailupd(
      io_scopeconfiguration = new /aws1/cl_in2azurescopeconfinp(
        io_containerimagescanning = new /aws1/cl_in2scopeconfinput(
          it_scopevalues = VALUE /aws1/cl_in2scopevaluelist_w=>tt_scopevaluelist(
            ( new /aws1/cl_in2scopevaluelist_w( |string| ) )
          )
          iv_scopetype = |string|
        )
        io_serverlessscanning = new /aws1/cl_in2scopeconfinput(
          it_scopevalues = VALUE /aws1/cl_in2scopevaluelist_w=>tt_scopevaluelist(
            ( new /aws1/cl_in2scopevaluelist_w( |string| ) )
          )
          iv_scopetype = |string|
        )
        io_vmscanning = new /aws1/cl_in2scopeconfinput(
          it_scopevalues = VALUE /aws1/cl_in2scopevaluelist_w=>tt_scopevaluelist(
            ( new /aws1/cl_in2scopevaluelist_w( |string| ) )
          )
          iv_scopetype = |string|
        )
      )
      it_azureregions = VALUE /aws1/cl_in2azureregionlist_w=>tt_azureregionlist(
        ( new /aws1/cl_in2azureregionlist_w( |string| ) )
      )
      iv_autoinstallvmscanner = ABAP_TRUE
    )
  )
  iv_connectorarn = |string|
  iv_description = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_connectorarn = lo_result->get_connectorarn( ).
ENDIF.

Expand the Azure regions covered by a connector

Expand the Azure regions covered by a connector

DATA(lo_result) = lo_client->updateconnector(
  io_providerdetail = new /aws1/cl_in2pvdrdetailupdate(
    io_azure = new /aws1/cl_in2azurepvdrdetailupd(
      it_azureregions = VALUE /aws1/cl_in2azureregionlist_w=>tt_azureregionlist(
        ( new /aws1/cl_in2azureregionlist_w( |eastus| ) )
        ( new /aws1/cl_in2azureregionlist_w( |westus| ) )
      )
    )
  )
  iv_connectorarn = |arn:aws:inspector2:us-east-1:123456789012:connector/6ccf8549-b52b-57ca-bf52-a2266da3c53a|
).