/AWS1/IF_BDK=>LISTMODELIMPORTJOBS()¶
About ListModelImportJobs¶
Returns a list of import jobs you've submitted. You can filter the results to return based on one or more criteria. For more information, see Import a customized model in the Amazon Bedrock User Guide.
Method Signature¶
METHODS /AWS1/IF_BDK~LISTMODELIMPORTJOBS
IMPORTING
!IV_CREATIONTIMEAFTER TYPE /AWS1/BDKTIMESTAMP OPTIONAL
!IV_CREATIONTIMEBEFORE TYPE /AWS1/BDKTIMESTAMP OPTIONAL
!IV_STATUSEQUALS TYPE /AWS1/BDKMODELIMPORTJOBSTATUS OPTIONAL
!IV_NAMECONTAINS TYPE /AWS1/BDKJOBNAME OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/BDKMAXRESULTS OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/BDKPAGINATIONTOKEN OPTIONAL
!IV_SORTBY TYPE /AWS1/BDKSORTJOBSBY OPTIONAL
!IV_SORTORDER TYPE /AWS1/BDKSORTORDER OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bdklstmodelimpjobsrsp
RAISING
/AWS1/CX_BDKACCESSDENIEDEX
/AWS1/CX_BDKINTERNALSERVEREX
/AWS1/CX_BDKTHROTTLINGEX
/AWS1/CX_BDKVALIDATIONEX
/AWS1/CX_BDKCLIENTEXC
/AWS1/CX_BDKSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_creationtimeafter TYPE /AWS1/BDKTIMESTAMP /AWS1/BDKTIMESTAMP¶
Return import jobs that were created after the specified time.
iv_creationtimebefore TYPE /AWS1/BDKTIMESTAMP /AWS1/BDKTIMESTAMP¶
Return import jobs that were created before the specified time.
iv_statusequals TYPE /AWS1/BDKMODELIMPORTJOBSTATUS /AWS1/BDKMODELIMPORTJOBSTATUS¶
Return imported jobs with the specified status.
iv_namecontains TYPE /AWS1/BDKJOBNAME /AWS1/BDKJOBNAME¶
Return imported jobs only if the job name contains these characters.
iv_maxresults TYPE /AWS1/BDKMAXRESULTS /AWS1/BDKMAXRESULTS¶
The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the
nextTokenfield when making another request to return the next batch of results.
iv_nexttoken TYPE /AWS1/BDKPAGINATIONTOKEN /AWS1/BDKPAGINATIONTOKEN¶
If the total number of results is greater than the
maxResultsvalue provided in the request, enter the token returned in thenextTokenfield in the response in this field to return the next batch of results.
iv_sortby TYPE /AWS1/BDKSORTJOBSBY /AWS1/BDKSORTJOBSBY¶
The field to sort by in the returned list of imported jobs.
iv_sortorder TYPE /AWS1/BDKSORTORDER /AWS1/BDKSORTORDER¶
Specifies whether to sort the results in ascending or descending order.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_bdklstmodelimpjobsrsp /AWS1/CL_BDKLSTMODELIMPJOBSRSP¶
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->listmodelimportjobs(
iv_creationtimeafter = '20150101000000.0000000'
iv_creationtimebefore = '20150101000000.0000000'
iv_maxresults = 123
iv_namecontains = |string|
iv_nexttoken = |string|
iv_sortby = |string|
iv_sortorder = |string|
iv_statusequals = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_paginationtoken = lo_result->get_nexttoken( ).
LOOP AT lo_result->get_modelimportjobsummaries( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_modelimportjobarn = lo_row_1->get_jobarn( ).
lv_jobname = lo_row_1->get_jobname( ).
lv_modelimportjobstatus = lo_row_1->get_status( ).
lv_timestamp = lo_row_1->get_lastmodifiedtime( ).
lv_timestamp = lo_row_1->get_creationtime( ).
lv_timestamp = lo_row_1->get_endtime( ).
lv_importedmodelarn = lo_row_1->get_importedmodelarn( ).
lv_importedmodelname = lo_row_1->get_importedmodelname( ).
ENDIF.
ENDLOOP.
ENDIF.