/AWS1/IF_GLU=>CREATEINTEGRATION()¶
About CreateIntegration¶
Creates a Zero-ETL integration in the caller's account between two resources with Amazon Resource Names (ARNs): the SourceArn and TargetArn.
Method Signature¶
METHODS /AWS1/IF_GLU~CREATEINTEGRATION
IMPORTING
!IV_INTEGRATIONNAME TYPE /AWS1/GLUSTRING128 OPTIONAL
!IV_SOURCEARN TYPE /AWS1/GLUSTRING128 OPTIONAL
!IV_TARGETARN TYPE /AWS1/GLUSTRING128 OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/GLUINTEGRATIONDESC OPTIONAL
!IV_DATAFILTER TYPE /AWS1/GLUSTRING2048 OPTIONAL
!IV_KMSKEYID TYPE /AWS1/GLUSTRING2048 OPTIONAL
!IT_ADDITIONALENCCONTEXT TYPE /AWS1/CL_GLUINTEGRATIONADDLE00=>TT_INTEGRATIONADDLENCCTXMAP OPTIONAL
!IT_TAGS TYPE /AWS1/CL_GLUTAG=>TT_INTEGRATIONTAGSLIST OPTIONAL
!IO_INTEGRATIONCONFIG TYPE REF TO /AWS1/CL_GLUINTEGRATIONCONFIG OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_glucreintegrationrsp
RAISING
/AWS1/CX_GLUACCESSDENIEDEX
/AWS1/CX_GLUCONFLICTEXCEPTION
/AWS1/CX_GLUENTITYNOTFOUNDEX
/AWS1/CX_GLUINTEGRATIONCONFL00
/AWS1/CX_GLUINTEGRATIONQUOTA00
/AWS1/CX_GLUINTERNALSERVEREX
/AWS1/CX_GLUINTERNALSERVICEEX
/AWS1/CX_GLUINVALIDINPUTEX
/AWS1/CX_GLUKMSKEYNOTACCIBLE00
/AWS1/CX_GLURESOURCENOTFOUNDEX
/AWS1/CX_GLURESRCNUMLMTEXCDEX
/AWS1/CX_GLUVALIDATIONEX
/AWS1/CX_GLUCLIENTEXC
/AWS1/CX_GLUSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_integrationname TYPE /AWS1/GLUSTRING128 /AWS1/GLUSTRING128¶
A unique name for an integration in Glue.
iv_sourcearn TYPE /AWS1/GLUSTRING128 /AWS1/GLUSTRING128¶
The ARN of the source resource for the integration.
iv_targetarn TYPE /AWS1/GLUSTRING128 /AWS1/GLUSTRING128¶
The ARN of the target resource for the integration.
Optional arguments:¶
iv_description TYPE /AWS1/GLUINTEGRATIONDESC /AWS1/GLUINTEGRATIONDESC¶
A description of the integration.
iv_datafilter TYPE /AWS1/GLUSTRING2048 /AWS1/GLUSTRING2048¶
Selects source tables for the integration using Maxwell filter syntax.
iv_kmskeyid TYPE /AWS1/GLUSTRING2048 /AWS1/GLUSTRING2048¶
The ARN of a KMS key used for encrypting the channel.
it_additionalenccontext TYPE /AWS1/CL_GLUINTEGRATIONADDLE00=>TT_INTEGRATIONADDLENCCTXMAP TT_INTEGRATIONADDLENCCTXMAP¶
An optional set of non-secret key–value pairs that contains additional contextual information for encryption. This can only be provided if
KMSKeyIdis provided.
it_tags TYPE /AWS1/CL_GLUTAG=>TT_INTEGRATIONTAGSLIST TT_INTEGRATIONTAGSLIST¶
Metadata assigned to the resource consisting of a list of key-value pairs.
io_integrationconfig TYPE REF TO /AWS1/CL_GLUINTEGRATIONCONFIG /AWS1/CL_GLUINTEGRATIONCONFIG¶
The configuration settings.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_glucreintegrationrsp /AWS1/CL_GLUCREINTEGRATIONRSP¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
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_integrationconfig = new /aws1/cl_gluintegrationconfig(
it_sourceproperties = VALUE /aws1/cl_gluintegrationsrcpr00=>tt_integrationsourcepropsmap(
(
VALUE /aws1/cl_gluintegrationsrcpr00=>ts_integrationsrcprps00_maprow(
value = new /aws1/cl_gluintegrationsrcpr00( |string| )
key = |string|
)
)
)
iv_continuoussync = ABAP_TRUE
iv_refreshinterval = |string|
)
it_additionalenccontext = VALUE /aws1/cl_gluintegrationaddle00=>tt_integrationaddlencctxmap(
(
VALUE /aws1/cl_gluintegrationaddle00=>ts_integrationaddlenc00_maprow(
value = new /aws1/cl_gluintegrationaddle00( |string| )
key = |string|
)
)
)
it_tags = VALUE /aws1/cl_glutag=>tt_integrationtagslist(
(
new /aws1/cl_glutag(
iv_key = |string|
iv_value = |string|
)
)
)
iv_datafilter = |string|
iv_description = |string|
iv_integrationname = |string|
iv_kmskeyid = |string|
iv_sourcearn = |string|
iv_targetarn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_string128 = lo_result->get_sourcearn( ).
lv_string128 = lo_result->get_targetarn( ).
lv_string128 = lo_result->get_integrationname( ).
lv_integrationdescription = lo_result->get_description( ).
lv_string128 = lo_result->get_integrationarn( ).
lv_string2048 = lo_result->get_kmskeyid( ).
LOOP AT lo_result->get_additionalenccontext( ) into ls_row.
lv_key = ls_row-key.
lo_value = ls_row-value.
IF lo_value IS NOT INITIAL.
lv_integrationstring = lo_value->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_result->get_tags( ) into lo_row_1.
lo_row_2 = lo_row_1.
IF lo_row_2 IS NOT INITIAL.
lv_tagkey = lo_row_2->get_key( ).
lv_tagvalue = lo_row_2->get_value( ).
ENDIF.
ENDLOOP.
lv_integrationstatus = lo_result->get_status( ).
lv_integrationtimestamp = lo_result->get_createtime( ).
LOOP AT lo_result->get_errors( ) into lo_row_3.
lo_row_4 = lo_row_3.
IF lo_row_4 IS NOT INITIAL.
lv_string128 = lo_row_4->get_errorcode( ).
lv_string2048 = lo_row_4->get_errormessage( ).
ENDIF.
ENDLOOP.
lv_string2048 = lo_result->get_datafilter( ).
lo_integrationconfig = lo_result->get_integrationconfig( ).
IF lo_integrationconfig IS NOT INITIAL.
lv_string128 = lo_integrationconfig->get_refreshinterval( ).
LOOP AT lo_integrationconfig->get_sourceproperties( ) into ls_row_5.
lv_key = ls_row_5-key.
lo_value_1 = ls_row_5-value.
IF lo_value_1 IS NOT INITIAL.
lv_integrationstring = lo_value_1->get_value( ).
ENDIF.
ENDLOOP.
lv_continuoussync = lo_integrationconfig->get_continuoussync( ).
ENDIF.
ENDIF.