@aws-sdk/client-kafkaconnect 3.1121.0 → 3.1123.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -286,6 +286,13 @@ ListWorkerConfigurations
286
286
  </details>
287
287
  <details>
288
288
  <summary>
289
+ RestartConnector
290
+ </summary>
291
+
292
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/kafkaconnect/command/RestartConnectorCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kafkaconnect/Interface/RestartConnectorCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kafkaconnect/Interface/RestartConnectorCommandOutput/)
293
+ </details>
294
+ <details>
295
+ <summary>
289
296
  TagResource
290
297
  </summary>
291
298
 
package/dist-cjs/index.js CHANGED
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1120.0";
72
+ var version = "3.1122.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -325,6 +325,9 @@ const _PC = "ProvisionedCapacity";
325
325
  const _PCD = "ProvisionedCapacityDescription";
326
326
  const _PCU = "ProvisionedCapacityUpdate";
327
327
  const _PD = "PluginDescription";
328
+ const _RC = "RestartConnector";
329
+ const _RCR = "RestartConnectorRequest";
330
+ const _RCRe = "RestartConnectorResponse";
328
331
  const _SD = "StateDescription";
329
332
  const _SIP = "ScaleInPolicy";
330
333
  const _SIPD = "ScaleInPolicyDescription";
@@ -428,6 +431,7 @@ const _nP = "namePrefix";
428
431
  const _nT = "networkType";
429
432
  const _nTe = "nextToken";
430
433
  const _oCC = "originConnectorConfiguration";
434
+ const _oFT = "onlyFailedTasks";
431
435
  const _oS = "operationSteps";
432
436
  const _oV = "objectVersion";
433
437
  const _oWS = "originWorkerSetting";
@@ -844,6 +848,16 @@ var ProvisionedCapacityUpdate$ = [3, n0, _PCU,
844
848
  [_mC, _wCor],
845
849
  [1, 1], 2
846
850
  ];
