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 |
Creates or updates a custom terminology, depending on whether one already exists for the given terminology name. Importing a terminology with the same name as an existing one will merge the terminologies based on the chosen merge strategy. The only supported merge strategy is OVERWRITE, where the imported terminology overwrites the existing terminology of the same name.
If you import a terminology that overwrites an existing one, the new terminology takes up to 10 minutes to fully propagate. After that, translations have access to the new terminology.
Synopsis
- data ImportTerminology = ImportTerminology' {}
- newImportTerminology :: Text -> MergeStrategy -> TerminologyData -> ImportTerminology
- importTerminology_description :: Lens' ImportTerminology (Maybe Text)
- importTerminology_encryptionKey :: Lens' ImportTerminology (Maybe EncryptionKey)
- importTerminology_tags :: Lens' ImportTerminology (Maybe [Tag])
- importTerminology_name :: Lens' ImportTerminology Text
- importTerminology_mergeStrategy :: Lens' ImportTerminology MergeStrategy
- importTerminology_terminologyData :: Lens' ImportTerminology TerminologyData
- data ImportTerminologyResponse = ImportTerminologyResponse' {}
- newImportTerminologyResponse :: Int -> ImportTerminologyResponse
- importTerminologyResponse_auxiliaryDataLocation :: Lens' ImportTerminologyResponse (Maybe TerminologyDataLocation)
- importTerminologyResponse_terminologyProperties :: Lens' ImportTerminologyResponse (Maybe TerminologyProperties)
- importTerminologyResponse_httpStatus :: Lens' ImportTerminologyResponse Int
Creating a Request
data ImportTerminology Source #
See: newImportTerminology
smart constructor.
ImportTerminology' | |
|
Instances
Create a value of ImportTerminology
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:
ImportTerminology
, importTerminology_description
- The description of the custom terminology being imported.
ImportTerminology
, importTerminology_encryptionKey
- The encryption key for the custom terminology being imported.
$sel:tags:ImportTerminology'
, importTerminology_tags
- Tags to be associated with this resource. A tag is a key-value pair that
adds metadata to a resource. Each tag key for the resource must be
unique. For more information, see
Tagging your resources.
ImportTerminology
, importTerminology_name
- The name of the custom terminology being imported.
$sel:mergeStrategy:ImportTerminology'
, importTerminology_mergeStrategy
- The merge strategy of the custom terminology being imported. Currently,
only the OVERWRITE merge strategy is supported. In this case, the
imported terminology will overwrite an existing terminology of the same
name.
$sel:terminologyData:ImportTerminology'
, importTerminology_terminologyData
- The terminology data for the custom terminology being imported.
Request Lenses
importTerminology_description :: Lens' ImportTerminology (Maybe Text) Source #
The description of the custom terminology being imported.
importTerminology_encryptionKey :: Lens' ImportTerminology (Maybe EncryptionKey) Source #
The encryption key for the custom terminology being imported.
importTerminology_tags :: Lens' ImportTerminology (Maybe [Tag]) Source #
Tags to be associated with this resource. A tag is a key-value pair that adds metadata to a resource. Each tag key for the resource must be unique. For more information, see Tagging your resources.
importTerminology_name :: Lens' ImportTerminology Text Source #
The name of the custom terminology being imported.
importTerminology_mergeStrategy :: Lens' ImportTerminology MergeStrategy Source #
The merge strategy of the custom terminology being imported. Currently, only the OVERWRITE merge strategy is supported. In this case, the imported terminology will overwrite an existing terminology of the same name.
importTerminology_terminologyData :: Lens' ImportTerminology TerminologyData Source #
The terminology data for the custom terminology being imported.
Destructuring the Response
data ImportTerminologyResponse Source #
See: newImportTerminologyResponse
smart constructor.
ImportTerminologyResponse' | |
|
Instances
newImportTerminologyResponse Source #
Create a value of ImportTerminologyResponse
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:auxiliaryDataLocation:ImportTerminologyResponse'
, importTerminologyResponse_auxiliaryDataLocation
- The Amazon S3 location of a file that provides any errors or warnings
that were produced by your input file. This file was created when Amazon
Translate attempted to create a terminology resource. The location is
returned as a presigned URL to that has a 30 minute expiration.
$sel:terminologyProperties:ImportTerminologyResponse'
, importTerminologyResponse_terminologyProperties
- The properties of the custom terminology being imported.
$sel:httpStatus:ImportTerminologyResponse'
, importTerminologyResponse_httpStatus
- The response's http status code.
Response Lenses
importTerminologyResponse_auxiliaryDataLocation :: Lens' ImportTerminologyResponse (Maybe TerminologyDataLocation) Source #
The Amazon S3 location of a file that provides any errors or warnings that were produced by your input file. This file was created when Amazon Translate attempted to create a terminology resource. The location is returned as a presigned URL to that has a 30 minute expiration.
importTerminologyResponse_terminologyProperties :: Lens' ImportTerminologyResponse (Maybe TerminologyProperties) Source #
The properties of the custom terminology being imported.
importTerminologyResponse_httpStatus :: Lens' ImportTerminologyResponse Int Source #
The response's http status code.