Skip to content

/AWS1/IF_CFS=>PUTTHIRDPARTYSVCLNKCONFRECDR()

About PutThirdPartyServiceLinkedConfigurationRecorder

Creates or updates a service-linked configuration recorder that is linked to a third-party cloud service provider based on the ConnectorArn you specify.

The configuration recorder's name, recordingGroup, recordingMode, and recordingScope is set by the service that is linked to the configuration recorder.

If a service-linked configuration recorder already exists for the specified service principal and connector, calling this operation again updates the ScopeConfiguration.

This operation can only be called by the Amazon Web Services service linked to the configuration recorder

Customers cannot call this operation directly. Only the linked Amazon Web Services service can create or update the service-linked configuration recorder.

Tags are added at creation and cannot be updated with this operation

Use TagResource and UntagResource to update tags after creation.

Method Signature

METHODS /AWS1/IF_CFS~PUTTHIRDPARTYSVCLNKCONFRECDR
  IMPORTING
    !IV_SERVICEPRINCIPAL TYPE /AWS1/CFSSERVICEPRINCIPAL OPTIONAL
    !IV_CONNECTORARN TYPE /AWS1/CFSAMAZONRESOURCENAME OPTIONAL
    !IO_SCOPECONFIGURATION TYPE REF TO /AWS1/CL_CFSSCOPECONFIGURATION OPTIONAL
    !IT_TAGS TYPE /AWS1/CL_CFSTAG=>TT_TAGSLIST OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cfsputthirdpartysvc01
  RAISING
    /AWS1/CX_CFSCONFLICTEXCEPTION
    /AWS1/CX_CFSINSUFFICIENTPERM00
    /AWS1/CX_CFSVALIDATIONEX
    /AWS1/CX_CFSCLIENTEXC
    /AWS1/CX_CFSSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_serviceprincipal TYPE /AWS1/CFSSERVICEPRINCIPAL /AWS1/CFSSERVICEPRINCIPAL

The service principal of the Amazon Web Services service for the service-linked configuration recorder that you want to create.

iv_connectorarn TYPE /AWS1/CFSAMAZONRESOURCENAME /AWS1/CFSAMAZONRESOURCENAME

The Amazon Resource Name (ARN) of the connector that specifies the connection between the third-party cloud service provider and Config. The specified connector must exist.

io_scopeconfiguration TYPE REF TO /AWS1/CL_CFSSCOPECONFIGURATION /AWS1/CL_CFSSCOPECONFIGURATION

Specifies the scope of resources to record from the third-party cloud service provider.

Optional arguments:

it_tags TYPE /AWS1/CL_CFSTAG=>TT_TAGSLIST TT_TAGSLIST

The tags for a service-linked configuration recorder. Each tag consists of a key and an optional value, both of which you define.

RETURNING

oo_output TYPE REF TO /aws1/cl_cfsputthirdpartysvc01 /AWS1/CL_CFSPUTTHIRDPARTYSVC01

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->putthirdpartysvclnkconfrecdr(
  io_scopeconfiguration = new /aws1/cl_cfsscopeconfiguration(
    it_includedregions = VALUE /aws1/cl_cfsincludedregions_w=>tt_includedregions(
      ( new /aws1/cl_cfsincludedregions_w( |string| ) )
    )
    it_scopevalues = VALUE /aws1/cl_cfsscopevalues_w=>tt_scopevalues(
      ( new /aws1/cl_cfsscopevalues_w( |string| ) )
    )
    iv_allregions = ABAP_TRUE
    iv_scopetype = |string|
  )
  it_tags = VALUE /aws1/cl_cfstag=>tt_tagslist(
    (
      new /aws1/cl_cfstag(
        iv_key = |string|
        iv_value = |string|
      )
    )
  )
  iv_connectorarn = |string|
  iv_serviceprincipal = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_amazonresourcename = lo_result->get_arn( ).
  lv_recordername = lo_result->get_name( ).
ENDIF.