Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Starts importing a bot, bot locale, or custom vocabulary from a zip archive that you uploaded to an S3 bucket.
Synopsis
- data StartImport = StartImport' {}
- newStartImport :: Text -> ImportResourceSpecification -> MergeStrategy -> StartImport
- startImport_filePassword :: Lens' StartImport (Maybe Text)
- startImport_importId :: Lens' StartImport Text
- startImport_resourceSpecification :: Lens' StartImport ImportResourceSpecification
- startImport_mergeStrategy :: Lens' StartImport MergeStrategy
- data StartImportResponse = StartImportResponse' {}
- newStartImportResponse :: Int -> StartImportResponse
- startImportResponse_creationDateTime :: Lens' StartImportResponse (Maybe UTCTime)
- startImportResponse_importId :: Lens' StartImportResponse (Maybe Text)
- startImportResponse_importStatus :: Lens' StartImportResponse (Maybe ImportStatus)
- startImportResponse_mergeStrategy :: Lens' StartImportResponse (Maybe MergeStrategy)
- startImportResponse_resourceSpecification :: Lens' StartImportResponse (Maybe ImportResourceSpecification)
- startImportResponse_httpStatus :: Lens' StartImportResponse Int
Creating a Request
data StartImport Source #
See: newStartImport
smart constructor.
StartImport' | |
|
Instances
Create a value of StartImport
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:filePassword:StartImport'
, startImport_filePassword
- The password used to encrypt the zip archive that contains the resource
definition. You should always encrypt the zip archive to protect it
during transit between your site and Amazon Lex.
StartImport
, startImport_importId
- The unique identifier for the import. It is included in the response
from the
CreateUploadUrl
operation.
StartImport
, startImport_resourceSpecification
- Parameters for creating the bot, bot locale or custom vocabulary.
StartImport
, startImport_mergeStrategy
- The strategy to use when there is a name conflict between the imported
resource and an existing resource. When the merge strategy is
FailOnConflict
existing resources are not overwritten and the import
fails.
Request Lenses
startImport_filePassword :: Lens' StartImport (Maybe Text) Source #
The password used to encrypt the zip archive that contains the resource definition. You should always encrypt the zip archive to protect it during transit between your site and Amazon Lex.
startImport_importId :: Lens' StartImport Text Source #
The unique identifier for the import. It is included in the response from the CreateUploadUrl operation.
startImport_resourceSpecification :: Lens' StartImport ImportResourceSpecification Source #
Parameters for creating the bot, bot locale or custom vocabulary.
startImport_mergeStrategy :: Lens' StartImport MergeStrategy Source #
The strategy to use when there is a name conflict between the imported
resource and an existing resource. When the merge strategy is
FailOnConflict
existing resources are not overwritten and the import
fails.
Destructuring the Response
data StartImportResponse Source #
See: newStartImportResponse
smart constructor.
StartImportResponse' | |
|
Instances
newStartImportResponse Source #
Create a value of StartImportResponse
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:
StartImportResponse
, startImportResponse_creationDateTime
- The date and time that the import request was created.
StartImport
, startImportResponse_importId
- A unique identifier for the import.
StartImportResponse
, startImportResponse_importStatus
- The current status of the import. When the status is Complete
the bot,
bot alias, or custom vocabulary is ready to use.
StartImport
, startImportResponse_mergeStrategy
- The strategy used when there was a name conflict between the imported
resource and an existing resource. When the merge strategy is
FailOnConflict
existing resources are not overwritten and the import
fails.
StartImport
, startImportResponse_resourceSpecification
- The parameters used when importing the resource.
$sel:httpStatus:StartImportResponse'
, startImportResponse_httpStatus
- The response's http status code.
Response Lenses
startImportResponse_creationDateTime :: Lens' StartImportResponse (Maybe UTCTime) Source #
The date and time that the import request was created.
startImportResponse_importId :: Lens' StartImportResponse (Maybe Text) Source #
A unique identifier for the import.
startImportResponse_importStatus :: Lens' StartImportResponse (Maybe ImportStatus) Source #
The current status of the import. When the status is Complete
the bot,
bot alias, or custom vocabulary is ready to use.
startImportResponse_mergeStrategy :: Lens' StartImportResponse (Maybe MergeStrategy) Source #
The strategy used when there was a name conflict between the imported
resource and an existing resource. When the merge strategy is
FailOnConflict
existing resources are not overwritten and the import
fails.
startImportResponse_resourceSpecification :: Lens' StartImportResponse (Maybe ImportResourceSpecification) Source #
The parameters used when importing the resource.
startImportResponse_httpStatus :: Lens' StartImportResponse Int Source #
The response's http status code.