Amazon Lex Model Building Service

2017/09/07 - Amazon Lex Model Building Service - 1 new api methods

Changes  Update lex-models client to latest version

GetExport (new) Link ΒΆ

Exports the contents of a Amazon Lex resource in a specified format.

See also: AWS API Documentation

Request Syntax

client.get_export(
    name='string',
    version='string',
    resourceType='BOT',
    exportType='ALEXA_SKILLS_KIT'
)
type name:

string

param name:

[REQUIRED]

The name of the bot to export.

type version:

string

param version:

[REQUIRED]

The version of the bot to export.

type resourceType:

string

param resourceType:

[REQUIRED]

The type of resource to export.

type exportType:

string

param exportType:

[REQUIRED]

The format of the exported data.

rtype:

dict

returns:

Response Syntax

{
    'name': 'string',
    'version': 'string',
    'resourceType': 'BOT',
    'exportType': 'ALEXA_SKILLS_KIT',
    'exportStatus': 'IN_PROGRESS'|'READY'|'FAILED',
    'failureReason': 'string',
    'url': 'string'
}

Response Structure

  • (dict) --

    • name (string) --

      The name of the bot being exported.

    • version (string) --

      The version of the bot being exported.

    • resourceType (string) --

      The type of the exported resource.

    • exportType (string) --

      The format of the exported data.

    • exportStatus (string) --

      The status of the export.

      • IN_PROGRESS - The export is in progress.

      • READY - The export is complete.

      • FAILED - The export could not be completed.

    • failureReason (string) --

      If status is FAILED, Amazon Lex provides the reason that it failed to export the resource.

    • url (string) --

      An S3 pre-signed URL that provides the location of the exported resource. The exported resource is a ZIP archive that contains the exported resource in JSON format. The structure of the archive may change. Your code should not rely on the archive structure.