Struct aws_sdk_datapipeline::client::fluent_builders::ReportTaskRunnerHeartbeat [−][src]
pub struct ReportTaskRunnerHeartbeat<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to ReportTaskRunnerHeartbeat
.
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.
POST / HTTP/1.1 Content-Type: application/x-amz-json-1.1 X-Amz-Target: DataPipeline.ReportTaskRunnerHeartbeat Content-Length: 84 Host: datapipeline.us-east-1.amazonaws.com X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT Authorization: AuthParams
{“taskrunnerId”: “1234567890”, “workerGroup”: “wg-12345”, “hostname”: “example.com”}
Status: x-amzn-RequestId: b3104dc5-0734-11e2-af6f-6bc7a6be60d9 Content-Type: application/x-amz-json-1.1 Content-Length: 20 Date: Mon, 12 Nov 2012 17:50:53 GMT
{“terminate”: false}
Implementations
impl<C, M, R> ReportTaskRunnerHeartbeat<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> ReportTaskRunnerHeartbeat<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<ReportTaskRunnerHeartbeatOutput, SdkError<ReportTaskRunnerHeartbeatError>> where
R::Policy: SmithyRetryPolicy<ReportTaskRunnerHeartbeatInputOperationOutputAlias, ReportTaskRunnerHeartbeatOutput, ReportTaskRunnerHeartbeatError, ReportTaskRunnerHeartbeatInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<ReportTaskRunnerHeartbeatOutput, SdkError<ReportTaskRunnerHeartbeatError>> where
R::Policy: SmithyRetryPolicy<ReportTaskRunnerHeartbeatInputOperationOutputAlias, ReportTaskRunnerHeartbeatOutput, ReportTaskRunnerHeartbeatError, ReportTaskRunnerHeartbeatInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
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.
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.
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.
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.
The public DNS name of the task runner.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for ReportTaskRunnerHeartbeat<C, M, R>
impl<C, M, R> Send for ReportTaskRunnerHeartbeat<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for ReportTaskRunnerHeartbeat<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for ReportTaskRunnerHeartbeat<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for ReportTaskRunnerHeartbeat<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more