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 a parallel data resource in Amazon Translate by importing an input file from Amazon S3. Parallel data files contain examples of source phrases and their translations from your translation memory. By adding parallel data, you can influence the style, tone, and word choice in your translation output.
Synopsis
- data CreateParallelData = CreateParallelData' {}
- newCreateParallelData :: Text -> ParallelDataConfig -> Text -> CreateParallelData
- createParallelData_encryptionKey :: Lens' CreateParallelData (Maybe EncryptionKey)
- createParallelData_description :: Lens' CreateParallelData (Maybe Text)
- createParallelData_name :: Lens' CreateParallelData Text
- createParallelData_parallelDataConfig :: Lens' CreateParallelData ParallelDataConfig
- createParallelData_clientToken :: Lens' CreateParallelData Text
- data CreateParallelDataResponse = CreateParallelDataResponse' {
- status :: Maybe ParallelDataStatus
- name :: Maybe Text
- httpStatus :: Int
- newCreateParallelDataResponse :: Int -> CreateParallelDataResponse
- createParallelDataResponse_status :: Lens' CreateParallelDataResponse (Maybe ParallelDataStatus)
- createParallelDataResponse_name :: Lens' CreateParallelDataResponse (Maybe Text)
- createParallelDataResponse_httpStatus :: Lens' CreateParallelDataResponse Int
Creating a Request
data CreateParallelData Source #
See: newCreateParallelData
smart constructor.
CreateParallelData' | |
|
Instances
newCreateParallelData Source #
:: Text | |
-> ParallelDataConfig | |
-> Text | |
-> CreateParallelData |
Create a value of CreateParallelData
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:CreateParallelData'
, createParallelData_encryptionKey
- Undocumented member.
$sel:description:CreateParallelData'
, createParallelData_description
- A custom description for the parallel data resource in Amazon Translate.
$sel:name:CreateParallelData'
, createParallelData_name
- A custom name for the parallel data resource in Amazon Translate. You
must assign a name that is unique in the account and region.
$sel:parallelDataConfig:CreateParallelData'
, createParallelData_parallelDataConfig
- Specifies the format and S3 location of the parallel data input file.
$sel:clientToken:CreateParallelData'
, createParallelData_clientToken
- A unique identifier for the request. This token is automatically
generated when you use Amazon Translate through an AWS SDK.
Request Lenses
createParallelData_encryptionKey :: Lens' CreateParallelData (Maybe EncryptionKey) Source #
Undocumented member.
createParallelData_description :: Lens' CreateParallelData (Maybe Text) Source #
A custom description for the parallel data resource in Amazon Translate.
createParallelData_name :: Lens' CreateParallelData Text Source #
A custom name for the parallel data resource in Amazon Translate. You must assign a name that is unique in the account and region.
createParallelData_parallelDataConfig :: Lens' CreateParallelData ParallelDataConfig Source #
Specifies the format and S3 location of the parallel data input file.
createParallelData_clientToken :: Lens' CreateParallelData Text Source #
A unique identifier for the request. This token is automatically generated when you use Amazon Translate through an AWS SDK.
Destructuring the Response
data CreateParallelDataResponse Source #
See: newCreateParallelDataResponse
smart constructor.
CreateParallelDataResponse' | |
|
Instances
newCreateParallelDataResponse Source #
Create a value of CreateParallelDataResponse
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:status:CreateParallelDataResponse'
, createParallelDataResponse_status
- The status of the parallel data resource. When the resource is ready for
you to use, the status is ACTIVE
.
$sel:name:CreateParallelData'
, createParallelDataResponse_name
- The custom name that you assigned to the parallel data resource.
$sel:httpStatus:CreateParallelDataResponse'
, createParallelDataResponse_httpStatus
- The response's http status code.
Response Lenses
createParallelDataResponse_status :: Lens' CreateParallelDataResponse (Maybe ParallelDataStatus) Source #
The status of the parallel data resource. When the resource is ready for
you to use, the status is ACTIVE
.
createParallelDataResponse_name :: Lens' CreateParallelDataResponse (Maybe Text) Source #
The custom name that you assigned to the parallel data resource.
createParallelDataResponse_httpStatus :: Lens' CreateParallelDataResponse Int Source #
The response's http status code.