LexModelBuildingService / Client / get_export
get_export#
- LexModelBuildingService.Client.get_export(**kwargs)#
Exports the contents of a Amazon Lex resource in a specified format.
See also: AWS API Documentation
Request Syntax
response = client.get_export( name='string', version='string', resourceType='BOT'|'INTENT'|'SLOT_TYPE', exportType='ALEXA_SKILLS_KIT'|'LEX' )
- Parameters:
name (string) –
[REQUIRED]
The name of the bot to export.
version (string) –
[REQUIRED]
The version of the bot to export.
resourceType (string) –
[REQUIRED]
The type of resource to export.
exportType (string) –
[REQUIRED]
The format of the exported data.
- Return type:
dict
- Returns:
Response Syntax
{ 'name': 'string', 'version': 'string', 'resourceType': 'BOT'|'INTENT'|'SLOT_TYPE', 'exportType': 'ALEXA_SKILLS_KIT'|'LEX', '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
isFAILED
, 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.
Exceptions