Starts a job to import a resource to Amazon Lex.
post/imports/
Request body
payloadstring required
A zip archive in binary format. The archive should contain one file, a JSON file containing the resource to import. The resource should match the type specified in the <code>resourceType</code> field.
resourceType'BOT' | 'INTENT' | 'SLOT_TYPE' required
<p>Specifies the type of resource to export. Each resource also exports any resources that it depends on. </p> <ul> <li> <p>A bot exports dependent intents.</p> </li> <li> <p>An intent exports dependent slot types.</p> </li> </ul>
mergeStrategy'OVERWRITE_LATEST' | 'FAIL_ON_CONFLICT' required
<p>Specifies the action that the <code>StartImport</code> operation should take when there is an existing resource with the same name.</p> <ul> <li> <p>FAIL_ON_CONFLICT - The import operation is stopped on the first conflict between a resource in the import file and an existing resource. The name of the resource causing the conflict is in the <code>failureReason</code> field of the response to the <code>GetImport</code> operation.</p> <p>OVERWRITE_LATEST - The import operation proceeds even if there is a conflict with an existing resource. The $LASTEST version of the existing resource is overwritten with the data from the import file.</p> </li> </ul>
Response
Success
namestring
The name given to the import job.
resourceType'BOT' | 'INTENT' | 'SLOT_TYPE'
The type of resource to import.
mergeStrategy'OVERWRITE_LATEST' | 'FAIL_ON_CONFLICT'
The action to take when there is a merge conflict.
importIdstring
The identifier for the specific import job.
importStatus'IN_PROGRESS' | 'COMPLETE' | 'FAILED'
The status of the import job. If the status is <code>FAILED</code>, you can get the reason for the failure using the <code>GetImport</code> operation.
createdDatestring date-time
A timestamp for the date and time that the import job was requested.