@aws-sdk/client-kafkaconnect 3.521.0 → 3.522.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 +32 -0
- package/dist-cjs/commands/DeleteWorkerConfigurationCommand.js +1 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -0
- package/dist-cjs/commands/TagResourceCommand.js +1 -0
- package/dist-cjs/commands/UntagResourceCommand.js +1 -0
- package/dist-cjs/index.js +201 -7
- package/dist-es/KafkaConnect.js +8 -0
- package/dist-es/commands/DeleteWorkerConfigurationCommand.js +24 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +24 -0
- package/dist-es/commands/TagResourceCommand.js +24 -0
- package/dist-es/commands/UntagResourceCommand.js +24 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +106 -0
- package/dist-types/KafkaConnect.d.ts +28 -0
- package/dist-types/KafkaConnectClient.d.ts +6 -2
- package/dist-types/commands/CreateConnectorCommand.d.ts +4 -1
- package/dist-types/commands/CreateCustomPluginCommand.d.ts +3 -0
- package/dist-types/commands/CreateWorkerConfigurationCommand.d.ts +4 -0
- package/dist-types/commands/DeleteWorkerConfigurationCommand.d.ts +86 -0
- package/dist-types/commands/DescribeWorkerConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/ListCustomPluginsCommand.d.ts +1 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +87 -0
- package/dist-types/commands/ListWorkerConfigurationsCommand.d.ts +2 -0
- package/dist-types/commands/TagResourceCommand.d.ts +90 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +86 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +143 -5
- package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
- package/dist-types/ts3.4/KafkaConnect.d.ts +68 -0
- package/dist-types/ts3.4/KafkaConnectClient.d.ts +24 -0
- package/dist-types/ts3.4/commands/DeleteWorkerConfigurationCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +26 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +29 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +37 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -242,6 +242,14 @@ DeleteCustomPlugin
|
|
|
242
242
|
|
|
243
243
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/kafkaconnect/command/DeleteCustomPluginCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kafkaconnect/Interface/DeleteCustomPluginCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kafkaconnect/Interface/DeleteCustomPluginCommandOutput/)
|
|
244
244
|
|
|
245
|
+
</details>
|
|
246
|
+
<details>
|
|
247
|
+
<summary>
|
|
248
|
+
DeleteWorkerConfiguration
|
|
249
|
+
</summary>
|
|
250
|
+
|
|
251
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/kafkaconnect/command/DeleteWorkerConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kafkaconnect/Interface/DeleteWorkerConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kafkaconnect/Interface/DeleteWorkerConfigurationCommandOutput/)
|
|
252
|
+
|
|
245
253
|
</details>
|
|
246
254
|
<details>
|
|
247
255
|
<summary>
|
|
@@ -282,6 +290,14 @@ ListCustomPlugins
|
|
|
282
290
|
|
|
283
291
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/kafkaconnect/command/ListCustomPluginsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kafkaconnect/Interface/ListCustomPluginsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kafkaconnect/Interface/ListCustomPluginsCommandOutput/)
|
|
284
292
|
|
|
293
|
+
</details>
|
|
294
|
+
<details>
|
|
295
|
+
<summary>
|
|
296
|
+
ListTagsForResource
|
|
297
|
+
</summary>
|
|
298
|
+
|
|
299
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/kafkaconnect/command/ListTagsForResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kafkaconnect/Interface/ListTagsForResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kafkaconnect/Interface/ListTagsForResourceCommandOutput/)
|
|
300
|
+
|
|
285
301
|
</details>
|
|
286
302
|
<details>
|
|
287
303
|
<summary>
|
|
@@ -290,6 +306,22 @@ ListWorkerConfigurations
|
|
|
290
306
|
|
|
291
307
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/kafkaconnect/command/ListWorkerConfigurationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kafkaconnect/Interface/ListWorkerConfigurationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kafkaconnect/Interface/ListWorkerConfigurationsCommandOutput/)
|
|
292
308
|
|
|
309
|
+
</details>
|
|
310
|
+
<details>
|
|
311
|
+
<summary>
|
|
312
|
+
TagResource
|
|
313
|
+
</summary>
|
|
314
|
+
|
|
315
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/kafkaconnect/command/TagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kafkaconnect/Interface/TagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kafkaconnect/Interface/TagResourceCommandOutput/)
|
|
316
|
+
|
|
317
|
+
</details>
|
|
318
|
+
<details>
|
|
319
|
+
<summary>
|
|
320
|
+
UntagResource
|
|
321
|
+
</summary>
|
|
322
|
+
|
|
323
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/kafkaconnect/command/UntagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kafkaconnect/Interface/UntagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kafkaconnect/Interface/UntagResourceCommandOutput/)
|
|
324
|
+
|
|
293
325
|
</details>
|
|
294
326
|
<details>
|
|
295
327
|
<summary>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../index.js");
|
package/dist-cjs/index.js
CHANGED
|
@@ -33,6 +33,7 @@ __export(src_exports, {
|
|
|
33
33
|
CustomPluginState: () => CustomPluginState,
|
|
34
34
|
DeleteConnectorCommand: () => DeleteConnectorCommand,
|
|
35
35
|
DeleteCustomPluginCommand: () => DeleteCustomPluginCommand,
|
|
36
|
+
DeleteWorkerConfigurationCommand: () => DeleteWorkerConfigurationCommand,
|
|
36
37
|
DescribeConnectorCommand: () => DescribeConnectorCommand,
|
|
37
38
|
DescribeConnectorResponseFilterSensitiveLog: () => DescribeConnectorResponseFilterSensitiveLog,
|
|
38
39
|
DescribeCustomPluginCommand: () => DescribeCustomPluginCommand,
|
|
@@ -47,13 +48,17 @@ __export(src_exports, {
|
|
|
47
48
|
KafkaConnectServiceException: () => KafkaConnectServiceException,
|
|
48
49
|
ListConnectorsCommand: () => ListConnectorsCommand,
|
|
49
50
|
ListCustomPluginsCommand: () => ListCustomPluginsCommand,
|
|
51
|
+
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
50
52
|
ListWorkerConfigurationsCommand: () => ListWorkerConfigurationsCommand,
|
|
51
53
|
NotFoundException: () => NotFoundException,
|
|
52
54
|
ServiceUnavailableException: () => ServiceUnavailableException,
|
|
55
|
+
TagResourceCommand: () => TagResourceCommand,
|
|
53
56
|
TooManyRequestsException: () => TooManyRequestsException,
|
|
54
57
|
UnauthorizedException: () => UnauthorizedException,
|
|
58
|
+
UntagResourceCommand: () => UntagResourceCommand,
|
|
55
59
|
UpdateConnectorCommand: () => UpdateConnectorCommand,
|
|
56
60
|
WorkerConfigurationRevisionDescriptionFilterSensitiveLog: () => WorkerConfigurationRevisionDescriptionFilterSensitiveLog,
|
|
61
|
+
WorkerConfigurationState: () => WorkerConfigurationState,
|
|
57
62
|
__Client: () => import_smithy_client.Client,
|
|
58
63
|
paginateListConnectors: () => paginateListConnectors,
|
|
59
64
|
paginateListCustomPlugins: () => paginateListCustomPlugins,
|
|
@@ -258,6 +263,10 @@ var CustomPluginContentType = {
|
|
|
258
263
|
JAR: "JAR",
|
|
259
264
|
ZIP: "ZIP"
|
|
260
265
|
};
|
|
266
|
+
var WorkerConfigurationState = {
|
|
267
|
+
ACTIVE: "ACTIVE",
|
|
268
|
+
DELETING: "DELETING"
|
|
269
|
+
};
|
|
261
270
|
var _BadRequestException = class _BadRequestException extends KafkaConnectServiceException {
|
|
262
271
|
/**
|
|
263
272
|
* @internal
|
|
@@ -440,6 +449,7 @@ var se_CreateConnectorCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
440
449
|
logDelivery: (_) => (0, import_smithy_client._json)(_),
|
|
441
450
|
plugins: (_) => (0, import_smithy_client._json)(_),
|
|
442
451
|
serviceExecutionRoleArn: [],
|
|
452
|
+
tags: (_) => (0, import_smithy_client._json)(_),
|
|
443
453
|
workerConfiguration: (_) => (0, import_smithy_client._json)(_)
|
|
444
454
|
})
|
|
445
455
|
);
|
|
@@ -458,7 +468,8 @@ var se_CreateCustomPluginCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
458
468
|
contentType: [],
|
|
459
469
|
description: [],
|
|
460
470
|
location: (_) => (0, import_smithy_client._json)(_),
|
|
461
|
-
name: []
|
|
471
|
+
name: [],
|
|
472
|
+
tags: (_) => (0, import_smithy_client._json)(_)
|
|
462
473
|
})
|
|
463
474
|
);
|
|
464
475
|
b.m("POST").h(headers).b(body);
|
|
@@ -475,7 +486,8 @@ var se_CreateWorkerConfigurationCommand = /* @__PURE__ */ __name(async (input, c
|
|
|
475
486
|
(0, import_smithy_client.take)(input, {
|
|
476
487
|
description: [],
|
|
477
488
|
name: [],
|
|
478
|
-
propertiesFileContent: []
|
|
489
|
+
propertiesFileContent: [],
|
|
490
|
+
tags: (_) => (0, import_smithy_client._json)(_)
|
|
479
491
|
})
|
|
480
492
|
);
|
|
481
493
|
b.m("POST").h(headers).b(body);
|
|
@@ -502,6 +514,15 @@ var se_DeleteCustomPluginCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
502
514
|
b.m("DELETE").h(headers).b(body);
|
|
503
515
|
return b.build();
|
|
504
516
|
}, "se_DeleteCustomPluginCommand");
|
|
517
|
+
var se_DeleteWorkerConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
518
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
519
|
+
const headers = {};
|
|
520
|
+
b.bp("/v1/worker-configurations/{workerConfigurationArn}");
|
|
521
|
+
b.p("workerConfigurationArn", () => input.workerConfigurationArn, "{workerConfigurationArn}", false);
|
|
522
|
+
let body;
|
|
523
|
+
b.m("DELETE").h(headers).b(body);
|
|
524
|
+
return b.build();
|
|
525
|
+
}, "se_DeleteWorkerConfigurationCommand");
|
|
505
526
|
var se_DescribeConnectorCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
506
527
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
507
528
|
const headers = {};
|
|
@@ -548,24 +569,66 @@ var se_ListCustomPluginsCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
548
569
|
b.bp("/v1/custom-plugins");
|
|
549
570
|
const query = (0, import_smithy_client.map)({
|
|
550
571
|
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
551
|
-
[_nT]: [, input[_nT]]
|
|
572
|
+
[_nT]: [, input[_nT]],
|
|
573
|
+
[_nP]: [, input[_nP]]
|
|
552
574
|
});
|
|
553
575
|
let body;
|
|
554
576
|
b.m("GET").h(headers).q(query).b(body);
|
|
555
577
|
return b.build();
|
|
556
578
|
}, "se_ListCustomPluginsCommand");
|
|
579
|
+
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
580
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
581
|
+
const headers = {};
|
|
582
|
+
b.bp("/v1/tags/{resourceArn}");
|
|
583
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
584
|
+
let body;
|
|
585
|
+
b.m("GET").h(headers).b(body);
|
|
586
|
+
return b.build();
|
|
587
|
+
}, "se_ListTagsForResourceCommand");
|
|
557
588
|
var se_ListWorkerConfigurationsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
558
589
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
559
590
|
const headers = {};
|
|
560
591
|
b.bp("/v1/worker-configurations");
|
|
561
592
|
const query = (0, import_smithy_client.map)({
|
|
562
593
|
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
563
|
-
[_nT]: [, input[_nT]]
|
|
594
|
+
[_nT]: [, input[_nT]],
|
|
595
|
+
[_nP]: [, input[_nP]]
|
|
564
596
|
});
|
|
565
597
|
let body;
|
|
566
598
|
b.m("GET").h(headers).q(query).b(body);
|
|
567
599
|
return b.build();
|
|
568
600
|
}, "se_ListWorkerConfigurationsCommand");
|
|
601
|
+
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
602
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
603
|
+
const headers = {
|
|
604
|
+
"content-type": "application/json"
|
|
605
|
+
};
|
|
606
|
+
b.bp("/v1/tags/{resourceArn}");
|
|
607
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
608
|
+
let body;
|
|
609
|
+
body = JSON.stringify(
|
|
610
|
+
(0, import_smithy_client.take)(input, {
|
|
611
|
+
tags: (_) => (0, import_smithy_client._json)(_)
|
|
612
|
+
})
|
|
613
|
+
);
|
|
614
|
+
b.m("POST").h(headers).b(body);
|
|
615
|
+
return b.build();
|
|
616
|
+
}, "se_TagResourceCommand");
|
|
617
|
+
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
618
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
619
|
+
const headers = {};
|
|
620
|
+
b.bp("/v1/tags/{resourceArn}");
|
|
621
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
622
|
+
const query = (0, import_smithy_client.map)({
|
|
623
|
+
[_tK]: [
|
|
624
|
+
(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
625
|
+
() => (input[_tK] || []).map((_entry) => _entry)
|
|
626
|
+
]
|
|
627
|
+
});
|
|
628
|
+
let body;
|
|
629
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
630
|
+
return b.build();
|
|
631
|
+
}, "se_UntagResourceCommand");
|
|
569
632
|
var se_UpdateConnectorCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
570
633
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
571
634
|
const headers = {
|
|
@@ -630,7 +693,8 @@ var de_CreateWorkerConfigurationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
630
693
|
creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
631
694
|
latestRevision: (_) => de_WorkerConfigurationRevisionSummary(_, context),
|
|
632
695
|
name: import_smithy_client.expectString,
|
|
633
|
-
workerConfigurationArn: import_smithy_client.expectString
|
|
696
|
+
workerConfigurationArn: import_smithy_client.expectString,
|
|
697
|
+
workerConfigurationState: import_smithy_client.expectString
|
|
634
698
|
});
|
|
635
699
|
Object.assign(contents, doc);
|
|
636
700
|
return contents;
|
|
@@ -665,6 +729,21 @@ var de_DeleteCustomPluginCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
665
729
|
Object.assign(contents, doc);
|
|
666
730
|
return contents;
|
|
667
731
|
}, "de_DeleteCustomPluginCommand");
|
|
732
|
+
var de_DeleteWorkerConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
733
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
734
|
+
return de_CommandError(output, context);
|
|
735
|
+
}
|
|
736
|
+
const contents = (0, import_smithy_client.map)({
|
|
737
|
+
$metadata: deserializeMetadata(output)
|
|
738
|
+
});
|
|
739
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
740
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
741
|
+
workerConfigurationArn: import_smithy_client.expectString,
|
|
742
|
+
workerConfigurationState: import_smithy_client.expectString
|
|
743
|
+
});
|
|
744
|
+
Object.assign(contents, doc);
|
|
745
|
+
return contents;
|
|
746
|
+
}, "de_DeleteWorkerConfigurationCommand");
|
|
668
747
|
var de_DescribeConnectorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
669
748
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
670
749
|
return de_CommandError(output, context);
|
|
@@ -728,7 +807,8 @@ var de_DescribeWorkerConfigurationCommand = /* @__PURE__ */ __name(async (output
|
|
|
728
807
|
description: import_smithy_client.expectString,
|
|
729
808
|
latestRevision: (_) => de_WorkerConfigurationRevisionDescription(_, context),
|
|
730
809
|
name: import_smithy_client.expectString,
|
|
731
|
-
workerConfigurationArn: import_smithy_client.expectString
|
|
810
|
+
workerConfigurationArn: import_smithy_client.expectString,
|
|
811
|
+
workerConfigurationState: import_smithy_client.expectString
|
|
732
812
|
});
|
|
733
813
|
Object.assign(contents, doc);
|
|
734
814
|
return contents;
|
|
@@ -763,6 +843,20 @@ var de_ListCustomPluginsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
763
843
|
Object.assign(contents, doc);
|
|
764
844
|
return contents;
|
|
765
845
|
}, "de_ListCustomPluginsCommand");
|
|
846
|
+
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
847
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
848
|
+
return de_CommandError(output, context);
|
|
849
|
+
}
|
|
850
|
+
const contents = (0, import_smithy_client.map)({
|
|
851
|
+
$metadata: deserializeMetadata(output)
|
|
852
|
+
});
|
|
853
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
854
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
855
|
+
tags: import_smithy_client._json
|
|
856
|
+
});
|
|
857
|
+
Object.assign(contents, doc);
|
|
858
|
+
return contents;
|
|
859
|
+
}, "de_ListTagsForResourceCommand");
|
|
766
860
|
var de_ListWorkerConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
767
861
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
768
862
|
return de_CommandError(output, context);
|
|
@@ -778,6 +872,26 @@ var de_ListWorkerConfigurationsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
778
872
|
Object.assign(contents, doc);
|
|
779
873
|
return contents;
|
|
780
874
|
}, "de_ListWorkerConfigurationsCommand");
|
|
875
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
876
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
877
|
+
return de_CommandError(output, context);
|
|
878
|
+
}
|
|
879
|
+
const contents = (0, import_smithy_client.map)({
|
|
880
|
+
$metadata: deserializeMetadata(output)
|
|
881
|
+
});
|
|
882
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
883
|
+
return contents;
|
|
884
|
+
}, "de_TagResourceCommand");
|
|
885
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
886
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
887
|
+
return de_CommandError(output, context);
|
|
888
|
+
}
|
|
889
|
+
const contents = (0, import_smithy_client.map)({
|
|
890
|
+
$metadata: deserializeMetadata(output)
|
|
891
|
+
});
|
|
892
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
893
|
+
return contents;
|
|
894
|
+
}, "de_UntagResourceCommand");
|
|
781
895
|
var de_UpdateConnectorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
782
896
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
783
897
|
return de_CommandError(output, context);
|
|
@@ -1016,7 +1130,8 @@ var de_WorkerConfigurationSummary = /* @__PURE__ */ __name((output, context) =>
|
|
|
1016
1130
|
description: import_smithy_client.expectString,
|
|
1017
1131
|
latestRevision: (_) => de_WorkerConfigurationRevisionSummary(_, context),
|
|
1018
1132
|
name: import_smithy_client.expectString,
|
|
1019
|
-
workerConfigurationArn: import_smithy_client.expectString
|
|
1133
|
+
workerConfigurationArn: import_smithy_client.expectString,
|
|
1134
|
+
workerConfigurationState: import_smithy_client.expectString
|
|
1020
1135
|
});
|
|
1021
1136
|
}, "de_WorkerConfigurationSummary");
|
|
1022
1137
|
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
@@ -1029,7 +1144,9 @@ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, impo
|
|
|
1029
1144
|
var _cNP = "connectorNamePrefix";
|
|
1030
1145
|
var _cV = "currentVersion";
|
|
1031
1146
|
var _mR = "maxResults";
|
|
1147
|
+
var _nP = "namePrefix";
|
|
1032
1148
|
var _nT = "nextToken";
|
|
1149
|
+
var _tK = "tagKeys";
|
|
1033
1150
|
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1034
1151
|
if (encoded.length) {
|
|
1035
1152
|
return JSON.parse(encoded);
|
|
@@ -1152,6 +1269,23 @@ var _DeleteCustomPluginCommand = class _DeleteCustomPluginCommand extends import
|
|
|
1152
1269
|
__name(_DeleteCustomPluginCommand, "DeleteCustomPluginCommand");
|
|
1153
1270
|
var DeleteCustomPluginCommand = _DeleteCustomPluginCommand;
|
|
1154
1271
|
|
|
1272
|
+
// src/commands/DeleteWorkerConfigurationCommand.ts
|
|
1273
|
+
|
|
1274
|
+
|
|
1275
|
+
|
|
1276
|
+
|
|
1277
|
+
var _DeleteWorkerConfigurationCommand = class _DeleteWorkerConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1278
|
+
...commonParams
|
|
1279
|
+
}).m(function(Command, cs, config, o) {
|
|
1280
|
+
return [
|
|
1281
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1282
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1283
|
+
];
|
|
1284
|
+
}).s("KafkaConnect", "DeleteWorkerConfiguration", {}).n("KafkaConnectClient", "DeleteWorkerConfigurationCommand").f(void 0, void 0).ser(se_DeleteWorkerConfigurationCommand).de(de_DeleteWorkerConfigurationCommand).build() {
|
|
1285
|
+
};
|
|
1286
|
+
__name(_DeleteWorkerConfigurationCommand, "DeleteWorkerConfigurationCommand");
|
|
1287
|
+
var DeleteWorkerConfigurationCommand = _DeleteWorkerConfigurationCommand;
|
|
1288
|
+
|
|
1155
1289
|
// src/commands/DescribeConnectorCommand.ts
|
|
1156
1290
|
|
|
1157
1291
|
|
|
@@ -1237,6 +1371,23 @@ var _ListCustomPluginsCommand = class _ListCustomPluginsCommand extends import_s
|
|
|
1237
1371
|
__name(_ListCustomPluginsCommand, "ListCustomPluginsCommand");
|
|
1238
1372
|
var ListCustomPluginsCommand = _ListCustomPluginsCommand;
|
|
1239
1373
|
|
|
1374
|
+
// src/commands/ListTagsForResourceCommand.ts
|
|
1375
|
+
|
|
1376
|
+
|
|
1377
|
+
|
|
1378
|
+
|
|
1379
|
+
var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1380
|
+
...commonParams
|
|
1381
|
+
}).m(function(Command, cs, config, o) {
|
|
1382
|
+
return [
|
|
1383
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1384
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1385
|
+
];
|
|
1386
|
+
}).s("KafkaConnect", "ListTagsForResource", {}).n("KafkaConnectClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
1387
|
+
};
|
|
1388
|
+
__name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
|
|
1389
|
+
var ListTagsForResourceCommand = _ListTagsForResourceCommand;
|
|
1390
|
+
|
|
1240
1391
|
// src/commands/ListWorkerConfigurationsCommand.ts
|
|
1241
1392
|
|
|
1242
1393
|
|
|
@@ -1254,6 +1405,40 @@ var _ListWorkerConfigurationsCommand = class _ListWorkerConfigurationsCommand ex
|
|
|
1254
1405
|
__name(_ListWorkerConfigurationsCommand, "ListWorkerConfigurationsCommand");
|
|
1255
1406
|
var ListWorkerConfigurationsCommand = _ListWorkerConfigurationsCommand;
|
|
1256
1407
|
|
|
1408
|
+
// src/commands/TagResourceCommand.ts
|
|
1409
|
+
|
|
1410
|
+
|
|
1411
|
+
|
|
1412
|
+
|
|
1413
|
+
var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1414
|
+
...commonParams
|
|
1415
|
+
}).m(function(Command, cs, config, o) {
|
|
1416
|
+
return [
|
|
1417
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1418
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1419
|
+
];
|
|
1420
|
+
}).s("KafkaConnect", "TagResource", {}).n("KafkaConnectClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
1421
|
+
};
|
|
1422
|
+
__name(_TagResourceCommand, "TagResourceCommand");
|
|
1423
|
+
var TagResourceCommand = _TagResourceCommand;
|
|
1424
|
+
|
|
1425
|
+
// src/commands/UntagResourceCommand.ts
|
|
1426
|
+
|
|
1427
|
+
|
|
1428
|
+
|
|
1429
|
+
|
|
1430
|
+
var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1431
|
+
...commonParams
|
|
1432
|
+
}).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", "UntagResource", {}).n("KafkaConnectClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
1438
|
+
};
|
|
1439
|
+
__name(_UntagResourceCommand, "UntagResourceCommand");
|
|
1440
|
+
var UntagResourceCommand = _UntagResourceCommand;
|
|
1441
|
+
|
|
1257
1442
|
// src/commands/UpdateConnectorCommand.ts
|
|
1258
1443
|
|
|
1259
1444
|
|
|
@@ -1278,12 +1463,16 @@ var commands = {
|
|
|
1278
1463
|
CreateWorkerConfigurationCommand,
|
|
1279
1464
|
DeleteConnectorCommand,
|
|
1280
1465
|
DeleteCustomPluginCommand,
|
|
1466
|
+
DeleteWorkerConfigurationCommand,
|
|
1281
1467
|
DescribeConnectorCommand,
|
|
1282
1468
|
DescribeCustomPluginCommand,
|
|
1283
1469
|
DescribeWorkerConfigurationCommand,
|
|
1284
1470
|
ListConnectorsCommand,
|
|
1285
1471
|
ListCustomPluginsCommand,
|
|
1472
|
+
ListTagsForResourceCommand,
|
|
1286
1473
|
ListWorkerConfigurationsCommand,
|
|
1474
|
+
TagResourceCommand,
|
|
1475
|
+
UntagResourceCommand,
|
|
1287
1476
|
UpdateConnectorCommand
|
|
1288
1477
|
};
|
|
1289
1478
|
var _KafkaConnect = class _KafkaConnect extends KafkaConnectClient {
|
|
@@ -1319,12 +1508,16 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
|
1319
1508
|
CreateWorkerConfigurationCommand,
|
|
1320
1509
|
DeleteConnectorCommand,
|
|
1321
1510
|
DeleteCustomPluginCommand,
|
|
1511
|
+
DeleteWorkerConfigurationCommand,
|
|
1322
1512
|
DescribeConnectorCommand,
|
|
1323
1513
|
DescribeCustomPluginCommand,
|
|
1324
1514
|
DescribeWorkerConfigurationCommand,
|
|
1325
1515
|
ListConnectorsCommand,
|
|
1326
1516
|
ListCustomPluginsCommand,
|
|
1517
|
+
ListTagsForResourceCommand,
|
|
1327
1518
|
ListWorkerConfigurationsCommand,
|
|
1519
|
+
TagResourceCommand,
|
|
1520
|
+
UntagResourceCommand,
|
|
1328
1521
|
UpdateConnectorCommand,
|
|
1329
1522
|
paginateListConnectors,
|
|
1330
1523
|
paginateListCustomPlugins,
|
|
@@ -1334,6 +1527,7 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
|
1334
1527
|
KafkaClusterEncryptionInTransitType,
|
|
1335
1528
|
CustomPluginState,
|
|
1336
1529
|
CustomPluginContentType,
|
|
1530
|
+
WorkerConfigurationState,
|
|
1337
1531
|
BadRequestException,
|
|
1338
1532
|
ConflictException,
|
|
1339
1533
|
ForbiddenException,
|
package/dist-es/KafkaConnect.js
CHANGED
|
@@ -4,12 +4,16 @@ import { CreateCustomPluginCommand, } from "./commands/CreateCustomPluginCommand
|
|
|
4
4
|
import { CreateWorkerConfigurationCommand, } from "./commands/CreateWorkerConfigurationCommand";
|
|
5
5
|
import { DeleteConnectorCommand, } from "./commands/DeleteConnectorCommand";
|
|
6
6
|
import { DeleteCustomPluginCommand, } from "./commands/DeleteCustomPluginCommand";
|
|
7
|
+
import { DeleteWorkerConfigurationCommand, } from "./commands/DeleteWorkerConfigurationCommand";
|
|
7
8
|
import { DescribeConnectorCommand, } from "./commands/DescribeConnectorCommand";
|
|
8
9
|
import { DescribeCustomPluginCommand, } from "./commands/DescribeCustomPluginCommand";
|
|
9
10
|
import { DescribeWorkerConfigurationCommand, } from "./commands/DescribeWorkerConfigurationCommand";
|
|
10
11
|
import { ListConnectorsCommand, } from "./commands/ListConnectorsCommand";
|
|
11
12
|
import { ListCustomPluginsCommand, } from "./commands/ListCustomPluginsCommand";
|
|
13
|
+
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
12
14
|
import { ListWorkerConfigurationsCommand, } from "./commands/ListWorkerConfigurationsCommand";
|
|
15
|
+
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
16
|
+
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
13
17
|
import { UpdateConnectorCommand, } from "./commands/UpdateConnectorCommand";
|
|
14
18
|
import { KafkaConnectClient } from "./KafkaConnectClient";
|
|
15
19
|
const commands = {
|
|
@@ -18,12 +22,16 @@ const commands = {
|
|
|
18
22
|
CreateWorkerConfigurationCommand,
|
|
19
23
|
DeleteConnectorCommand,
|
|
20
24
|
DeleteCustomPluginCommand,
|
|
25
|
+
DeleteWorkerConfigurationCommand,
|
|
21
26
|
DescribeConnectorCommand,
|
|
22
27
|
DescribeCustomPluginCommand,
|
|
23
28
|
DescribeWorkerConfigurationCommand,
|
|
24
29
|
ListConnectorsCommand,
|
|
25
30
|
ListCustomPluginsCommand,
|
|
31
|
+
ListTagsForResourceCommand,
|
|
26
32
|
ListWorkerConfigurationsCommand,
|
|
33
|
+
TagResourceCommand,
|
|
34
|
+
UntagResourceCommand,
|
|
27
35
|
UpdateConnectorCommand,
|
|
28
36
|
};
|
|
29
37
|
export class KafkaConnect extends KafkaConnectClient {
|
|
@@ -0,0 +1,24 @@
|
|
|
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_DeleteWorkerConfigurationCommand, se_DeleteWorkerConfigurationCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class DeleteWorkerConfigurationCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("KafkaConnect", "DeleteWorkerConfiguration", {})
|
|
19
|
+
.n("KafkaConnectClient", "DeleteWorkerConfigurationCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_DeleteWorkerConfigurationCommand)
|
|
22
|
+
.de(de_DeleteWorkerConfigurationCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListTagsForResourceCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("KafkaConnect", "ListTagsForResource", {})
|
|
19
|
+
.n("KafkaConnectClient", "ListTagsForResourceCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_ListTagsForResourceCommand)
|
|
22
|
+
.de(de_ListTagsForResourceCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class TagResourceCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("KafkaConnect", "TagResource", {})
|
|
19
|
+
.n("KafkaConnectClient", "TagResourceCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_TagResourceCommand)
|
|
22
|
+
.de(de_TagResourceCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class UntagResourceCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("KafkaConnect", "UntagResource", {})
|
|
19
|
+
.n("KafkaConnectClient", "UntagResourceCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_UntagResourceCommand)
|
|
22
|
+
.de(de_UntagResourceCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -3,10 +3,14 @@ export * from "./CreateCustomPluginCommand";
|
|
|
3
3
|
export * from "./CreateWorkerConfigurationCommand";
|
|
4
4
|
export * from "./DeleteConnectorCommand";
|
|
5
5
|
export * from "./DeleteCustomPluginCommand";
|
|
6
|
+
export * from "./DeleteWorkerConfigurationCommand";
|
|
6
7
|
export * from "./DescribeConnectorCommand";
|
|
7
8
|
export * from "./DescribeCustomPluginCommand";
|
|
8
9
|
export * from "./DescribeWorkerConfigurationCommand";
|
|
9
10
|
export * from "./ListConnectorsCommand";
|
|
10
11
|
export * from "./ListCustomPluginsCommand";
|
|
12
|
+
export * from "./ListTagsForResourceCommand";
|
|
11
13
|
export * from "./ListWorkerConfigurationsCommand";
|
|
14
|
+
export * from "./TagResourceCommand";
|
|
15
|
+
export * from "./UntagResourceCommand";
|
|
12
16
|
export * from "./UpdateConnectorCommand";
|
|
@@ -27,6 +27,10 @@ export const CustomPluginContentType = {
|
|
|
27
27
|
JAR: "JAR",
|
|
28
28
|
ZIP: "ZIP",
|
|
29
29
|
};
|
|
30
|
+
export const WorkerConfigurationState = {
|
|
31
|
+
ACTIVE: "ACTIVE",
|
|
32
|
+
DELETING: "DELETING",
|
|
33
|
+
};
|
|
30
34
|
export class BadRequestException extends __BaseException {
|
|
31
35
|
constructor(opts) {
|
|
32
36
|
super({
|