@aws-sdk/client-kafkaconnect 3.33.0 → 3.36.1
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 +47 -0
- package/{dist/cjs → dist-cjs}/KafkaConnect.js +1 -5
- package/{dist/cjs → dist-cjs}/KafkaConnectClient.js +8 -17
- package/{dist/cjs → dist-cjs}/commands/CreateConnectorCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/CreateCustomPluginCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/CreateWorkerConfigurationCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DeleteConnectorCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribeConnectorCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribeCustomPluginCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribeWorkerConfigurationCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListConnectorsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListCustomPluginsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListWorkerConfigurationsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/UpdateConnectorCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -247
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListConnectorsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListCustomPluginsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListWorkerConfigurationsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +6 -12
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/es → dist-es}/KafkaConnect.js +2 -6
- package/{dist/es → dist-es}/KafkaConnectClient.js +2 -11
- package/{dist/es → dist-es}/commands/CreateConnectorCommand.js +4 -30
- package/{dist/es → dist-es}/commands/CreateCustomPluginCommand.js +4 -30
- package/{dist/es → dist-es}/commands/CreateWorkerConfigurationCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DeleteConnectorCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeConnectorCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeCustomPluginCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeWorkerConfigurationCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListConnectorsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListCustomPluginsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListWorkerConfigurationsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/UpdateConnectorCommand.js +4 -30
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -247
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListConnectorsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListCustomPluginsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListWorkerConfigurationsPaginator.js +17 -30
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +427 -433
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/KafkaConnect.d.ts +2 -2
- package/{dist/types → dist-types}/KafkaConnectClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/CreateConnectorCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateCustomPluginCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateWorkerConfigurationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteConnectorCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeConnectorCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeCustomPluginCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeWorkerConfigurationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListConnectorsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListCustomPluginsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListWorkerConfigurationsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateConnectorCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListConnectorsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListCustomPluginsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListWorkerConfigurationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/KafkaConnect.d.ts +14 -38
- package/{dist/types → dist-types}/ts3.4/KafkaConnectClient.d.ts +32 -97
- package/dist-types/ts3.4/commands/CreateConnectorCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/CreateCustomPluginCommand.d.ts +4 -22
- package/{dist/types → dist-types}/ts3.4/commands/CreateWorkerConfigurationCommand.d.ts +4 -22
- package/{dist/types → dist-types}/ts3.4/commands/DeleteConnectorCommand.d.ts +4 -22
- package/{dist/types → dist-types}/ts3.4/commands/DescribeConnectorCommand.d.ts +4 -22
- package/{dist/types → dist-types}/ts3.4/commands/DescribeCustomPluginCommand.d.ts +4 -22
- package/{dist/types → dist-types}/ts3.4/commands/DescribeWorkerConfigurationCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/ListConnectorsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListCustomPluginsCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/ListWorkerConfigurationsCommand.d.ts +4 -22
- package/{dist/types → dist-types}/ts3.4/commands/UpdateConnectorCommand.d.ts +4 -22
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1028 -0
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListConnectorsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListCustomPluginsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListWorkerConfigurationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +52 -49
- package/KafkaConnect.ts +0 -414
- package/KafkaConnectClient.ts +0 -280
- package/commands/CreateConnectorCommand.ts +0 -94
- package/commands/CreateCustomPluginCommand.ts +0 -94
- package/commands/CreateWorkerConfigurationCommand.ts +0 -97
- package/commands/DeleteConnectorCommand.ts +0 -94
- package/commands/DescribeConnectorCommand.ts +0 -94
- package/commands/DescribeCustomPluginCommand.ts +0 -94
- package/commands/DescribeWorkerConfigurationCommand.ts +0 -99
- package/commands/ListConnectorsCommand.ts +0 -94
- package/commands/ListCustomPluginsCommand.ts +0 -94
- package/commands/ListWorkerConfigurationsCommand.ts +0 -94
- package/commands/UpdateConnectorCommand.ts +0 -94
- package/dist/cjs/KafkaConnect.js.map +0 -1
- package/dist/cjs/KafkaConnectClient.js.map +0 -1
- package/dist/cjs/commands/CreateConnectorCommand.js.map +0 -1
- package/dist/cjs/commands/CreateCustomPluginCommand.js.map +0 -1
- package/dist/cjs/commands/CreateWorkerConfigurationCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteConnectorCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeConnectorCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeCustomPluginCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeWorkerConfigurationCommand.js.map +0 -1
- package/dist/cjs/commands/ListConnectorsCommand.js.map +0 -1
- package/dist/cjs/commands/ListCustomPluginsCommand.js.map +0 -1
- package/dist/cjs/commands/ListWorkerConfigurationsCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateConnectorCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/pagination/ListConnectorsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListCustomPluginsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListWorkerConfigurationsPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/KafkaConnect.js.map +0 -1
- package/dist/es/KafkaConnectClient.js.map +0 -1
- package/dist/es/commands/CreateConnectorCommand.js.map +0 -1
- package/dist/es/commands/CreateCustomPluginCommand.js.map +0 -1
- package/dist/es/commands/CreateWorkerConfigurationCommand.js.map +0 -1
- package/dist/es/commands/DeleteConnectorCommand.js.map +0 -1
- package/dist/es/commands/DescribeConnectorCommand.js.map +0 -1
- package/dist/es/commands/DescribeCustomPluginCommand.js.map +0 -1
- package/dist/es/commands/DescribeWorkerConfigurationCommand.js.map +0 -1
- package/dist/es/commands/ListConnectorsCommand.js.map +0 -1
- package/dist/es/commands/ListCustomPluginsCommand.js.map +0 -1
- package/dist/es/commands/ListWorkerConfigurationsCommand.js.map +0 -1
- package/dist/es/commands/UpdateConnectorCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -19
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/pagination/ListConnectorsPaginator.js.map +0 -1
- package/dist/es/pagination/ListCustomPluginsPaginator.js.map +0 -1
- package/dist/es/pagination/ListWorkerConfigurationsPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/dist/types/ts3.4/commands/CreateConnectorCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/ListConnectorsCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/ListCustomPluginsCommand.d.ts +0 -35
- package/dist/types/ts3.4/models/models_0.d.ts +0 -1732
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -2197
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListConnectorsPaginator.ts +0 -58
- package/pagination/ListCustomPluginsPaginator.ts +0 -58
- package/pagination/ListWorkerConfigurationsPaginator.ts +0 -58
- package/protocols/Aws_restJson1.ts +0 -2700
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
|
@@ -5,7 +5,7 @@ export var serializeAws_restJson1CreateConnectorCommand = function (input, conte
|
|
|
5
5
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
6
6
|
return __generator(this, function (_c) {
|
|
7
7
|
switch (_c.label) {
|
|
8
|
-
case 0: return [4
|
|
8
|
+
case 0: return [4, context.endpoint()];
|
|
9
9
|
case 1:
|
|
10
10
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
11
11
|
headers = {
|
|
@@ -32,7 +32,7 @@ export var serializeAws_restJson1CreateConnectorCommand = function (input, conte
|
|
|
32
32
|
input.workerConfiguration !== null && {
|
|
33
33
|
workerConfiguration: serializeAws_restJson1WorkerConfiguration(input.workerConfiguration, context),
|
|
34
34
|
})));
|
|
35
|
-
return [2
|
|
35
|
+
return [2, new __HttpRequest({
|
|
36
36
|
protocol: protocol,
|
|
37
37
|
hostname: hostname,
|
|
38
38
|
port: port,
|
|
@@ -48,7 +48,7 @@ export var serializeAws_restJson1CreateCustomPluginCommand = function (input, co
|
|
|
48
48
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
49
49
|
return __generator(this, function (_c) {
|
|
50
50
|
switch (_c.label) {
|
|
51
|
-
case 0: return [4
|
|
51
|
+
case 0: return [4, context.endpoint()];
|
|
52
52
|
case 1:
|
|
53
53
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
54
54
|
headers = {
|
|
@@ -57,7 +57,7 @@ export var serializeAws_restJson1CreateCustomPluginCommand = function (input, co
|
|
|
57
57
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/custom-plugins";
|
|
58
58
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.contentType !== undefined && input.contentType !== null && { contentType: input.contentType })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.location !== undefined &&
|
|
59
59
|
input.location !== null && { location: serializeAws_restJson1CustomPluginLocation(input.location, context) })), (input.name !== undefined && input.name !== null && { name: input.name })));
|
|
60
|
-
return [2
|
|
60
|
+
return [2, new __HttpRequest({
|
|
61
61
|
protocol: protocol,
|
|
62
62
|
hostname: hostname,
|
|
63
63
|
port: port,
|
|
@@ -73,7 +73,7 @@ export var serializeAws_restJson1CreateWorkerConfigurationCommand = function (in
|
|
|
73
73
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
74
74
|
return __generator(this, function (_c) {
|
|
75
75
|
switch (_c.label) {
|
|
76
|
-
case 0: return [4
|
|
76
|
+
case 0: return [4, context.endpoint()];
|
|
77
77
|
case 1:
|
|
78
78
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
79
79
|
headers = {
|
|
@@ -82,7 +82,7 @@ export var serializeAws_restJson1CreateWorkerConfigurationCommand = function (in
|
|
|
82
82
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/worker-configurations";
|
|
83
83
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.propertiesFileContent !== undefined &&
|
|
84
84
|
input.propertiesFileContent !== null && { propertiesFileContent: input.propertiesFileContent })));
|
|
85
|
-
return [2
|
|
85
|
+
return [2, new __HttpRequest({
|
|
86
86
|
protocol: protocol,
|
|
87
87
|
hostname: hostname,
|
|
88
88
|
port: port,
|
|
@@ -98,7 +98,7 @@ export var serializeAws_restJson1DeleteConnectorCommand = function (input, conte
|
|
|
98
98
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
99
99
|
return __generator(this, function (_c) {
|
|
100
100
|
switch (_c.label) {
|
|
101
|
-
case 0: return [4
|
|
101
|
+
case 0: return [4, context.endpoint()];
|
|
102
102
|
case 1:
|
|
103
103
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
104
104
|
headers = {};
|
|
@@ -114,7 +114,7 @@ export var serializeAws_restJson1DeleteConnectorCommand = function (input, conte
|
|
|
114
114
|
throw new Error("No value provided for input HTTP label: connectorArn.");
|
|
115
115
|
}
|
|
116
116
|
query = __assign({}, (input.currentVersion !== undefined && { currentVersion: input.currentVersion }));
|
|
117
|
-
return [2
|
|
117
|
+
return [2, new __HttpRequest({
|
|
118
118
|
protocol: protocol,
|
|
119
119
|
hostname: hostname,
|
|
120
120
|
port: port,
|
|
@@ -131,7 +131,7 @@ export var serializeAws_restJson1DescribeConnectorCommand = function (input, con
|
|
|
131
131
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
132
132
|
return __generator(this, function (_c) {
|
|
133
133
|
switch (_c.label) {
|
|
134
|
-
case 0: return [4
|
|
134
|
+
case 0: return [4, context.endpoint()];
|
|
135
135
|
case 1:
|
|
136
136
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
137
137
|
headers = {};
|
|
@@ -146,7 +146,7 @@ export var serializeAws_restJson1DescribeConnectorCommand = function (input, con
|
|
|
146
146
|
else {
|
|
147
147
|
throw new Error("No value provided for input HTTP label: connectorArn.");
|
|
148
148
|
}
|
|
149
|
-
return [2
|
|
149
|
+
return [2, new __HttpRequest({
|
|
150
150
|
protocol: protocol,
|
|
151
151
|
hostname: hostname,
|
|
152
152
|
port: port,
|
|
@@ -162,7 +162,7 @@ export var serializeAws_restJson1DescribeCustomPluginCommand = function (input,
|
|
|
162
162
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
163
163
|
return __generator(this, function (_c) {
|
|
164
164
|
switch (_c.label) {
|
|
165
|
-
case 0: return [4
|
|
165
|
+
case 0: return [4, context.endpoint()];
|
|
166
166
|
case 1:
|
|
167
167
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
168
168
|
headers = {};
|
|
@@ -177,7 +177,7 @@ export var serializeAws_restJson1DescribeCustomPluginCommand = function (input,
|
|
|
177
177
|
else {
|
|
178
178
|
throw new Error("No value provided for input HTTP label: customPluginArn.");
|
|
179
179
|
}
|
|
180
|
-
return [2
|
|
180
|
+
return [2, new __HttpRequest({
|
|
181
181
|
protocol: protocol,
|
|
182
182
|
hostname: hostname,
|
|
183
183
|
port: port,
|
|
@@ -193,7 +193,7 @@ export var serializeAws_restJson1DescribeWorkerConfigurationCommand = function (
|
|
|
193
193
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
194
194
|
return __generator(this, function (_c) {
|
|
195
195
|
switch (_c.label) {
|
|
196
|
-
case 0: return [4
|
|
196
|
+
case 0: return [4, context.endpoint()];
|
|
197
197
|
case 1:
|
|
198
198
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
199
199
|
headers = {};
|
|
@@ -209,7 +209,7 @@ export var serializeAws_restJson1DescribeWorkerConfigurationCommand = function (
|
|
|
209
209
|
else {
|
|
210
210
|
throw new Error("No value provided for input HTTP label: workerConfigurationArn.");
|
|
211
211
|
}
|
|
212
|
-
return [2
|
|
212
|
+
return [2, new __HttpRequest({
|
|
213
213
|
protocol: protocol,
|
|
214
214
|
hostname: hostname,
|
|
215
215
|
port: port,
|
|
@@ -225,13 +225,13 @@ export var serializeAws_restJson1ListConnectorsCommand = function (input, contex
|
|
|
225
225
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
226
226
|
return __generator(this, function (_c) {
|
|
227
227
|
switch (_c.label) {
|
|
228
|
-
case 0: return [4
|
|
228
|
+
case 0: return [4, context.endpoint()];
|
|
229
229
|
case 1:
|
|
230
230
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
231
231
|
headers = {};
|
|
232
232
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/connectors";
|
|
233
233
|
query = __assign(__assign(__assign({}, (input.connectorNamePrefix !== undefined && { connectorNamePrefix: input.connectorNamePrefix })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
234
|
-
return [2
|
|
234
|
+
return [2, new __HttpRequest({
|
|
235
235
|
protocol: protocol,
|
|
236
236
|
hostname: hostname,
|
|
237
237
|
port: port,
|
|
@@ -248,13 +248,13 @@ export var serializeAws_restJson1ListCustomPluginsCommand = function (input, con
|
|
|
248
248
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
249
249
|
return __generator(this, function (_c) {
|
|
250
250
|
switch (_c.label) {
|
|
251
|
-
case 0: return [4
|
|
251
|
+
case 0: return [4, context.endpoint()];
|
|
252
252
|
case 1:
|
|
253
253
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
254
254
|
headers = {};
|
|
255
255
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/custom-plugins";
|
|
256
256
|
query = __assign(__assign({}, (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
257
|
-
return [2
|
|
257
|
+
return [2, new __HttpRequest({
|
|
258
258
|
protocol: protocol,
|
|
259
259
|
hostname: hostname,
|
|
260
260
|
port: port,
|
|
@@ -271,13 +271,13 @@ export var serializeAws_restJson1ListWorkerConfigurationsCommand = function (inp
|
|
|
271
271
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
272
272
|
return __generator(this, function (_c) {
|
|
273
273
|
switch (_c.label) {
|
|
274
|
-
case 0: return [4
|
|
274
|
+
case 0: return [4, context.endpoint()];
|
|
275
275
|
case 1:
|
|
276
276
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
277
277
|
headers = {};
|
|
278
278
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/worker-configurations";
|
|
279
279
|
query = __assign(__assign({}, (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
280
|
-
return [2
|
|
280
|
+
return [2, new __HttpRequest({
|
|
281
281
|
protocol: protocol,
|
|
282
282
|
hostname: hostname,
|
|
283
283
|
port: port,
|
|
@@ -294,7 +294,7 @@ export var serializeAws_restJson1UpdateConnectorCommand = function (input, conte
|
|
|
294
294
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
295
295
|
return __generator(this, function (_c) {
|
|
296
296
|
switch (_c.label) {
|
|
297
|
-
case 0: return [4
|
|
297
|
+
case 0: return [4, context.endpoint()];
|
|
298
298
|
case 1:
|
|
299
299
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
300
300
|
headers = {
|
|
@@ -314,7 +314,7 @@ export var serializeAws_restJson1UpdateConnectorCommand = function (input, conte
|
|
|
314
314
|
query = __assign({}, (input.currentVersion !== undefined && { currentVersion: input.currentVersion }));
|
|
315
315
|
body = JSON.stringify(__assign({}, (input.capacity !== undefined &&
|
|
316
316
|
input.capacity !== null && { capacity: serializeAws_restJson1CapacityUpdate(input.capacity, context) })));
|
|
317
|
-
return [2
|
|
317
|
+
return [2, new __HttpRequest({
|
|
318
318
|
protocol: protocol,
|
|
319
319
|
hostname: hostname,
|
|
320
320
|
port: port,
|
|
@@ -333,7 +333,7 @@ export var deserializeAws_restJson1CreateConnectorCommand = function (output, co
|
|
|
333
333
|
switch (_c.label) {
|
|
334
334
|
case 0:
|
|
335
335
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
336
|
-
return [2
|
|
336
|
+
return [2, deserializeAws_restJson1CreateConnectorCommandError(output, context)];
|
|
337
337
|
}
|
|
338
338
|
contents = {
|
|
339
339
|
$metadata: deserializeMetadata(output),
|
|
@@ -343,7 +343,7 @@ export var deserializeAws_restJson1CreateConnectorCommand = function (output, co
|
|
|
343
343
|
};
|
|
344
344
|
_a = __expectNonNull;
|
|
345
345
|
_b = __expectObject;
|
|
346
|
-
return [4
|
|
346
|
+
return [4, parseBody(output.body, context)];
|
|
347
347
|
case 1:
|
|
348
348
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
349
349
|
if (data.connectorArn !== undefined && data.connectorArn !== null) {
|
|
@@ -355,7 +355,7 @@ export var deserializeAws_restJson1CreateConnectorCommand = function (output, co
|
|
|
355
355
|
if (data.connectorState !== undefined && data.connectorState !== null) {
|
|
356
356
|
contents.connectorState = __expectString(data.connectorState);
|
|
357
357
|
}
|
|
358
|
-
return [2
|
|
358
|
+
return [2, Promise.resolve(contents)];
|
|
359
359
|
}
|
|
360
360
|
});
|
|
361
361
|
}); };
|
|
@@ -367,79 +367,79 @@ var deserializeAws_restJson1CreateConnectorCommandError = function (output, cont
|
|
|
367
367
|
case 0:
|
|
368
368
|
_a = [__assign({}, output)];
|
|
369
369
|
_l = {};
|
|
370
|
-
return [4
|
|
370
|
+
return [4, parseBody(output.body, context)];
|
|
371
371
|
case 1:
|
|
372
372
|
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
373
373
|
errorCode = "UnknownError";
|
|
374
374
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
375
375
|
_b = errorCode;
|
|
376
376
|
switch (_b) {
|
|
377
|
-
case "BadRequestException": return [3
|
|
378
|
-
case "com.amazonaws.kafkaconnect#BadRequestException": return [3
|
|
379
|
-
case "ConflictException": return [3
|
|
380
|
-
case "com.amazonaws.kafkaconnect#ConflictException": return [3
|
|
381
|
-
case "ForbiddenException": return [3
|
|
382
|
-
case "com.amazonaws.kafkaconnect#ForbiddenException": return [3
|
|
383
|
-
case "InternalServerErrorException": return [3
|
|
384
|
-
case "com.amazonaws.kafkaconnect#InternalServerErrorException": return [3
|
|
385
|
-
case "NotFoundException": return [3
|
|
386
|
-
case "com.amazonaws.kafkaconnect#NotFoundException": return [3
|
|
387
|
-
case "ServiceUnavailableException": return [3
|
|
388
|
-
case "com.amazonaws.kafkaconnect#ServiceUnavailableException": return [3
|
|
389
|
-
case "TooManyRequestsException": return [3
|
|
390
|
-
case "com.amazonaws.kafkaconnect#TooManyRequestsException": return [3
|
|
391
|
-
case "UnauthorizedException": return [3
|
|
392
|
-
case "com.amazonaws.kafkaconnect#UnauthorizedException": return [3
|
|
393
|
-
}
|
|
394
|
-
return [3
|
|
377
|
+
case "BadRequestException": return [3, 2];
|
|
378
|
+
case "com.amazonaws.kafkaconnect#BadRequestException": return [3, 2];
|
|
379
|
+
case "ConflictException": return [3, 4];
|
|
380
|
+
case "com.amazonaws.kafkaconnect#ConflictException": return [3, 4];
|
|
381
|
+
case "ForbiddenException": return [3, 6];
|
|
382
|
+
case "com.amazonaws.kafkaconnect#ForbiddenException": return [3, 6];
|
|
383
|
+
case "InternalServerErrorException": return [3, 8];
|
|
384
|
+
case "com.amazonaws.kafkaconnect#InternalServerErrorException": return [3, 8];
|
|
385
|
+
case "NotFoundException": return [3, 10];
|
|
386
|
+
case "com.amazonaws.kafkaconnect#NotFoundException": return [3, 10];
|
|
387
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
388
|
+
case "com.amazonaws.kafkaconnect#ServiceUnavailableException": return [3, 12];
|
|
389
|
+
case "TooManyRequestsException": return [3, 14];
|
|
390
|
+
case "com.amazonaws.kafkaconnect#TooManyRequestsException": return [3, 14];
|
|
391
|
+
case "UnauthorizedException": return [3, 16];
|
|
392
|
+
case "com.amazonaws.kafkaconnect#UnauthorizedException": return [3, 16];
|
|
393
|
+
}
|
|
394
|
+
return [3, 18];
|
|
395
395
|
case 2:
|
|
396
396
|
_c = [{}];
|
|
397
|
-
return [4
|
|
397
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
398
398
|
case 3:
|
|
399
399
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
400
|
-
return [3
|
|
400
|
+
return [3, 19];
|
|
401
401
|
case 4:
|
|
402
402
|
_d = [{}];
|
|
403
|
-
return [4
|
|
403
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
404
404
|
case 5:
|
|
405
405
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
406
|
-
return [3
|
|
406
|
+
return [3, 19];
|
|
407
407
|
case 6:
|
|
408
408
|
_e = [{}];
|
|
409
|
-
return [4
|
|
409
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
410
410
|
case 7:
|
|
411
411
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
412
|
-
return [3
|
|
412
|
+
return [3, 19];
|
|
413
413
|
case 8:
|
|
414
414
|
_f = [{}];
|
|
415
|
-
return [4
|
|
415
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
416
416
|
case 9:
|
|
417
417
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
418
|
-
return [3
|
|
418
|
+
return [3, 19];
|
|
419
419
|
case 10:
|
|
420
420
|
_g = [{}];
|
|
421
|
-
return [4
|
|
421
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
422
422
|
case 11:
|
|
423
423
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
424
|
-
return [3
|
|
424
|
+
return [3, 19];
|
|
425
425
|
case 12:
|
|
426
426
|
_h = [{}];
|
|
427
|
-
return [4
|
|
427
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
428
428
|
case 13:
|
|
429
429
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
430
|
-
return [3
|
|
430
|
+
return [3, 19];
|
|
431
431
|
case 14:
|
|
432
432
|
_j = [{}];
|
|
433
|
-
return [4
|
|
433
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
434
434
|
case 15:
|
|
435
435
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
436
|
-
return [3
|
|
436
|
+
return [3, 19];
|
|
437
437
|
case 16:
|
|
438
438
|
_k = [{}];
|
|
439
|
-
return [4
|
|
439
|
+
return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
440
440
|
case 17:
|
|
441
441
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
442
|
-
return [3
|
|
442
|
+
return [3, 19];
|
|
443
443
|
case 18:
|
|
444
444
|
parsedBody = parsedOutput.body;
|
|
445
445
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -449,7 +449,7 @@ var deserializeAws_restJson1CreateConnectorCommandError = function (output, cont
|
|
|
449
449
|
message = response.message || response.Message || errorCode;
|
|
450
450
|
response.message = message;
|
|
451
451
|
delete response.Message;
|
|
452
|
-
return [2
|
|
452
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
453
453
|
}
|
|
454
454
|
});
|
|
455
455
|
}); };
|
|
@@ -459,7 +459,7 @@ export var deserializeAws_restJson1CreateCustomPluginCommand = function (output,
|
|
|
459
459
|
switch (_c.label) {
|
|
460
460
|
case 0:
|
|
461
461
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
462
|
-
return [2
|
|
462
|
+
return [2, deserializeAws_restJson1CreateCustomPluginCommandError(output, context)];
|
|
463
463
|
}
|
|
464
464
|
contents = {
|
|
465
465
|
$metadata: deserializeMetadata(output),
|
|
@@ -470,7 +470,7 @@ export var deserializeAws_restJson1CreateCustomPluginCommand = function (output,
|
|
|
470
470
|
};
|
|
471
471
|
_a = __expectNonNull;
|
|
472
472
|
_b = __expectObject;
|
|
473
|
-
return [4
|
|
473
|
+
return [4, parseBody(output.body, context)];
|
|
474
474
|
case 1:
|
|
475
475
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
476
476
|
if (data.customPluginArn !== undefined && data.customPluginArn !== null) {
|
|
@@ -485,7 +485,7 @@ export var deserializeAws_restJson1CreateCustomPluginCommand = function (output,
|
|
|
485
485
|
if (data.revision !== undefined && data.revision !== null) {
|
|
486
486
|
contents.revision = __expectLong(data.revision);
|
|
487
487
|
}
|
|
488
|
-
return [2
|
|
488
|
+
return [2, Promise.resolve(contents)];
|
|
489
489
|
}
|
|
490
490
|
});
|
|
491
491
|
}); };
|
|
@@ -497,79 +497,79 @@ var deserializeAws_restJson1CreateCustomPluginCommandError = function (output, c
|
|
|
497
497
|
case 0:
|
|
498
498
|
_a = [__assign({}, output)];
|
|
499
499
|
_l = {};
|
|
500
|
-
return [4
|
|
500
|
+
return [4, parseBody(output.body, context)];
|
|
501
501
|
case 1:
|
|
502
502
|
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
503
503
|
errorCode = "UnknownError";
|
|
504
504
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
505
505
|
_b = errorCode;
|
|
506
506
|
switch (_b) {
|
|
507
|
-
case "BadRequestException": return [3
|
|
508
|
-
case "com.amazonaws.kafkaconnect#BadRequestException": return [3
|
|
509
|
-
case "ConflictException": return [3
|
|
510
|
-
case "com.amazonaws.kafkaconnect#ConflictException": return [3
|
|
511
|
-
case "ForbiddenException": return [3
|
|
512
|
-
case "com.amazonaws.kafkaconnect#ForbiddenException": return [3
|
|
513
|
-
case "InternalServerErrorException": return [3
|
|
514
|
-
case "com.amazonaws.kafkaconnect#InternalServerErrorException": return [3
|
|
515
|
-
case "NotFoundException": return [3
|
|
516
|
-
case "com.amazonaws.kafkaconnect#NotFoundException": return [3
|
|
517
|
-
case "ServiceUnavailableException": return [3
|
|
518
|
-
case "com.amazonaws.kafkaconnect#ServiceUnavailableException": return [3
|
|
519
|
-
case "TooManyRequestsException": return [3
|
|
520
|
-
case "com.amazonaws.kafkaconnect#TooManyRequestsException": return [3
|
|
521
|
-
case "UnauthorizedException": return [3
|
|
522
|
-
case "com.amazonaws.kafkaconnect#UnauthorizedException": return [3
|
|
523
|
-
}
|
|
524
|
-
return [3
|
|
507
|
+
case "BadRequestException": return [3, 2];
|
|
508
|
+
case "com.amazonaws.kafkaconnect#BadRequestException": return [3, 2];
|
|
509
|
+
case "ConflictException": return [3, 4];
|
|
510
|
+
case "com.amazonaws.kafkaconnect#ConflictException": return [3, 4];
|
|
511
|
+
case "ForbiddenException": return [3, 6];
|
|
512
|
+
case "com.amazonaws.kafkaconnect#ForbiddenException": return [3, 6];
|
|
513
|
+
case "InternalServerErrorException": return [3, 8];
|
|
514
|
+
case "com.amazonaws.kafkaconnect#InternalServerErrorException": return [3, 8];
|
|
515
|
+
case "NotFoundException": return [3, 10];
|
|
516
|
+
case "com.amazonaws.kafkaconnect#NotFoundException": return [3, 10];
|
|
517
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
518
|
+
case "com.amazonaws.kafkaconnect#ServiceUnavailableException": return [3, 12];
|
|
519
|
+
case "TooManyRequestsException": return [3, 14];
|
|
520
|
+
case "com.amazonaws.kafkaconnect#TooManyRequestsException": return [3, 14];
|
|
521
|
+
case "UnauthorizedException": return [3, 16];
|
|
522
|
+
case "com.amazonaws.kafkaconnect#UnauthorizedException": return [3, 16];
|
|
523
|
+
}
|
|
524
|
+
return [3, 18];
|
|
525
525
|
case 2:
|
|
526
526
|
_c = [{}];
|
|
527
|
-
return [4
|
|
527
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
528
528
|
case 3:
|
|
529
529
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
530
|
-
return [3
|
|
530
|
+
return [3, 19];
|
|
531
531
|
case 4:
|
|
532
532
|
_d = [{}];
|
|
533
|
-
return [4
|
|
533
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
534
534
|
case 5:
|
|
535
535
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
536
|
-
return [3
|
|
536
|
+
return [3, 19];
|
|
537
537
|
case 6:
|
|
538
538
|
_e = [{}];
|
|
539
|
-
return [4
|
|
539
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
540
540
|
case 7:
|
|
541
541
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
542
|
-
return [3
|
|
542
|
+
return [3, 19];
|
|
543
543
|
case 8:
|
|
544
544
|
_f = [{}];
|
|
545
|
-
return [4
|
|
545
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
546
546
|
case 9:
|
|
547
547
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
548
|
-
return [3
|
|
548
|
+
return [3, 19];
|
|
549
549
|
case 10:
|
|
550
550
|
_g = [{}];
|
|
551
|
-
return [4
|
|
551
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
552
552
|
case 11:
|
|
553
553
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
554
|
-
return [3
|
|
554
|
+
return [3, 19];
|
|
555
555
|
case 12:
|
|
556
556
|
_h = [{}];
|
|
557
|
-
return [4
|
|
557
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
558
558
|
case 13:
|
|
559
559
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
560
|
-
return [3
|
|
560
|
+
return [3, 19];
|
|
561
561
|
case 14:
|
|
562
562
|
_j = [{}];
|
|
563
|
-
return [4
|
|
563
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
564
564
|
case 15:
|
|
565
565
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
566
|
-
return [3
|
|
566
|
+
return [3, 19];
|
|
567
567
|
case 16:
|
|
568
568
|
_k = [{}];
|
|
569
|
-
return [4
|
|
569
|
+
return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
570
570
|
case 17:
|
|
571
571
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
572
|
-
return [3
|
|
572
|
+
return [3, 19];
|
|
573
573
|
case 18:
|
|
574
574
|
parsedBody = parsedOutput.body;
|
|
575
575
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -579,7 +579,7 @@ var deserializeAws_restJson1CreateCustomPluginCommandError = function (output, c
|
|
|
579
579
|
message = response.message || response.Message || errorCode;
|
|
580
580
|
response.message = message;
|
|
581
581
|
delete response.Message;
|
|
582
|
-
return [2
|
|
582
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
583
583
|
}
|
|
584
584
|
});
|
|
585
585
|
}); };
|
|
@@ -589,7 +589,7 @@ export var deserializeAws_restJson1CreateWorkerConfigurationCommand = function (
|
|
|
589
589
|
switch (_c.label) {
|
|
590
590
|
case 0:
|
|
591
591
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
592
|
-
return [2
|
|
592
|
+
return [2, deserializeAws_restJson1CreateWorkerConfigurationCommandError(output, context)];
|
|
593
593
|
}
|
|
594
594
|
contents = {
|
|
595
595
|
$metadata: deserializeMetadata(output),
|
|
@@ -600,7 +600,7 @@ export var deserializeAws_restJson1CreateWorkerConfigurationCommand = function (
|
|
|
600
600
|
};
|
|
601
601
|
_a = __expectNonNull;
|
|
602
602
|
_b = __expectObject;
|
|
603
|
-
return [4
|
|
603
|
+
return [4, parseBody(output.body, context)];
|
|
604
604
|
case 1:
|
|
605
605
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
606
606
|
if (data.creationTime !== undefined && data.creationTime !== null) {
|
|
@@ -615,7 +615,7 @@ export var deserializeAws_restJson1CreateWorkerConfigurationCommand = function (
|
|
|
615
615
|
if (data.workerConfigurationArn !== undefined && data.workerConfigurationArn !== null) {
|
|
616
616
|
contents.workerConfigurationArn = __expectString(data.workerConfigurationArn);
|
|
617
617
|
}
|
|
618
|
-
return [2
|
|
618
|
+
return [2, Promise.resolve(contents)];
|
|
619
619
|
}
|
|
620
620
|
});
|
|
621
621
|
}); };
|
|
@@ -627,79 +627,79 @@ var deserializeAws_restJson1CreateWorkerConfigurationCommandError = function (ou
|
|
|
627
627
|
case 0:
|
|
628
628
|
_a = [__assign({}, output)];
|
|
629
629
|
_l = {};
|
|
630
|
-
return [4
|
|
630
|
+
return [4, parseBody(output.body, context)];
|
|
631
631
|
case 1:
|
|
632
632
|
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
633
633
|
errorCode = "UnknownError";
|
|
634
634
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
635
635
|
_b = errorCode;
|
|
636
636
|
switch (_b) {
|
|
637
|
-
case "BadRequestException": return [3
|
|
638
|
-
case "com.amazonaws.kafkaconnect#BadRequestException": return [3
|
|
639
|
-
case "ConflictException": return [3
|
|
640
|
-
case "com.amazonaws.kafkaconnect#ConflictException": return [3
|
|
641
|
-
case "ForbiddenException": return [3
|
|
642
|
-
case "com.amazonaws.kafkaconnect#ForbiddenException": return [3
|
|
643
|
-
case "InternalServerErrorException": return [3
|
|
644
|
-
case "com.amazonaws.kafkaconnect#InternalServerErrorException": return [3
|
|
645
|
-
case "NotFoundException": return [3
|
|
646
|
-
case "com.amazonaws.kafkaconnect#NotFoundException": return [3
|
|
647
|
-
case "ServiceUnavailableException": return [3
|
|
648
|
-
case "com.amazonaws.kafkaconnect#ServiceUnavailableException": return [3
|
|
649
|
-
case "TooManyRequestsException": return [3
|
|
650
|
-
case "com.amazonaws.kafkaconnect#TooManyRequestsException": return [3
|
|
651
|
-
case "UnauthorizedException": return [3
|
|
652
|
-
case "com.amazonaws.kafkaconnect#UnauthorizedException": return [3
|
|
653
|
-
}
|
|
654
|
-
return [3
|
|
637
|
+
case "BadRequestException": return [3, 2];
|
|
638
|
+
case "com.amazonaws.kafkaconnect#BadRequestException": return [3, 2];
|
|
639
|
+
case "ConflictException": return [3, 4];
|
|
640
|
+
case "com.amazonaws.kafkaconnect#ConflictException": return [3, 4];
|
|
641
|
+
case "ForbiddenException": return [3, 6];
|
|
642
|
+
case "com.amazonaws.kafkaconnect#ForbiddenException": return [3, 6];
|
|
643
|
+
case "InternalServerErrorException": return [3, 8];
|
|
644
|
+
case "com.amazonaws.kafkaconnect#InternalServerErrorException": return [3, 8];
|
|
645
|
+
case "NotFoundException": return [3, 10];
|
|
646
|
+
case "com.amazonaws.kafkaconnect#NotFoundException": return [3, 10];
|
|
647
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
648
|
+
case "com.amazonaws.kafkaconnect#ServiceUnavailableException": return [3, 12];
|
|
649
|
+
case "TooManyRequestsException": return [3, 14];
|
|
650
|
+
case "com.amazonaws.kafkaconnect#TooManyRequestsException": return [3, 14];
|
|
651
|
+
case "UnauthorizedException": return [3, 16];
|
|
652
|
+
case "com.amazonaws.kafkaconnect#UnauthorizedException": return [3, 16];
|
|
653
|
+
}
|
|
654
|
+
return [3, 18];
|
|
655
655
|
case 2:
|
|
656
656
|
_c = [{}];
|
|
657
|
-
return [4
|
|
657
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
658
658
|
case 3:
|
|
659
659
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
660
|
-
return [3
|
|
660
|
+
return [3, 19];
|
|
661
661
|
case 4:
|
|
662
662
|
_d = [{}];
|
|
663
|
-
return [4
|
|
663
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
664
664
|
case 5:
|
|
665
665
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
666
|
-
return [3
|
|
666
|
+
return [3, 19];
|
|
667
667
|
case 6:
|
|
668
668
|
_e = [{}];
|
|
669
|
-
return [4
|
|
669
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
670
670
|
case 7:
|
|
671
671
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
672
|
-
return [3
|
|
672
|
+
return [3, 19];
|
|
673
673
|
case 8:
|
|
674
674
|
_f = [{}];
|
|
675
|
-
return [4
|
|
675
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
676
676
|
case 9:
|
|
677
677
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
678
|
-
return [3
|
|
678
|
+
return [3, 19];
|
|
679
679
|
case 10:
|
|
680
680
|
_g = [{}];
|
|
681
|
-
return [4
|
|
681
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
682
682
|
case 11:
|
|
683
683
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
684
|
-
return [3
|
|
684
|
+
return [3, 19];
|
|
685
685
|
case 12:
|
|
686
686
|
_h = [{}];
|
|
687
|
-
return [4
|
|
687
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
688
688
|
case 13:
|
|
689
689
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
690
|
-
return [3
|
|
690
|
+
return [3, 19];
|
|
691
691
|
case 14:
|
|
692
692
|
_j = [{}];
|
|
693
|
-
return [4
|
|
693
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
694
694
|
case 15:
|
|
695
695
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
696
|
-
return [3
|
|
696
|
+
return [3, 19];
|
|
697
697
|
case 16:
|
|
698
698
|
_k = [{}];
|
|
699
|
-
return [4
|
|
699
|
+
return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
700
700
|
case 17:
|
|
701
701
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
702
|
-
return [3
|
|
702
|
+
return [3, 19];
|
|
703
703
|
case 18:
|
|
704
704
|
parsedBody = parsedOutput.body;
|
|
705
705
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -709,7 +709,7 @@ var deserializeAws_restJson1CreateWorkerConfigurationCommandError = function (ou
|
|
|
709
709
|
message = response.message || response.Message || errorCode;
|
|
710
710
|
response.message = message;
|
|
711
711
|
delete response.Message;
|
|
712
|
-
return [2
|
|
712
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
713
713
|
}
|
|
714
714
|
});
|
|
715
715
|
}); };
|
|
@@ -719,7 +719,7 @@ export var deserializeAws_restJson1DeleteConnectorCommand = function (output, co
|
|
|
719
719
|
switch (_c.label) {
|
|
720
720
|
case 0:
|
|
721
721
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
722
|
-
return [2
|
|
722
|
+
return [2, deserializeAws_restJson1DeleteConnectorCommandError(output, context)];
|
|
723
723
|
}
|
|
724
724
|
contents = {
|
|
725
725
|
$metadata: deserializeMetadata(output),
|
|
@@ -728,7 +728,7 @@ export var deserializeAws_restJson1DeleteConnectorCommand = function (output, co
|
|
|
728
728
|
};
|
|
729
729
|
_a = __expectNonNull;
|
|
730
730
|
_b = __expectObject;
|
|
731
|
-
return [4
|
|
731
|
+
return [4, parseBody(output.body, context)];
|
|
732
732
|
case 1:
|
|
733
733
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
734
734
|
if (data.connectorArn !== undefined && data.connectorArn !== null) {
|
|
@@ -737,7 +737,7 @@ export var deserializeAws_restJson1DeleteConnectorCommand = function (output, co
|
|
|
737
737
|
if (data.connectorState !== undefined && data.connectorState !== null) {
|
|
738
738
|
contents.connectorState = __expectString(data.connectorState);
|
|
739
739
|
}
|
|
740
|
-
return [2
|
|
740
|
+
return [2, Promise.resolve(contents)];
|
|
741
741
|
}
|
|
742
742
|
});
|
|
743
743
|
}); };
|
|
@@ -749,71 +749,71 @@ var deserializeAws_restJson1DeleteConnectorCommandError = function (output, cont
|
|
|
749
749
|
case 0:
|
|
750
750
|
_a = [__assign({}, output)];
|
|
751
751
|
_k = {};
|
|
752
|
-
return [4
|
|
752
|
+
return [4, parseBody(output.body, context)];
|
|
753
753
|
case 1:
|
|
754
754
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
755
755
|
errorCode = "UnknownError";
|
|
756
756
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
757
757
|
_b = errorCode;
|
|
758
758
|
switch (_b) {
|
|
759
|
-
case "BadRequestException": return [3
|
|
760
|
-
case "com.amazonaws.kafkaconnect#BadRequestException": return [3
|
|
761
|
-
case "ForbiddenException": return [3
|
|
762
|
-
case "com.amazonaws.kafkaconnect#ForbiddenException": return [3
|
|
763
|
-
case "InternalServerErrorException": return [3
|
|
764
|
-
case "com.amazonaws.kafkaconnect#InternalServerErrorException": return [3
|
|
765
|
-
case "NotFoundException": return [3
|
|
766
|
-
case "com.amazonaws.kafkaconnect#NotFoundException": return [3
|
|
767
|
-
case "ServiceUnavailableException": return [3
|
|
768
|
-
case "com.amazonaws.kafkaconnect#ServiceUnavailableException": return [3
|
|
769
|
-
case "TooManyRequestsException": return [3
|
|
770
|
-
case "com.amazonaws.kafkaconnect#TooManyRequestsException": return [3
|
|
771
|
-
case "UnauthorizedException": return [3
|
|
772
|
-
case "com.amazonaws.kafkaconnect#UnauthorizedException": return [3
|
|
773
|
-
}
|
|
774
|
-
return [3
|
|
759
|
+
case "BadRequestException": return [3, 2];
|
|
760
|
+
case "com.amazonaws.kafkaconnect#BadRequestException": return [3, 2];
|
|
761
|
+
case "ForbiddenException": return [3, 4];
|
|
762
|
+
case "com.amazonaws.kafkaconnect#ForbiddenException": return [3, 4];
|
|
763
|
+
case "InternalServerErrorException": return [3, 6];
|
|
764
|
+
case "com.amazonaws.kafkaconnect#InternalServerErrorException": return [3, 6];
|
|
765
|
+
case "NotFoundException": return [3, 8];
|
|
766
|
+
case "com.amazonaws.kafkaconnect#NotFoundException": return [3, 8];
|
|
767
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
768
|
+
case "com.amazonaws.kafkaconnect#ServiceUnavailableException": return [3, 10];
|
|
769
|
+
case "TooManyRequestsException": return [3, 12];
|
|
770
|
+
case "com.amazonaws.kafkaconnect#TooManyRequestsException": return [3, 12];
|
|
771
|
+
case "UnauthorizedException": return [3, 14];
|
|
772
|
+
case "com.amazonaws.kafkaconnect#UnauthorizedException": return [3, 14];
|
|
773
|
+
}
|
|
774
|
+
return [3, 16];
|
|
775
775
|
case 2:
|
|
776
776
|
_c = [{}];
|
|
777
|
-
return [4
|
|
777
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
778
778
|
case 3:
|
|
779
779
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
780
|
-
return [3
|
|
780
|
+
return [3, 17];
|
|
781
781
|
case 4:
|
|
782
782
|
_d = [{}];
|
|
783
|
-
return [4
|
|
783
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
784
784
|
case 5:
|
|
785
785
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
786
|
-
return [3
|
|
786
|
+
return [3, 17];
|
|
787
787
|
case 6:
|
|
788
788
|
_e = [{}];
|
|
789
|
-
return [4
|
|
789
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
790
790
|
case 7:
|
|
791
791
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
792
|
-
return [3
|
|
792
|
+
return [3, 17];
|
|
793
793
|
case 8:
|
|
794
794
|
_f = [{}];
|
|
795
|
-
return [4
|
|
795
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
796
796
|
case 9:
|
|
797
797
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
798
|
-
return [3
|
|
798
|
+
return [3, 17];
|
|
799
799
|
case 10:
|
|
800
800
|
_g = [{}];
|
|
801
|
-
return [4
|
|
801
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
802
802
|
case 11:
|
|
803
803
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
804
|
-
return [3
|
|
804
|
+
return [3, 17];
|
|
805
805
|
case 12:
|
|
806
806
|
_h = [{}];
|
|
807
|
-
return [4
|
|
807
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
808
808
|
case 13:
|
|
809
809
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
810
|
-
return [3
|
|
810
|
+
return [3, 17];
|
|
811
811
|
case 14:
|
|
812
812
|
_j = [{}];
|
|
813
|
-
return [4
|
|
813
|
+
return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
814
814
|
case 15:
|
|
815
815
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
816
|
-
return [3
|
|
816
|
+
return [3, 17];
|
|
817
817
|
case 16:
|
|
818
818
|
parsedBody = parsedOutput.body;
|
|
819
819
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -823,7 +823,7 @@ var deserializeAws_restJson1DeleteConnectorCommandError = function (output, cont
|
|
|
823
823
|
message = response.message || response.Message || errorCode;
|
|
824
824
|
response.message = message;
|
|
825
825
|
delete response.Message;
|
|
826
|
-
return [2
|
|
826
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
827
827
|
}
|
|
828
828
|
});
|
|
829
829
|
}); };
|
|
@@ -833,7 +833,7 @@ export var deserializeAws_restJson1DescribeConnectorCommand = function (output,
|
|
|
833
833
|
switch (_c.label) {
|
|
834
834
|
case 0:
|
|
835
835
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
836
|
-
return [2
|
|
836
|
+
return [2, deserializeAws_restJson1DescribeConnectorCommandError(output, context)];
|
|
837
837
|
}
|
|
838
838
|
contents = {
|
|
839
839
|
$metadata: deserializeMetadata(output),
|
|
@@ -856,7 +856,7 @@ export var deserializeAws_restJson1DescribeConnectorCommand = function (output,
|
|
|
856
856
|
};
|
|
857
857
|
_a = __expectNonNull;
|
|
858
858
|
_b = __expectObject;
|
|
859
|
-
return [4
|
|
859
|
+
return [4, parseBody(output.body, context)];
|
|
860
860
|
case 1:
|
|
861
861
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
862
862
|
if (data.capacity !== undefined && data.capacity !== null) {
|
|
@@ -907,7 +907,7 @@ export var deserializeAws_restJson1DescribeConnectorCommand = function (output,
|
|
|
907
907
|
if (data.workerConfiguration !== undefined && data.workerConfiguration !== null) {
|
|
908
908
|
contents.workerConfiguration = deserializeAws_restJson1WorkerConfigurationDescription(data.workerConfiguration, context);
|
|
909
909
|
}
|
|
910
|
-
return [2
|
|
910
|
+
return [2, Promise.resolve(contents)];
|
|
911
911
|
}
|
|
912
912
|
});
|
|
913
913
|
}); };
|
|
@@ -919,71 +919,71 @@ var deserializeAws_restJson1DescribeConnectorCommandError = function (output, co
|
|
|
919
919
|
case 0:
|
|
920
920
|
_a = [__assign({}, output)];
|
|
921
921
|
_k = {};
|
|
922
|
-
return [4
|
|
922
|
+
return [4, parseBody(output.body, context)];
|
|
923
923
|
case 1:
|
|
924
924
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
925
925
|
errorCode = "UnknownError";
|
|
926
926
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
927
927
|
_b = errorCode;
|
|
928
928
|
switch (_b) {
|
|
929
|
-
case "BadRequestException": return [3
|
|
930
|
-
case "com.amazonaws.kafkaconnect#BadRequestException": return [3
|
|
931
|
-
case "ForbiddenException": return [3
|
|
932
|
-
case "com.amazonaws.kafkaconnect#ForbiddenException": return [3
|
|
933
|
-
case "InternalServerErrorException": return [3
|
|
934
|
-
case "com.amazonaws.kafkaconnect#InternalServerErrorException": return [3
|
|
935
|
-
case "NotFoundException": return [3
|
|
936
|
-
case "com.amazonaws.kafkaconnect#NotFoundException": return [3
|
|
937
|
-
case "ServiceUnavailableException": return [3
|
|
938
|
-
case "com.amazonaws.kafkaconnect#ServiceUnavailableException": return [3
|
|
939
|
-
case "TooManyRequestsException": return [3
|
|
940
|
-
case "com.amazonaws.kafkaconnect#TooManyRequestsException": return [3
|
|
941
|
-
case "UnauthorizedException": return [3
|
|
942
|
-
case "com.amazonaws.kafkaconnect#UnauthorizedException": return [3
|
|
943
|
-
}
|
|
944
|
-
return [3
|
|
929
|
+
case "BadRequestException": return [3, 2];
|
|
930
|
+
case "com.amazonaws.kafkaconnect#BadRequestException": return [3, 2];
|
|
931
|
+
case "ForbiddenException": return [3, 4];
|
|
932
|
+
case "com.amazonaws.kafkaconnect#ForbiddenException": return [3, 4];
|
|
933
|
+
case "InternalServerErrorException": return [3, 6];
|
|
934
|
+
case "com.amazonaws.kafkaconnect#InternalServerErrorException": return [3, 6];
|
|
935
|
+
case "NotFoundException": return [3, 8];
|
|
936
|
+
case "com.amazonaws.kafkaconnect#NotFoundException": return [3, 8];
|
|
937
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
938
|
+
case "com.amazonaws.kafkaconnect#ServiceUnavailableException": return [3, 10];
|
|
939
|
+
case "TooManyRequestsException": return [3, 12];
|
|
940
|
+
case "com.amazonaws.kafkaconnect#TooManyRequestsException": return [3, 12];
|
|
941
|
+
case "UnauthorizedException": return [3, 14];
|
|
942
|
+
case "com.amazonaws.kafkaconnect#UnauthorizedException": return [3, 14];
|
|
943
|
+
}
|
|
944
|
+
return [3, 16];
|
|
945
945
|
case 2:
|
|
946
946
|
_c = [{}];
|
|
947
|
-
return [4
|
|
947
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
948
948
|
case 3:
|
|
949
949
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
950
|
-
return [3
|
|
950
|
+
return [3, 17];
|
|
951
951
|
case 4:
|
|
952
952
|
_d = [{}];
|
|
953
|
-
return [4
|
|
953
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
954
954
|
case 5:
|
|
955
955
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
956
|
-
return [3
|
|
956
|
+
return [3, 17];
|
|
957
957
|
case 6:
|
|
958
958
|
_e = [{}];
|
|
959
|
-
return [4
|
|
959
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
960
960
|
case 7:
|
|
961
961
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
962
|
-
return [3
|
|
962
|
+
return [3, 17];
|
|
963
963
|
case 8:
|
|
964
964
|
_f = [{}];
|
|
965
|
-
return [4
|
|
965
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
966
966
|
case 9:
|
|
967
967
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
968
|
-
return [3
|
|
968
|
+
return [3, 17];
|
|
969
969
|
case 10:
|
|
970
970
|
_g = [{}];
|
|
971
|
-
return [4
|
|
971
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
972
972
|
case 11:
|
|
973
973
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
974
|
-
return [3
|
|
974
|
+
return [3, 17];
|
|
975
975
|
case 12:
|
|
976
976
|
_h = [{}];
|
|
977
|
-
return [4
|
|
977
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
978
978
|
case 13:
|
|
979
979
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
980
|
-
return [3
|
|
980
|
+
return [3, 17];
|
|
981
981
|
case 14:
|
|
982
982
|
_j = [{}];
|
|
983
|
-
return [4
|
|
983
|
+
return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
984
984
|
case 15:
|
|
985
985
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
986
|
-
return [3
|
|
986
|
+
return [3, 17];
|
|
987
987
|
case 16:
|
|
988
988
|
parsedBody = parsedOutput.body;
|
|
989
989
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -993,7 +993,7 @@ var deserializeAws_restJson1DescribeConnectorCommandError = function (output, co
|
|
|
993
993
|
message = response.message || response.Message || errorCode;
|
|
994
994
|
response.message = message;
|
|
995
995
|
delete response.Message;
|
|
996
|
-
return [2
|
|
996
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
997
997
|
}
|
|
998
998
|
});
|
|
999
999
|
}); };
|
|
@@ -1003,7 +1003,7 @@ export var deserializeAws_restJson1DescribeCustomPluginCommand = function (outpu
|
|
|
1003
1003
|
switch (_c.label) {
|
|
1004
1004
|
case 0:
|
|
1005
1005
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1006
|
-
return [2
|
|
1006
|
+
return [2, deserializeAws_restJson1DescribeCustomPluginCommandError(output, context)];
|
|
1007
1007
|
}
|
|
1008
1008
|
contents = {
|
|
1009
1009
|
$metadata: deserializeMetadata(output),
|
|
@@ -1016,7 +1016,7 @@ export var deserializeAws_restJson1DescribeCustomPluginCommand = function (outpu
|
|
|
1016
1016
|
};
|
|
1017
1017
|
_a = __expectNonNull;
|
|
1018
1018
|
_b = __expectObject;
|
|
1019
|
-
return [4
|
|
1019
|
+
return [4, parseBody(output.body, context)];
|
|
1020
1020
|
case 1:
|
|
1021
1021
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1022
1022
|
if (data.creationTime !== undefined && data.creationTime !== null) {
|
|
@@ -1037,7 +1037,7 @@ export var deserializeAws_restJson1DescribeCustomPluginCommand = function (outpu
|
|
|
1037
1037
|
if (data.name !== undefined && data.name !== null) {
|
|
1038
1038
|
contents.name = __expectString(data.name);
|
|
1039
1039
|
}
|
|
1040
|
-
return [2
|
|
1040
|
+
return [2, Promise.resolve(contents)];
|
|
1041
1041
|
}
|
|
1042
1042
|
});
|
|
1043
1043
|
}); };
|
|
@@ -1049,71 +1049,71 @@ var deserializeAws_restJson1DescribeCustomPluginCommandError = function (output,
|
|
|
1049
1049
|
case 0:
|
|
1050
1050
|
_a = [__assign({}, output)];
|
|
1051
1051
|
_k = {};
|
|
1052
|
-
return [4
|
|
1052
|
+
return [4, parseBody(output.body, context)];
|
|
1053
1053
|
case 1:
|
|
1054
1054
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
1055
1055
|
errorCode = "UnknownError";
|
|
1056
1056
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1057
1057
|
_b = errorCode;
|
|
1058
1058
|
switch (_b) {
|
|
1059
|
-
case "BadRequestException": return [3
|
|
1060
|
-
case "com.amazonaws.kafkaconnect#BadRequestException": return [3
|
|
1061
|
-
case "ForbiddenException": return [3
|
|
1062
|
-
case "com.amazonaws.kafkaconnect#ForbiddenException": return [3
|
|
1063
|
-
case "InternalServerErrorException": return [3
|
|
1064
|
-
case "com.amazonaws.kafkaconnect#InternalServerErrorException": return [3
|
|
1065
|
-
case "NotFoundException": return [3
|
|
1066
|
-
case "com.amazonaws.kafkaconnect#NotFoundException": return [3
|
|
1067
|
-
case "ServiceUnavailableException": return [3
|
|
1068
|
-
case "com.amazonaws.kafkaconnect#ServiceUnavailableException": return [3
|
|
1069
|
-
case "TooManyRequestsException": return [3
|
|
1070
|
-
case "com.amazonaws.kafkaconnect#TooManyRequestsException": return [3
|
|
1071
|
-
case "UnauthorizedException": return [3
|
|
1072
|
-
case "com.amazonaws.kafkaconnect#UnauthorizedException": return [3
|
|
1073
|
-
}
|
|
1074
|
-
return [3
|
|
1059
|
+
case "BadRequestException": return [3, 2];
|
|
1060
|
+
case "com.amazonaws.kafkaconnect#BadRequestException": return [3, 2];
|
|
1061
|
+
case "ForbiddenException": return [3, 4];
|
|
1062
|
+
case "com.amazonaws.kafkaconnect#ForbiddenException": return [3, 4];
|
|
1063
|
+
case "InternalServerErrorException": return [3, 6];
|
|
1064
|
+
case "com.amazonaws.kafkaconnect#InternalServerErrorException": return [3, 6];
|
|
1065
|
+
case "NotFoundException": return [3, 8];
|
|
1066
|
+
case "com.amazonaws.kafkaconnect#NotFoundException": return [3, 8];
|
|
1067
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
1068
|
+
case "com.amazonaws.kafkaconnect#ServiceUnavailableException": return [3, 10];
|
|
1069
|
+
case "TooManyRequestsException": return [3, 12];
|
|
1070
|
+
case "com.amazonaws.kafkaconnect#TooManyRequestsException": return [3, 12];
|
|
1071
|
+
case "UnauthorizedException": return [3, 14];
|
|
1072
|
+
case "com.amazonaws.kafkaconnect#UnauthorizedException": return [3, 14];
|
|
1073
|
+
}
|
|
1074
|
+
return [3, 16];
|
|
1075
1075
|
case 2:
|
|
1076
1076
|
_c = [{}];
|
|
1077
|
-
return [4
|
|
1077
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1078
1078
|
case 3:
|
|
1079
1079
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1080
|
-
return [3
|
|
1080
|
+
return [3, 17];
|
|
1081
1081
|
case 4:
|
|
1082
1082
|
_d = [{}];
|
|
1083
|
-
return [4
|
|
1083
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1084
1084
|
case 5:
|
|
1085
1085
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1086
|
-
return [3
|
|
1086
|
+
return [3, 17];
|
|
1087
1087
|
case 6:
|
|
1088
1088
|
_e = [{}];
|
|
1089
|
-
return [4
|
|
1089
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1090
1090
|
case 7:
|
|
1091
1091
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1092
|
-
return [3
|
|
1092
|
+
return [3, 17];
|
|
1093
1093
|
case 8:
|
|
1094
1094
|
_f = [{}];
|
|
1095
|
-
return [4
|
|
1095
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1096
1096
|
case 9:
|
|
1097
1097
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1098
|
-
return [3
|
|
1098
|
+
return [3, 17];
|
|
1099
1099
|
case 10:
|
|
1100
1100
|
_g = [{}];
|
|
1101
|
-
return [4
|
|
1101
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1102
1102
|
case 11:
|
|
1103
1103
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1104
|
-
return [3
|
|
1104
|
+
return [3, 17];
|
|
1105
1105
|
case 12:
|
|
1106
1106
|
_h = [{}];
|
|
1107
|
-
return [4
|
|
1107
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1108
1108
|
case 13:
|
|
1109
1109
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1110
|
-
return [3
|
|
1110
|
+
return [3, 17];
|
|
1111
1111
|
case 14:
|
|
1112
1112
|
_j = [{}];
|
|
1113
|
-
return [4
|
|
1113
|
+
return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
1114
1114
|
case 15:
|
|
1115
1115
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1116
|
-
return [3
|
|
1116
|
+
return [3, 17];
|
|
1117
1117
|
case 16:
|
|
1118
1118
|
parsedBody = parsedOutput.body;
|
|
1119
1119
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1123,7 +1123,7 @@ var deserializeAws_restJson1DescribeCustomPluginCommandError = function (output,
|
|
|
1123
1123
|
message = response.message || response.Message || errorCode;
|
|
1124
1124
|
response.message = message;
|
|
1125
1125
|
delete response.Message;
|
|
1126
|
-
return [2
|
|
1126
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1127
1127
|
}
|
|
1128
1128
|
});
|
|
1129
1129
|
}); };
|
|
@@ -1133,7 +1133,7 @@ export var deserializeAws_restJson1DescribeWorkerConfigurationCommand = function
|
|
|
1133
1133
|
switch (_c.label) {
|
|
1134
1134
|
case 0:
|
|
1135
1135
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1136
|
-
return [2
|
|
1136
|
+
return [2, deserializeAws_restJson1DescribeWorkerConfigurationCommandError(output, context)];
|
|
1137
1137
|
}
|
|
1138
1138
|
contents = {
|
|
1139
1139
|
$metadata: deserializeMetadata(output),
|
|
@@ -1145,7 +1145,7 @@ export var deserializeAws_restJson1DescribeWorkerConfigurationCommand = function
|
|
|
1145
1145
|
};
|
|
1146
1146
|
_a = __expectNonNull;
|
|
1147
1147
|
_b = __expectObject;
|
|
1148
|
-
return [4
|
|
1148
|
+
return [4, parseBody(output.body, context)];
|
|
1149
1149
|
case 1:
|
|
1150
1150
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1151
1151
|
if (data.creationTime !== undefined && data.creationTime !== null) {
|
|
@@ -1163,7 +1163,7 @@ export var deserializeAws_restJson1DescribeWorkerConfigurationCommand = function
|
|
|
1163
1163
|
if (data.workerConfigurationArn !== undefined && data.workerConfigurationArn !== null) {
|
|
1164
1164
|
contents.workerConfigurationArn = __expectString(data.workerConfigurationArn);
|
|
1165
1165
|
}
|
|
1166
|
-
return [2
|
|
1166
|
+
return [2, Promise.resolve(contents)];
|
|
1167
1167
|
}
|
|
1168
1168
|
});
|
|
1169
1169
|
}); };
|
|
@@ -1175,71 +1175,71 @@ var deserializeAws_restJson1DescribeWorkerConfigurationCommandError = function (
|
|
|
1175
1175
|
case 0:
|
|
1176
1176
|
_a = [__assign({}, output)];
|
|
1177
1177
|
_k = {};
|
|
1178
|
-
return [4
|
|
1178
|
+
return [4, parseBody(output.body, context)];
|
|
1179
1179
|
case 1:
|
|
1180
1180
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
1181
1181
|
errorCode = "UnknownError";
|
|
1182
1182
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1183
1183
|
_b = errorCode;
|
|
1184
1184
|
switch (_b) {
|
|
1185
|
-
case "BadRequestException": return [3
|
|
1186
|
-
case "com.amazonaws.kafkaconnect#BadRequestException": return [3
|
|
1187
|
-
case "ForbiddenException": return [3
|
|
1188
|
-
case "com.amazonaws.kafkaconnect#ForbiddenException": return [3
|
|
1189
|
-
case "InternalServerErrorException": return [3
|
|
1190
|
-
case "com.amazonaws.kafkaconnect#InternalServerErrorException": return [3
|
|
1191
|
-
case "NotFoundException": return [3
|
|
1192
|
-
case "com.amazonaws.kafkaconnect#NotFoundException": return [3
|
|
1193
|
-
case "ServiceUnavailableException": return [3
|
|
1194
|
-
case "com.amazonaws.kafkaconnect#ServiceUnavailableException": return [3
|
|
1195
|
-
case "TooManyRequestsException": return [3
|
|
1196
|
-
case "com.amazonaws.kafkaconnect#TooManyRequestsException": return [3
|
|
1197
|
-
case "UnauthorizedException": return [3
|
|
1198
|
-
case "com.amazonaws.kafkaconnect#UnauthorizedException": return [3
|
|
1199
|
-
}
|
|
1200
|
-
return [3
|
|
1185
|
+
case "BadRequestException": return [3, 2];
|
|
1186
|
+
case "com.amazonaws.kafkaconnect#BadRequestException": return [3, 2];
|
|
1187
|
+
case "ForbiddenException": return [3, 4];
|
|
1188
|
+
case "com.amazonaws.kafkaconnect#ForbiddenException": return [3, 4];
|
|
1189
|
+
case "InternalServerErrorException": return [3, 6];
|
|
1190
|
+
case "com.amazonaws.kafkaconnect#InternalServerErrorException": return [3, 6];
|
|
1191
|
+
case "NotFoundException": return [3, 8];
|
|
1192
|
+
case "com.amazonaws.kafkaconnect#NotFoundException": return [3, 8];
|
|
1193
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
1194
|
+
case "com.amazonaws.kafkaconnect#ServiceUnavailableException": return [3, 10];
|
|
1195
|
+
case "TooManyRequestsException": return [3, 12];
|
|
1196
|
+
case "com.amazonaws.kafkaconnect#TooManyRequestsException": return [3, 12];
|
|
1197
|
+
case "UnauthorizedException": return [3, 14];
|
|
1198
|
+
case "com.amazonaws.kafkaconnect#UnauthorizedException": return [3, 14];
|
|
1199
|
+
}
|
|
1200
|
+
return [3, 16];
|
|
1201
1201
|
case 2:
|
|
1202
1202
|
_c = [{}];
|
|
1203
|
-
return [4
|
|
1203
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1204
1204
|
case 3:
|
|
1205
1205
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1206
|
-
return [3
|
|
1206
|
+
return [3, 17];
|
|
1207
1207
|
case 4:
|
|
1208
1208
|
_d = [{}];
|
|
1209
|
-
return [4
|
|
1209
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1210
1210
|
case 5:
|
|
1211
1211
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1212
|
-
return [3
|
|
1212
|
+
return [3, 17];
|
|
1213
1213
|
case 6:
|
|
1214
1214
|
_e = [{}];
|
|
1215
|
-
return [4
|
|
1215
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1216
1216
|
case 7:
|
|
1217
1217
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1218
|
-
return [3
|
|
1218
|
+
return [3, 17];
|
|
1219
1219
|
case 8:
|
|
1220
1220
|
_f = [{}];
|
|
1221
|
-
return [4
|
|
1221
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1222
1222
|
case 9:
|
|
1223
1223
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1224
|
-
return [3
|
|
1224
|
+
return [3, 17];
|
|
1225
1225
|
case 10:
|
|
1226
1226
|
_g = [{}];
|
|
1227
|
-
return [4
|
|
1227
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1228
1228
|
case 11:
|
|
1229
1229
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1230
|
-
return [3
|
|
1230
|
+
return [3, 17];
|
|
1231
1231
|
case 12:
|
|
1232
1232
|
_h = [{}];
|
|
1233
|
-
return [4
|
|
1233
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1234
1234
|
case 13:
|
|
1235
1235
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1236
|
-
return [3
|
|
1236
|
+
return [3, 17];
|
|
1237
1237
|
case 14:
|
|
1238
1238
|
_j = [{}];
|
|
1239
|
-
return [4
|
|
1239
|
+
return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
1240
1240
|
case 15:
|
|
1241
1241
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1242
|
-
return [3
|
|
1242
|
+
return [3, 17];
|
|
1243
1243
|
case 16:
|
|
1244
1244
|
parsedBody = parsedOutput.body;
|
|
1245
1245
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1249,7 +1249,7 @@ var deserializeAws_restJson1DescribeWorkerConfigurationCommandError = function (
|
|
|
1249
1249
|
message = response.message || response.Message || errorCode;
|
|
1250
1250
|
response.message = message;
|
|
1251
1251
|
delete response.Message;
|
|
1252
|
-
return [2
|
|
1252
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1253
1253
|
}
|
|
1254
1254
|
});
|
|
1255
1255
|
}); };
|
|
@@ -1259,7 +1259,7 @@ export var deserializeAws_restJson1ListConnectorsCommand = function (output, con
|
|
|
1259
1259
|
switch (_c.label) {
|
|
1260
1260
|
case 0:
|
|
1261
1261
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1262
|
-
return [2
|
|
1262
|
+
return [2, deserializeAws_restJson1ListConnectorsCommandError(output, context)];
|
|
1263
1263
|
}
|
|
1264
1264
|
contents = {
|
|
1265
1265
|
$metadata: deserializeMetadata(output),
|
|
@@ -1268,7 +1268,7 @@ export var deserializeAws_restJson1ListConnectorsCommand = function (output, con
|
|
|
1268
1268
|
};
|
|
1269
1269
|
_a = __expectNonNull;
|
|
1270
1270
|
_b = __expectObject;
|
|
1271
|
-
return [4
|
|
1271
|
+
return [4, parseBody(output.body, context)];
|
|
1272
1272
|
case 1:
|
|
1273
1273
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1274
1274
|
if (data.connectors !== undefined && data.connectors !== null) {
|
|
@@ -1277,7 +1277,7 @@ export var deserializeAws_restJson1ListConnectorsCommand = function (output, con
|
|
|
1277
1277
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1278
1278
|
contents.nextToken = __expectString(data.nextToken);
|
|
1279
1279
|
}
|
|
1280
|
-
return [2
|
|
1280
|
+
return [2, Promise.resolve(contents)];
|
|
1281
1281
|
}
|
|
1282
1282
|
});
|
|
1283
1283
|
}); };
|
|
@@ -1289,71 +1289,71 @@ var deserializeAws_restJson1ListConnectorsCommandError = function (output, conte
|
|
|
1289
1289
|
case 0:
|
|
1290
1290
|
_a = [__assign({}, output)];
|
|
1291
1291
|
_k = {};
|
|
1292
|
-
return [4
|
|
1292
|
+
return [4, parseBody(output.body, context)];
|
|
1293
1293
|
case 1:
|
|
1294
1294
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
1295
1295
|
errorCode = "UnknownError";
|
|
1296
1296
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1297
1297
|
_b = errorCode;
|
|
1298
1298
|
switch (_b) {
|
|
1299
|
-
case "BadRequestException": return [3
|
|
1300
|
-
case "com.amazonaws.kafkaconnect#BadRequestException": return [3
|
|
1301
|
-
case "ForbiddenException": return [3
|
|
1302
|
-
case "com.amazonaws.kafkaconnect#ForbiddenException": return [3
|
|
1303
|
-
case "InternalServerErrorException": return [3
|
|
1304
|
-
case "com.amazonaws.kafkaconnect#InternalServerErrorException": return [3
|
|
1305
|
-
case "NotFoundException": return [3
|
|
1306
|
-
case "com.amazonaws.kafkaconnect#NotFoundException": return [3
|
|
1307
|
-
case "ServiceUnavailableException": return [3
|
|
1308
|
-
case "com.amazonaws.kafkaconnect#ServiceUnavailableException": return [3
|
|
1309
|
-
case "TooManyRequestsException": return [3
|
|
1310
|
-
case "com.amazonaws.kafkaconnect#TooManyRequestsException": return [3
|
|
1311
|
-
case "UnauthorizedException": return [3
|
|
1312
|
-
case "com.amazonaws.kafkaconnect#UnauthorizedException": return [3
|
|
1313
|
-
}
|
|
1314
|
-
return [3
|
|
1299
|
+
case "BadRequestException": return [3, 2];
|
|
1300
|
+
case "com.amazonaws.kafkaconnect#BadRequestException": return [3, 2];
|
|
1301
|
+
case "ForbiddenException": return [3, 4];
|
|
1302
|
+
case "com.amazonaws.kafkaconnect#ForbiddenException": return [3, 4];
|
|
1303
|
+
case "InternalServerErrorException": return [3, 6];
|
|
1304
|
+
case "com.amazonaws.kafkaconnect#InternalServerErrorException": return [3, 6];
|
|
1305
|
+
case "NotFoundException": return [3, 8];
|
|
1306
|
+
case "com.amazonaws.kafkaconnect#NotFoundException": return [3, 8];
|
|
1307
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
1308
|
+
case "com.amazonaws.kafkaconnect#ServiceUnavailableException": return [3, 10];
|
|
1309
|
+
case "TooManyRequestsException": return [3, 12];
|
|
1310
|
+
case "com.amazonaws.kafkaconnect#TooManyRequestsException": return [3, 12];
|
|
1311
|
+
case "UnauthorizedException": return [3, 14];
|
|
1312
|
+
case "com.amazonaws.kafkaconnect#UnauthorizedException": return [3, 14];
|
|
1313
|
+
}
|
|
1314
|
+
return [3, 16];
|
|
1315
1315
|
case 2:
|
|
1316
1316
|
_c = [{}];
|
|
1317
|
-
return [4
|
|
1317
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1318
1318
|
case 3:
|
|
1319
1319
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1320
|
-
return [3
|
|
1320
|
+
return [3, 17];
|
|
1321
1321
|
case 4:
|
|
1322
1322
|
_d = [{}];
|
|
1323
|
-
return [4
|
|
1323
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1324
1324
|
case 5:
|
|
1325
1325
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1326
|
-
return [3
|
|
1326
|
+
return [3, 17];
|
|
1327
1327
|
case 6:
|
|
1328
1328
|
_e = [{}];
|
|
1329
|
-
return [4
|
|
1329
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1330
1330
|
case 7:
|
|
1331
1331
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1332
|
-
return [3
|
|
1332
|
+
return [3, 17];
|
|
1333
1333
|
case 8:
|
|
1334
1334
|
_f = [{}];
|
|
1335
|
-
return [4
|
|
1335
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1336
1336
|
case 9:
|
|
1337
1337
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1338
|
-
return [3
|
|
1338
|
+
return [3, 17];
|
|
1339
1339
|
case 10:
|
|
1340
1340
|
_g = [{}];
|
|
1341
|
-
return [4
|
|
1341
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1342
1342
|
case 11:
|
|
1343
1343
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1344
|
-
return [3
|
|
1344
|
+
return [3, 17];
|
|
1345
1345
|
case 12:
|
|
1346
1346
|
_h = [{}];
|
|
1347
|
-
return [4
|
|
1347
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1348
1348
|
case 13:
|
|
1349
1349
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1350
|
-
return [3
|
|
1350
|
+
return [3, 17];
|
|
1351
1351
|
case 14:
|
|
1352
1352
|
_j = [{}];
|
|
1353
|
-
return [4
|
|
1353
|
+
return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
1354
1354
|
case 15:
|
|
1355
1355
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1356
|
-
return [3
|
|
1356
|
+
return [3, 17];
|
|
1357
1357
|
case 16:
|
|
1358
1358
|
parsedBody = parsedOutput.body;
|
|
1359
1359
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1363,7 +1363,7 @@ var deserializeAws_restJson1ListConnectorsCommandError = function (output, conte
|
|
|
1363
1363
|
message = response.message || response.Message || errorCode;
|
|
1364
1364
|
response.message = message;
|
|
1365
1365
|
delete response.Message;
|
|
1366
|
-
return [2
|
|
1366
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1367
1367
|
}
|
|
1368
1368
|
});
|
|
1369
1369
|
}); };
|
|
@@ -1373,7 +1373,7 @@ export var deserializeAws_restJson1ListCustomPluginsCommand = function (output,
|
|
|
1373
1373
|
switch (_c.label) {
|
|
1374
1374
|
case 0:
|
|
1375
1375
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1376
|
-
return [2
|
|
1376
|
+
return [2, deserializeAws_restJson1ListCustomPluginsCommandError(output, context)];
|
|
1377
1377
|
}
|
|
1378
1378
|
contents = {
|
|
1379
1379
|
$metadata: deserializeMetadata(output),
|
|
@@ -1382,7 +1382,7 @@ export var deserializeAws_restJson1ListCustomPluginsCommand = function (output,
|
|
|
1382
1382
|
};
|
|
1383
1383
|
_a = __expectNonNull;
|
|
1384
1384
|
_b = __expectObject;
|
|
1385
|
-
return [4
|
|
1385
|
+
return [4, parseBody(output.body, context)];
|
|
1386
1386
|
case 1:
|
|
1387
1387
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1388
1388
|
if (data.customPlugins !== undefined && data.customPlugins !== null) {
|
|
@@ -1391,7 +1391,7 @@ export var deserializeAws_restJson1ListCustomPluginsCommand = function (output,
|
|
|
1391
1391
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1392
1392
|
contents.nextToken = __expectString(data.nextToken);
|
|
1393
1393
|
}
|
|
1394
|
-
return [2
|
|
1394
|
+
return [2, Promise.resolve(contents)];
|
|
1395
1395
|
}
|
|
1396
1396
|
});
|
|
1397
1397
|
}); };
|
|
@@ -1403,71 +1403,71 @@ var deserializeAws_restJson1ListCustomPluginsCommandError = function (output, co
|
|
|
1403
1403
|
case 0:
|
|
1404
1404
|
_a = [__assign({}, output)];
|
|
1405
1405
|
_k = {};
|
|
1406
|
-
return [4
|
|
1406
|
+
return [4, parseBody(output.body, context)];
|
|
1407
1407
|
case 1:
|
|
1408
1408
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
1409
1409
|
errorCode = "UnknownError";
|
|
1410
1410
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1411
1411
|
_b = errorCode;
|
|
1412
1412
|
switch (_b) {
|
|
1413
|
-
case "BadRequestException": return [3
|
|
1414
|
-
case "com.amazonaws.kafkaconnect#BadRequestException": return [3
|
|
1415
|
-
case "ForbiddenException": return [3
|
|
1416
|
-
case "com.amazonaws.kafkaconnect#ForbiddenException": return [3
|
|
1417
|
-
case "InternalServerErrorException": return [3
|
|
1418
|
-
case "com.amazonaws.kafkaconnect#InternalServerErrorException": return [3
|
|
1419
|
-
case "NotFoundException": return [3
|
|
1420
|
-
case "com.amazonaws.kafkaconnect#NotFoundException": return [3
|
|
1421
|
-
case "ServiceUnavailableException": return [3
|
|
1422
|
-
case "com.amazonaws.kafkaconnect#ServiceUnavailableException": return [3
|
|
1423
|
-
case "TooManyRequestsException": return [3
|
|
1424
|
-
case "com.amazonaws.kafkaconnect#TooManyRequestsException": return [3
|
|
1425
|
-
case "UnauthorizedException": return [3
|
|
1426
|
-
case "com.amazonaws.kafkaconnect#UnauthorizedException": return [3
|
|
1427
|
-
}
|
|
1428
|
-
return [3
|
|
1413
|
+
case "BadRequestException": return [3, 2];
|
|
1414
|
+
case "com.amazonaws.kafkaconnect#BadRequestException": return [3, 2];
|
|
1415
|
+
case "ForbiddenException": return [3, 4];
|
|
1416
|
+
case "com.amazonaws.kafkaconnect#ForbiddenException": return [3, 4];
|
|
1417
|
+
case "InternalServerErrorException": return [3, 6];
|
|
1418
|
+
case "com.amazonaws.kafkaconnect#InternalServerErrorException": return [3, 6];
|
|
1419
|
+
case "NotFoundException": return [3, 8];
|
|
1420
|
+
case "com.amazonaws.kafkaconnect#NotFoundException": return [3, 8];
|
|
1421
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
1422
|
+
case "com.amazonaws.kafkaconnect#ServiceUnavailableException": return [3, 10];
|
|
1423
|
+
case "TooManyRequestsException": return [3, 12];
|
|
1424
|
+
case "com.amazonaws.kafkaconnect#TooManyRequestsException": return [3, 12];
|
|
1425
|
+
case "UnauthorizedException": return [3, 14];
|
|
1426
|
+
case "com.amazonaws.kafkaconnect#UnauthorizedException": return [3, 14];
|
|
1427
|
+
}
|
|
1428
|
+
return [3, 16];
|
|
1429
1429
|
case 2:
|
|
1430
1430
|
_c = [{}];
|
|
1431
|
-
return [4
|
|
1431
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1432
1432
|
case 3:
|
|
1433
1433
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1434
|
-
return [3
|
|
1434
|
+
return [3, 17];
|
|
1435
1435
|
case 4:
|
|
1436
1436
|
_d = [{}];
|
|
1437
|
-
return [4
|
|
1437
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1438
1438
|
case 5:
|
|
1439
1439
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1440
|
-
return [3
|
|
1440
|
+
return [3, 17];
|
|
1441
1441
|
case 6:
|
|
1442
1442
|
_e = [{}];
|
|
1443
|
-
return [4
|
|
1443
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1444
1444
|
case 7:
|
|
1445
1445
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1446
|
-
return [3
|
|
1446
|
+
return [3, 17];
|
|
1447
1447
|
case 8:
|
|
1448
1448
|
_f = [{}];
|
|
1449
|
-
return [4
|
|
1449
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1450
1450
|
case 9:
|
|
1451
1451
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1452
|
-
return [3
|
|
1452
|
+
return [3, 17];
|
|
1453
1453
|
case 10:
|
|
1454
1454
|
_g = [{}];
|
|
1455
|
-
return [4
|
|
1455
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1456
1456
|
case 11:
|
|
1457
1457
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1458
|
-
return [3
|
|
1458
|
+
return [3, 17];
|
|
1459
1459
|
case 12:
|
|
1460
1460
|
_h = [{}];
|
|
1461
|
-
return [4
|
|
1461
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1462
1462
|
case 13:
|
|
1463
1463
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1464
|
-
return [3
|
|
1464
|
+
return [3, 17];
|
|
1465
1465
|
case 14:
|
|
1466
1466
|
_j = [{}];
|
|
1467
|
-
return [4
|
|
1467
|
+
return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
1468
1468
|
case 15:
|
|
1469
1469
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1470
|
-
return [3
|
|
1470
|
+
return [3, 17];
|
|
1471
1471
|
case 16:
|
|
1472
1472
|
parsedBody = parsedOutput.body;
|
|
1473
1473
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1477,7 +1477,7 @@ var deserializeAws_restJson1ListCustomPluginsCommandError = function (output, co
|
|
|
1477
1477
|
message = response.message || response.Message || errorCode;
|
|
1478
1478
|
response.message = message;
|
|
1479
1479
|
delete response.Message;
|
|
1480
|
-
return [2
|
|
1480
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1481
1481
|
}
|
|
1482
1482
|
});
|
|
1483
1483
|
}); };
|
|
@@ -1487,7 +1487,7 @@ export var deserializeAws_restJson1ListWorkerConfigurationsCommand = function (o
|
|
|
1487
1487
|
switch (_c.label) {
|
|
1488
1488
|
case 0:
|
|
1489
1489
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1490
|
-
return [2
|
|
1490
|
+
return [2, deserializeAws_restJson1ListWorkerConfigurationsCommandError(output, context)];
|
|
1491
1491
|
}
|
|
1492
1492
|
contents = {
|
|
1493
1493
|
$metadata: deserializeMetadata(output),
|
|
@@ -1496,7 +1496,7 @@ export var deserializeAws_restJson1ListWorkerConfigurationsCommand = function (o
|
|
|
1496
1496
|
};
|
|
1497
1497
|
_a = __expectNonNull;
|
|
1498
1498
|
_b = __expectObject;
|
|
1499
|
-
return [4
|
|
1499
|
+
return [4, parseBody(output.body, context)];
|
|
1500
1500
|
case 1:
|
|
1501
1501
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1502
1502
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
@@ -1505,7 +1505,7 @@ export var deserializeAws_restJson1ListWorkerConfigurationsCommand = function (o
|
|
|
1505
1505
|
if (data.workerConfigurations !== undefined && data.workerConfigurations !== null) {
|
|
1506
1506
|
contents.workerConfigurations = deserializeAws_restJson1__listOfWorkerConfigurationSummary(data.workerConfigurations, context);
|
|
1507
1507
|
}
|
|
1508
|
-
return [2
|
|
1508
|
+
return [2, Promise.resolve(contents)];
|
|
1509
1509
|
}
|
|
1510
1510
|
});
|
|
1511
1511
|
}); };
|
|
@@ -1517,71 +1517,71 @@ var deserializeAws_restJson1ListWorkerConfigurationsCommandError = function (out
|
|
|
1517
1517
|
case 0:
|
|
1518
1518
|
_a = [__assign({}, output)];
|
|
1519
1519
|
_k = {};
|
|
1520
|
-
return [4
|
|
1520
|
+
return [4, parseBody(output.body, context)];
|
|
1521
1521
|
case 1:
|
|
1522
1522
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
1523
1523
|
errorCode = "UnknownError";
|
|
1524
1524
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1525
1525
|
_b = errorCode;
|
|
1526
1526
|
switch (_b) {
|
|
1527
|
-
case "BadRequestException": return [3
|
|
1528
|
-
case "com.amazonaws.kafkaconnect#BadRequestException": return [3
|
|
1529
|
-
case "ForbiddenException": return [3
|
|
1530
|
-
case "com.amazonaws.kafkaconnect#ForbiddenException": return [3
|
|
1531
|
-
case "InternalServerErrorException": return [3
|
|
1532
|
-
case "com.amazonaws.kafkaconnect#InternalServerErrorException": return [3
|
|
1533
|
-
case "NotFoundException": return [3
|
|
1534
|
-
case "com.amazonaws.kafkaconnect#NotFoundException": return [3
|
|
1535
|
-
case "ServiceUnavailableException": return [3
|
|
1536
|
-
case "com.amazonaws.kafkaconnect#ServiceUnavailableException": return [3
|
|
1537
|
-
case "TooManyRequestsException": return [3
|
|
1538
|
-
case "com.amazonaws.kafkaconnect#TooManyRequestsException": return [3
|
|
1539
|
-
case "UnauthorizedException": return [3
|
|
1540
|
-
case "com.amazonaws.kafkaconnect#UnauthorizedException": return [3
|
|
1541
|
-
}
|
|
1542
|
-
return [3
|
|
1527
|
+
case "BadRequestException": return [3, 2];
|
|
1528
|
+
case "com.amazonaws.kafkaconnect#BadRequestException": return [3, 2];
|
|
1529
|
+
case "ForbiddenException": return [3, 4];
|
|
1530
|
+
case "com.amazonaws.kafkaconnect#ForbiddenException": return [3, 4];
|
|
1531
|
+
case "InternalServerErrorException": return [3, 6];
|
|
1532
|
+
case "com.amazonaws.kafkaconnect#InternalServerErrorException": return [3, 6];
|
|
1533
|
+
case "NotFoundException": return [3, 8];
|
|
1534
|
+
case "com.amazonaws.kafkaconnect#NotFoundException": return [3, 8];
|
|
1535
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
1536
|
+
case "com.amazonaws.kafkaconnect#ServiceUnavailableException": return [3, 10];
|
|
1537
|
+
case "TooManyRequestsException": return [3, 12];
|
|
1538
|
+
case "com.amazonaws.kafkaconnect#TooManyRequestsException": return [3, 12];
|
|
1539
|
+
case "UnauthorizedException": return [3, 14];
|
|
1540
|
+
case "com.amazonaws.kafkaconnect#UnauthorizedException": return [3, 14];
|
|
1541
|
+
}
|
|
1542
|
+
return [3, 16];
|
|
1543
1543
|
case 2:
|
|
1544
1544
|
_c = [{}];
|
|
1545
|
-
return [4
|
|
1545
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1546
1546
|
case 3:
|
|
1547
1547
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1548
|
-
return [3
|
|
1548
|
+
return [3, 17];
|
|
1549
1549
|
case 4:
|
|
1550
1550
|
_d = [{}];
|
|
1551
|
-
return [4
|
|
1551
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1552
1552
|
case 5:
|
|
1553
1553
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1554
|
-
return [3
|
|
1554
|
+
return [3, 17];
|
|
1555
1555
|
case 6:
|
|
1556
1556
|
_e = [{}];
|
|
1557
|
-
return [4
|
|
1557
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1558
1558
|
case 7:
|
|
1559
1559
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1560
|
-
return [3
|
|
1560
|
+
return [3, 17];
|
|
1561
1561
|
case 8:
|
|
1562
1562
|
_f = [{}];
|
|
1563
|
-
return [4
|
|
1563
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1564
1564
|
case 9:
|
|
1565
1565
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1566
|
-
return [3
|
|
1566
|
+
return [3, 17];
|
|
1567
1567
|
case 10:
|
|
1568
1568
|
_g = [{}];
|
|
1569
|
-
return [4
|
|
1569
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1570
1570
|
case 11:
|
|
1571
1571
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1572
|
-
return [3
|
|
1572
|
+
return [3, 17];
|
|
1573
1573
|
case 12:
|
|
1574
1574
|
_h = [{}];
|
|
1575
|
-
return [4
|
|
1575
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1576
1576
|
case 13:
|
|
1577
1577
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1578
|
-
return [3
|
|
1578
|
+
return [3, 17];
|
|
1579
1579
|
case 14:
|
|
1580
1580
|
_j = [{}];
|
|
1581
|
-
return [4
|
|
1581
|
+
return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
1582
1582
|
case 15:
|
|
1583
1583
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1584
|
-
return [3
|
|
1584
|
+
return [3, 17];
|
|
1585
1585
|
case 16:
|
|
1586
1586
|
parsedBody = parsedOutput.body;
|
|
1587
1587
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1591,7 +1591,7 @@ var deserializeAws_restJson1ListWorkerConfigurationsCommandError = function (out
|
|
|
1591
1591
|
message = response.message || response.Message || errorCode;
|
|
1592
1592
|
response.message = message;
|
|
1593
1593
|
delete response.Message;
|
|
1594
|
-
return [2
|
|
1594
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1595
1595
|
}
|
|
1596
1596
|
});
|
|
1597
1597
|
}); };
|
|
@@ -1601,7 +1601,7 @@ export var deserializeAws_restJson1UpdateConnectorCommand = function (output, co
|
|
|
1601
1601
|
switch (_c.label) {
|
|
1602
1602
|
case 0:
|
|
1603
1603
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1604
|
-
return [2
|
|
1604
|
+
return [2, deserializeAws_restJson1UpdateConnectorCommandError(output, context)];
|
|
1605
1605
|
}
|
|
1606
1606
|
contents = {
|
|
1607
1607
|
$metadata: deserializeMetadata(output),
|
|
@@ -1610,7 +1610,7 @@ export var deserializeAws_restJson1UpdateConnectorCommand = function (output, co
|
|
|
1610
1610
|
};
|
|
1611
1611
|
_a = __expectNonNull;
|
|
1612
1612
|
_b = __expectObject;
|
|
1613
|
-
return [4
|
|
1613
|
+
return [4, parseBody(output.body, context)];
|
|
1614
1614
|
case 1:
|
|
1615
1615
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1616
1616
|
if (data.connectorArn !== undefined && data.connectorArn !== null) {
|
|
@@ -1619,7 +1619,7 @@ export var deserializeAws_restJson1UpdateConnectorCommand = function (output, co
|
|
|
1619
1619
|
if (data.connectorState !== undefined && data.connectorState !== null) {
|
|
1620
1620
|
contents.connectorState = __expectString(data.connectorState);
|
|
1621
1621
|
}
|
|
1622
|
-
return [2
|
|
1622
|
+
return [2, Promise.resolve(contents)];
|
|
1623
1623
|
}
|
|
1624
1624
|
});
|
|
1625
1625
|
}); };
|
|
@@ -1631,71 +1631,71 @@ var deserializeAws_restJson1UpdateConnectorCommandError = function (output, cont
|
|
|
1631
1631
|
case 0:
|
|
1632
1632
|
_a = [__assign({}, output)];
|
|
1633
1633
|
_k = {};
|
|
1634
|
-
return [4
|
|
1634
|
+
return [4, parseBody(output.body, context)];
|
|
1635
1635
|
case 1:
|
|
1636
1636
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
1637
1637
|
errorCode = "UnknownError";
|
|
1638
1638
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1639
1639
|
_b = errorCode;
|
|
1640
1640
|
switch (_b) {
|
|
1641
|
-
case "BadRequestException": return [3
|
|
1642
|
-
case "com.amazonaws.kafkaconnect#BadRequestException": return [3
|
|
1643
|
-
case "ForbiddenException": return [3
|
|
1644
|
-
case "com.amazonaws.kafkaconnect#ForbiddenException": return [3
|
|
1645
|
-
case "InternalServerErrorException": return [3
|
|
1646
|
-
case "com.amazonaws.kafkaconnect#InternalServerErrorException": return [3
|
|
1647
|
-
case "NotFoundException": return [3
|
|
1648
|
-
case "com.amazonaws.kafkaconnect#NotFoundException": return [3
|
|
1649
|
-
case "ServiceUnavailableException": return [3
|
|
1650
|
-
case "com.amazonaws.kafkaconnect#ServiceUnavailableException": return [3
|
|
1651
|
-
case "TooManyRequestsException": return [3
|
|
1652
|
-
case "com.amazonaws.kafkaconnect#TooManyRequestsException": return [3
|
|
1653
|
-
case "UnauthorizedException": return [3
|
|
1654
|
-
case "com.amazonaws.kafkaconnect#UnauthorizedException": return [3
|
|
1655
|
-
}
|
|
1656
|
-
return [3
|
|
1641
|
+
case "BadRequestException": return [3, 2];
|
|
1642
|
+
case "com.amazonaws.kafkaconnect#BadRequestException": return [3, 2];
|
|
1643
|
+
case "ForbiddenException": return [3, 4];
|
|
1644
|
+
case "com.amazonaws.kafkaconnect#ForbiddenException": return [3, 4];
|
|
1645
|
+
case "InternalServerErrorException": return [3, 6];
|
|
1646
|
+
case "com.amazonaws.kafkaconnect#InternalServerErrorException": return [3, 6];
|
|
1647
|
+
case "NotFoundException": return [3, 8];
|
|
1648
|
+
case "com.amazonaws.kafkaconnect#NotFoundException": return [3, 8];
|
|
1649
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
1650
|
+
case "com.amazonaws.kafkaconnect#ServiceUnavailableException": return [3, 10];
|
|
1651
|
+
case "TooManyRequestsException": return [3, 12];
|
|
1652
|
+
case "com.amazonaws.kafkaconnect#TooManyRequestsException": return [3, 12];
|
|
1653
|
+
case "UnauthorizedException": return [3, 14];
|
|
1654
|
+
case "com.amazonaws.kafkaconnect#UnauthorizedException": return [3, 14];
|
|
1655
|
+
}
|
|
1656
|
+
return [3, 16];
|
|
1657
1657
|
case 2:
|
|
1658
1658
|
_c = [{}];
|
|
1659
|
-
return [4
|
|
1659
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1660
1660
|
case 3:
|
|
1661
1661
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1662
|
-
return [3
|
|
1662
|
+
return [3, 17];
|
|
1663
1663
|
case 4:
|
|
1664
1664
|
_d = [{}];
|
|
1665
|
-
return [4
|
|
1665
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1666
1666
|
case 5:
|
|
1667
1667
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1668
|
-
return [3
|
|
1668
|
+
return [3, 17];
|
|
1669
1669
|
case 6:
|
|
1670
1670
|
_e = [{}];
|
|
1671
|
-
return [4
|
|
1671
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1672
1672
|
case 7:
|
|
1673
1673
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1674
|
-
return [3
|
|
1674
|
+
return [3, 17];
|
|
1675
1675
|
case 8:
|
|
1676
1676
|
_f = [{}];
|
|
1677
|
-
return [4
|
|
1677
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1678
1678
|
case 9:
|
|
1679
1679
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1680
|
-
return [3
|
|
1680
|
+
return [3, 17];
|
|
1681
1681
|
case 10:
|
|
1682
1682
|
_g = [{}];
|
|
1683
|
-
return [4
|
|
1683
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1684
1684
|
case 11:
|
|
1685
1685
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1686
|
-
return [3
|
|
1686
|
+
return [3, 17];
|
|
1687
1687
|
case 12:
|
|
1688
1688
|
_h = [{}];
|
|
1689
|
-
return [4
|
|
1689
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1690
1690
|
case 13:
|
|
1691
1691
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1692
|
-
return [3
|
|
1692
|
+
return [3, 17];
|
|
1693
1693
|
case 14:
|
|
1694
1694
|
_j = [{}];
|
|
1695
|
-
return [4
|
|
1695
|
+
return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
1696
1696
|
case 15:
|
|
1697
1697
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1698
|
-
return [3
|
|
1698
|
+
return [3, 17];
|
|
1699
1699
|
case 16:
|
|
1700
1700
|
parsedBody = parsedOutput.body;
|
|
1701
1701
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1705,7 +1705,7 @@ var deserializeAws_restJson1UpdateConnectorCommandError = function (output, cont
|
|
|
1705
1705
|
message = response.message || response.Message || errorCode;
|
|
1706
1706
|
response.message = message;
|
|
1707
1707
|
delete response.Message;
|
|
1708
|
-
return [2
|
|
1708
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1709
1709
|
}
|
|
1710
1710
|
});
|
|
1711
1711
|
}); };
|
|
@@ -1722,7 +1722,7 @@ var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput
|
|
|
1722
1722
|
if (data.message !== undefined && data.message !== null) {
|
|
1723
1723
|
contents.message = __expectString(data.message);
|
|
1724
1724
|
}
|
|
1725
|
-
return [2
|
|
1725
|
+
return [2, contents];
|
|
1726
1726
|
});
|
|
1727
1727
|
}); };
|
|
1728
1728
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1738,7 +1738,7 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
1738
1738
|
if (data.message !== undefined && data.message !== null) {
|
|
1739
1739
|
contents.message = __expectString(data.message);
|
|
1740
1740
|
}
|
|
1741
|
-
return [2
|
|
1741
|
+
return [2, contents];
|
|
1742
1742
|
});
|
|
1743
1743
|
}); };
|
|
1744
1744
|
var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1754,7 +1754,7 @@ var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput,
|
|
|
1754
1754
|
if (data.message !== undefined && data.message !== null) {
|
|
1755
1755
|
contents.message = __expectString(data.message);
|
|
1756
1756
|
}
|
|
1757
|
-
return [2
|
|
1757
|
+
return [2, contents];
|
|
1758
1758
|
});
|
|
1759
1759
|
}); };
|
|
1760
1760
|
var deserializeAws_restJson1InternalServerErrorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1770,7 +1770,7 @@ var deserializeAws_restJson1InternalServerErrorExceptionResponse = function (par
|
|
|
1770
1770
|
if (data.message !== undefined && data.message !== null) {
|
|
1771
1771
|
contents.message = __expectString(data.message);
|
|
1772
1772
|
}
|
|
1773
|
-
return [2
|
|
1773
|
+
return [2, contents];
|
|
1774
1774
|
});
|
|
1775
1775
|
}); };
|
|
1776
1776
|
var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1786,7 +1786,7 @@ var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput,
|
|
|
1786
1786
|
if (data.message !== undefined && data.message !== null) {
|
|
1787
1787
|
contents.message = __expectString(data.message);
|
|
1788
1788
|
}
|
|
1789
|
-
return [2
|
|
1789
|
+
return [2, contents];
|
|
1790
1790
|
});
|
|
1791
1791
|
}); };
|
|
1792
1792
|
var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1802,7 +1802,7 @@ var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (pars
|
|
|
1802
1802
|
if (data.message !== undefined && data.message !== null) {
|
|
1803
1803
|
contents.message = __expectString(data.message);
|
|
1804
1804
|
}
|
|
1805
|
-
return [2
|
|
1805
|
+
return [2, contents];
|
|
1806
1806
|
});
|
|
1807
1807
|
}); };
|
|
1808
1808
|
var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1818,7 +1818,7 @@ var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedO
|
|
|
1818
1818
|
if (data.message !== undefined && data.message !== null) {
|
|
1819
1819
|
contents.message = __expectString(data.message);
|
|
1820
1820
|
}
|
|
1821
|
-
return [2
|
|
1821
|
+
return [2, contents];
|
|
1822
1822
|
});
|
|
1823
1823
|
}); };
|
|
1824
1824
|
var deserializeAws_restJson1UnauthorizedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1834,7 +1834,7 @@ var deserializeAws_restJson1UnauthorizedExceptionResponse = function (parsedOutp
|
|
|
1834
1834
|
if (data.message !== undefined && data.message !== null) {
|
|
1835
1835
|
contents.message = __expectString(data.message);
|
|
1836
1836
|
}
|
|
1837
|
-
return [2
|
|
1837
|
+
return [2, contents];
|
|
1838
1838
|
});
|
|
1839
1839
|
}); };
|
|
1840
1840
|
var serializeAws_restJson1__listOf__string = function (input, context) {
|
|
@@ -2312,7 +2312,6 @@ var deserializeMetadata = function (output) {
|
|
|
2312
2312
|
cfId: output.headers["x-amz-cf-id"],
|
|
2313
2313
|
});
|
|
2314
2314
|
};
|
|
2315
|
-
// Collect low-level response body stream to Uint8Array.
|
|
2316
2315
|
var collectBody = function (streamBody, context) {
|
|
2317
2316
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
2318
2317
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -2320,7 +2319,6 @@ var collectBody = function (streamBody, context) {
|
|
|
2320
2319
|
}
|
|
2321
2320
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2322
2321
|
};
|
|
2323
|
-
// Encode Uint8Array data into string with utf-8.
|
|
2324
2322
|
var collectBodyString = function (streamBody, context) {
|
|
2325
2323
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
2326
2324
|
};
|
|
@@ -2339,9 +2337,6 @@ var parseBody = function (streamBody, context) {
|
|
|
2339
2337
|
return {};
|
|
2340
2338
|
});
|
|
2341
2339
|
};
|
|
2342
|
-
/**
|
|
2343
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
2344
|
-
*/
|
|
2345
2340
|
var loadRestJsonErrorCode = function (output, data) {
|
|
2346
2341
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2347
2342
|
var sanitizeErrorCode = function (rawValue) {
|
|
@@ -2366,4 +2361,3 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
2366
2361
|
}
|
|
2367
2362
|
return "";
|
|
2368
2363
|
};
|
|
2369
|
-
//# sourceMappingURL=Aws_restJson1.js.map
|