@aws-sdk/client-kafkaconnect 3.726.1 → 3.730.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 +16 -0
- package/dist-cjs/index.js +174 -3
- package/dist-es/KafkaConnect.js +4 -0
- package/dist-es/commands/DescribeConnectorOperationCommand.js +23 -0
- package/dist-es/commands/ListConnectorOperationsCommand.js +22 -0
- package/dist-es/commands/UpdateConnectorCommand.js +2 -1
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +38 -0
- package/dist-es/pagination/ListConnectorOperationsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +81 -0
- package/dist-types/KafkaConnect.d.ts +14 -0
- package/dist-types/KafkaConnectClient.d.ts +4 -2
- package/dist-types/commands/CreateConnectorCommand.d.ts +1 -1
- package/dist-types/commands/DescribeConnectorCommand.d.ts +1 -1
- package/dist-types/commands/DescribeConnectorOperationCommand.d.ts +157 -0
- package/dist-types/commands/ListConnectorOperationsCommand.d.ts +109 -0
- package/dist-types/commands/UpdateConnectorCommand.d.ts +4 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +248 -1
- package/dist-types/pagination/ListConnectorOperationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/ts3.4/KafkaConnect.d.ts +34 -0
- package/dist-types/ts3.4/KafkaConnectClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/DescribeConnectorOperationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListConnectorOperationsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +86 -1
- package/dist-types/ts3.4/pagination/ListConnectorOperationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
- package/package.json +6 -8
package/README.md
CHANGED
|
@@ -258,6 +258,14 @@ DescribeConnector
|
|
|
258
258
|
|
|
259
259
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/kafkaconnect/command/DescribeConnectorCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kafkaconnect/Interface/DescribeConnectorCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kafkaconnect/Interface/DescribeConnectorCommandOutput/)
|
|
260
260
|
|
|
261
|
+
</details>
|
|
262
|
+
<details>
|
|
263
|
+
<summary>
|
|
264
|
+
DescribeConnectorOperation
|
|
265
|
+
</summary>
|
|
266
|
+
|
|
267
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/kafkaconnect/command/DescribeConnectorOperationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kafkaconnect/Interface/DescribeConnectorOperationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kafkaconnect/Interface/DescribeConnectorOperationCommandOutput/)
|
|
268
|
+
|
|
261
269
|
</details>
|
|
262
270
|
<details>
|
|
263
271
|
<summary>
|
|
@@ -274,6 +282,14 @@ DescribeWorkerConfiguration
|
|
|
274
282
|
|
|
275
283
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/kafkaconnect/command/DescribeWorkerConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kafkaconnect/Interface/DescribeWorkerConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kafkaconnect/Interface/DescribeWorkerConfigurationCommandOutput/)
|
|
276
284
|
|
|
285
|
+
</details>
|
|
286
|
+
<details>
|
|
287
|
+
<summary>
|
|
288
|
+
ListConnectorOperations
|
|
289
|
+
</summary>
|
|
290
|
+
|
|
291
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/kafkaconnect/command/ListConnectorOperationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kafkaconnect/Interface/ListConnectorOperationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kafkaconnect/Interface/ListConnectorOperationsCommandOutput/)
|
|
292
|
+
|
|
277
293
|
</details>
|
|
278
294
|
<details>
|
|
279
295
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -23,6 +23,10 @@ var src_exports = {};
|
|
|
23
23
|
__export(src_exports, {
|
|
24
24
|
BadRequestException: () => BadRequestException,
|
|
25
25
|
ConflictException: () => ConflictException,
|
|
26
|
+
ConnectorOperationState: () => ConnectorOperationState,
|
|
27
|
+
ConnectorOperationStepState: () => ConnectorOperationStepState,
|
|
28
|
+
ConnectorOperationStepType: () => ConnectorOperationStepType,
|
|
29
|
+
ConnectorOperationType: () => ConnectorOperationType,
|
|
26
30
|
ConnectorState: () => ConnectorState,
|
|
27
31
|
CreateConnectorCommand: () => CreateConnectorCommand,
|
|
28
32
|
CreateConnectorRequestFilterSensitiveLog: () => CreateConnectorRequestFilterSensitiveLog,
|
|
@@ -35,6 +39,8 @@ __export(src_exports, {
|
|
|
35
39
|
DeleteCustomPluginCommand: () => DeleteCustomPluginCommand,
|
|
36
40
|
DeleteWorkerConfigurationCommand: () => DeleteWorkerConfigurationCommand,
|
|
37
41
|
DescribeConnectorCommand: () => DescribeConnectorCommand,
|
|
42
|
+
DescribeConnectorOperationCommand: () => DescribeConnectorOperationCommand,
|
|
43
|
+
DescribeConnectorOperationResponseFilterSensitiveLog: () => DescribeConnectorOperationResponseFilterSensitiveLog,
|
|
38
44
|
DescribeConnectorResponseFilterSensitiveLog: () => DescribeConnectorResponseFilterSensitiveLog,
|
|
39
45
|
DescribeCustomPluginCommand: () => DescribeCustomPluginCommand,
|
|
40
46
|
DescribeWorkerConfigurationCommand: () => DescribeWorkerConfigurationCommand,
|
|
@@ -46,6 +52,7 @@ __export(src_exports, {
|
|
|
46
52
|
KafkaConnect: () => KafkaConnect,
|
|
47
53
|
KafkaConnectClient: () => KafkaConnectClient,
|
|
48
54
|
KafkaConnectServiceException: () => KafkaConnectServiceException,
|
|
55
|
+
ListConnectorOperationsCommand: () => ListConnectorOperationsCommand,
|
|
49
56
|
ListConnectorsCommand: () => ListConnectorsCommand,
|
|
50
57
|
ListCustomPluginsCommand: () => ListCustomPluginsCommand,
|
|
51
58
|
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
@@ -57,9 +64,11 @@ __export(src_exports, {
|
|
|
57
64
|
UnauthorizedException: () => UnauthorizedException,
|
|
58
65
|
UntagResourceCommand: () => UntagResourceCommand,
|
|
59
66
|
UpdateConnectorCommand: () => UpdateConnectorCommand,
|
|
67
|
+
UpdateConnectorRequestFilterSensitiveLog: () => UpdateConnectorRequestFilterSensitiveLog,
|
|
60
68
|
WorkerConfigurationRevisionDescriptionFilterSensitiveLog: () => WorkerConfigurationRevisionDescriptionFilterSensitiveLog,
|
|
61
69
|
WorkerConfigurationState: () => WorkerConfigurationState,
|
|
62
70
|
__Client: () => import_smithy_client.Client,
|
|
71
|
+
paginateListConnectorOperations: () => paginateListConnectorOperations,
|
|
63
72
|
paginateListConnectors: () => paginateListConnectors,
|
|
64
73
|
paginateListCustomPlugins: () => paginateListCustomPlugins,
|
|
65
74
|
paginateListWorkerConfigurations: () => paginateListWorkerConfigurations
|
|
@@ -235,6 +244,35 @@ var KafkaConnectServiceException = class _KafkaConnectServiceException extends i
|
|
|
235
244
|
};
|
|
236
245
|
|
|
237
246
|
// src/models/models_0.ts
|
|
247
|
+
var ConnectorOperationStepState = {
|
|
248
|
+
CANCELLED: "CANCELLED",
|
|
249
|
+
COMPLETED: "COMPLETED",
|
|
250
|
+
FAILED: "FAILED",
|
|
251
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
252
|
+
PENDING: "PENDING"
|
|
253
|
+
};
|
|
254
|
+
var ConnectorOperationStepType = {
|
|
255
|
+
FINALIZE_UPDATE: "FINALIZE_UPDATE",
|
|
256
|
+
INITIALIZE_UPDATE: "INITIALIZE_UPDATE",
|
|
257
|
+
UPDATE_CONNECTOR_CONFIGURATION: "UPDATE_CONNECTOR_CONFIGURATION",
|
|
258
|
+
UPDATE_WORKER_SETTING: "UPDATE_WORKER_SETTING",
|
|
259
|
+
VALIDATE_UPDATE: "VALIDATE_UPDATE"
|
|
260
|
+
};
|
|
261
|
+
var ConnectorOperationState = {
|
|
262
|
+
PENDING: "PENDING",
|
|
263
|
+
ROLLBACK_COMPLETE: "ROLLBACK_COMPLETE",
|
|
264
|
+
ROLLBACK_FAILED: "ROLLBACK_FAILED",
|
|
265
|
+
ROLLBACK_IN_PROGRESS: "ROLLBACK_IN_PROGRESS",
|
|
266
|
+
UPDATE_COMPLETE: "UPDATE_COMPLETE",
|
|
267
|
+
UPDATE_FAILED: "UPDATE_FAILED",
|
|
268
|
+
UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS"
|
|
269
|
+
};
|
|
270
|
+
var ConnectorOperationType = {
|
|
271
|
+
ISOLATE_CONNECTOR: "ISOLATE_CONNECTOR",
|
|
272
|
+
RESTORE_CONNECTOR: "RESTORE_CONNECTOR",
|
|
273
|
+
UPDATE_CONNECTOR_CONFIGURATION: "UPDATE_CONNECTOR_CONFIGURATION",
|
|
274
|
+
UPDATE_WORKER_SETTING: "UPDATE_WORKER_SETTING"
|
|
275
|
+
};
|
|
238
276
|
var ConnectorState = {
|
|
239
277
|
CREATING: "CREATING",
|
|
240
278
|
DELETING: "DELETING",
|
|
@@ -422,6 +460,11 @@ var DescribeConnectorResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) =
|
|
|
422
460
|
...obj,
|
|
423
461
|
...obj.connectorConfiguration && { connectorConfiguration: import_smithy_client.SENSITIVE_STRING }
|
|
424
462
|
}), "DescribeConnectorResponseFilterSensitiveLog");
|
|
463
|
+
var DescribeConnectorOperationResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
464
|
+
...obj,
|
|
465
|
+
...obj.originConnectorConfiguration && { originConnectorConfiguration: import_smithy_client.SENSITIVE_STRING },
|
|
466
|
+
...obj.targetConnectorConfiguration && { targetConnectorConfiguration: import_smithy_client.SENSITIVE_STRING }
|
|
467
|
+
}), "DescribeConnectorOperationResponseFilterSensitiveLog");
|
|
425
468
|
var WorkerConfigurationRevisionDescriptionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
426
469
|
...obj,
|
|
427
470
|
...obj.propertiesFileContent && { propertiesFileContent: import_smithy_client.SENSITIVE_STRING }
|
|
@@ -432,6 +475,10 @@ var DescribeWorkerConfigurationResponseFilterSensitiveLog = /* @__PURE__ */ __na
|
|
|
432
475
|
latestRevision: WorkerConfigurationRevisionDescriptionFilterSensitiveLog(obj.latestRevision)
|
|
433
476
|
}
|
|
434
477
|
}), "DescribeWorkerConfigurationResponseFilterSensitiveLog");
|
|
478
|
+
var UpdateConnectorRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
479
|
+
...obj,
|
|
480
|
+
...obj.connectorConfiguration && { connectorConfiguration: import_smithy_client.SENSITIVE_STRING }
|
|
481
|
+
}), "UpdateConnectorRequestFilterSensitiveLog");
|
|
435
482
|
|
|
436
483
|
// src/protocols/Aws_restJson1.ts
|
|
437
484
|
var import_core2 = require("@aws-sdk/core");
|
|
@@ -540,6 +587,15 @@ var se_DescribeConnectorCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
540
587
|
b.m("GET").h(headers).b(body);
|
|
541
588
|
return b.build();
|
|
542
589
|
}, "se_DescribeConnectorCommand");
|
|
590
|
+
var se_DescribeConnectorOperationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
591
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
592
|
+
const headers = {};
|
|
593
|
+
b.bp("/v1/connectorOperations/{connectorOperationArn}");
|
|
594
|
+
b.p("connectorOperationArn", () => input.connectorOperationArn, "{connectorOperationArn}", false);
|
|
595
|
+
let body;
|
|
596
|
+
b.m("GET").h(headers).b(body);
|
|
597
|
+
return b.build();
|
|
598
|
+
}, "se_DescribeConnectorOperationCommand");
|
|
543
599
|
var se_DescribeCustomPluginCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
544
600
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
545
601
|
const headers = {};
|
|
@@ -558,6 +614,19 @@ var se_DescribeWorkerConfigurationCommand = /* @__PURE__ */ __name(async (input,
|
|
|
558
614
|
b.m("GET").h(headers).b(body);
|
|
559
615
|
return b.build();
|
|
560
616
|
}, "se_DescribeWorkerConfigurationCommand");
|
|
617
|
+
var se_ListConnectorOperationsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
618
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
619
|
+
const headers = {};
|
|
620
|
+
b.bp("/v1/connectors/{connectorArn}/operations");
|
|
621
|
+
b.p("connectorArn", () => input.connectorArn, "{connectorArn}", false);
|
|
622
|
+
const query = (0, import_smithy_client.map)({
|
|
623
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
624
|
+
[_nT]: [, input[_nT]]
|
|
625
|
+
});
|
|
626
|
+
let body;
|
|
627
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
628
|
+
return b.build();
|
|
629
|
+
}, "se_ListConnectorOperationsCommand");
|
|
561
630
|
var se_ListConnectorsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
562
631
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
563
632
|
const headers = {};
|
|
@@ -647,7 +716,8 @@ var se_UpdateConnectorCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
647
716
|
let body;
|
|
648
717
|
body = JSON.stringify(
|
|
649
718
|
(0, import_smithy_client.take)(input, {
|
|
650
|
-
capacity: (_) => (0, import_smithy_client._json)(_)
|
|
719
|
+
capacity: (_) => (0, import_smithy_client._json)(_),
|
|
720
|
+
connectorConfiguration: (_) => (0, import_smithy_client._json)(_)
|
|
651
721
|
})
|
|
652
722
|
);
|
|
653
723
|
b.m("PUT").h(headers).q(query).b(body);
|
|
@@ -779,6 +849,31 @@ var de_DescribeConnectorCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
779
849
|
Object.assign(contents, doc);
|
|
780
850
|
return contents;
|
|
781
851
|
}, "de_DescribeConnectorCommand");
|
|
852
|
+
var de_DescribeConnectorOperationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
853
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
854
|
+
return de_CommandError(output, context);
|
|
855
|
+
}
|
|
856
|
+
const contents = (0, import_smithy_client.map)({
|
|
857
|
+
$metadata: deserializeMetadata(output)
|
|
858
|
+
});
|
|
859
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
860
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
861
|
+
connectorArn: import_smithy_client.expectString,
|
|
862
|
+
connectorOperationArn: import_smithy_client.expectString,
|
|
863
|
+
connectorOperationState: import_smithy_client.expectString,
|
|
864
|
+
connectorOperationType: import_smithy_client.expectString,
|
|
865
|
+
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
866
|
+
endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
867
|
+
errorInfo: import_smithy_client._json,
|
|
868
|
+
operationSteps: import_smithy_client._json,
|
|
869
|
+
originConnectorConfiguration: import_smithy_client._json,
|
|
870
|
+
originWorkerSetting: import_smithy_client._json,
|
|
871
|
+
targetConnectorConfiguration: import_smithy_client._json,
|
|
872
|
+
targetWorkerSetting: import_smithy_client._json
|
|
873
|
+
});
|
|
874
|
+
Object.assign(contents, doc);
|
|
875
|
+
return contents;
|
|
876
|
+
}, "de_DescribeConnectorOperationCommand");
|
|
782
877
|
var de_DescribeCustomPluginCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
783
878
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
784
879
|
return de_CommandError(output, context);
|
|
@@ -818,6 +913,21 @@ var de_DescribeWorkerConfigurationCommand = /* @__PURE__ */ __name(async (output
|
|
|
818
913
|
Object.assign(contents, doc);
|
|
819
914
|
return contents;
|
|
820
915
|
}, "de_DescribeWorkerConfigurationCommand");
|
|
916
|
+
var de_ListConnectorOperationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
917
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
918
|
+
return de_CommandError(output, context);
|
|
919
|
+
}
|
|
920
|
+
const contents = (0, import_smithy_client.map)({
|
|
921
|
+
$metadata: deserializeMetadata(output)
|
|
922
|
+
});
|
|
923
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
924
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
925
|
+
connectorOperations: (_) => de___listOfConnectorOperationSummary(_, context),
|
|
926
|
+
nextToken: import_smithy_client.expectString
|
|
927
|
+
});
|
|
928
|
+
Object.assign(contents, doc);
|
|
929
|
+
return contents;
|
|
930
|
+
}, "de_ListConnectorOperationsCommand");
|
|
821
931
|
var de_ListConnectorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
822
932
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
823
933
|
return de_CommandError(output, context);
|
|
@@ -907,6 +1017,7 @@ var de_UpdateConnectorCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
907
1017
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
908
1018
|
const doc = (0, import_smithy_client.take)(data, {
|
|
909
1019
|
connectorArn: import_smithy_client.expectString,
|
|
1020
|
+
connectorOperationArn: import_smithy_client.expectString,
|
|
910
1021
|
connectorState: import_smithy_client.expectString
|
|
911
1022
|
});
|
|
912
1023
|
Object.assign(contents, doc);
|
|
@@ -1057,6 +1168,12 @@ var de_UnauthorizedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, co
|
|
|
1057
1168
|
});
|
|
1058
1169
|
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1059
1170
|
}, "de_UnauthorizedExceptionRes");
|
|
1171
|
+
var de___listOfConnectorOperationSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1172
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1173
|
+
return de_ConnectorOperationSummary(entry, context);
|
|
1174
|
+
});
|
|
1175
|
+
return retVal;
|
|
1176
|
+
}, "de___listOfConnectorOperationSummary");
|
|
1060
1177
|
var de___listOfConnectorSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1061
1178
|
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1062
1179
|
return de_ConnectorSummary(entry, context);
|
|
@@ -1075,6 +1192,15 @@ var de___listOfWorkerConfigurationSummary = /* @__PURE__ */ __name((output, cont
|
|
|
1075
1192
|
});
|
|
1076
1193
|
return retVal;
|
|
1077
1194
|
}, "de___listOfWorkerConfigurationSummary");
|
|
1195
|
+
var de_ConnectorOperationSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1196
|
+
return (0, import_smithy_client.take)(output, {
|
|
1197
|
+
connectorOperationArn: import_smithy_client.expectString,
|
|
1198
|
+
connectorOperationState: import_smithy_client.expectString,
|
|
1199
|
+
connectorOperationType: import_smithy_client.expectString,
|
|
1200
|
+
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1201
|
+
endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
1202
|
+
});
|
|
1203
|
+
}, "de_ConnectorOperationSummary");
|
|
1078
1204
|
var de_ConnectorSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1079
1205
|
return (0, import_smithy_client.take)(output, {
|
|
1080
1206
|
capacity: import_smithy_client._json,
|
|
@@ -1254,6 +1380,21 @@ var DescribeConnectorCommand = class extends import_smithy_client.Command.classB
|
|
|
1254
1380
|
}
|
|
1255
1381
|
};
|
|
1256
1382
|
|
|
1383
|
+
// src/commands/DescribeConnectorOperationCommand.ts
|
|
1384
|
+
|
|
1385
|
+
|
|
1386
|
+
|
|
1387
|
+
var DescribeConnectorOperationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1388
|
+
return [
|
|
1389
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1390
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1391
|
+
];
|
|
1392
|
+
}).s("KafkaConnect", "DescribeConnectorOperation", {}).n("KafkaConnectClient", "DescribeConnectorOperationCommand").f(void 0, DescribeConnectorOperationResponseFilterSensitiveLog).ser(se_DescribeConnectorOperationCommand).de(de_DescribeConnectorOperationCommand).build() {
|
|
1393
|
+
static {
|
|
1394
|
+
__name(this, "DescribeConnectorOperationCommand");
|
|
1395
|
+
}
|
|
1396
|
+
};
|
|
1397
|
+
|
|
1257
1398
|
// src/commands/DescribeCustomPluginCommand.ts
|
|
1258
1399
|
|
|
1259
1400
|
|
|
@@ -1284,6 +1425,21 @@ var DescribeWorkerConfigurationCommand = class extends import_smithy_client.Comm
|
|
|
1284
1425
|
}
|
|
1285
1426
|
};
|
|
1286
1427
|
|
|
1428
|
+
// src/commands/ListConnectorOperationsCommand.ts
|
|
1429
|
+
|
|
1430
|
+
|
|
1431
|
+
|
|
1432
|
+
var ListConnectorOperationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1433
|
+
return [
|
|
1434
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1435
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1436
|
+
];
|
|
1437
|
+
}).s("KafkaConnect", "ListConnectorOperations", {}).n("KafkaConnectClient", "ListConnectorOperationsCommand").f(void 0, void 0).ser(se_ListConnectorOperationsCommand).de(de_ListConnectorOperationsCommand).build() {
|
|
1438
|
+
static {
|
|
1439
|
+
__name(this, "ListConnectorOperationsCommand");
|
|
1440
|
+
}
|
|
1441
|
+
};
|
|
1442
|
+
|
|
1287
1443
|
// src/commands/ListConnectorsCommand.ts
|
|
1288
1444
|
|
|
1289
1445
|
|
|
@@ -1383,7 +1539,7 @@ var UpdateConnectorCommand = class extends import_smithy_client.Command.classBui
|
|
|
1383
1539
|
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1384
1540
|
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1385
1541
|
];
|
|
1386
|
-
}).s("KafkaConnect", "UpdateConnector", {}).n("KafkaConnectClient", "UpdateConnectorCommand").f(
|
|
1542
|
+
}).s("KafkaConnect", "UpdateConnector", {}).n("KafkaConnectClient", "UpdateConnectorCommand").f(UpdateConnectorRequestFilterSensitiveLog, void 0).ser(se_UpdateConnectorCommand).de(de_UpdateConnectorCommand).build() {
|
|
1387
1543
|
static {
|
|
1388
1544
|
__name(this, "UpdateConnectorCommand");
|
|
1389
1545
|
}
|
|
@@ -1398,8 +1554,10 @@ var commands = {
|
|
|
1398
1554
|
DeleteCustomPluginCommand,
|
|
1399
1555
|
DeleteWorkerConfigurationCommand,
|
|
1400
1556
|
DescribeConnectorCommand,
|
|
1557
|
+
DescribeConnectorOperationCommand,
|
|
1401
1558
|
DescribeCustomPluginCommand,
|
|
1402
1559
|
DescribeWorkerConfigurationCommand,
|
|
1560
|
+
ListConnectorOperationsCommand,
|
|
1403
1561
|
ListConnectorsCommand,
|
|
1404
1562
|
ListCustomPluginsCommand,
|
|
1405
1563
|
ListTagsForResourceCommand,
|
|
@@ -1415,6 +1573,10 @@ var KafkaConnect = class extends KafkaConnectClient {
|
|
|
1415
1573
|
};
|
|
1416
1574
|
(0, import_smithy_client.createAggregatedClient)(commands, KafkaConnect);
|
|
1417
1575
|
|
|
1576
|
+
// src/pagination/ListConnectorOperationsPaginator.ts
|
|
1577
|
+
|
|
1578
|
+
var paginateListConnectorOperations = (0, import_core.createPaginator)(KafkaConnectClient, ListConnectorOperationsCommand, "nextToken", "nextToken", "maxResults");
|
|
1579
|
+
|
|
1418
1580
|
// src/pagination/ListConnectorsPaginator.ts
|
|
1419
1581
|
|
|
1420
1582
|
var paginateListConnectors = (0, import_core.createPaginator)(KafkaConnectClient, ListConnectorsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1441,8 +1603,10 @@ var paginateListWorkerConfigurations = (0, import_core.createPaginator)(KafkaCon
|
|
|
1441
1603
|
DeleteCustomPluginCommand,
|
|
1442
1604
|
DeleteWorkerConfigurationCommand,
|
|
1443
1605
|
DescribeConnectorCommand,
|
|
1606
|
+
DescribeConnectorOperationCommand,
|
|
1444
1607
|
DescribeCustomPluginCommand,
|
|
1445
1608
|
DescribeWorkerConfigurationCommand,
|
|
1609
|
+
ListConnectorOperationsCommand,
|
|
1446
1610
|
ListConnectorsCommand,
|
|
1447
1611
|
ListCustomPluginsCommand,
|
|
1448
1612
|
ListTagsForResourceCommand,
|
|
@@ -1450,9 +1614,14 @@ var paginateListWorkerConfigurations = (0, import_core.createPaginator)(KafkaCon
|
|
|
1450
1614
|
TagResourceCommand,
|
|
1451
1615
|
UntagResourceCommand,
|
|
1452
1616
|
UpdateConnectorCommand,
|
|
1617
|
+
paginateListConnectorOperations,
|
|
1453
1618
|
paginateListConnectors,
|
|
1454
1619
|
paginateListCustomPlugins,
|
|
1455
1620
|
paginateListWorkerConfigurations,
|
|
1621
|
+
ConnectorOperationStepState,
|
|
1622
|
+
ConnectorOperationStepType,
|
|
1623
|
+
ConnectorOperationState,
|
|
1624
|
+
ConnectorOperationType,
|
|
1456
1625
|
ConnectorState,
|
|
1457
1626
|
KafkaClusterClientAuthenticationType,
|
|
1458
1627
|
KafkaClusterEncryptionInTransitType,
|
|
@@ -1470,7 +1639,9 @@ var paginateListWorkerConfigurations = (0, import_core.createPaginator)(KafkaCon
|
|
|
1470
1639
|
CreateConnectorRequestFilterSensitiveLog,
|
|
1471
1640
|
CreateWorkerConfigurationRequestFilterSensitiveLog,
|
|
1472
1641
|
DescribeConnectorResponseFilterSensitiveLog,
|
|
1642
|
+
DescribeConnectorOperationResponseFilterSensitiveLog,
|
|
1473
1643
|
WorkerConfigurationRevisionDescriptionFilterSensitiveLog,
|
|
1474
|
-
DescribeWorkerConfigurationResponseFilterSensitiveLog
|
|
1644
|
+
DescribeWorkerConfigurationResponseFilterSensitiveLog,
|
|
1645
|
+
UpdateConnectorRequestFilterSensitiveLog
|
|
1475
1646
|
});
|
|
1476
1647
|
|
package/dist-es/KafkaConnect.js
CHANGED
|
@@ -6,8 +6,10 @@ import { DeleteConnectorCommand, } from "./commands/DeleteConnectorCommand";
|
|
|
6
6
|
import { DeleteCustomPluginCommand, } from "./commands/DeleteCustomPluginCommand";
|
|
7
7
|
import { DeleteWorkerConfigurationCommand, } from "./commands/DeleteWorkerConfigurationCommand";
|
|
8
8
|
import { DescribeConnectorCommand, } from "./commands/DescribeConnectorCommand";
|
|
9
|
+
import { DescribeConnectorOperationCommand, } from "./commands/DescribeConnectorOperationCommand";
|
|
9
10
|
import { DescribeCustomPluginCommand, } from "./commands/DescribeCustomPluginCommand";
|
|
10
11
|
import { DescribeWorkerConfigurationCommand, } from "./commands/DescribeWorkerConfigurationCommand";
|
|
12
|
+
import { ListConnectorOperationsCommand, } from "./commands/ListConnectorOperationsCommand";
|
|
11
13
|
import { ListConnectorsCommand, } from "./commands/ListConnectorsCommand";
|
|
12
14
|
import { ListCustomPluginsCommand, } from "./commands/ListCustomPluginsCommand";
|
|
13
15
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
@@ -24,8 +26,10 @@ const commands = {
|
|
|
24
26
|
DeleteCustomPluginCommand,
|
|
25
27
|
DeleteWorkerConfigurationCommand,
|
|
26
28
|
DescribeConnectorCommand,
|
|
29
|
+
DescribeConnectorOperationCommand,
|
|
27
30
|
DescribeCustomPluginCommand,
|
|
28
31
|
DescribeWorkerConfigurationCommand,
|
|
32
|
+
ListConnectorOperationsCommand,
|
|
29
33
|
ListConnectorsCommand,
|
|
30
34
|
ListCustomPluginsCommand,
|
|
31
35
|
ListTagsForResourceCommand,
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { DescribeConnectorOperationResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
|
+
import { de_DescribeConnectorOperationCommand, se_DescribeConnectorOperationCommand } from "../protocols/Aws_restJson1";
|
|
7
|
+
export { $Command };
|
|
8
|
+
export class DescribeConnectorOperationCommand extends $Command
|
|
9
|
+
.classBuilder()
|
|
10
|
+
.ep(commonParams)
|
|
11
|
+
.m(function (Command, cs, config, o) {
|
|
12
|
+
return [
|
|
13
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
+
];
|
|
16
|
+
})
|
|
17
|
+
.s("KafkaConnect", "DescribeConnectorOperation", {})
|
|
18
|
+
.n("KafkaConnectClient", "DescribeConnectorOperationCommand")
|
|
19
|
+
.f(void 0, DescribeConnectorOperationResponseFilterSensitiveLog)
|
|
20
|
+
.ser(se_DescribeConnectorOperationCommand)
|
|
21
|
+
.de(de_DescribeConnectorOperationCommand)
|
|
22
|
+
.build() {
|
|
23
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_ListConnectorOperationsCommand, se_ListConnectorOperationsCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListConnectorOperationsCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("KafkaConnect", "ListConnectorOperations", {})
|
|
17
|
+
.n("KafkaConnectClient", "ListConnectorOperationsCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_ListConnectorOperationsCommand)
|
|
20
|
+
.de(de_ListConnectorOperationsCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
4
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { UpdateConnectorRequestFilterSensitiveLog, } from "../models/models_0";
|
|
5
6
|
import { de_UpdateConnectorCommand, se_UpdateConnectorCommand } from "../protocols/Aws_restJson1";
|
|
6
7
|
export { $Command };
|
|
7
8
|
export class UpdateConnectorCommand extends $Command
|
|
@@ -15,7 +16,7 @@ export class UpdateConnectorCommand extends $Command
|
|
|
15
16
|
})
|
|
16
17
|
.s("KafkaConnect", "UpdateConnector", {})
|
|
17
18
|
.n("KafkaConnectClient", "UpdateConnectorCommand")
|
|
18
|
-
.f(
|
|
19
|
+
.f(UpdateConnectorRequestFilterSensitiveLog, void 0)
|
|
19
20
|
.ser(se_UpdateConnectorCommand)
|
|
20
21
|
.de(de_UpdateConnectorCommand)
|
|
21
22
|
.build() {
|
|
@@ -5,8 +5,10 @@ export * from "./DeleteConnectorCommand";
|
|
|
5
5
|
export * from "./DeleteCustomPluginCommand";
|
|
6
6
|
export * from "./DeleteWorkerConfigurationCommand";
|
|
7
7
|
export * from "./DescribeConnectorCommand";
|
|
8
|
+
export * from "./DescribeConnectorOperationCommand";
|
|
8
9
|
export * from "./DescribeCustomPluginCommand";
|
|
9
10
|
export * from "./DescribeWorkerConfigurationCommand";
|
|
11
|
+
export * from "./ListConnectorOperationsCommand";
|
|
10
12
|
export * from "./ListConnectorsCommand";
|
|
11
13
|
export * from "./ListCustomPluginsCommand";
|
|
12
14
|
export * from "./ListTagsForResourceCommand";
|
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
2
|
import { KafkaConnectServiceException as __BaseException } from "./KafkaConnectServiceException";
|
|
3
|
+
export const ConnectorOperationStepState = {
|
|
4
|
+
CANCELLED: "CANCELLED",
|
|
5
|
+
COMPLETED: "COMPLETED",
|
|
6
|
+
FAILED: "FAILED",
|
|
7
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
8
|
+
PENDING: "PENDING",
|
|
9
|
+
};
|
|
10
|
+
export const ConnectorOperationStepType = {
|
|
11
|
+
FINALIZE_UPDATE: "FINALIZE_UPDATE",
|
|
12
|
+
INITIALIZE_UPDATE: "INITIALIZE_UPDATE",
|
|
13
|
+
UPDATE_CONNECTOR_CONFIGURATION: "UPDATE_CONNECTOR_CONFIGURATION",
|
|
14
|
+
UPDATE_WORKER_SETTING: "UPDATE_WORKER_SETTING",
|
|
15
|
+
VALIDATE_UPDATE: "VALIDATE_UPDATE",
|
|
16
|
+
};
|
|
17
|
+
export const ConnectorOperationState = {
|
|
18
|
+
PENDING: "PENDING",
|
|
19
|
+
ROLLBACK_COMPLETE: "ROLLBACK_COMPLETE",
|
|
20
|
+
ROLLBACK_FAILED: "ROLLBACK_FAILED",
|
|
21
|
+
ROLLBACK_IN_PROGRESS: "ROLLBACK_IN_PROGRESS",
|
|
22
|
+
UPDATE_COMPLETE: "UPDATE_COMPLETE",
|
|
23
|
+
UPDATE_FAILED: "UPDATE_FAILED",
|
|
24
|
+
UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS",
|
|
25
|
+
};
|
|
26
|
+
export const ConnectorOperationType = {
|
|
27
|
+
ISOLATE_CONNECTOR: "ISOLATE_CONNECTOR",
|
|
28
|
+
RESTORE_CONNECTOR: "RESTORE_CONNECTOR",
|
|
29
|
+
UPDATE_CONNECTOR_CONFIGURATION: "UPDATE_CONNECTOR_CONFIGURATION",
|
|
30
|
+
UPDATE_WORKER_SETTING: "UPDATE_WORKER_SETTING",
|
|
31
|
+
};
|
|
3
32
|
export const ConnectorState = {
|
|
4
33
|
CREATING: "CREATING",
|
|
5
34
|
DELETING: "DELETING",
|
|
@@ -139,6 +168,11 @@ export const DescribeConnectorResponseFilterSensitiveLog = (obj) => ({
|
|
|
139
168
|
...obj,
|
|
140
169
|
...(obj.connectorConfiguration && { connectorConfiguration: SENSITIVE_STRING }),
|
|
141
170
|
});
|
|
171
|
+
export const DescribeConnectorOperationResponseFilterSensitiveLog = (obj) => ({
|
|
172
|
+
...obj,
|
|
173
|
+
...(obj.originConnectorConfiguration && { originConnectorConfiguration: SENSITIVE_STRING }),
|
|
174
|
+
...(obj.targetConnectorConfiguration && { targetConnectorConfiguration: SENSITIVE_STRING }),
|
|
175
|
+
});
|
|
142
176
|
export const WorkerConfigurationRevisionDescriptionFilterSensitiveLog = (obj) => ({
|
|
143
177
|
...obj,
|
|
144
178
|
...(obj.propertiesFileContent && { propertiesFileContent: SENSITIVE_STRING }),
|
|
@@ -149,3 +183,7 @@ export const DescribeWorkerConfigurationResponseFilterSensitiveLog = (obj) => ({
|
|
|
149
183
|
latestRevision: WorkerConfigurationRevisionDescriptionFilterSensitiveLog(obj.latestRevision),
|
|
150
184
|
}),
|
|
151
185
|
});
|
|
186
|
+
export const UpdateConnectorRequestFilterSensitiveLog = (obj) => ({
|
|
187
|
+
...obj,
|
|
188
|
+
...(obj.connectorConfiguration && { connectorConfiguration: SENSITIVE_STRING }),
|
|
189
|
+
});
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListConnectorOperationsCommand, } from "../commands/ListConnectorOperationsCommand";
|
|
3
|
+
import { KafkaConnectClient } from "../KafkaConnectClient";
|
|
4
|
+
export const paginateListConnectorOperations = createPaginator(KafkaConnectClient, ListConnectorOperationsCommand, "nextToken", "nextToken", "maxResults");
|