/AWS1/IF_CWL=>ASSOCIATESOURCETOS3TABLEINTG()¶
About AssociateSourceToS3TableIntegration¶
Associates a data source with an S3 Table Integration for query access in the 'logs' namespace. This enables querying log data using analytics engines that support Iceberg such as Amazon Athena, Amazon Redshift, and Apache Spark.
Method Signature¶
METHODS /AWS1/IF_CWL~ASSOCIATESOURCETOS3TABLEINTG
IMPORTING
!IV_INTEGRATIONARN TYPE /AWS1/CWLARN OPTIONAL
!IO_DATASOURCE TYPE REF TO /AWS1/CL_CWLDATASOURCE OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cwlascsrctos3tblint01
RAISING
/AWS1/CX_CWLACCESSDENIEDEX
/AWS1/CX_CWLINTERNALSERVEREX
/AWS1/CX_CWLRESOURCENOTFOUNDEX
/AWS1/CX_CWLTHROTTLINGEX
/AWS1/CX_CWLVALIDATIONEX
/AWS1/CX_CWLCLIENTEXC
/AWS1/CX_CWLSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_integrationarn TYPE /AWS1/CWLARN /AWS1/CWLARN¶
The Amazon Resource Name (ARN) of the S3 Table Integration to associate the data source with.
io_datasource TYPE REF TO /AWS1/CL_CWLDATASOURCE /AWS1/CL_CWLDATASOURCE¶
The data source to associate with the S3 Table Integration. Contains the name and type of the data source.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cwlascsrctos3tblint01 /AWS1/CL_CWLASCSRCTOS3TBLINT01¶
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->associatesourcetos3tableintg(
io_datasource = new /aws1/cl_cwldatasource(
iv_name = |string|
iv_type = |string|
)
iv_integrationarn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_s3tableintegrationsourc = lo_result->get_identifier( ).
ENDIF.