@aws-sdk/client-kafkaconnect 3.180.0 → 3.183.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/CHANGELOG.md +20 -0
- package/dist-cjs/protocols/Aws_restJson1.js +18 -12
- package/dist-es/KafkaConnect.js +50 -57
- package/dist-es/KafkaConnectClient.js +22 -28
- package/dist-es/commands/CreateConnectorCommand.js +21 -28
- package/dist-es/commands/CreateCustomPluginCommand.js +21 -28
- package/dist-es/commands/CreateWorkerConfigurationCommand.js +21 -28
- package/dist-es/commands/DeleteConnectorCommand.js +21 -28
- package/dist-es/commands/DeleteCustomPluginCommand.js +21 -28
- package/dist-es/commands/DescribeConnectorCommand.js +21 -28
- package/dist-es/commands/DescribeCustomPluginCommand.js +21 -28
- package/dist-es/commands/DescribeWorkerConfigurationCommand.js +21 -28
- package/dist-es/commands/ListConnectorsCommand.js +21 -28
- package/dist-es/commands/ListCustomPluginsCommand.js +21 -28
- package/dist-es/commands/ListWorkerConfigurationsCommand.js +21 -28
- package/dist-es/commands/UpdateConnectorCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/KafkaConnectServiceException.js +5 -10
- package/dist-es/models/models_0.js +326 -168
- package/dist-es/pagination/ListConnectorsPaginator.js +25 -68
- package/dist-es/pagination/ListCustomPluginsPaginator.js +25 -68
- package/dist-es/pagination/ListWorkerConfigurationsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +1297 -1626
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-kafkaconnect
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-kafkaconnect
|
|
@@ -297,7 +297,7 @@ exports.deserializeAws_restJson1CreateConnectorCommand = deserializeAws_restJson
|
|
|
297
297
|
const deserializeAws_restJson1CreateConnectorCommandError = async (output, context) => {
|
|
298
298
|
const parsedOutput = {
|
|
299
299
|
...output,
|
|
300
|
-
body: await
|
|
300
|
+
body: await parseErrorBody(output.body, context),
|
|
301
301
|
};
|
|
302
302
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
303
303
|
switch (errorCode) {
|
|
@@ -361,7 +361,7 @@ exports.deserializeAws_restJson1CreateCustomPluginCommand = deserializeAws_restJ
|
|
|
361
361
|
const deserializeAws_restJson1CreateCustomPluginCommandError = async (output, context) => {
|
|
362
362
|
const parsedOutput = {
|
|
363
363
|
...output,
|
|
364
|
-
body: await
|
|
364
|
+
body: await parseErrorBody(output.body, context),
|
|
365
365
|
};
|
|
366
366
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
367
367
|
switch (errorCode) {
|
|
@@ -425,7 +425,7 @@ exports.deserializeAws_restJson1CreateWorkerConfigurationCommand = deserializeAw
|
|
|
425
425
|
const deserializeAws_restJson1CreateWorkerConfigurationCommandError = async (output, context) => {
|
|
426
426
|
const parsedOutput = {
|
|
427
427
|
...output,
|
|
428
|
-
body: await
|
|
428
|
+
body: await parseErrorBody(output.body, context),
|
|
429
429
|
};
|
|
430
430
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
431
431
|
switch (errorCode) {
|
|
@@ -483,7 +483,7 @@ exports.deserializeAws_restJson1DeleteConnectorCommand = deserializeAws_restJson
|
|
|
483
483
|
const deserializeAws_restJson1DeleteConnectorCommandError = async (output, context) => {
|
|
484
484
|
const parsedOutput = {
|
|
485
485
|
...output,
|
|
486
|
-
body: await
|
|
486
|
+
body: await parseErrorBody(output.body, context),
|
|
487
487
|
};
|
|
488
488
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
489
489
|
switch (errorCode) {
|
|
@@ -538,7 +538,7 @@ exports.deserializeAws_restJson1DeleteCustomPluginCommand = deserializeAws_restJ
|
|
|
538
538
|
const deserializeAws_restJson1DeleteCustomPluginCommandError = async (output, context) => {
|
|
539
539
|
const parsedOutput = {
|
|
540
540
|
...output,
|
|
541
|
-
body: await
|
|
541
|
+
body: await parseErrorBody(output.body, context),
|
|
542
542
|
};
|
|
543
543
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
544
544
|
switch (errorCode) {
|
|
@@ -638,7 +638,7 @@ exports.deserializeAws_restJson1DescribeConnectorCommand = deserializeAws_restJs
|
|
|
638
638
|
const deserializeAws_restJson1DescribeConnectorCommandError = async (output, context) => {
|
|
639
639
|
const parsedOutput = {
|
|
640
640
|
...output,
|
|
641
|
-
body: await
|
|
641
|
+
body: await parseErrorBody(output.body, context),
|
|
642
642
|
};
|
|
643
643
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
644
644
|
switch (errorCode) {
|
|
@@ -708,7 +708,7 @@ exports.deserializeAws_restJson1DescribeCustomPluginCommand = deserializeAws_res
|
|
|
708
708
|
const deserializeAws_restJson1DescribeCustomPluginCommandError = async (output, context) => {
|
|
709
709
|
const parsedOutput = {
|
|
710
710
|
...output,
|
|
711
|
-
body: await
|
|
711
|
+
body: await parseErrorBody(output.body, context),
|
|
712
712
|
};
|
|
713
713
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
714
714
|
switch (errorCode) {
|
|
@@ -772,7 +772,7 @@ exports.deserializeAws_restJson1DescribeWorkerConfigurationCommand = deserialize
|
|
|
772
772
|
const deserializeAws_restJson1DescribeWorkerConfigurationCommandError = async (output, context) => {
|
|
773
773
|
const parsedOutput = {
|
|
774
774
|
...output,
|
|
775
|
-
body: await
|
|
775
|
+
body: await parseErrorBody(output.body, context),
|
|
776
776
|
};
|
|
777
777
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
778
778
|
switch (errorCode) {
|
|
@@ -827,7 +827,7 @@ exports.deserializeAws_restJson1ListConnectorsCommand = deserializeAws_restJson1
|
|
|
827
827
|
const deserializeAws_restJson1ListConnectorsCommandError = async (output, context) => {
|
|
828
828
|
const parsedOutput = {
|
|
829
829
|
...output,
|
|
830
|
-
body: await
|
|
830
|
+
body: await parseErrorBody(output.body, context),
|
|
831
831
|
};
|
|
832
832
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
833
833
|
switch (errorCode) {
|
|
@@ -882,7 +882,7 @@ exports.deserializeAws_restJson1ListCustomPluginsCommand = deserializeAws_restJs
|
|
|
882
882
|
const deserializeAws_restJson1ListCustomPluginsCommandError = async (output, context) => {
|
|
883
883
|
const parsedOutput = {
|
|
884
884
|
...output,
|
|
885
|
-
body: await
|
|
885
|
+
body: await parseErrorBody(output.body, context),
|
|
886
886
|
};
|
|
887
887
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
888
888
|
switch (errorCode) {
|
|
@@ -937,7 +937,7 @@ exports.deserializeAws_restJson1ListWorkerConfigurationsCommand = deserializeAws
|
|
|
937
937
|
const deserializeAws_restJson1ListWorkerConfigurationsCommandError = async (output, context) => {
|
|
938
938
|
const parsedOutput = {
|
|
939
939
|
...output,
|
|
940
|
-
body: await
|
|
940
|
+
body: await parseErrorBody(output.body, context),
|
|
941
941
|
};
|
|
942
942
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
943
943
|
switch (errorCode) {
|
|
@@ -992,7 +992,7 @@ exports.deserializeAws_restJson1UpdateConnectorCommand = deserializeAws_restJson
|
|
|
992
992
|
const deserializeAws_restJson1UpdateConnectorCommandError = async (output, context) => {
|
|
993
993
|
const parsedOutput = {
|
|
994
994
|
...output,
|
|
995
|
-
body: await
|
|
995
|
+
body: await parseErrorBody(output.body, context),
|
|
996
996
|
};
|
|
997
997
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
998
998
|
switch (errorCode) {
|
|
@@ -1646,6 +1646,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
1646
1646
|
}
|
|
1647
1647
|
return {};
|
|
1648
1648
|
});
|
|
1649
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
1650
|
+
var _a;
|
|
1651
|
+
const value = await parseBody(errorBody, context);
|
|
1652
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
1653
|
+
return value;
|
|
1654
|
+
};
|
|
1649
1655
|
const loadRestJsonErrorCode = (output, data) => {
|
|
1650
1656
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1651
1657
|
const sanitizeErrorCode = (rawValue) => {
|
package/dist-es/KafkaConnect.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { CreateConnectorCommand, } from "./commands/CreateConnectorCommand";
|
|
3
2
|
import { CreateCustomPluginCommand, } from "./commands/CreateCustomPluginCommand";
|
|
4
3
|
import { CreateWorkerConfigurationCommand, } from "./commands/CreateWorkerConfigurationCommand";
|
|
@@ -12,179 +11,173 @@ import { ListCustomPluginsCommand, } from "./commands/ListCustomPluginsCommand";
|
|
|
12
11
|
import { ListWorkerConfigurationsCommand, } from "./commands/ListWorkerConfigurationsCommand";
|
|
13
12
|
import { UpdateConnectorCommand, } from "./commands/UpdateConnectorCommand";
|
|
14
13
|
import { KafkaConnectClient } from "./KafkaConnectClient";
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
19
|
-
}
|
|
20
|
-
KafkaConnect.prototype.createConnector = function (args, optionsOrCb, cb) {
|
|
21
|
-
var command = new CreateConnectorCommand(args);
|
|
14
|
+
export class KafkaConnect extends KafkaConnectClient {
|
|
15
|
+
createConnector(args, optionsOrCb, cb) {
|
|
16
|
+
const command = new CreateConnectorCommand(args);
|
|
22
17
|
if (typeof optionsOrCb === "function") {
|
|
23
18
|
this.send(command, optionsOrCb);
|
|
24
19
|
}
|
|
25
20
|
else if (typeof cb === "function") {
|
|
26
21
|
if (typeof optionsOrCb !== "object")
|
|
27
|
-
throw new Error(
|
|
22
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
28
23
|
this.send(command, optionsOrCb || {}, cb);
|
|
29
24
|
}
|
|
30
25
|
else {
|
|
31
26
|
return this.send(command, optionsOrCb);
|
|
32
27
|
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
28
|
+
}
|
|
29
|
+
createCustomPlugin(args, optionsOrCb, cb) {
|
|
30
|
+
const command = new CreateCustomPluginCommand(args);
|
|
36
31
|
if (typeof optionsOrCb === "function") {
|
|
37
32
|
this.send(command, optionsOrCb);
|
|
38
33
|
}
|
|
39
34
|
else if (typeof cb === "function") {
|
|
40
35
|
if (typeof optionsOrCb !== "object")
|
|
41
|
-
throw new Error(
|
|
36
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
42
37
|
this.send(command, optionsOrCb || {}, cb);
|
|
43
38
|
}
|
|
44
39
|
else {
|
|
45
40
|
return this.send(command, optionsOrCb);
|
|
46
41
|
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
42
|
+
}
|
|
43
|
+
createWorkerConfiguration(args, optionsOrCb, cb) {
|
|
44
|
+
const command = new CreateWorkerConfigurationCommand(args);
|
|
50
45
|
if (typeof optionsOrCb === "function") {
|
|
51
46
|
this.send(command, optionsOrCb);
|
|
52
47
|
}
|
|
53
48
|
else if (typeof cb === "function") {
|
|
54
49
|
if (typeof optionsOrCb !== "object")
|
|
55
|
-
throw new Error(
|
|
50
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
56
51
|
this.send(command, optionsOrCb || {}, cb);
|
|
57
52
|
}
|
|
58
53
|
else {
|
|
59
54
|
return this.send(command, optionsOrCb);
|
|
60
55
|
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
56
|
+
}
|
|
57
|
+
deleteConnector(args, optionsOrCb, cb) {
|
|
58
|
+
const command = new DeleteConnectorCommand(args);
|
|
64
59
|
if (typeof optionsOrCb === "function") {
|
|
65
60
|
this.send(command, optionsOrCb);
|
|
66
61
|
}
|
|
67
62
|
else if (typeof cb === "function") {
|
|
68
63
|
if (typeof optionsOrCb !== "object")
|
|
69
|
-
throw new Error(
|
|
64
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
70
65
|
this.send(command, optionsOrCb || {}, cb);
|
|
71
66
|
}
|
|
72
67
|
else {
|
|
73
68
|
return this.send(command, optionsOrCb);
|
|
74
69
|
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
70
|
+
}
|
|
71
|
+
deleteCustomPlugin(args, optionsOrCb, cb) {
|
|
72
|
+
const command = new DeleteCustomPluginCommand(args);
|
|
78
73
|
if (typeof optionsOrCb === "function") {
|
|
79
74
|
this.send(command, optionsOrCb);
|
|
80
75
|
}
|
|
81
76
|
else if (typeof cb === "function") {
|
|
82
77
|
if (typeof optionsOrCb !== "object")
|
|
83
|
-
throw new Error(
|
|
78
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
84
79
|
this.send(command, optionsOrCb || {}, cb);
|
|
85
80
|
}
|
|
86
81
|
else {
|
|
87
82
|
return this.send(command, optionsOrCb);
|
|
88
83
|
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
|
|
84
|
+
}
|
|
85
|
+
describeConnector(args, optionsOrCb, cb) {
|
|
86
|
+
const command = new DescribeConnectorCommand(args);
|
|
92
87
|
if (typeof optionsOrCb === "function") {
|
|
93
88
|
this.send(command, optionsOrCb);
|
|
94
89
|
}
|
|
95
90
|
else if (typeof cb === "function") {
|
|
96
91
|
if (typeof optionsOrCb !== "object")
|
|
97
|
-
throw new Error(
|
|
92
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
98
93
|
this.send(command, optionsOrCb || {}, cb);
|
|
99
94
|
}
|
|
100
95
|
else {
|
|
101
96
|
return this.send(command, optionsOrCb);
|
|
102
97
|
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
|
|
98
|
+
}
|
|
99
|
+
describeCustomPlugin(args, optionsOrCb, cb) {
|
|
100
|
+
const command = new DescribeCustomPluginCommand(args);
|
|
106
101
|
if (typeof optionsOrCb === "function") {
|
|
107
102
|
this.send(command, optionsOrCb);
|
|
108
103
|
}
|
|
109
104
|
else if (typeof cb === "function") {
|
|
110
105
|
if (typeof optionsOrCb !== "object")
|
|
111
|
-
throw new Error(
|
|
106
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
112
107
|
this.send(command, optionsOrCb || {}, cb);
|
|
113
108
|
}
|
|
114
109
|
else {
|
|
115
110
|
return this.send(command, optionsOrCb);
|
|
116
111
|
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
|
|
112
|
+
}
|
|
113
|
+
describeWorkerConfiguration(args, optionsOrCb, cb) {
|
|
114
|
+
const command = new DescribeWorkerConfigurationCommand(args);
|
|
120
115
|
if (typeof optionsOrCb === "function") {
|
|
121
116
|
this.send(command, optionsOrCb);
|
|
122
117
|
}
|
|
123
118
|
else if (typeof cb === "function") {
|
|
124
119
|
if (typeof optionsOrCb !== "object")
|
|
125
|
-
throw new Error(
|
|
120
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
126
121
|
this.send(command, optionsOrCb || {}, cb);
|
|
127
122
|
}
|
|
128
123
|
else {
|
|
129
124
|
return this.send(command, optionsOrCb);
|
|
130
125
|
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
|
|
126
|
+
}
|
|
127
|
+
listConnectors(args, optionsOrCb, cb) {
|
|
128
|
+
const command = new ListConnectorsCommand(args);
|
|
134
129
|
if (typeof optionsOrCb === "function") {
|
|
135
130
|
this.send(command, optionsOrCb);
|
|
136
131
|
}
|
|
137
132
|
else if (typeof cb === "function") {
|
|
138
133
|
if (typeof optionsOrCb !== "object")
|
|
139
|
-
throw new Error(
|
|
134
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
140
135
|
this.send(command, optionsOrCb || {}, cb);
|
|
141
136
|
}
|
|
142
137
|
else {
|
|
143
138
|
return this.send(command, optionsOrCb);
|
|
144
139
|
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
|
|
140
|
+
}
|
|
141
|
+
listCustomPlugins(args, optionsOrCb, cb) {
|
|
142
|
+
const command = new ListCustomPluginsCommand(args);
|
|
148
143
|
if (typeof optionsOrCb === "function") {
|
|
149
144
|
this.send(command, optionsOrCb);
|
|
150
145
|
}
|
|
151
146
|
else if (typeof cb === "function") {
|
|
152
147
|
if (typeof optionsOrCb !== "object")
|
|
153
|
-
throw new Error(
|
|
148
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
154
149
|
this.send(command, optionsOrCb || {}, cb);
|
|
155
150
|
}
|
|
156
151
|
else {
|
|
157
152
|
return this.send(command, optionsOrCb);
|
|
158
153
|
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
|
|
154
|
+
}
|
|
155
|
+
listWorkerConfigurations(args, optionsOrCb, cb) {
|
|
156
|
+
const command = new ListWorkerConfigurationsCommand(args);
|
|
162
157
|
if (typeof optionsOrCb === "function") {
|
|
163
158
|
this.send(command, optionsOrCb);
|
|
164
159
|
}
|
|
165
160
|
else if (typeof cb === "function") {
|
|
166
161
|
if (typeof optionsOrCb !== "object")
|
|
167
|
-
throw new Error(
|
|
162
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
168
163
|
this.send(command, optionsOrCb || {}, cb);
|
|
169
164
|
}
|
|
170
165
|
else {
|
|
171
166
|
return this.send(command, optionsOrCb);
|
|
172
167
|
}
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
|
|
168
|
+
}
|
|
169
|
+
updateConnector(args, optionsOrCb, cb) {
|
|
170
|
+
const command = new UpdateConnectorCommand(args);
|
|
176
171
|
if (typeof optionsOrCb === "function") {
|
|
177
172
|
this.send(command, optionsOrCb);
|
|
178
173
|
}
|
|
179
174
|
else if (typeof cb === "function") {
|
|
180
175
|
if (typeof optionsOrCb !== "object")
|
|
181
|
-
throw new Error(
|
|
176
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
182
177
|
this.send(command, optionsOrCb || {}, cb);
|
|
183
178
|
}
|
|
184
179
|
else {
|
|
185
180
|
return this.send(command, optionsOrCb);
|
|
186
181
|
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
}(KafkaConnectClient));
|
|
190
|
-
export { KafkaConnect };
|
|
182
|
+
}
|
|
183
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
3
2
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
4
3
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
9
8
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
10
9
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
10
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
-
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
-
return _this;
|
|
11
|
+
export class KafkaConnectClient extends __Client {
|
|
12
|
+
constructor(configuration) {
|
|
13
|
+
const _config_0 = __getRuntimeConfig(configuration);
|
|
14
|
+
const _config_1 = resolveRegionConfig(_config_0);
|
|
15
|
+
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
16
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
17
|
+
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
18
|
+
const _config_5 = resolveAwsAuthConfig(_config_4);
|
|
19
|
+
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
20
|
+
super(_config_6);
|
|
21
|
+
this.config = _config_6;
|
|
22
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
23
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
24
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
25
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
26
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
27
|
+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
28
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
33
29
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}(__Client));
|
|
39
|
-
export { KafkaConnectClient };
|
|
30
|
+
destroy() {
|
|
31
|
+
super.destroy();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { CreateConnectorRequestFilterSensitiveLog, CreateConnectorResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1CreateConnectorCommand, serializeAws_restJson1CreateConnectorCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class CreateConnectorCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "KafkaConnectClient";
|
|
15
|
+
const commandName = "CreateConnectorCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: CreateConnectorRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: CreateConnectorResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
CreateConnectorCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1CreateConnectorCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1CreateConnectorCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { CreateConnectorCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { CreateCustomPluginRequestFilterSensitiveLog, CreateCustomPluginResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1CreateCustomPluginCommand, serializeAws_restJson1CreateCustomPluginCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class CreateCustomPluginCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "KafkaConnectClient";
|
|
15
|
+
const commandName = "CreateCustomPluginCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: CreateCustomPluginRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: CreateCustomPluginResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
CreateCustomPluginCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1CreateCustomPluginCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1CreateCustomPluginCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { CreateCustomPluginCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { CreateWorkerConfigurationRequestFilterSensitiveLog, CreateWorkerConfigurationResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1CreateWorkerConfigurationCommand, serializeAws_restJson1CreateWorkerConfigurationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class CreateWorkerConfigurationCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "KafkaConnectClient";
|
|
15
|
+
const commandName = "CreateWorkerConfigurationCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: CreateWorkerConfigurationRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: CreateWorkerConfigurationResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
CreateWorkerConfigurationCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1CreateWorkerConfigurationCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1CreateWorkerConfigurationCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { CreateWorkerConfigurationCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|