/AWS1/IF_LM2=>UPDATEEXPORT()¶
About UpdateExport¶
Updates the password used to protect an export zip archive.
The password is not required. If you don't supply a password, Amazon Lex generates a zip file that is not protected by a password. This is the archive that is available at the pre-signed S3 URL provided by the DescribeExport operation.
Method Signature¶
METHODS /AWS1/IF_LM2~UPDATEEXPORT
IMPORTING
!IV_EXPORTID TYPE /AWS1/LM2ID OPTIONAL
!IV_FILEPASSWORD TYPE /AWS1/LM2IMPORTEXPFILEPASSWORD OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_lm2updateexportrsp
RAISING
/AWS1/CX_LM2CONFLICTEXCEPTION
/AWS1/CX_LM2INTERNALSERVEREX
/AWS1/CX_LM2RESOURCENOTFOUNDEX
/AWS1/CX_LM2SERVICEQUOTAEXCDEX
/AWS1/CX_LM2THROTTLINGEX
/AWS1/CX_LM2VALIDATIONEX
/AWS1/CX_LM2CLIENTEXC
/AWS1/CX_LM2SERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_exportid TYPE /AWS1/LM2ID /AWS1/LM2ID¶
The unique identifier Amazon Lex assigned to the export.
Optional arguments:¶
iv_filepassword TYPE /AWS1/LM2IMPORTEXPFILEPASSWORD /AWS1/LM2IMPORTEXPFILEPASSWORD¶
The new password to use to encrypt the export zip archive.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_lm2updateexportrsp /AWS1/CL_LM2UPDATEEXPORTRSP¶
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->updateexport(
iv_exportid = |string|
iv_filepassword = |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_exportid( ).
lo_exportresourcespecifica = lo_result->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_result->get_fileformat( ).
lv_exportstatus = lo_result->get_exportstatus( ).
lv_timestamp = lo_result->get_creationdatetime( ).
lv_timestamp = lo_result->get_lastupdateddatetime( ).
ENDIF.