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 |
Task runners call SetTaskStatus
to notify AWS Data Pipeline that a
task is completed and provide information about the final status. A task
runner makes this call regardless of whether the task was sucessful. A
task runner does not need to call SetTaskStatus
for tasks that are
canceled by the web service during a call to ReportTaskProgress.
Synopsis
- data SetTaskStatus = SetTaskStatus' {
- errorStackTrace :: Maybe Text
- errorId :: Maybe Text
- errorMessage :: Maybe Text
- taskId :: Text
- taskStatus :: TaskStatus
- newSetTaskStatus :: Text -> TaskStatus -> SetTaskStatus
- setTaskStatus_errorStackTrace :: Lens' SetTaskStatus (Maybe Text)
- setTaskStatus_errorId :: Lens' SetTaskStatus (Maybe Text)
- setTaskStatus_errorMessage :: Lens' SetTaskStatus (Maybe Text)
- setTaskStatus_taskId :: Lens' SetTaskStatus Text
- setTaskStatus_taskStatus :: Lens' SetTaskStatus TaskStatus
- data SetTaskStatusResponse = SetTaskStatusResponse' {
- httpStatus :: Int
- newSetTaskStatusResponse :: Int -> SetTaskStatusResponse
- setTaskStatusResponse_httpStatus :: Lens' SetTaskStatusResponse Int
Creating a Request
data SetTaskStatus Source #
Contains the parameters for SetTaskStatus.
See: newSetTaskStatus
smart constructor.
SetTaskStatus' | |
|
Instances
Create a value of SetTaskStatus
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:errorStackTrace:SetTaskStatus'
, setTaskStatus_errorStackTrace
- If an error occurred during the task, this value specifies the stack
trace associated with the error. This value is set on the physical
attempt object. It is used to display error information to the user. The
web service does not parse this value.
$sel:errorId:SetTaskStatus'
, setTaskStatus_errorId
- If an error occurred during the task, this value specifies the error
code. This value is set on the physical attempt object. It is used to
display error information to the user. It should not start with string
"Service_" which is reserved by the system.
$sel:errorMessage:SetTaskStatus'
, setTaskStatus_errorMessage
- If an error occurred during the task, this value specifies a text
description of the error. This value is set on the physical attempt
object. It is used to display error information to the user. The web
service does not parse this value.
$sel:taskId:SetTaskStatus'
, setTaskStatus_taskId
- The ID of the task assigned to the task runner. This value is provided
in the response for PollForTask.
$sel:taskStatus:SetTaskStatus'
, setTaskStatus_taskStatus
- If FINISHED
, the task successfully completed. If FAILED
, the task
ended unsuccessfully. Preconditions use false.
Request Lenses
setTaskStatus_errorStackTrace :: Lens' SetTaskStatus (Maybe Text) Source #
If an error occurred during the task, this value specifies the stack trace associated with the error. This value is set on the physical attempt object. It is used to display error information to the user. The web service does not parse this value.
setTaskStatus_errorId :: Lens' SetTaskStatus (Maybe Text) Source #
If an error occurred during the task, this value specifies the error code. This value is set on the physical attempt object. It is used to display error information to the user. It should not start with string "Service_" which is reserved by the system.
setTaskStatus_errorMessage :: Lens' SetTaskStatus (Maybe Text) Source #
If an error occurred during the task, this value specifies a text description of the error. This value is set on the physical attempt object. It is used to display error information to the user. The web service does not parse this value.
setTaskStatus_taskId :: Lens' SetTaskStatus Text Source #
The ID of the task assigned to the task runner. This value is provided in the response for PollForTask.
setTaskStatus_taskStatus :: Lens' SetTaskStatus TaskStatus Source #
If FINISHED
, the task successfully completed. If FAILED
, the task
ended unsuccessfully. Preconditions use false.
Destructuring the Response
data SetTaskStatusResponse Source #
Contains the output of SetTaskStatus.
See: newSetTaskStatusResponse
smart constructor.
SetTaskStatusResponse' | |
|
Instances
newSetTaskStatusResponse Source #
Create a value of SetTaskStatusResponse
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:httpStatus:SetTaskStatusResponse'
, setTaskStatusResponse_httpStatus
- The response's http status code.
Response Lenses
setTaskStatusResponse_httpStatus :: Lens' SetTaskStatusResponse Int Source #
The response's http status code.