Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Exports the contents of a Amazon Lex resource in a specified format.
- getExport :: Text -> Text -> ResourceType -> ExportType -> GetExport
- data GetExport
- geName :: Lens' GetExport Text
- geVersion :: Lens' GetExport Text
- geResourceType :: Lens' GetExport ResourceType
- geExportType :: Lens' GetExport ExportType
- getExportResponse :: Int -> GetExportResponse
- data GetExportResponse
- gersFailureReason :: Lens' GetExportResponse (Maybe Text)
- gersResourceType :: Lens' GetExportResponse (Maybe ResourceType)
- gersExportStatus :: Lens' GetExportResponse (Maybe ExportStatus)
- gersUrl :: Lens' GetExportResponse (Maybe Text)
- gersExportType :: Lens' GetExportResponse (Maybe ExportType)
- gersName :: Lens' GetExportResponse (Maybe Text)
- gersVersion :: Lens' GetExportResponse (Maybe Text)
- gersResponseStatus :: Lens' GetExportResponse Int
Creating a Request
Creates a value of GetExport
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
geName
- The name of the bot to export.geVersion
- The version of the bot to export.geResourceType
- The type of resource to export.geExportType
- The format of the exported data.
See: getExport
smart constructor.
Request Lenses
geResourceType :: Lens' GetExport ResourceType Source #
The type of resource to export.
geExportType :: Lens' GetExport ExportType Source #
The format of the exported data.
Destructuring the Response
Creates a value of GetExportResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gersFailureReason
- Ifstatus
isFAILED
, Amazon Lex provides the reason that it failed to export the resource.gersResourceType
- The type of the exported resource.gersExportStatus
- The status of the export. *IN_PROGRESS
- The export is in progress. *READY
- The export is complete. *FAILED
- The export could not be completed.gersUrl
- 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.gersExportType
- The format of the exported data.gersName
- The name of the bot being exported.gersVersion
- The version of the bot being exported.gersResponseStatus
- -- | The response status code.
data GetExportResponse Source #
See: getExportResponse
smart constructor.
Response Lenses
gersFailureReason :: Lens' GetExportResponse (Maybe Text) Source #
If status
is FAILED
, Amazon Lex provides the reason that it failed to export the resource.
gersResourceType :: Lens' GetExportResponse (Maybe ResourceType) Source #
The type of the exported resource.
gersExportStatus :: 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.
gersUrl :: 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.
gersExportType :: Lens' GetExportResponse (Maybe ExportType) Source #
The format of the exported data.
gersVersion :: Lens' GetExportResponse (Maybe Text) Source #
The version of the bot being exported.
gersResponseStatus :: Lens' GetExportResponse Int Source #
- - | The response status code.