/AWS1/IF_CFS=>PUTCONNECTOR()¶
About PutConnector¶
Creates a connector that specifies the connection between a third-party cloud service provider and Config.
A connector is required to create a service-linked configuration recorder for a third-party cloud service provider using the PutThirdPartyServiceLinkedConfigurationRecorder operation.
This API creates a service-linked role AWSServiceRoleForConfigThirdParty in your account. The service-linked role is created only when the role does not exist in your account.
Connectors cannot be updated
To update the connector configuration, you must delete all associated configuration recorders, delete the connector, and recreate it with the updated configuration.
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~PUTCONNECTOR
IMPORTING
!IO_CONNECTORCONFIGURATION TYPE REF TO /AWS1/CL_CFSCONNECTORCONF OPTIONAL
!IT_TAGS TYPE /AWS1/CL_CFSTAG=>TT_TAGSLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cfsputcnctrresponse
RAISING
/AWS1/CX_CFSCONFLICTEXCEPTION
/AWS1/CX_CFSINSUFFICIENTPERM00
/AWS1/CX_CFSMAXNUMOFCNCTEXCDEX
/AWS1/CX_CFSVALIDATIONEX
/AWS1/CX_CFSCLIENTEXC
/AWS1/CX_CFSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
io_connectorconfiguration TYPE REF TO /AWS1/CL_CFSCONNECTORCONF /AWS1/CL_CFSCONNECTORCONF¶
The provider-specific configuration for connecting to the third-party cloud service provider.
Optional arguments:¶
it_tags TYPE /AWS1/CL_CFSTAG=>TT_TAGSLIST TT_TAGSLIST¶
The tags for the connector. Each tag consists of a key and an optional value, both of which you define.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cfsputcnctrresponse /AWS1/CL_CFSPUTCNCTRRESPONSE¶
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->putconnector(
io_connectorconfiguration = new /aws1/cl_cfsconnectorconf(
io_azure = new /aws1/cl_cfsazureconnectorconf(
iv_clientidentifier = |string|
iv_tenantidentifier = |string|
)
)
it_tags = VALUE /aws1/cl_cfstag=>tt_tagslist(
(
new /aws1/cl_cfstag(
iv_key = |string|
iv_value = |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( ).
ENDIF.