Skip to content

/AWS1/IF_SSM=>CREATECLOUDCONNECTOR()

About CreateCloudConnector

Creates a cloud connector that establishes a connection between Systems Manager and a third-party cloud environment.

Method Signature

METHODS /AWS1/IF_SSM~CREATECLOUDCONNECTOR
  IMPORTING
    !IV_DISPLAYNAME TYPE /AWS1/SSMDISPLAYNAME OPTIONAL
    !IV_ROLEARN TYPE /AWS1/SSMCLOUDCNCTRIAMROLEARN OPTIONAL
    !IV_DESCRIPTION TYPE /AWS1/SSMCLOUDCONNECTORDESC OPTIONAL
    !IO_CONFIGURATION TYPE REF TO /AWS1/CL_SSMCLOUDCONNECTORCONF OPTIONAL
    !IV_CONFIGCONNECTORARN TYPE /AWS1/SSMCONFIGCONNECTORARN OPTIONAL
    !IT_TAGS TYPE /AWS1/CL_SSMTAG=>TT_TAGLIST OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ssmcrecloudcnctrrslt
  RAISING
    /AWS1/CX_SSMCONFLICTEXCEPTION
    /AWS1/CX_SSMINTERNALSERVERERR
    /AWS1/CX_SSMSERVICEQUOTAEXCDEX
    /AWS1/CX_SSMCLIENTEXC
    /AWS1/CX_SSMSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_displayname TYPE /AWS1/SSMDISPLAYNAME /AWS1/SSMDISPLAYNAME

A friendly name for the cloud connector.

iv_rolearn TYPE /AWS1/SSMCLOUDCNCTRIAMROLEARN /AWS1/SSMCLOUDCNCTRIAMROLEARN

The Amazon Resource Name (ARN) of the IAM role that the cloud connector uses to communicate with the third-party cloud environment.

io_configuration TYPE REF TO /AWS1/CL_SSMCLOUDCONNECTORCONF /AWS1/CL_SSMCLOUDCONNECTORCONF

The configuration details for connecting to the third-party cloud environment.

iv_configconnectorarn TYPE /AWS1/SSMCONFIGCONNECTORARN /AWS1/SSMCONFIGCONNECTORARN

The ARN of the Amazon Web Services Config connector associated with this cloud connector.

Optional arguments:

iv_description TYPE /AWS1/SSMCLOUDCONNECTORDESC /AWS1/SSMCLOUDCONNECTORDESC

A description for the cloud connector.

it_tags TYPE /AWS1/CL_SSMTAG=>TT_TAGLIST TT_TAGLIST

Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment.

RETURNING

oo_output TYPE REF TO /aws1/cl_ssmcrecloudcnctrrslt /AWS1/CL_SSMCRECLOUDCNCTRRSLT

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->createcloudconnector(
  io_configuration = new /aws1/cl_ssmcloudconnectorconf(
    io_azureconfiguration = new /aws1/cl_ssmazureconfiguration(
      io_targets = new /aws1/cl_ssmconftargets(
        it_subscriptions = VALUE /aws1/cl_ssmazuresubscription=>tt_azuresubscriptionlist(
          (
            new /aws1/cl_ssmazuresubscription(
              iv_displayname = |string|
              iv_id = |string|
            )
          )
        )
      )
      iv_applicationdisplayname = |string|
      iv_applicationid = |string|
      iv_tenantdisplayname = |string|
      iv_tenantid = |string|
    )
  )
  it_tags = VALUE /aws1/cl_ssmtag=>tt_taglist(
    (
      new /aws1/cl_ssmtag(
        iv_key = |string|
        iv_value = |string|
      )
    )
  )
  iv_configconnectorarn = |string|
  iv_description = |string|
  iv_displayname = |string|
  iv_rolearn = |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_cloudconnectorid( ).
ENDIF.