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 |
Amazonka.Translate.UpdateParallelData
Description
Updates a previously created parallel data resource by importing a new input file from Amazon S3.
Synopsis
- data UpdateParallelData = UpdateParallelData' {}
- newUpdateParallelData :: Text -> ParallelDataConfig -> Text -> UpdateParallelData
- updateParallelData_description :: Lens' UpdateParallelData (Maybe Text)
- updateParallelData_name :: Lens' UpdateParallelData Text
- updateParallelData_parallelDataConfig :: Lens' UpdateParallelData ParallelDataConfig
- updateParallelData_clientToken :: Lens' UpdateParallelData Text
- data UpdateParallelDataResponse = UpdateParallelDataResponse' {}
- newUpdateParallelDataResponse :: Int -> UpdateParallelDataResponse
- updateParallelDataResponse_status :: Lens' UpdateParallelDataResponse (Maybe ParallelDataStatus)
- updateParallelDataResponse_name :: Lens' UpdateParallelDataResponse (Maybe Text)
- updateParallelDataResponse_latestUpdateAttemptAt :: Lens' UpdateParallelDataResponse (Maybe UTCTime)
- updateParallelDataResponse_latestUpdateAttemptStatus :: Lens' UpdateParallelDataResponse (Maybe ParallelDataStatus)
- updateParallelDataResponse_httpStatus :: Lens' UpdateParallelDataResponse Int
Creating a Request
data UpdateParallelData Source #
See: newUpdateParallelData
smart constructor.
Constructors
UpdateParallelData' | |
Fields
|
Instances
newUpdateParallelData Source #
Arguments
:: Text | |
-> ParallelDataConfig | |
-> Text | |
-> UpdateParallelData |
Create a value of UpdateParallelData
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:description:UpdateParallelData'
, updateParallelData_description
- A custom description for the parallel data resource in Amazon Translate.
$sel:name:UpdateParallelData'
, updateParallelData_name
- The name of the parallel data resource being updated.
$sel:parallelDataConfig:UpdateParallelData'
, updateParallelData_parallelDataConfig
- Specifies the format and S3 location of the parallel data input file.
$sel:clientToken:UpdateParallelData'
, updateParallelData_clientToken
- A unique identifier for the request. This token is automatically
generated when you use Amazon Translate through an AWS SDK.
Request Lenses
updateParallelData_description :: Lens' UpdateParallelData (Maybe Text) Source #
A custom description for the parallel data resource in Amazon Translate.
updateParallelData_name :: Lens' UpdateParallelData Text Source #
The name of the parallel data resource being updated.
updateParallelData_parallelDataConfig :: Lens' UpdateParallelData ParallelDataConfig Source #
Specifies the format and S3 location of the parallel data input file.
updateParallelData_clientToken :: Lens' UpdateParallelData 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 UpdateParallelDataResponse Source #
See: newUpdateParallelDataResponse
smart constructor.
Constructors
UpdateParallelDataResponse' | |
Fields
|
Instances
newUpdateParallelDataResponse Source #
Create a value of UpdateParallelDataResponse
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:UpdateParallelDataResponse'
, updateParallelDataResponse_status
- The status of the parallel data resource that you are attempting to
update. Your update request is accepted only if this status is either
ACTIVE
or FAILED
.
$sel:name:UpdateParallelData'
, updateParallelDataResponse_name
- The name of the parallel data resource being updated.
$sel:latestUpdateAttemptAt:UpdateParallelDataResponse'
, updateParallelDataResponse_latestUpdateAttemptAt
- The time that the most recent update was attempted.
$sel:latestUpdateAttemptStatus:UpdateParallelDataResponse'
, updateParallelDataResponse_latestUpdateAttemptStatus
- The status of the parallel data update attempt. When the updated
parallel data resource is ready for you to use, the status is ACTIVE
.
$sel:httpStatus:UpdateParallelDataResponse'
, updateParallelDataResponse_httpStatus
- The response's http status code.
Response Lenses
updateParallelDataResponse_status :: Lens' UpdateParallelDataResponse (Maybe ParallelDataStatus) Source #
The status of the parallel data resource that you are attempting to
update. Your update request is accepted only if this status is either
ACTIVE
or FAILED
.
updateParallelDataResponse_name :: Lens' UpdateParallelDataResponse (Maybe Text) Source #
The name of the parallel data resource being updated.
updateParallelDataResponse_latestUpdateAttemptAt :: Lens' UpdateParallelDataResponse (Maybe UTCTime) Source #
The time that the most recent update was attempted.
updateParallelDataResponse_latestUpdateAttemptStatus :: Lens' UpdateParallelDataResponse (Maybe ParallelDataStatus) Source #
The status of the parallel data update attempt. When the updated
parallel data resource is ready for you to use, the status is ACTIVE
.
updateParallelDataResponse_httpStatus :: Lens' UpdateParallelDataResponse Int Source #
The response's http status code.