851
+ var RestartConnectorRequest$ = [3, n0, _RCR,
852
+ 0,
853
+ [_cA, _oFT],
854
+ [[0, 1], [2, { [_hQ]: _oFT }]], 1
855
+ ];
856
+ var RestartConnectorResponse$ = [3, n0, _RCRe,
857
+ 0,
858
+ [_cA, _cOA],
859
+ [0, 0]
860
+ ];
847
861
  var S3Location$ = [3, n0, _SL,
848
862
  0,
849
863
  [_bA, _fK, _oV],
@@ -1051,6 +1065,9 @@ var ListTagsForResource$ = [9, n0, _LTFR,
1051
1065
  var ListWorkerConfigurations$ = [9, n0, _LWC,
1052
1066
  { [_h]: ["GET", "/v1/worker-configurations", 200] }, () => ListWorkerConfigurationsRequest$, () => ListWorkerConfigurationsResponse$
1053
1067
  ];
1068
+ var RestartConnector$ = [9, n0, _RC,
1069
+ { [_h]: ["POST", "/v1/connectors/{connectorArn}/restart", 200] }, () => RestartConnectorRequest$, () => RestartConnectorResponse$
1070
+ ];
1054
1071
  var TagResource$ = [9, n0, _TR,
1055
1072
  { [_h]: ["POST", "/v1/tags/{resourceArn}", 200] }, () => TagResourceRequest$, () => TagResourceResponse$
1056
1073
  ];
@@ -1256,6 +1273,9 @@ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResourc
1256
1273
  class ListWorkerConfigurationsCommand extends command(_ep0, _mw0, "ListWorkerConfigurations", ListWorkerConfigurations$) {
1257
1274
  }
1258
1275
 
1276
+ class RestartConnectorCommand extends command(_ep0, _mw0, "RestartConnector", RestartConnector$) {
1277
+ }
1278
+
1259
1279
  class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
1260
1280
  }
1261
1281
 
@@ -1289,6 +1309,7 @@ const commands = {
1289
1309
  ListCustomPluginsCommand,
1290
1310
  ListTagsForResourceCommand,
1291
1311
  ListWorkerConfigurationsCommand,
1312
+ RestartConnectorCommand,
1292
1313
  TagResourceCommand,
1293
1314
  UntagResourceCommand,
1294
1315
  UpdateConnectorCommand,
@@ -1319,6 +1340,9 @@ const ConnectorOperationStepType = {
1319
1340
  };
1320
1341
  const ConnectorOperationState = {
1321
1342
  PENDING: "PENDING",
1343
+ RESTART_COMPLETE: "RESTART_COMPLETE",
1344
+ RESTART_FAILED: "RESTART_FAILED",
1345
+ RESTART_IN_PROGRESS: "RESTART_IN_PROGRESS",
1322
1346
  ROLLBACK_COMPLETE: "ROLLBACK_COMPLETE",
1323
1347
  ROLLBACK_FAILED: "ROLLBACK_FAILED",
1324
1348
  ROLLBACK_IN_PROGRESS: "ROLLBACK_IN_PROGRESS",
@@ -1328,6 +1352,7 @@ const ConnectorOperationState = {
1328
1352
  };
1329
1353
  const ConnectorOperationType = {
1330
1354
  ISOLATE_CONNECTOR: "ISOLATE_CONNECTOR",
1355
+ RESTART_CONNECTOR: "RESTART_CONNECTOR",
1331
1356
  RESTORE_CONNECTOR: "RESTORE_CONNECTOR",
1332
1357
  UPDATE_CONNECTOR_CONFIGURATION: "UPDATE_CONNECTOR_CONFIGURATION",
1333
1358
  UPDATE_WORKER_SETTING: "UPDATE_WORKER_SETTING",
@@ -1336,6 +1361,7 @@ const ConnectorState = {
1336
1361
  CREATING: "CREATING",
1337
1362
  DELETING: "DELETING",
1338
1363
  FAILED: "FAILED",
1364
+ RESTARTING: "RESTARTING",
1339
1365
  RUNNING: "RUNNING",
1340
1366
  UPDATING: "UPDATING",
1341
1367
  };
@@ -1487,6 +1513,10 @@ exports.PluginDescription$ = PluginDescription$;
1487
1513
  exports.ProvisionedCapacity$ = ProvisionedCapacity$;
1488
1514
  exports.ProvisionedCapacityDescription$ = ProvisionedCapacityDescription$;
1489
1515
  exports.ProvisionedCapacityUpdate$ = ProvisionedCapacityUpdate$;
1516
+ exports.RestartConnector$ = RestartConnector$;
1517
+ exports.RestartConnectorCommand = RestartConnectorCommand;
1518
+ exports.RestartConnectorRequest$ = RestartConnectorRequest$;
1519
+ exports.RestartConnectorResponse$ = RestartConnectorResponse$;
1490
1520
  exports.S3Location$ = S3Location$;
1491
1521
  exports.S3LocationDescription$ = S3LocationDescription$;
1492
1522
  exports.S3LogDelivery$ = S3LogDelivery$;
@@ -14,6 +14,7 @@ import { ListConnectorsCommand, } from "./commands/ListConnectorsCommand";
14
14
  import { ListCustomPluginsCommand, } from "./commands/ListCustomPluginsCommand";
15
15
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
16
16
  import { ListWorkerConfigurationsCommand, } from "./commands/ListWorkerConfigurationsCommand";
17
+ import { RestartConnectorCommand, } from "./commands/RestartConnectorCommand";
17
18
  import { TagResourceCommand, } from "./commands/TagResourceCommand";
18
19
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
19
20
  import { UpdateConnectorCommand, } from "./commands/UpdateConnectorCommand";
@@ -38,6 +39,7 @@ const commands = {
38
39
  ListCustomPluginsCommand,
39
40
  ListTagsForResourceCommand,
40
41
  ListWorkerConfigurationsCommand,
42
+ RestartConnectorCommand,
41
43
  TagResourceCommand,
42
44
  UntagResourceCommand,
43
45
  UpdateConnectorCommand,
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { RestartConnector$ } from "../schemas/schemas_0";
3
+ export class RestartConnectorCommand extends command(_ep0, _mw0, "RestartConnector", RestartConnector$) {
4
+ }
@@ -13,6 +13,7 @@ export * from "./ListConnectorsCommand";
13
13
  export * from "./ListCustomPluginsCommand";
14
14
  export * from "./ListTagsForResourceCommand";
15
15
  export * from "./ListWorkerConfigurationsCommand";
16
+ export * from "./RestartConnectorCommand";
16
17
  export * from "./TagResourceCommand";
17
18
  export * from "./UntagResourceCommand";
18
19
  export * from "./UpdateConnectorCommand";
@@ -14,6 +14,9 @@ export const ConnectorOperationStepType = {
14
14
  };
15
15
  export const ConnectorOperationState = {
16
16
  PENDING: "PENDING",
17
+ RESTART_COMPLETE: "RESTART_COMPLETE",
18
+ RESTART_FAILED: "RESTART_FAILED",
19
+ RESTART_IN_PROGRESS: "RESTART_IN_PROGRESS",
17
20
  ROLLBACK_COMPLETE: "ROLLBACK_COMPLETE",
18
21
  ROLLBACK_FAILED: "ROLLBACK_FAILED",
19
22
  ROLLBACK_IN_PROGRESS: "ROLLBACK_IN_PROGRESS",
@@ -23,6 +26,7 @@ export const ConnectorOperationState = {
23
26
  };
24
27
  export const ConnectorOperationType = {
25
28
  ISOLATE_CONNECTOR: "ISOLATE_CONNECTOR",
29
+ RESTART_CONNECTOR: "RESTART_CONNECTOR",
26
30
  RESTORE_CONNECTOR: "RESTORE_CONNECTOR",
27
31
  UPDATE_CONNECTOR_CONFIGURATION: "UPDATE_CONNECTOR_CONFIGURATION",
28
32
  UPDATE_WORKER_SETTING: "UPDATE_WORKER_SETTING",
@@ -31,6 +35,7 @@ export const ConnectorState = {
31
35
  CREATING: "CREATING",
32
36
  DELETING: "DELETING",
33
37
  FAILED: "FAILED",
38
+ RESTARTING: "RESTARTING",
34
39
  RUNNING: "RUNNING",
35
40
  UPDATING: "UPDATING",
36
41
  };
@@ -85,6 +85,9 @@ const _PC = "ProvisionedCapacity";
85
85
  const _PCD = "ProvisionedCapacityDescription";
86
86
  const _PCU = "ProvisionedCapacityUpdate";
87
87
  const _PD = "PluginDescription";
88
+ const _RC = "RestartConnector";
89
+ const _RCR = "RestartConnectorRequest";
90
+ const _RCRe = "RestartConnectorResponse";
88
91
  const _SD = "StateDescription";
89
92
  const _SIP = "ScaleInPolicy";
90
93
  const _SIPD = "ScaleInPolicyDescription";
@@ -188,6 +191,7 @@ const _nP = "namePrefix";
188
191
  const _nT = "networkType";
189
192
  const _nTe = "nextToken";
190
193
  const _oCC = "originConnectorConfiguration";
194
+ const _oFT = "onlyFailedTasks";
191
195
  const _oS = "operationSteps";
192
196
  const _oV = "objectVersion";
193
197
  const _oWS = "originWorkerSetting";
@@ -607,6 +611,16 @@ export var ProvisionedCapacityUpdate$ = [3, n0, _PCU,
607
611
  [_mC, _wCor],
608
612
  [1, 1], 2
609
613
  ];
614
+ export var RestartConnectorRequest$ = [3, n0, _RCR,
615
+ 0,
616
+ [_cA, _oFT],
617
+ [[0, 1], [2, { [_hQ]: _oFT }]], 1
618
+ ];
619
+ export var RestartConnectorResponse$ = [3, n0, _RCRe,
620
+ 0,
621
+ [_cA, _cOA],
622
+ [0, 0]
623
+ ];
610
624
  export var S3Location$ = [3, n0, _SL,
611
625
  0,
612
626
  [_bA, _fK, _oV],
@@ -817,6 +831,9 @@ export var ListTagsForResource$ = [9, n0, _LTFR,
817
831
  export var ListWorkerConfigurations$ = [9, n0, _LWC,
818
832
  { [_h]: ["GET", "/v1/worker-configurations", 200] }, () => ListWorkerConfigurationsRequest$, () => ListWorkerConfigurationsResponse$
819
833
  ];
834
+ export var RestartConnector$ = [9, n0, _RC,
835
+ { [_h]: ["POST", "/v1/connectors/{connectorArn}/restart", 200] }, () => RestartConnectorRequest$, () => RestartConnectorResponse$
836
+ ];
820
837
  export var TagResource$ = [9, n0, _TR,
821
838
  { [_h]: ["POST", "/v1/tags/{resourceArn}", 200] }, () => TagResourceRequest$, () => TagResourceResponse$
822
839
  ];
@@ -14,6 +14,7 @@ import { type ListConnectorsCommandInput, type ListConnectorsCommandOutput } fro
14
14
  import { type ListCustomPluginsCommandInput, type ListCustomPluginsCommandOutput } from "./commands/ListCustomPluginsCommand";
15
15
  import { type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
16
16
  import { type ListWorkerConfigurationsCommandInput, type ListWorkerConfigurationsCommandOutput } from "./commands/ListWorkerConfigurationsCommand";
17
+ import { type RestartConnectorCommandInput, type RestartConnectorCommandOutput } from "./commands/RestartConnectorCommand";
17
18
  import { type TagResourceCommandInput, type TagResourceCommandOutput } from "./commands/TagResourceCommand";
18
19
  import { type UntagResourceCommandInput, type UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
19
20
  import { type UpdateConnectorCommandInput, type UpdateConnectorCommandOutput } from "./commands/UpdateConnectorCommand";
@@ -112,6 +113,12 @@ export interface KafkaConnect {
112
113
  listWorkerConfigurations(args: ListWorkerConfigurationsCommandInput, options?: __HttpHandlerOptions): Promise<ListWorkerConfigurationsCommandOutput>;
113
114
  listWorkerConfigurations(args: ListWorkerConfigurationsCommandInput, cb: (err: any, data?: ListWorkerConfigurationsCommandOutput) => void): void;
114
115
  listWorkerConfigurations(args: ListWorkerConfigurationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListWorkerConfigurationsCommandOutput) => void): void;
116
+ /**
117
+ * @see {@link RestartConnectorCommand}
118
+ */
119
+ restartConnector(args: RestartConnectorCommandInput, options?: __HttpHandlerOptions): Promise<RestartConnectorCommandOutput>;
120
+ restartConnector(args: RestartConnectorCommandInput, cb: (err: any, data?: RestartConnectorCommandOutput) => void): void;
121
+ restartConnector(args: RestartConnectorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RestartConnectorCommandOutput) => void): void;
115
122
  /**
116
123
  * @see {@link TagResourceCommand}
117
124
  */
@@ -21,6 +21,7 @@ import type { ListConnectorsCommandInput, ListConnectorsCommandOutput } from "./
21
21
  import type { ListCustomPluginsCommandInput, ListCustomPluginsCommandOutput } from "./commands/ListCustomPluginsCommand";
22
22
  import type { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
23
23
  import type { ListWorkerConfigurationsCommandInput, ListWorkerConfigurationsCommandOutput } from "./commands/ListWorkerConfigurationsCommand";
24
+ import type { RestartConnectorCommandInput, RestartConnectorCommandOutput } from "./commands/RestartConnectorCommand";
24
25
  import type { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
25
26
  import type { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
26
27
  import type { UpdateConnectorCommandInput, UpdateConnectorCommandOutput } from "./commands/UpdateConnectorCommand";
@@ -30,11 +31,11 @@ export { __Client };
30
31
  /**
31
32
  * @public
32
33
  */
33
- export type ServiceInputTypes = CreateConnectorCommandInput | CreateCustomPluginCommandInput | CreateWorkerConfigurationCommandInput | DeleteConnectorCommandInput | DeleteCustomPluginCommandInput | DeleteWorkerConfigurationCommandInput | DescribeConnectorCommandInput | DescribeConnectorOperationCommandInput | DescribeCustomPluginCommandInput | DescribeWorkerConfigurationCommandInput | ListConnectorOperationsCommandInput | ListConnectorsCommandInput | ListCustomPluginsCommandInput | ListTagsForResourceCommandInput | ListWorkerConfigurationsCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateConnectorCommandInput;
34
+ export type ServiceInputTypes = CreateConnectorCommandInput | CreateCustomPluginCommandInput | CreateWorkerConfigurationCommandInput | DeleteConnectorCommandInput | DeleteCustomPluginCommandInput | DeleteWorkerConfigurationCommandInput | DescribeConnectorCommandInput | DescribeConnectorOperationCommandInput | DescribeCustomPluginCommandInput | DescribeWorkerConfigurationCommandInput | ListConnectorOperationsCommandInput | ListConnectorsCommandInput | ListCustomPluginsCommandInput | ListTagsForResourceCommandInput | ListWorkerConfigurationsCommandInput | RestartConnectorCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateConnectorCommandInput;
34
35
  /**
35
36
  * @public
36
37
  */
37
- export type ServiceOutputTypes = CreateConnectorCommandOutput | CreateCustomPluginCommandOutput | CreateWorkerConfigurationCommandOutput | DeleteConnectorCommandOutput | DeleteCustomPluginCommandOutput | DeleteWorkerConfigurationCommandOutput | DescribeConnectorCommandOutput | DescribeConnectorOperationCommandOutput | DescribeCustomPluginCommandOutput | DescribeWorkerConfigurationCommandOutput | ListConnectorOperationsCommandOutput | ListConnectorsCommandOutput | ListCustomPluginsCommandOutput | ListTagsForResourceCommandOutput | ListWorkerConfigurationsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateConnectorCommandOutput;
38
+ export type ServiceOutputTypes = CreateConnectorCommandOutput | CreateCustomPluginCommandOutput | CreateWorkerConfigurationCommandOutput | DeleteConnectorCommandOutput | DeleteCustomPluginCommandOutput | DeleteWorkerConfigurationCommandOutput | DescribeConnectorCommandOutput | DescribeConnectorOperationCommandOutput | DescribeCustomPluginCommandOutput | DescribeWorkerConfigurationCommandOutput | ListConnectorOperationsCommandOutput | ListConnectorsCommandOutput | ListCustomPluginsCommandOutput | ListTagsForResourceCommandOutput | ListWorkerConfigurationsCommandOutput | RestartConnectorCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateConnectorCommandOutput;
38
39
  /**
39
40
  * @public
40
41
  */
@@ -0,0 +1,94 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { RestartConnectorRequest, RestartConnectorResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link RestartConnectorCommand}.
11
+ */
12
+ export interface RestartConnectorCommandInput extends RestartConnectorRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link RestartConnectorCommand}.
18
+ */
19
+ export interface RestartConnectorCommandOutput extends RestartConnectorResponse, __MetadataBearer {
20
+ }
21
+ declare const RestartConnectorCommand_base: {
22
+ new (input: RestartConnectorCommandInput): import("@smithy/core/client").CommandImpl<RestartConnectorCommandInput, RestartConnectorCommandOutput, import("..").KafkaConnectClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: RestartConnectorCommandInput): import("@smithy/core/client").CommandImpl<RestartConnectorCommandInput, RestartConnectorCommandOutput, import("..").KafkaConnectClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>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 <code>DescribeConnectorOperation</code> to track the state of the restart.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { KafkaConnectClient, RestartConnectorCommand } from "@aws-sdk/client-kafkaconnect"; // ES Modules import
32
+ * // const { KafkaConnectClient, RestartConnectorCommand } = require("@aws-sdk/client-kafkaconnect"); // CommonJS import
33
+ * // import type { KafkaConnectClientConfig } from "@aws-sdk/client-kafkaconnect";
34
+ * const config = {}; // type is KafkaConnectClientConfig
35
+ * const client = new KafkaConnectClient(config);
36
+ * const input = { // RestartConnectorRequest
37
+ * connectorArn: "STRING_VALUE", // required
38
+ * onlyFailedTasks: true || false,
39
+ * };
40
+ * const command = new RestartConnectorCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // RestartConnectorResponse
43
+ * // connectorArn: "STRING_VALUE",
44
+ * // connectorOperationArn: "STRING_VALUE",
45
+ * // };
46
+ *
47
+ * ```
48
+ *
49
+ * @param RestartConnectorCommandInput - {@link RestartConnectorCommandInput}
50
+ * @returns {@link RestartConnectorCommandOutput}
51
+ * @see {@link RestartConnectorCommandInput} for command's `input` shape.
52
+ * @see {@link RestartConnectorCommandOutput} for command's `response` shape.
53
+ * @see {@link KafkaConnectClientResolvedConfig | config} for KafkaConnectClient's `config` shape.
54
+ *
55
+ * @throws {@link BadRequestException} (client fault)
56
+ * <p>HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.</p>
57
+ *
58
+ * @throws {@link ForbiddenException} (client fault)
59
+ * <p>HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request.</p>
60
+ *
61
+ * @throws {@link InternalServerErrorException} (server fault)
62
+ * <p>HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.</p>
63
+ *
64
+ * @throws {@link NotFoundException} (client fault)
65
+ * <p>HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.</p>
66
+ *
67
+ * @throws {@link ServiceUnavailableException} (server fault)
68
+ * <p>HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue.</p>
69
+ *
70
+ * @throws {@link TooManyRequestsException} (client fault)
71
+ * <p>HTTP Status Code 429: Limit exceeded. Resource limit reached.</p>
72
+ *
73
+ * @throws {@link UnauthorizedException} (client fault)
74
+ * <p>HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated.</p>
75
+ *
76
+ * @throws {@link KafkaConnectServiceException}
77
+ * <p>Base exception class for all service exceptions from KafkaConnect service.</p>
78
+ *
79
+ *
80
+ * @public
81
+ */
82
+ export declare class RestartConnectorCommand extends RestartConnectorCommand_base {
83
+ /** @internal type navigation helper, not in runtime. */
84
+ protected static __types: {
85
+ api: {
86
+ input: RestartConnectorRequest;
87
+ output: RestartConnectorResponse;
88
+ };
89
+ sdk: {
90
+ input: RestartConnectorCommandInput;
91
+ output: RestartConnectorCommandOutput;
92
+ };
93
+ };
94
+ }
@@ -13,6 +13,7 @@ export * from "./ListConnectorsCommand";
13
13
  export * from "./ListCustomPluginsCommand";
14
14
  export * from "./ListTagsForResourceCommand";
15
15
  export * from "./ListWorkerConfigurationsCommand";
16
+ export * from "./RestartConnectorCommand";
16
17
  export * from "./TagResourceCommand";
17
18
  export * from "./UntagResourceCommand";
18
19
  export * from "./UpdateConnectorCommand";
@@ -34,6 +34,9 @@ export type ConnectorOperationStepType = (typeof ConnectorOperationStepType)[key
34
34
  */
35
35
  export declare const ConnectorOperationState: {
36
36
  readonly PENDING: "PENDING";
37
+ readonly RESTART_COMPLETE: "RESTART_COMPLETE";
38
+ readonly RESTART_FAILED: "RESTART_FAILED";
39
+ readonly RESTART_IN_PROGRESS: "RESTART_IN_PROGRESS";
37
40
  readonly ROLLBACK_COMPLETE: "ROLLBACK_COMPLETE";
38
41
  readonly ROLLBACK_FAILED: "ROLLBACK_FAILED";
39
42
  readonly ROLLBACK_IN_PROGRESS: "ROLLBACK_IN_PROGRESS";
@@ -51,6 +54,7 @@ export type ConnectorOperationState = (typeof ConnectorOperationState)[keyof typ
51
54
  */
52
55
  export declare const ConnectorOperationType: {
53
56
  readonly ISOLATE_CONNECTOR: "ISOLATE_CONNECTOR";
57
+ readonly RESTART_CONNECTOR: "RESTART_CONNECTOR";
54
58
  readonly RESTORE_CONNECTOR: "RESTORE_CONNECTOR";
55
59
  readonly UPDATE_CONNECTOR_CONFIGURATION: "UPDATE_CONNECTOR_CONFIGURATION";
56
60
  readonly UPDATE_WORKER_SETTING: "UPDATE_WORKER_SETTING";
@@ -67,6 +71,7 @@ export declare const ConnectorState: {
67
71
  readonly CREATING: "CREATING";
68
72
  readonly DELETING: "DELETING";
69
73
  readonly FAILED: "FAILED";
74
+ readonly RESTARTING: "RESTARTING";
70
75
  readonly RUNNING: "RUNNING";
71
76
  readonly UPDATING: "UPDATING";
72
77
  };
@@ -1770,6 +1770,36 @@ export interface ListWorkerConfigurationsResponse {
1770
1770
  */
1771
1771
  workerConfigurations?: WorkerConfigurationSummary[] | undefined;
1772
1772
  }
1773
+ /**
1774
+ * @public
1775
+ */
1776
+ export interface RestartConnectorRequest {
1777
+ /**
1778
+ * <p>The Amazon Resource Name (ARN) of the connector that you want to restart.</p>
1779
+ * @public
1780
+ */
1781
+ connectorArn: string | undefined;
1782
+ /**
1783
+ * <p>Specifies whether to restart only the connector's failed tasks. If <code>true</code>, the operation restarts only the tasks that are currently in a failed state, and healthy tasks continue running. If <code>false</code> or not specified, the operation restarts the connector and all of its tasks.</p>
1784
+ * @public
1785
+ */
1786
+ onlyFailedTasks?: boolean | undefined;
1787
+ }
1788
+ /**
1789
+ * @public
1790
+ */
1791
+ export interface RestartConnectorResponse {
1792
+ /**
1793
+ * <p>The Amazon Resource Name (ARN) of the connector.</p>
1794
+ * @public
1795
+ */
1796
+ connectorArn?: string | undefined;
1797
+ /**
1798
+ * <p>The Amazon Resource Name (ARN) of the connector operation created to perform the restart.</p>
1799
+ * @public
1800
+ */
1801
+ connectorOperationArn?: string | undefined;
1802
+ }
1773
1803
  /**
1774
1804
  * @public
1775
1805
  */
@@ -80,6 +80,8 @@ export declare var PluginDescription$: StaticStructureSchema;
80
80
  export declare var ProvisionedCapacity$: StaticStructureSchema;
81
81
  export declare var ProvisionedCapacityDescription$: StaticStructureSchema;
82
82
  export declare var ProvisionedCapacityUpdate$: StaticStructureSchema;
83
+ export declare var RestartConnectorRequest$: StaticStructureSchema;
84
+ export declare var RestartConnectorResponse$: StaticStructureSchema;
83
85
  export declare var S3Location$: StaticStructureSchema;
84
86
  export declare var S3LocationDescription$: StaticStructureSchema;
85
87
  export declare var S3LogDelivery$: StaticStructureSchema;
@@ -122,6 +124,7 @@ export declare var ListConnectors$: StaticOperationSchema;
122
124
  export declare var ListCustomPlugins$: StaticOperationSchema;
123
125
  export declare var ListTagsForResource$: StaticOperationSchema;
124
126
  export declare var ListWorkerConfigurations$: StaticOperationSchema;
127
+ export declare var RestartConnector$: StaticOperationSchema;
125
128
  export declare var TagResource$: StaticOperationSchema;
126
129
  export declare var UntagResource$: StaticOperationSchema;
127
130
  export declare var UpdateConnector$: StaticOperationSchema;
@@ -63,6 +63,10 @@ import {
63
63
  ListWorkerConfigurationsCommandInput,
64
64
  ListWorkerConfigurationsCommandOutput,
65
65
  } from "./commands/ListWorkerConfigurationsCommand";
66
+ import {
67
+ RestartConnectorCommandInput,
68
+ RestartConnectorCommandOutput,
69
+ } from "./commands/RestartConnectorCommand";
66
70
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
67
71
  import {
68
72
  UntagResourceCommandInput,
@@ -272,6 +276,19 @@ export interface KafkaConnect {
272
276
  options: __HttpHandlerOptions,
273
277
  cb: (err: any, data?: ListWorkerConfigurationsCommandOutput) => void,
274
278
  ): void;
279
+ restartConnector(
280
+ args: RestartConnectorCommandInput,
281
+ options?: __HttpHandlerOptions,
282
+ ): Promise<RestartConnectorCommandOutput>;
283
+ restartConnector(
284
+ args: RestartConnectorCommandInput,
285
+ cb: (err: any, data?: RestartConnectorCommandOutput) => void,
286
+ ): void;
287
+ restartConnector(
288
+ args: RestartConnectorCommandInput,
289
+ options: __HttpHandlerOptions,
290
+ cb: (err: any, data?: RestartConnectorCommandOutput) => void,
291
+ ): void;
275
292
  tagResource(
276
293
  args: TagResourceCommandInput,
277
294
  options?: __HttpHandlerOptions,
@@ -93,6 +93,10 @@ import {
93
93
  ListWorkerConfigurationsCommandInput,
94
94
  ListWorkerConfigurationsCommandOutput,
95
95
  } from "./commands/ListWorkerConfigurationsCommand";
96
+ import {
97
+ RestartConnectorCommandInput,
98
+ RestartConnectorCommandOutput,
99
+ } from "./commands/RestartConnectorCommand";
96
100
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
97
101
  import {
98
102
  UntagResourceCommandInput,
@@ -125,6 +129,7 @@ export type ServiceInputTypes =
125
129
  | ListCustomPluginsCommandInput
126
130
  | ListTagsForResourceCommandInput
127
131
  | ListWorkerConfigurationsCommandInput
132
+ | RestartConnectorCommandInput
128
133
  | TagResourceCommandInput
129
134
  | UntagResourceCommandInput
130
135
  | UpdateConnectorCommandInput;
@@ -144,6 +149,7 @@ export type ServiceOutputTypes =
144
149
  | ListCustomPluginsCommandOutput
145
150
  | ListTagsForResourceCommandOutput
146
151
  | ListWorkerConfigurationsCommandOutput
152
+ | RestartConnectorCommandOutput
147
153
  | TagResourceCommandOutput
148
154
  | UntagResourceCommandOutput
149
155
  | UpdateConnectorCommandOutput;
@@ -0,0 +1,38 @@
1
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import { RestartConnectorRequest, RestartConnectorResponse } from "../models/models_0";
3
+ export { __MetadataBearer };
4
+ export interface RestartConnectorCommandInput extends RestartConnectorRequest {}
5
+ export interface RestartConnectorCommandOutput extends RestartConnectorResponse, __MetadataBearer {}
6
+ declare const RestartConnectorCommand_base: {
7
+ new (
8
+ input: RestartConnectorCommandInput,
9
+ ): import("@smithy/core/client").CommandImpl<
10
+ RestartConnectorCommandInput,
11
+ RestartConnectorCommandOutput,
12
+ import("..").KafkaConnectClientResolvedConfig,
13
+ import("..").ServiceInputTypes,
14
+ import("..").ServiceOutputTypes
15
+ >;
16
+ new (
17
+ input: RestartConnectorCommandInput,
18
+ ): import("@smithy/core/client").CommandImpl<
19
+ RestartConnectorCommandInput,
20
+ RestartConnectorCommandOutput,
21
+ import("..").KafkaConnectClientResolvedConfig,
22
+ import("..").ServiceInputTypes,
23
+ import("..").ServiceOutputTypes
24
+ >;
25
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
26
+ };
27
+ export declare class RestartConnectorCommand extends RestartConnectorCommand_base {
28
+ protected static __types: {
29
+ api: {
30
+ input: RestartConnectorRequest;
31
+ output: RestartConnectorResponse;
32
+ };
33
+ sdk: {
34
+ input: RestartConnectorCommandInput;
35
+ output: RestartConnectorCommandOutput;
36
+ };
37
+ };
38
+ }
@@ -13,6 +13,7 @@ export * from "./ListConnectorsCommand";
13
13
  export * from "./ListCustomPluginsCommand";
14
14
  export * from "./ListTagsForResourceCommand";
15
15
  export * from "./ListWorkerConfigurationsCommand";
16
+ export * from "./RestartConnectorCommand";
16
17
  export * from "./TagResourceCommand";
17
18
  export * from "./UntagResourceCommand";
18
19
  export * from "./UpdateConnectorCommand";
@@ -18,6 +18,9 @@ export type ConnectorOperationStepType =
18
18
  (typeof ConnectorOperationStepType)[keyof typeof ConnectorOperationStepType];
19
19
  export declare const ConnectorOperationState: {
20
20
  readonly PENDING: "PENDING";
21
+ readonly RESTART_COMPLETE: "RESTART_COMPLETE";
22
+ readonly RESTART_FAILED: "RESTART_FAILED";
23
+ readonly RESTART_IN_PROGRESS: "RESTART_IN_PROGRESS";
21
24
  readonly ROLLBACK_COMPLETE: "ROLLBACK_COMPLETE";
22
25
  readonly ROLLBACK_FAILED: "ROLLBACK_FAILED";
23
26
  readonly ROLLBACK_IN_PROGRESS: "ROLLBACK_IN_PROGRESS";
@@ -29,6 +32,7 @@ export type ConnectorOperationState =
29
32
  (typeof ConnectorOperationState)[keyof typeof ConnectorOperationState];
30
33
  export declare const ConnectorOperationType: {
31
34
  readonly ISOLATE_CONNECTOR: "ISOLATE_CONNECTOR";
35
+ readonly RESTART_CONNECTOR: "RESTART_CONNECTOR";
32
36
  readonly RESTORE_CONNECTOR: "RESTORE_CONNECTOR";
33
37
  readonly UPDATE_CONNECTOR_CONFIGURATION: "UPDATE_CONNECTOR_CONFIGURATION";
34
38
  readonly UPDATE_WORKER_SETTING: "UPDATE_WORKER_SETTING";
@@ -39,6 +43,7 @@ export declare const ConnectorState: {
39
43
  readonly CREATING: "CREATING";
40
44
  readonly DELETING: "DELETING";
41
45
  readonly FAILED: "FAILED";
46
+ readonly RESTARTING: "RESTARTING";
42
47
  readonly RUNNING: "RUNNING";
43
48
  readonly UPDATING: "UPDATING";
44
49
  };
@@ -440,6 +440,14 @@ export interface ListWorkerConfigurationsResponse {
440
440
  nextToken?: string | undefined;
441
441
  workerConfigurations?: WorkerConfigurationSummary[] | undefined;
442
442
  }
443
+ export interface RestartConnectorRequest {
444
+ connectorArn: string | undefined;
445
+ onlyFailedTasks?: boolean | undefined;
446
+ }
447
+ export interface RestartConnectorResponse {
448
+ connectorArn?: string | undefined;
449
+ connectorOperationArn?: string | undefined;
450
+ }
443
451
  export interface TagResourceRequest {
444
452
  resourceArn: string | undefined;
445
453
  tags: Record<string, string> | undefined;
@@ -75,6 +75,8 @@ export declare var PluginDescription$: StaticStructureSchema;
75
75
  export declare var ProvisionedCapacity$: StaticStructureSchema;
76
76
  export declare var ProvisionedCapacityDescription$: StaticStructureSchema;
77
77
  export declare var ProvisionedCapacityUpdate$: StaticStructureSchema;
78
+ export declare var RestartConnectorRequest$: StaticStructureSchema;
79
+ export declare var RestartConnectorResponse$: StaticStructureSchema;
78
80
  export declare var S3Location$: StaticStructureSchema;
79
81
  export declare var S3LocationDescription$: StaticStructureSchema;
80
82
  export declare var S3LogDelivery$: StaticStructureSchema;
@@ -117,6 +119,7 @@ export declare var ListConnectors$: StaticOperationSchema;
117
119
  export declare var ListCustomPlugins$: StaticOperationSchema;
118
120
  export declare var ListTagsForResource$: StaticOperationSchema;
119
121
  export declare var ListWorkerConfigurations$: StaticOperationSchema;
122
+ export declare var RestartConnector$: StaticOperationSchema;
120
123
  export declare var TagResource$: StaticOperationSchema;
121
124
  export declare var UntagResource$: StaticOperationSchema;
122
125
  export declare var UpdateConnector$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-kafkaconnect",
3
- "version": "3.1121.0",
3
+ "version": "3.1123.0",
4
4
  "description": "AWS SDK for JavaScript Kafkaconnect Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-kafkaconnect",
6
6
  "license": "Apache-2.0",
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@aws-sdk/core": "^3.977.9",
50
- "@aws-sdk/credential-provider-node": "^3.972.81",
50
+ "@aws-sdk/credential-provider-node": "^3.972.82",
51
51
  "@aws-sdk/types": "^3.974.5",
52
52
  "@smithy/core": "^3.33.3",
53
53
  "@smithy/fetch-http-handler": "^5.7.2",