LexModelsV2 / Client / update_export

update_export#

LexModelsV2.Client.update_export(**kwargs)#

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.

See also: AWS API Documentation

Request Syntax

response = client.update_export(
    exportId='string',
    filePassword='string'
)
Parameters:
  • exportId (string) –

    [REQUIRED]

    The unique identifier Amazon Lex assigned to the export.

  • filePassword (string) – The new password to use to encrypt the export zip archive.

Return type:

dict

Returns:

Response Syntax

{
    'exportId': 'string',
    'resourceSpecification': {
        'botExportSpecification': {
            'botId': 'string',
            'botVersion': 'string'
        },
        'botLocaleExportSpecification': {
            'botId': 'string',
            'botVersion': 'string',
            'localeId': 'string'
        },
        'customVocabularyExportSpecification': {
            'botId': 'string',
            'botVersion': 'string',
            'localeId': 'string'
        },
        'testSetExportSpecification': {
            'testSetId': 'string'
        }
    },
    'fileFormat': 'LexJson'|'TSV'|'CSV',
    'exportStatus': 'InProgress'|'Completed'|'Failed'|'Deleting',
    'creationDateTime': datetime(2015, 1, 1),
    'lastUpdatedDateTime': datetime(2015, 1, 1)
}

Response Structure

  • (dict) –

    • exportId (string) –

      The unique identifier Amazon Lex assigned to the export.

    • resourceSpecification (dict) –

      A description of the type of resource that was exported, either a bot or a bot locale.

      • botExportSpecification (dict) –

        Parameters for exporting a bot.

        • botId (string) –

          The identifier of the bot assigned by Amazon Lex.

        • botVersion (string) –

          The version of the bot that was exported. This will be either DRAFT or the version number.

      • botLocaleExportSpecification (dict) –

        Parameters for exporting a bot locale.

        • botId (string) –

          The identifier of the bot to create the locale for.

        • botVersion (string) –

          The version of the bot to export.

        • localeId (string) –

          The identifier of the language and locale to export. The string must match one of the locales in the bot.

      • customVocabularyExportSpecification (dict) –

        The parameters required to export a custom vocabulary.

        • botId (string) –

          The identifier of the bot that contains the custom vocabulary to export.

        • botVersion (string) –

          The version of the bot that contains the custom vocabulary to export.

        • localeId (string) –

          The locale of the bot that contains the custom vocabulary to export.

      • testSetExportSpecification (dict) –

        Specifications for the test set that is exported as a resource.

        • testSetId (string) –

          The unique identifier of the test set.

    • fileFormat (string) –

      The file format used for the files that define the resource. The TSV format is required to export a custom vocabulary only; otherwise use LexJson format.

    • exportStatus (string) –

      The status of the export. When the status is Completed the export archive is available for download.

    • creationDateTime (datetime) –

      The date and time that the export was created.

    • lastUpdatedDateTime (datetime) –

      The date and time that the export was last updated.

Exceptions