Skip to content

Restarts the specified connector

Description

Restarts the specified connector. By default, this operation restarts the connector and all of its tasks. This operation is asynchronous and returns a connector operation ARN that you can pass to describe_connector_operation to track the state of the restart.

Usage

kafkaconnect_restart_connector(connectorArn, onlyFailedTasks)

Arguments

  • connectorArn

    [required] The Amazon Resource Name (ARN) of the connector that you want to restart.

  • onlyFailedTasks

    Specifies whether to restart only the connector's failed tasks. If true, the operation restarts only the tasks that are currently in a failed state, and healthy tasks continue running. If false or not specified, the operation restarts the connector and all of its tasks.

Value

A list with the following syntax:

list(
  connectorArn = "string",
  connectorOperationArn = "string"
)

Request syntax

svc$restart_connector(
  connectorArn = "string",
  onlyFailedTasks = TRUE|FALSE
)