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 |
Creates or updates a custom terminology, depending on whether or not 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. Currently, the only supported merge strategy is OVERWRITE, and so the imported terminology will overwrite an existing terminology of the same name.
If you import a terminology that overwrites an existing one, the new terminology take up to 10 minutes to fully propagate and be available for use in a translation due to cache policies with the DataPlane service that performs the translations.
Synopsis
- data ImportTerminology = ImportTerminology' {}
- newImportTerminology :: Text -> MergeStrategy -> TerminologyData -> ImportTerminology
- importTerminology_encryptionKey :: Lens' ImportTerminology (Maybe EncryptionKey)
- importTerminology_description :: Lens' ImportTerminology (Maybe Text)
- importTerminology_name :: Lens' ImportTerminology Text
- importTerminology_mergeStrategy :: Lens' ImportTerminology MergeStrategy
- importTerminology_terminologyData :: Lens' ImportTerminology TerminologyData
- data ImportTerminologyResponse = ImportTerminologyResponse' {}
- newImportTerminologyResponse :: Int -> ImportTerminologyResponse
- 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:
$sel:encryptionKey:ImportTerminology'
, importTerminology_encryptionKey
- The encryption key for the custom terminology being imported.
$sel:description:ImportTerminology'
, importTerminology_description
- The description of the custom terminology being imported.
$sel:name: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_encryptionKey :: Lens' ImportTerminology (Maybe EncryptionKey) Source #
The encryption key for the custom terminology being imported.
importTerminology_description :: Lens' ImportTerminology (Maybe Text) Source #
The description of the custom terminology being imported.
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: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_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.