Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Exports the contents of a Amazon Lex resource in a specified format.
Synopsis
- data GetExport = GetExport' {
- name :: Text
- version :: Text
- resourceType :: ResourceType
- exportType :: ExportType
- newGetExport :: Text -> Text -> ResourceType -> ExportType -> GetExport
- getExport_name :: Lens' GetExport Text
- getExport_version :: Lens' GetExport Text
- getExport_resourceType :: Lens' GetExport ResourceType
- getExport_exportType :: Lens' GetExport ExportType
- data GetExportResponse = GetExportResponse' {}
- newGetExportResponse :: Int -> GetExportResponse
- getExportResponse_failureReason :: Lens' GetExportResponse (Maybe Text)
- getExportResponse_resourceType :: Lens' GetExportResponse (Maybe ResourceType)
- getExportResponse_exportStatus :: Lens' GetExportResponse (Maybe ExportStatus)
- getExportResponse_url :: Lens' GetExportResponse (Maybe Text)
- getExportResponse_exportType :: Lens' GetExportResponse (Maybe ExportType)
- getExportResponse_name :: Lens' GetExportResponse (Maybe Text)
- getExportResponse_version :: Lens' GetExportResponse (Maybe Text)
- getExportResponse_httpStatus :: Lens' GetExportResponse Int
Creating a Request
See: newGetExport
smart constructor.
GetExport' | |
|
Instances
:: Text | |
-> Text | |
-> ResourceType | |
-> ExportType | |
-> GetExport |
Create a value of GetExport
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:name:GetExport'
, getExport_name
- The name of the bot to export.
$sel:version:GetExport'
, getExport_version
- The version of the bot to export.
$sel:resourceType:GetExport'
, getExport_resourceType
- The type of resource to export.
$sel:exportType:GetExport'
, getExport_exportType
- The format of the exported data.
Request Lenses
getExport_resourceType :: Lens' GetExport ResourceType Source #
The type of resource to export.
getExport_exportType :: Lens' GetExport ExportType Source #
The format of the exported data.
Destructuring the Response
data GetExportResponse Source #
See: newGetExportResponse
smart constructor.
GetExportResponse' | |
|
Instances
Create a value of GetExportResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:failureReason:GetExportResponse'
, getExportResponse_failureReason
- If status
is FAILED
, Amazon Lex provides the reason that it failed
to export the resource.
$sel:resourceType:GetExport'
, getExportResponse_resourceType
- The type of the exported resource.
$sel:exportStatus:GetExportResponse'
, getExportResponse_exportStatus
- The status of the export.
IN_PROGRESS
- The export is in progress.READY
- The export is complete.FAILED
- The export could not be completed.
$sel:url:GetExportResponse'
, getExportResponse_url
- 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.
$sel:exportType:GetExport'
, getExportResponse_exportType
- The format of the exported data.
$sel:name:GetExport'
, getExportResponse_name
- The name of the bot being exported.
$sel:version:GetExport'
, getExportResponse_version
- The version of the bot being exported.
$sel:httpStatus:GetExportResponse'
, getExportResponse_httpStatus
- The response's http status code.
Response Lenses
getExportResponse_failureReason :: Lens' GetExportResponse (Maybe Text) Source #
If status
is FAILED
, Amazon Lex provides the reason that it failed
to export the resource.
getExportResponse_resourceType :: Lens' GetExportResponse (Maybe ResourceType) Source #
The type of the exported resource.
getExportResponse_exportStatus :: Lens' GetExportResponse (Maybe ExportStatus) Source #
The status of the export.
IN_PROGRESS
- The export is in progress.READY
- The export is complete.FAILED
- The export could not be completed.
getExportResponse_url :: Lens' GetExportResponse (Maybe Text) Source #
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.
getExportResponse_exportType :: Lens' GetExportResponse (Maybe ExportType) Source #
The format of the exported data.
getExportResponse_name :: Lens' GetExportResponse (Maybe Text) Source #
The name of the bot being exported.
getExportResponse_version :: Lens' GetExportResponse (Maybe Text) Source #
The version of the bot being exported.
getExportResponse_httpStatus :: Lens' GetExportResponse Int Source #
The response's http status code.