/AWS1/IF_LM2=>LISTEXPORTS()¶
About ListExports¶
Lists the exports for a bot, bot locale, or custom vocabulary. Exports are kept in the list for 7 days.
Method Signature¶
METHODS /AWS1/IF_LM2~LISTEXPORTS
IMPORTING
!IV_BOTID TYPE /AWS1/LM2ID OPTIONAL
!IV_BOTVERSION TYPE /AWS1/LM2BOTVERSION OPTIONAL
!IO_SORTBY TYPE REF TO /AWS1/CL_LM2EXPORTSORTBY OPTIONAL
!IT_FILTERS TYPE /AWS1/CL_LM2EXPORTFILTER=>TT_EXPORTFILTERS OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/LM2MAXRESULTS OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/LM2NEXTTOKEN OPTIONAL
!IV_LOCALEID TYPE /AWS1/LM2LOCALEID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_lm2listexportsrsp
RAISING
/AWS1/CX_LM2INTERNALSERVEREX
/AWS1/CX_LM2THROTTLINGEX
/AWS1/CX_LM2VALIDATIONEX
/AWS1/CX_LM2CLIENTEXC
/AWS1/CX_LM2SERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_botid TYPE /AWS1/LM2ID /AWS1/LM2ID¶
The unique identifier that Amazon Lex assigned to the bot.
iv_botversion TYPE /AWS1/LM2BOTVERSION /AWS1/LM2BOTVERSION¶
The version of the bot to list exports for.
io_sortby TYPE REF TO /AWS1/CL_LM2EXPORTSORTBY /AWS1/CL_LM2EXPORTSORTBY¶
Determines the field that the list of exports is sorted by. You can sort by the
LastUpdatedDateTimefield in ascending or descending order.
it_filters TYPE /AWS1/CL_LM2EXPORTFILTER=>TT_EXPORTFILTERS TT_EXPORTFILTERS¶
Provides the specification of a filter used to limit the exports in the response to only those that match the filter specification. You can only specify one filter and one string to filter on.
iv_maxresults TYPE /AWS1/LM2MAXRESULTS /AWS1/LM2MAXRESULTS¶
The maximum number of exports to return in each page of results. If there are fewer results than the max page size, only the actual number of results are returned.
iv_nexttoken TYPE /AWS1/LM2NEXTTOKEN /AWS1/LM2NEXTTOKEN¶
If the response from the
ListExportsoperation contains more results that specified in themaxResultsparameter, a token is returned in the response.Use the returned token in the
nextTokenparameter of aListExportsrequest to return the next page of results. For a complete set of results, call theListExportsoperation until thenextTokenreturned in the response is null.
iv_localeid TYPE /AWS1/LM2LOCALEID /AWS1/LM2LOCALEID¶
Specifies the resources that should be exported. If you don't specify a resource type in the
filtersparameter, both bot locales and custom vocabularies are exported.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_lm2listexportsrsp /AWS1/CL_LM2LISTEXPORTSRSP¶
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->listexports(
io_sortby = new /aws1/cl_lm2exportsortby(
iv_attribute = |string|
iv_order = |string|
)
it_filters = VALUE /aws1/cl_lm2exportfilter=>tt_exportfilters(
(
new /aws1/cl_lm2exportfilter(
it_values = VALUE /aws1/cl_lm2filtervalues_w=>tt_filtervalues(
( new /aws1/cl_lm2filtervalues_w( |string| ) )
)
iv_name = |string|
iv_operator = |string|
)
)
)
iv_botid = |string|
iv_botversion = |string|
iv_localeid = |string|
iv_maxresults = 123
iv_nexttoken = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_id = lo_result->get_botid( ).
lv_botversion = lo_result->get_botversion( ).
LOOP AT lo_result->get_exportsummaries( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_id = lo_row_1->get_exportid( ).
lo_exportresourcespecifica = lo_row_1->get_resourcespecification( ).
IF lo_exportresourcespecifica IS NOT INITIAL.
lo_botexportspecification = lo_exportresourcespecifica->get_botexportspecification( ).
IF lo_botexportspecification IS NOT INITIAL.
lv_id = lo_botexportspecification->get_botid( ).
lv_botversion = lo_botexportspecification->get_botversion( ).
ENDIF.
lo_botlocaleexportspecific = lo_exportresourcespecifica->get_botlocaleexportspec( ).
IF lo_botlocaleexportspecific IS NOT INITIAL.
lv_id = lo_botlocaleexportspecific->get_botid( ).
lv_botversion = lo_botlocaleexportspecific->get_botversion( ).
lv_localeid = lo_botlocaleexportspecific->get_localeid( ).
ENDIF.
lo_customvocabularyexports = lo_exportresourcespecifica->get_customvocabularyexppec( ).
IF lo_customvocabularyexports IS NOT INITIAL.
lv_id = lo_customvocabularyexports->get_botid( ).
lv_botversion = lo_customvocabularyexports->get_botversion( ).
lv_localeid = lo_customvocabularyexports->get_localeid( ).
ENDIF.
lo_testsetexportspecificat = lo_exportresourcespecifica->get_testsetexportspec( ).
IF lo_testsetexportspecificat IS NOT INITIAL.
lv_id = lo_testsetexportspecificat->get_testsetid( ).
ENDIF.
ENDIF.
lv_importexportfileformat = lo_row_1->get_fileformat( ).
lv_exportstatus = lo_row_1->get_exportstatus( ).
lv_timestamp = lo_row_1->get_creationdatetime( ).
lv_timestamp = lo_row_1->get_lastupdateddatetime( ).
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
lv_localeid = lo_result->get_localeid( ).
ENDIF.