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 ReportTaskRunnerHeartbeat
every 15 minutes to
indicate that they are operational. If the AWS Data Pipeline Task Runner
is launched on a resource managed by AWS Data Pipeline, the web service
can use this call to detect when the task runner application has failed
and restart a new instance.
Synopsis
- data ReportTaskRunnerHeartbeat = ReportTaskRunnerHeartbeat' {
- hostname :: Maybe Text
- workerGroup :: Maybe Text
- taskrunnerId :: Text
- newReportTaskRunnerHeartbeat :: Text -> ReportTaskRunnerHeartbeat
- reportTaskRunnerHeartbeat_hostname :: Lens' ReportTaskRunnerHeartbeat (Maybe Text)
- reportTaskRunnerHeartbeat_workerGroup :: Lens' ReportTaskRunnerHeartbeat (Maybe Text)
- reportTaskRunnerHeartbeat_taskrunnerId :: Lens' ReportTaskRunnerHeartbeat Text
- data ReportTaskRunnerHeartbeatResponse = ReportTaskRunnerHeartbeatResponse' {
- httpStatus :: Int
- terminate :: Bool
- newReportTaskRunnerHeartbeatResponse :: Int -> Bool -> ReportTaskRunnerHeartbeatResponse
- reportTaskRunnerHeartbeatResponse_httpStatus :: Lens' ReportTaskRunnerHeartbeatResponse Int
- reportTaskRunnerHeartbeatResponse_terminate :: Lens' ReportTaskRunnerHeartbeatResponse Bool
Creating a Request
data ReportTaskRunnerHeartbeat Source #
Contains the parameters for ReportTaskRunnerHeartbeat.
See: newReportTaskRunnerHeartbeat
smart constructor.
ReportTaskRunnerHeartbeat' | |
|
Instances
newReportTaskRunnerHeartbeat Source #
Create a value of ReportTaskRunnerHeartbeat
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:hostname:ReportTaskRunnerHeartbeat'
, reportTaskRunnerHeartbeat_hostname
- The public DNS name of the task runner.
$sel:workerGroup:ReportTaskRunnerHeartbeat'
, reportTaskRunnerHeartbeat_workerGroup
- The type of task the task runner is configured to accept and process.
The worker group is set as a field on objects in the pipeline when they
are created. You can only specify a single value for workerGroup
.
There are no wildcard values permitted in workerGroup
; the string must
be an exact, case-sensitive, match.
$sel:taskrunnerId:ReportTaskRunnerHeartbeat'
, reportTaskRunnerHeartbeat_taskrunnerId
- The ID of the task runner. This value should be unique across your AWS
account. In the case of AWS Data Pipeline Task Runner launched on a
resource managed by AWS Data Pipeline, the web service provides a unique
identifier when it launches the application. If you have written a
custom task runner, you should assign a unique identifier for the task
runner.
Request Lenses
reportTaskRunnerHeartbeat_hostname :: Lens' ReportTaskRunnerHeartbeat (Maybe Text) Source #
The public DNS name of the task runner.
reportTaskRunnerHeartbeat_workerGroup :: Lens' ReportTaskRunnerHeartbeat (Maybe Text) Source #
The type of task the task runner is configured to accept and process.
The worker group is set as a field on objects in the pipeline when they
are created. You can only specify a single value for workerGroup
.
There are no wildcard values permitted in workerGroup
; the string must
be an exact, case-sensitive, match.
reportTaskRunnerHeartbeat_taskrunnerId :: Lens' ReportTaskRunnerHeartbeat Text Source #
The ID of the task runner. This value should be unique across your AWS account. In the case of AWS Data Pipeline Task Runner launched on a resource managed by AWS Data Pipeline, the web service provides a unique identifier when it launches the application. If you have written a custom task runner, you should assign a unique identifier for the task runner.
Destructuring the Response
data ReportTaskRunnerHeartbeatResponse Source #
Contains the output of ReportTaskRunnerHeartbeat.
See: newReportTaskRunnerHeartbeatResponse
smart constructor.
ReportTaskRunnerHeartbeatResponse' | |
|
Instances
Eq ReportTaskRunnerHeartbeatResponse Source # | |
Read ReportTaskRunnerHeartbeatResponse Source # | |
Show ReportTaskRunnerHeartbeatResponse Source # | |
Generic ReportTaskRunnerHeartbeatResponse Source # | |
NFData ReportTaskRunnerHeartbeatResponse Source # | |
Defined in Amazonka.DataPipeline.ReportTaskRunnerHeartbeat rnf :: ReportTaskRunnerHeartbeatResponse -> () # | |
type Rep ReportTaskRunnerHeartbeatResponse Source # | |
Defined in Amazonka.DataPipeline.ReportTaskRunnerHeartbeat type Rep ReportTaskRunnerHeartbeatResponse = D1 ('MetaData "ReportTaskRunnerHeartbeatResponse" "Amazonka.DataPipeline.ReportTaskRunnerHeartbeat" "libZSservicesZSamazonka-datapipelineZSamazonka-datapipeline" 'False) (C1 ('MetaCons "ReportTaskRunnerHeartbeatResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "terminate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))) |
newReportTaskRunnerHeartbeatResponse Source #
Create a value of ReportTaskRunnerHeartbeatResponse
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:ReportTaskRunnerHeartbeatResponse'
, reportTaskRunnerHeartbeatResponse_httpStatus
- The response's http status code.
$sel:terminate:ReportTaskRunnerHeartbeatResponse'
, reportTaskRunnerHeartbeatResponse_terminate
- Indicates whether the calling task runner should terminate.
Response Lenses
reportTaskRunnerHeartbeatResponse_httpStatus :: Lens' ReportTaskRunnerHeartbeatResponse Int Source #
The response's http status code.
reportTaskRunnerHeartbeatResponse_terminate :: Lens' ReportTaskRunnerHeartbeatResponse Bool Source #
Indicates whether the calling task runner should terminate.