/AWS1/IF_SAG=>CREATEINTEGRATION()¶
About CreateIntegration¶
Creates the Integration of the Security Agent App with an external Provider
Method Signature¶
METHODS /AWS1/IF_SAG~CREATEINTEGRATION
IMPORTING
!IV_PROVIDER TYPE /AWS1/SAGPROVIDER OPTIONAL
!IO_INPUT TYPE REF TO /AWS1/CL_SAGPROVIDERINPUT OPTIONAL
!IV_INTEGRATIONDISPLAYNAME TYPE /AWS1/SAGSTRING OPTIONAL
!IV_KMSKEYID TYPE /AWS1/SAGKMSKEYID OPTIONAL
!IT_TAGS TYPE /AWS1/CL_SAGTAGMAP_W=>TT_TAGMAP OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_sagcreateintgoutput
RAISING
/AWS1/CX_SAGACCESSDENIEDEX
/AWS1/CX_SAGCONFLICTEXCEPTION
/AWS1/CX_SAGINTERNALSERVEREX
/AWS1/CX_SAGRESOURCENOTFOUNDEX
/AWS1/CX_SAGTHROTTLINGEX
/AWS1/CX_SAGVLDTNEXCEPTION
/AWS1/CX_SAGCLIENTEXC
/AWS1/CX_SAGSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_provider TYPE /AWS1/SAGPROVIDER /AWS1/SAGPROVIDER¶
Provider to integrate with
io_input TYPE REF TO /AWS1/CL_SAGPROVIDERINPUT /AWS1/CL_SAGPROVIDERINPUT¶
Provider-specific input parameters
iv_integrationdisplayname TYPE /AWS1/SAGSTRING /AWS1/SAGSTRING¶
Display name for the integration
Optional arguments:¶
iv_kmskeyid TYPE /AWS1/SAGKMSKEYID /AWS1/SAGKMSKEYID¶
KMS key ID for encrypting integration details
it_tags TYPE /AWS1/CL_SAGTAGMAP_W=>TT_TAGMAP TT_TAGMAP¶
Tags to associate with the integration
RETURNING¶
oo_output TYPE REF TO /aws1/cl_sagcreateintgoutput /AWS1/CL_SAGCREATEINTGOUTPUT¶
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->createintegration(
io_input = new /aws1/cl_sagproviderinput(
io_github = new /aws1/cl_saggithubintginput(
iv_code = |string|
iv_organizationname = |string|
iv_state = |string|
)
)
it_tags = VALUE /aws1/cl_sagtagmap_w=>tt_tagmap(
(
VALUE /aws1/cl_sagtagmap_w=>ts_tagmap_maprow(
key = |string|
value = new /aws1/cl_sagtagmap_w( |string| )
)
)
)
iv_integrationdisplayname = |string|
iv_kmskeyid = |string|
iv_provider = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_integrationid = lo_result->get_integrationid( ).
ENDIF.