/AWS1/IF_TRL=>GETIMPORT()¶
About GetImport¶
CloudTrail Lake will no longer be open to new customers starting May 31, 2026. If you would like to use CloudTrail Lake, sign up prior to that date. Existing customers can continue to use the service as normal. For more information, see CloudTrail Lake availability change.
Returns information about a specific import.
Method Signature¶
METHODS /AWS1/IF_TRL~GETIMPORT
IMPORTING
!IV_IMPORTID TYPE /AWS1/TRLUUID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_trlgetimportresponse
RAISING
/AWS1/CX_TRLIMPORTNOTFOUNDEX
/AWS1/CX_TRLINVALIDPARAMETEREX
/AWS1/CX_TRLOPNOTPERMITTEDEX
/AWS1/CX_TRLUNSUPPORTEDOPEX
/AWS1/CX_TRLCLIENTEXC
/AWS1/CX_TRLSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_importid TYPE /AWS1/TRLUUID /AWS1/TRLUUID¶
The ID for the import.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_trlgetimportresponse /AWS1/CL_TRLGETIMPORTRESPONSE¶
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->getimport( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_uuid = lo_result->get_importid( ).
LOOP AT lo_result->get_destinations( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_eventdatastorearn = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
lo_importsource = lo_result->get_importsource( ).
IF lo_importsource IS NOT INITIAL.
lo_s3importsource = lo_importsource->get_s3( ).
IF lo_s3importsource IS NOT INITIAL.
lv_string = lo_s3importsource->get_s3locationuri( ).
lv_string = lo_s3importsource->get_s3bucketregion( ).
lv_string = lo_s3importsource->get_s3bucketaccessrolearn( ).
ENDIF.
ENDIF.
lv_date = lo_result->get_starteventtime( ).
lv_date = lo_result->get_endeventtime( ).
lv_importstatus = lo_result->get_importstatus( ).
lv_date = lo_result->get_createdtimestamp( ).
lv_date = lo_result->get_updatedtimestamp( ).
lo_importstatistics = lo_result->get_importstatistics( ).
IF lo_importstatistics IS NOT INITIAL.
lv_long = lo_importstatistics->get_prefixesfound( ).
lv_long = lo_importstatistics->get_prefixescompleted( ).
lv_long = lo_importstatistics->get_filescompleted( ).
lv_long = lo_importstatistics->get_eventscompleted( ).
lv_long = lo_importstatistics->get_failedentries( ).
ENDIF.
ENDIF.