/AWS1/IF_OMX=>STARTREFERENCEIMPORTJOB()¶
About StartReferenceImportJob¶
Imports a reference genome from Amazon S3 into a specified reference store. You can have multiple reference genomes in a reference store. You can only import reference genomes one at a time into each reference store. Monitor the status of your reference import job by using the GetReferenceImportJob API operation.
Method Signature¶
METHODS /AWS1/IF_OMX~STARTREFERENCEIMPORTJOB
IMPORTING
!IV_REFERENCESTOREID TYPE /AWS1/OMXREFERENCESTOREID OPTIONAL
!IV_ROLEARN TYPE /AWS1/OMXROLEARN OPTIONAL
!IV_CLIENTTOKEN TYPE /AWS1/OMXCLIENTTOKEN OPTIONAL
!IT_SOURCES TYPE /AWS1/CL_OMXSTRTREFERENCEIMP01=>TT_STARTREFERENCEIMPJOBSRCLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_omxstrtreferenceimp02
RAISING
/AWS1/CX_OMXACCESSDENIEDEX
/AWS1/CX_OMXINTERNALSERVEREX
/AWS1/CX_OMXREQUESTTIMEOUTEX
/AWS1/CX_OMXRESOURCENOTFOUNDEX
/AWS1/CX_OMXSERVICEQUOTAEXCDEX
/AWS1/CX_OMXTHROTTLINGEX
/AWS1/CX_OMXVALIDATIONEX
/AWS1/CX_OMXCLIENTEXC
/AWS1/CX_OMXSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_referencestoreid TYPE /AWS1/OMXREFERENCESTOREID /AWS1/OMXREFERENCESTOREID¶
The job's reference store ID.
iv_rolearn TYPE /AWS1/OMXROLEARN /AWS1/OMXROLEARN¶
A service role for the job.
it_sources TYPE /AWS1/CL_OMXSTRTREFERENCEIMP01=>TT_STARTREFERENCEIMPJOBSRCLIST TT_STARTREFERENCEIMPJOBSRCLIST¶
The job's source files.
Optional arguments:¶
iv_clienttoken TYPE /AWS1/OMXCLIENTTOKEN /AWS1/OMXCLIENTTOKEN¶
To ensure that jobs don't run multiple times, specify a unique token for each job.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_omxstrtreferenceimp02 /AWS1/CL_OMXSTRTREFERENCEIMP02¶
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->startreferenceimportjob(
it_sources = VALUE /aws1/cl_omxstrtreferenceimp01=>tt_startreferenceimpjobsrclist(
(
new /aws1/cl_omxstrtreferenceimp01(
it_tags = VALUE /aws1/cl_omxtagmap_w=>tt_tagmap(
(
VALUE /aws1/cl_omxtagmap_w=>ts_tagmap_maprow(
key = |string|
value = new /aws1/cl_omxtagmap_w( |string| )
)
)
)
iv_description = |string|
iv_name = |string|
iv_sourcefile = |string|
)
)
)
iv_clienttoken = |string|
iv_referencestoreid = |string|
iv_rolearn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_importjobid = lo_result->get_id( ).
lv_referencestoreid = lo_result->get_referencestoreid( ).
lv_rolearn = lo_result->get_rolearn( ).
lv_referenceimportjobstatu = lo_result->get_status( ).
lv_timestamp = lo_result->get_creationtime( ).
ENDIF.