@aws-sdk/client-emr-containers 3.30.0 → 3.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/dist/cjs/EMRContainersClient.js +13 -13
- package/dist/cjs/EMRContainersClient.js.map +1 -1
- package/dist/cjs/commands/CancelJobRunCommand.js +3 -3
- package/dist/cjs/commands/CancelJobRunCommand.js.map +1 -1
- package/dist/cjs/commands/CreateManagedEndpointCommand.js +3 -3
- package/dist/cjs/commands/CreateManagedEndpointCommand.js.map +1 -1
- package/dist/cjs/commands/CreateVirtualClusterCommand.js +3 -3
- package/dist/cjs/commands/CreateVirtualClusterCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteManagedEndpointCommand.js +3 -3
- package/dist/cjs/commands/DeleteManagedEndpointCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteVirtualClusterCommand.js +3 -3
- package/dist/cjs/commands/DeleteVirtualClusterCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeJobRunCommand.js +3 -3
- package/dist/cjs/commands/DescribeJobRunCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeManagedEndpointCommand.js +3 -3
- package/dist/cjs/commands/DescribeManagedEndpointCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeVirtualClusterCommand.js +3 -3
- package/dist/cjs/commands/DescribeVirtualClusterCommand.js.map +1 -1
- package/dist/cjs/commands/ListJobRunsCommand.js +3 -3
- package/dist/cjs/commands/ListJobRunsCommand.js.map +1 -1
- package/dist/cjs/commands/ListManagedEndpointsCommand.js +3 -3
- package/dist/cjs/commands/ListManagedEndpointsCommand.js.map +1 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/cjs/commands/ListVirtualClustersCommand.js +3 -3
- package/dist/cjs/commands/ListVirtualClustersCommand.js.map +1 -1
- package/dist/cjs/commands/StartJobRunCommand.js +3 -3
- package/dist/cjs/commands/StartJobRunCommand.js.map +1 -1
- package/dist/cjs/commands/TagResourceCommand.js +3 -3
- package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UntagResourceCommand.js +3 -3
- package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +22 -22
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +39 -39
- package/dist/cjs/protocols/Aws_restJson1.js +102 -102
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/es/EMRContainers.js +1 -25
- package/dist/es/EMRContainers.js.map +1 -1
- package/dist/es/EMRContainersClient.js +1 -30
- package/dist/es/EMRContainersClient.js.map +1 -1
- package/dist/es/commands/CancelJobRunCommand.js +2 -27
- package/dist/es/commands/CancelJobRunCommand.js.map +1 -1
- package/dist/es/commands/CreateManagedEndpointCommand.js +2 -27
- package/dist/es/commands/CreateManagedEndpointCommand.js.map +1 -1
- package/dist/es/commands/CreateVirtualClusterCommand.js +2 -27
- package/dist/es/commands/CreateVirtualClusterCommand.js.map +1 -1
- package/dist/es/commands/DeleteManagedEndpointCommand.js +2 -27
- package/dist/es/commands/DeleteManagedEndpointCommand.js.map +1 -1
- package/dist/es/commands/DeleteVirtualClusterCommand.js +2 -27
- package/dist/es/commands/DeleteVirtualClusterCommand.js.map +1 -1
- package/dist/es/commands/DescribeJobRunCommand.js +2 -27
- package/dist/es/commands/DescribeJobRunCommand.js.map +1 -1
- package/dist/es/commands/DescribeManagedEndpointCommand.js +2 -27
- package/dist/es/commands/DescribeManagedEndpointCommand.js.map +1 -1
- package/dist/es/commands/DescribeVirtualClusterCommand.js +2 -27
- package/dist/es/commands/DescribeVirtualClusterCommand.js.map +1 -1
- package/dist/es/commands/ListJobRunsCommand.js +2 -27
- package/dist/es/commands/ListJobRunsCommand.js.map +1 -1
- package/dist/es/commands/ListManagedEndpointsCommand.js +2 -27
- package/dist/es/commands/ListManagedEndpointsCommand.js.map +1 -1
- package/dist/es/commands/ListTagsForResourceCommand.js +2 -27
- package/dist/es/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/es/commands/ListVirtualClustersCommand.js +2 -27
- package/dist/es/commands/ListVirtualClustersCommand.js.map +1 -1
- package/dist/es/commands/StartJobRunCommand.js +2 -27
- package/dist/es/commands/StartJobRunCommand.js.map +1 -1
- package/dist/es/commands/TagResourceCommand.js +2 -27
- package/dist/es/commands/TagResourceCommand.js.map +1 -1
- package/dist/es/commands/UntagResourceCommand.js +2 -27
- package/dist/es/commands/UntagResourceCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -1
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +0 -138
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +39 -39
- package/dist/es/pagination/ListJobRunsPaginator.js +16 -28
- package/dist/es/pagination/ListJobRunsPaginator.js.map +1 -1
- package/dist/es/pagination/ListManagedEndpointsPaginator.js +16 -28
- package/dist/es/pagination/ListManagedEndpointsPaginator.js.map +1 -1
- package/dist/es/pagination/ListVirtualClustersPaginator.js +16 -28
- package/dist/es/pagination/ListVirtualClustersPaginator.js.map +1 -1
- package/dist/es/protocols/Aws_restJson1.js +294 -299
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/dist/types/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/runtimeConfig.d.ts +1 -0
- package/dist/types/runtimeConfig.native.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +39 -39
- package/protocols/Aws_restJson1.ts +8 -5
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +3 -5
- package/tsconfig.types.json +8 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { ContainerInfo, } from "../models/models_0";
|
|
3
3
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
4
|
-
import { expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
5
5
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
6
6
|
export var serializeAws_restJson1CancelJobRunCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
7
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
8
8
|
return __generator(this, function (_c) {
|
|
9
9
|
switch (_c.label) {
|
|
10
|
-
case 0: return [4
|
|
10
|
+
case 0: return [4, context.endpoint()];
|
|
11
11
|
case 1:
|
|
12
12
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
13
13
|
headers = {};
|
|
@@ -33,7 +33,7 @@ export var serializeAws_restJson1CancelJobRunCommand = function (input, context)
|
|
|
33
33
|
else {
|
|
34
34
|
throw new Error("No value provided for input HTTP label: virtualClusterId.");
|
|
35
35
|
}
|
|
36
|
-
return [2
|
|
36
|
+
return [2, new __HttpRequest({
|
|
37
37
|
protocol: protocol,
|
|
38
38
|
hostname: hostname,
|
|
39
39
|
port: port,
|
|
@@ -50,7 +50,7 @@ export var serializeAws_restJson1CreateManagedEndpointCommand = function (input,
|
|
|
50
50
|
var _c;
|
|
51
51
|
return __generator(this, function (_d) {
|
|
52
52
|
switch (_d.label) {
|
|
53
|
-
case 0: return [4
|
|
53
|
+
case 0: return [4, context.endpoint()];
|
|
54
54
|
case 1:
|
|
55
55
|
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
56
56
|
headers = {
|
|
@@ -74,7 +74,7 @@ export var serializeAws_restJson1CreateManagedEndpointCommand = function (input,
|
|
|
74
74
|
configurationOverrides: serializeAws_restJson1ConfigurationOverrides(input.configurationOverrides, context),
|
|
75
75
|
})), (input.executionRoleArn !== undefined &&
|
|
76
76
|
input.executionRoleArn !== null && { executionRoleArn: input.executionRoleArn })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.releaseLabel !== undefined && input.releaseLabel !== null && { releaseLabel: input.releaseLabel })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.type !== undefined && input.type !== null && { type: input.type })));
|
|
77
|
-
return [2
|
|
77
|
+
return [2, new __HttpRequest({
|
|
78
78
|
protocol: protocol,
|
|
79
79
|
hostname: hostname,
|
|
80
80
|
port: port,
|
|
@@ -91,7 +91,7 @@ export var serializeAws_restJson1CreateVirtualClusterCommand = function (input,
|
|
|
91
91
|
var _c;
|
|
92
92
|
return __generator(this, function (_d) {
|
|
93
93
|
switch (_d.label) {
|
|
94
|
-
case 0: return [4
|
|
94
|
+
case 0: return [4, context.endpoint()];
|
|
95
95
|
case 1:
|
|
96
96
|
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
97
97
|
headers = {
|
|
@@ -102,7 +102,7 @@ export var serializeAws_restJson1CreateVirtualClusterCommand = function (input,
|
|
|
102
102
|
input.containerProvider !== null && {
|
|
103
103
|
containerProvider: serializeAws_restJson1ContainerProvider(input.containerProvider, context),
|
|
104
104
|
})), (input.name !== undefined && input.name !== null && { name: input.name })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
105
|
-
return [2
|
|
105
|
+
return [2, new __HttpRequest({
|
|
106
106
|
protocol: protocol,
|
|
107
107
|
hostname: hostname,
|
|
108
108
|
port: port,
|
|
@@ -118,7 +118,7 @@ export var serializeAws_restJson1DeleteManagedEndpointCommand = function (input,
|
|
|
118
118
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
119
119
|
return __generator(this, function (_c) {
|
|
120
120
|
switch (_c.label) {
|
|
121
|
-
case 0: return [4
|
|
121
|
+
case 0: return [4, context.endpoint()];
|
|
122
122
|
case 1:
|
|
123
123
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
124
124
|
headers = {};
|
|
@@ -144,7 +144,7 @@ export var serializeAws_restJson1DeleteManagedEndpointCommand = function (input,
|
|
|
144
144
|
else {
|
|
145
145
|
throw new Error("No value provided for input HTTP label: virtualClusterId.");
|
|
146
146
|
}
|
|
147
|
-
return [2
|
|
147
|
+
return [2, new __HttpRequest({
|
|
148
148
|
protocol: protocol,
|
|
149
149
|
hostname: hostname,
|
|
150
150
|
port: port,
|
|
@@ -160,7 +160,7 @@ export var serializeAws_restJson1DeleteVirtualClusterCommand = function (input,
|
|
|
160
160
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
161
161
|
return __generator(this, function (_c) {
|
|
162
162
|
switch (_c.label) {
|
|
163
|
-
case 0: return [4
|
|
163
|
+
case 0: return [4, context.endpoint()];
|
|
164
164
|
case 1:
|
|
165
165
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
166
166
|
headers = {};
|
|
@@ -175,7 +175,7 @@ export var serializeAws_restJson1DeleteVirtualClusterCommand = function (input,
|
|
|
175
175
|
else {
|
|
176
176
|
throw new Error("No value provided for input HTTP label: id.");
|
|
177
177
|
}
|
|
178
|
-
return [2
|
|
178
|
+
return [2, new __HttpRequest({
|
|
179
179
|
protocol: protocol,
|
|
180
180
|
hostname: hostname,
|
|
181
181
|
port: port,
|
|
@@ -191,7 +191,7 @@ export var serializeAws_restJson1DescribeJobRunCommand = function (input, contex
|
|
|
191
191
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
192
192
|
return __generator(this, function (_c) {
|
|
193
193
|
switch (_c.label) {
|
|
194
|
-
case 0: return [4
|
|
194
|
+
case 0: return [4, context.endpoint()];
|
|
195
195
|
case 1:
|
|
196
196
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
197
197
|
headers = {};
|
|
@@ -217,7 +217,7 @@ export var serializeAws_restJson1DescribeJobRunCommand = function (input, contex
|
|
|
217
217
|
else {
|
|
218
218
|
throw new Error("No value provided for input HTTP label: virtualClusterId.");
|
|
219
219
|
}
|
|
220
|
-
return [2
|
|
220
|
+
return [2, new __HttpRequest({
|
|
221
221
|
protocol: protocol,
|
|
222
222
|
hostname: hostname,
|
|
223
223
|
port: port,
|
|
@@ -233,7 +233,7 @@ export var serializeAws_restJson1DescribeManagedEndpointCommand = function (inpu
|
|
|
233
233
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
234
234
|
return __generator(this, function (_c) {
|
|
235
235
|
switch (_c.label) {
|
|
236
|
-
case 0: return [4
|
|
236
|
+
case 0: return [4, context.endpoint()];
|
|
237
237
|
case 1:
|
|
238
238
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
239
239
|
headers = {};
|
|
@@ -259,7 +259,7 @@ export var serializeAws_restJson1DescribeManagedEndpointCommand = function (inpu
|
|
|
259
259
|
else {
|
|
260
260
|
throw new Error("No value provided for input HTTP label: virtualClusterId.");
|
|
261
261
|
}
|
|
262
|
-
return [2
|
|
262
|
+
return [2, new __HttpRequest({
|
|
263
263
|
protocol: protocol,
|
|
264
264
|
hostname: hostname,
|
|
265
265
|
port: port,
|
|
@@ -275,7 +275,7 @@ export var serializeAws_restJson1DescribeVirtualClusterCommand = function (input
|
|
|
275
275
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
276
276
|
return __generator(this, function (_c) {
|
|
277
277
|
switch (_c.label) {
|
|
278
|
-
case 0: return [4
|
|
278
|
+
case 0: return [4, context.endpoint()];
|
|
279
279
|
case 1:
|
|
280
280
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
281
281
|
headers = {};
|
|
@@ -290,7 +290,7 @@ export var serializeAws_restJson1DescribeVirtualClusterCommand = function (input
|
|
|
290
290
|
else {
|
|
291
291
|
throw new Error("No value provided for input HTTP label: id.");
|
|
292
292
|
}
|
|
293
|
-
return [2
|
|
293
|
+
return [2, new __HttpRequest({
|
|
294
294
|
protocol: protocol,
|
|
295
295
|
hostname: hostname,
|
|
296
296
|
port: port,
|
|
@@ -306,7 +306,7 @@ export var serializeAws_restJson1ListJobRunsCommand = function (input, context)
|
|
|
306
306
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
307
307
|
return __generator(this, function (_c) {
|
|
308
308
|
switch (_c.label) {
|
|
309
|
-
case 0: return [4
|
|
309
|
+
case 0: return [4, context.endpoint()];
|
|
310
310
|
case 1:
|
|
311
311
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
312
312
|
headers = {};
|
|
@@ -327,7 +327,7 @@ export var serializeAws_restJson1ListJobRunsCommand = function (input, context)
|
|
|
327
327
|
})), (input.createdAfter !== undefined && {
|
|
328
328
|
createdAfter: (input.createdAfter.toISOString().split(".")[0] + "Z").toString(),
|
|
329
329
|
})), (input.name !== undefined && { name: input.name })), (input.states !== undefined && { states: (input.states || []).map(function (_entry) { return _entry; }) })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
330
|
-
return [2
|
|
330
|
+
return [2, new __HttpRequest({
|
|
331
331
|
protocol: protocol,
|
|
332
332
|
hostname: hostname,
|
|
333
333
|
port: port,
|
|
@@ -344,7 +344,7 @@ export var serializeAws_restJson1ListManagedEndpointsCommand = function (input,
|
|
|
344
344
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
345
345
|
return __generator(this, function (_c) {
|
|
346
346
|
switch (_c.label) {
|
|
347
|
-
case 0: return [4
|
|
347
|
+
case 0: return [4, context.endpoint()];
|
|
348
348
|
case 1:
|
|
349
349
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
350
350
|
headers = {};
|
|
@@ -365,7 +365,7 @@ export var serializeAws_restJson1ListManagedEndpointsCommand = function (input,
|
|
|
365
365
|
})), (input.createdAfter !== undefined && {
|
|
366
366
|
createdAfter: (input.createdAfter.toISOString().split(".")[0] + "Z").toString(),
|
|
367
367
|
})), (input.types !== undefined && { types: (input.types || []).map(function (_entry) { return _entry; }) })), (input.states !== undefined && { states: (input.states || []).map(function (_entry) { return _entry; }) })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
368
|
-
return [2
|
|
368
|
+
return [2, new __HttpRequest({
|
|
369
369
|
protocol: protocol,
|
|
370
370
|
hostname: hostname,
|
|
371
371
|
port: port,
|
|
@@ -382,7 +382,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
382
382
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
383
383
|
return __generator(this, function (_c) {
|
|
384
384
|
switch (_c.label) {
|
|
385
|
-
case 0: return [4
|
|
385
|
+
case 0: return [4, context.endpoint()];
|
|
386
386
|
case 1:
|
|
387
387
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
388
388
|
headers = {};
|
|
@@ -397,7 +397,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
397
397
|
else {
|
|
398
398
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
399
399
|
}
|
|
400
|
-
return [2
|
|
400
|
+
return [2, new __HttpRequest({
|
|
401
401
|
protocol: protocol,
|
|
402
402
|
hostname: hostname,
|
|
403
403
|
port: port,
|
|
@@ -413,7 +413,7 @@ export var serializeAws_restJson1ListVirtualClustersCommand = function (input, c
|
|
|
413
413
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
414
414
|
return __generator(this, function (_c) {
|
|
415
415
|
switch (_c.label) {
|
|
416
|
-
case 0: return [4
|
|
416
|
+
case 0: return [4, context.endpoint()];
|
|
417
417
|
case 1:
|
|
418
418
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
419
419
|
headers = {};
|
|
@@ -423,7 +423,7 @@ export var serializeAws_restJson1ListVirtualClustersCommand = function (input, c
|
|
|
423
423
|
})), (input.createdBefore !== undefined && {
|
|
424
424
|
createdBefore: (input.createdBefore.toISOString().split(".")[0] + "Z").toString(),
|
|
425
425
|
})), (input.states !== undefined && { states: (input.states || []).map(function (_entry) { return _entry; }) })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
426
|
-
return [2
|
|
426
|
+
return [2, new __HttpRequest({
|
|
427
427
|
protocol: protocol,
|
|
428
428
|
hostname: hostname,
|
|
429
429
|
port: port,
|
|
@@ -441,7 +441,7 @@ export var serializeAws_restJson1StartJobRunCommand = function (input, context)
|
|
|
441
441
|
var _c;
|
|
442
442
|
return __generator(this, function (_d) {
|
|
443
443
|
switch (_d.label) {
|
|
444
|
-
case 0: return [4
|
|
444
|
+
case 0: return [4, context.endpoint()];
|
|
445
445
|
case 1:
|
|
446
446
|
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
447
447
|
headers = {
|
|
@@ -465,7 +465,7 @@ export var serializeAws_restJson1StartJobRunCommand = function (input, context)
|
|
|
465
465
|
})), (input.executionRoleArn !== undefined &&
|
|
466
466
|
input.executionRoleArn !== null && { executionRoleArn: input.executionRoleArn })), (input.jobDriver !== undefined &&
|
|
467
467
|
input.jobDriver !== null && { jobDriver: serializeAws_restJson1JobDriver(input.jobDriver, context) })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.releaseLabel !== undefined && input.releaseLabel !== null && { releaseLabel: input.releaseLabel })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
468
|
-
return [2
|
|
468
|
+
return [2, new __HttpRequest({
|
|
469
469
|
protocol: protocol,
|
|
470
470
|
hostname: hostname,
|
|
471
471
|
port: port,
|
|
@@ -481,7 +481,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
481
481
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
482
482
|
return __generator(this, function (_c) {
|
|
483
483
|
switch (_c.label) {
|
|
484
|
-
case 0: return [4
|
|
484
|
+
case 0: return [4, context.endpoint()];
|
|
485
485
|
case 1:
|
|
486
486
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
487
487
|
headers = {
|
|
@@ -499,7 +499,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
499
499
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
500
500
|
}
|
|
501
501
|
body = JSON.stringify(__assign({}, (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
502
|
-
return [2
|
|
502
|
+
return [2, new __HttpRequest({
|
|
503
503
|
protocol: protocol,
|
|
504
504
|
hostname: hostname,
|
|
505
505
|
port: port,
|
|
@@ -515,7 +515,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
515
515
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
516
516
|
return __generator(this, function (_c) {
|
|
517
517
|
switch (_c.label) {
|
|
518
|
-
case 0: return [4
|
|
518
|
+
case 0: return [4, context.endpoint()];
|
|
519
519
|
case 1:
|
|
520
520
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
521
521
|
headers = {};
|
|
@@ -531,7 +531,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
531
531
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
532
532
|
}
|
|
533
533
|
query = __assign({}, (input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
534
|
-
return [2
|
|
534
|
+
return [2, new __HttpRequest({
|
|
535
535
|
protocol: protocol,
|
|
536
536
|
hostname: hostname,
|
|
537
537
|
port: port,
|
|
@@ -550,7 +550,7 @@ export var deserializeAws_restJson1CancelJobRunCommand = function (output, conte
|
|
|
550
550
|
switch (_c.label) {
|
|
551
551
|
case 0:
|
|
552
552
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
553
|
-
return [2
|
|
553
|
+
return [2, deserializeAws_restJson1CancelJobRunCommandError(output, context)];
|
|
554
554
|
}
|
|
555
555
|
contents = {
|
|
556
556
|
$metadata: deserializeMetadata(output),
|
|
@@ -559,7 +559,7 @@ export var deserializeAws_restJson1CancelJobRunCommand = function (output, conte
|
|
|
559
559
|
};
|
|
560
560
|
_a = __expectNonNull;
|
|
561
561
|
_b = __expectObject;
|
|
562
|
-
return [4
|
|
562
|
+
return [4, parseBody(output.body, context)];
|
|
563
563
|
case 1:
|
|
564
564
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
565
565
|
if (data.id !== undefined && data.id !== null) {
|
|
@@ -568,7 +568,7 @@ export var deserializeAws_restJson1CancelJobRunCommand = function (output, conte
|
|
|
568
568
|
if (data.virtualClusterId !== undefined && data.virtualClusterId !== null) {
|
|
569
569
|
contents.virtualClusterId = __expectString(data.virtualClusterId);
|
|
570
570
|
}
|
|
571
|
-
return [2
|
|
571
|
+
return [2, Promise.resolve(contents)];
|
|
572
572
|
}
|
|
573
573
|
});
|
|
574
574
|
}); };
|
|
@@ -580,31 +580,31 @@ var deserializeAws_restJson1CancelJobRunCommandError = function (output, context
|
|
|
580
580
|
case 0:
|
|
581
581
|
_a = [__assign({}, output)];
|
|
582
582
|
_e = {};
|
|
583
|
-
return [4
|
|
583
|
+
return [4, parseBody(output.body, context)];
|
|
584
584
|
case 1:
|
|
585
585
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
586
586
|
errorCode = "UnknownError";
|
|
587
587
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
588
588
|
_b = errorCode;
|
|
589
589
|
switch (_b) {
|
|
590
|
-
case "InternalServerException": return [3
|
|
591
|
-
case "com.amazonaws.emrcontainers#InternalServerException": return [3
|
|
592
|
-
case "ValidationException": return [3
|
|
593
|
-
case "com.amazonaws.emrcontainers#ValidationException": return [3
|
|
590
|
+
case "InternalServerException": return [3, 2];
|
|
591
|
+
case "com.amazonaws.emrcontainers#InternalServerException": return [3, 2];
|
|
592
|
+
case "ValidationException": return [3, 4];
|
|
593
|
+
case "com.amazonaws.emrcontainers#ValidationException": return [3, 4];
|
|
594
594
|
}
|
|
595
|
-
return [3
|
|
595
|
+
return [3, 6];
|
|
596
596
|
case 2:
|
|
597
597
|
_c = [{}];
|
|
598
|
-
return [4
|
|
598
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
599
599
|
case 3:
|
|
600
600
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
601
|
-
return [3
|
|
601
|
+
return [3, 7];
|
|
602
602
|
case 4:
|
|
603
603
|
_d = [{}];
|
|
604
|
-
return [4
|
|
604
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
605
605
|
case 5:
|
|
606
606
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
607
|
-
return [3
|
|
607
|
+
return [3, 7];
|
|
608
608
|
case 6:
|
|
609
609
|
parsedBody = parsedOutput.body;
|
|
610
610
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -614,7 +614,7 @@ var deserializeAws_restJson1CancelJobRunCommandError = function (output, context
|
|
|
614
614
|
message = response.message || response.Message || errorCode;
|
|
615
615
|
response.message = message;
|
|
616
616
|
delete response.Message;
|
|
617
|
-
return [2
|
|
617
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
618
618
|
}
|
|
619
619
|
});
|
|
620
620
|
}); };
|
|
@@ -624,7 +624,7 @@ export var deserializeAws_restJson1CreateManagedEndpointCommand = function (outp
|
|
|
624
624
|
switch (_c.label) {
|
|
625
625
|
case 0:
|
|
626
626
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
627
|
-
return [2
|
|
627
|
+
return [2, deserializeAws_restJson1CreateManagedEndpointCommandError(output, context)];
|
|
628
628
|
}
|
|
629
629
|
contents = {
|
|
630
630
|
$metadata: deserializeMetadata(output),
|
|
@@ -635,7 +635,7 @@ export var deserializeAws_restJson1CreateManagedEndpointCommand = function (outp
|
|
|
635
635
|
};
|
|
636
636
|
_a = __expectNonNull;
|
|
637
637
|
_b = __expectObject;
|
|
638
|
-
return [4
|
|
638
|
+
return [4, parseBody(output.body, context)];
|
|
639
639
|
case 1:
|
|
640
640
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
641
641
|
if (data.arn !== undefined && data.arn !== null) {
|
|
@@ -650,7 +650,7 @@ export var deserializeAws_restJson1CreateManagedEndpointCommand = function (outp
|
|
|
650
650
|
if (data.virtualClusterId !== undefined && data.virtualClusterId !== null) {
|
|
651
651
|
contents.virtualClusterId = __expectString(data.virtualClusterId);
|
|
652
652
|
}
|
|
653
|
-
return [2
|
|
653
|
+
return [2, Promise.resolve(contents)];
|
|
654
654
|
}
|
|
655
655
|
});
|
|
656
656
|
}); };
|
|
@@ -662,39 +662,39 @@ var deserializeAws_restJson1CreateManagedEndpointCommandError = function (output
|
|
|
662
662
|
case 0:
|
|
663
663
|
_a = [__assign({}, output)];
|
|
664
664
|
_f = {};
|
|
665
|
-
return [4
|
|
665
|
+
return [4, parseBody(output.body, context)];
|
|
666
666
|
case 1:
|
|
667
667
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
668
668
|
errorCode = "UnknownError";
|
|
669
669
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
670
670
|
_b = errorCode;
|
|
671
671
|
switch (_b) {
|
|
672
|
-
case "InternalServerException": return [3
|
|
673
|
-
case "com.amazonaws.emrcontainers#InternalServerException": return [3
|
|
674
|
-
case "ResourceNotFoundException": return [3
|
|
675
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException": return [3
|
|
676
|
-
case "ValidationException": return [3
|
|
677
|
-
case "com.amazonaws.emrcontainers#ValidationException": return [3
|
|
678
|
-
}
|
|
679
|
-
return [3
|
|
672
|
+
case "InternalServerException": return [3, 2];
|
|
673
|
+
case "com.amazonaws.emrcontainers#InternalServerException": return [3, 2];
|
|
674
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
675
|
+
case "com.amazonaws.emrcontainers#ResourceNotFoundException": return [3, 4];
|
|
676
|
+
case "ValidationException": return [3, 6];
|
|
677
|
+
case "com.amazonaws.emrcontainers#ValidationException": return [3, 6];
|
|
678
|
+
}
|
|
679
|
+
return [3, 8];
|
|
680
680
|
case 2:
|
|
681
681
|
_c = [{}];
|
|
682
|
-
return [4
|
|
682
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
683
683
|
case 3:
|
|
684
684
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
685
|
-
return [3
|
|
685
|
+
return [3, 9];
|
|
686
686
|
case 4:
|
|
687
687
|
_d = [{}];
|
|
688
|
-
return [4
|
|
688
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
689
689
|
case 5:
|
|
690
690
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
691
|
-
return [3
|
|
691
|
+
return [3, 9];
|
|
692
692
|
case 6:
|
|
693
693
|
_e = [{}];
|
|
694
|
-
return [4
|
|
694
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
695
695
|
case 7:
|
|
696
696
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
697
|
-
return [3
|
|
697
|
+
return [3, 9];
|
|
698
698
|
case 8:
|
|
699
699
|
parsedBody = parsedOutput.body;
|
|
700
700
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -704,7 +704,7 @@ var deserializeAws_restJson1CreateManagedEndpointCommandError = function (output
|
|
|
704
704
|
message = response.message || response.Message || errorCode;
|
|
705
705
|
response.message = message;
|
|
706
706
|
delete response.Message;
|
|
707
|
-
return [2
|
|
707
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
708
708
|
}
|
|
709
709
|
});
|
|
710
710
|
}); };
|
|
@@ -714,7 +714,7 @@ export var deserializeAws_restJson1CreateVirtualClusterCommand = function (outpu
|
|
|
714
714
|
switch (_c.label) {
|
|
715
715
|
case 0:
|
|
716
716
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
717
|
-
return [2
|
|
717
|
+
return [2, deserializeAws_restJson1CreateVirtualClusterCommandError(output, context)];
|
|
718
718
|
}
|
|
719
719
|
contents = {
|
|
720
720
|
$metadata: deserializeMetadata(output),
|
|
@@ -724,7 +724,7 @@ export var deserializeAws_restJson1CreateVirtualClusterCommand = function (outpu
|
|
|
724
724
|
};
|
|
725
725
|
_a = __expectNonNull;
|
|
726
726
|
_b = __expectObject;
|
|
727
|
-
return [4
|
|
727
|
+
return [4, parseBody(output.body, context)];
|
|
728
728
|
case 1:
|
|
729
729
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
730
730
|
if (data.arn !== undefined && data.arn !== null) {
|
|
@@ -736,7 +736,7 @@ export var deserializeAws_restJson1CreateVirtualClusterCommand = function (outpu
|
|
|
736
736
|
if (data.name !== undefined && data.name !== null) {
|
|
737
737
|
contents.name = __expectString(data.name);
|
|
738
738
|
}
|
|
739
|
-
return [2
|
|
739
|
+
return [2, Promise.resolve(contents)];
|
|
740
740
|
}
|
|
741
741
|
});
|
|
742
742
|
}); };
|
|
@@ -748,39 +748,39 @@ var deserializeAws_restJson1CreateVirtualClusterCommandError = function (output,
|
|
|
748
748
|
case 0:
|
|
749
749
|
_a = [__assign({}, output)];
|
|
750
750
|
_f = {};
|
|
751
|
-
return [4
|
|
751
|
+
return [4, parseBody(output.body, context)];
|
|
752
752
|
case 1:
|
|
753
753
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
754
754
|
errorCode = "UnknownError";
|
|
755
755
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
756
756
|
_b = errorCode;
|
|
757
757
|
switch (_b) {
|
|
758
|
-
case "InternalServerException": return [3
|
|
759
|
-
case "com.amazonaws.emrcontainers#InternalServerException": return [3
|
|
760
|
-
case "ResourceNotFoundException": return [3
|
|
761
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException": return [3
|
|
762
|
-
case "ValidationException": return [3
|
|
763
|
-
case "com.amazonaws.emrcontainers#ValidationException": return [3
|
|
764
|
-
}
|
|
765
|
-
return [3
|
|
758
|
+
case "InternalServerException": return [3, 2];
|
|
759
|
+
case "com.amazonaws.emrcontainers#InternalServerException": return [3, 2];
|
|
760
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
761
|
+
case "com.amazonaws.emrcontainers#ResourceNotFoundException": return [3, 4];
|
|
762
|
+
case "ValidationException": return [3, 6];
|
|
763
|
+
case "com.amazonaws.emrcontainers#ValidationException": return [3, 6];
|
|
764
|
+
}
|
|
765
|
+
return [3, 8];
|
|
766
766
|
case 2:
|
|
767
767
|
_c = [{}];
|
|
768
|
-
return [4
|
|
768
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
769
769
|
case 3:
|
|
770
770
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
771
|
-
return [3
|
|
771
|
+
return [3, 9];
|
|
772
772
|
case 4:
|
|
773
773
|
_d = [{}];
|
|
774
|
-
return [4
|
|
774
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
775
775
|
case 5:
|
|
776
776
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
777
|
-
return [3
|
|
777
|
+
return [3, 9];
|
|
778
778
|
case 6:
|
|
779
779
|
_e = [{}];
|
|
780
|
-
return [4
|
|
780
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
781
781
|
case 7:
|
|
782
782
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
783
|
-
return [3
|
|
783
|
+
return [3, 9];
|
|
784
784
|
case 8:
|
|
785
785
|
parsedBody = parsedOutput.body;
|
|
786
786
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -790,7 +790,7 @@ var deserializeAws_restJson1CreateVirtualClusterCommandError = function (output,
|
|
|
790
790
|
message = response.message || response.Message || errorCode;
|
|
791
791
|
response.message = message;
|
|
792
792
|
delete response.Message;
|
|
793
|
-
return [2
|
|
793
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
794
794
|
}
|
|
795
795
|
});
|
|
796
796
|
}); };
|
|
@@ -800,7 +800,7 @@ export var deserializeAws_restJson1DeleteManagedEndpointCommand = function (outp
|
|
|
800
800
|
switch (_c.label) {
|
|
801
801
|
case 0:
|
|
802
802
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
803
|
-
return [2
|
|
803
|
+
return [2, deserializeAws_restJson1DeleteManagedEndpointCommandError(output, context)];
|
|
804
804
|
}
|
|
805
805
|
contents = {
|
|
806
806
|
$metadata: deserializeMetadata(output),
|
|
@@ -809,7 +809,7 @@ export var deserializeAws_restJson1DeleteManagedEndpointCommand = function (outp
|
|
|
809
809
|
};
|
|
810
810
|
_a = __expectNonNull;
|
|
811
811
|
_b = __expectObject;
|
|
812
|
-
return [4
|
|
812
|
+
return [4, parseBody(output.body, context)];
|
|
813
813
|
case 1:
|
|
814
814
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
815
815
|
if (data.id !== undefined && data.id !== null) {
|
|
@@ -818,7 +818,7 @@ export var deserializeAws_restJson1DeleteManagedEndpointCommand = function (outp
|
|
|
818
818
|
if (data.virtualClusterId !== undefined && data.virtualClusterId !== null) {
|
|
819
819
|
contents.virtualClusterId = __expectString(data.virtualClusterId);
|
|
820
820
|
}
|
|
821
|
-
return [2
|
|
821
|
+
return [2, Promise.resolve(contents)];
|
|
822
822
|
}
|
|
823
823
|
});
|
|
824
824
|
}); };
|
|
@@ -830,31 +830,31 @@ var deserializeAws_restJson1DeleteManagedEndpointCommandError = function (output
|
|
|
830
830
|
case 0:
|
|
831
831
|
_a = [__assign({}, output)];
|
|
832
832
|
_e = {};
|
|
833
|
-
return [4
|
|
833
|
+
return [4, parseBody(output.body, context)];
|
|
834
834
|
case 1:
|
|
835
835
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
836
836
|
errorCode = "UnknownError";
|
|
837
837
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
838
838
|
_b = errorCode;
|
|
839
839
|
switch (_b) {
|
|
840
|
-
case "InternalServerException": return [3
|
|
841
|
-
case "com.amazonaws.emrcontainers#InternalServerException": return [3
|
|
842
|
-
case "ValidationException": return [3
|
|
843
|
-
case "com.amazonaws.emrcontainers#ValidationException": return [3
|
|
840
|
+
case "InternalServerException": return [3, 2];
|
|
841
|
+
case "com.amazonaws.emrcontainers#InternalServerException": return [3, 2];
|
|
842
|
+
case "ValidationException": return [3, 4];
|
|
843
|
+
case "com.amazonaws.emrcontainers#ValidationException": return [3, 4];
|
|
844
844
|
}
|
|
845
|
-
return [3
|
|
845
|
+
return [3, 6];
|
|
846
846
|
case 2:
|
|
847
847
|
_c = [{}];
|
|
848
|
-
return [4
|
|
848
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
849
849
|
case 3:
|
|
850
850
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
851
|
-
return [3
|
|
851
|
+
return [3, 7];
|
|
852
852
|
case 4:
|
|
853
853
|
_d = [{}];
|
|
854
|
-
return [4
|
|
854
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
855
855
|
case 5:
|
|
856
856
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
857
|
-
return [3
|
|
857
|
+
return [3, 7];
|
|
858
858
|
case 6:
|
|
859
859
|
parsedBody = parsedOutput.body;
|
|
860
860
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -864,7 +864,7 @@ var deserializeAws_restJson1DeleteManagedEndpointCommandError = function (output
|
|
|
864
864
|
message = response.message || response.Message || errorCode;
|
|
865
865
|
response.message = message;
|
|
866
866
|
delete response.Message;
|
|
867
|
-
return [2
|
|
867
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
868
868
|
}
|
|
869
869
|
});
|
|
870
870
|
}); };
|
|
@@ -874,7 +874,7 @@ export var deserializeAws_restJson1DeleteVirtualClusterCommand = function (outpu
|
|
|
874
874
|
switch (_c.label) {
|
|
875
875
|
case 0:
|
|
876
876
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
877
|
-
return [2
|
|
877
|
+
return [2, deserializeAws_restJson1DeleteVirtualClusterCommandError(output, context)];
|
|
878
878
|
}
|
|
879
879
|
contents = {
|
|
880
880
|
$metadata: deserializeMetadata(output),
|
|
@@ -882,13 +882,13 @@ export var deserializeAws_restJson1DeleteVirtualClusterCommand = function (outpu
|
|
|
882
882
|
};
|
|
883
883
|
_a = __expectNonNull;
|
|
884
884
|
_b = __expectObject;
|
|
885
|
-
return [4
|
|
885
|
+
return [4, parseBody(output.body, context)];
|
|
886
886
|
case 1:
|
|
887
887
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
888
888
|
if (data.id !== undefined && data.id !== null) {
|
|
889
889
|
contents.id = __expectString(data.id);
|
|
890
890
|
}
|
|
891
|
-
return [2
|
|
891
|
+
return [2, Promise.resolve(contents)];
|
|
892
892
|
}
|
|
893
893
|
});
|
|
894
894
|
}); };
|
|
@@ -900,31 +900,31 @@ var deserializeAws_restJson1DeleteVirtualClusterCommandError = function (output,
|
|
|
900
900
|
case 0:
|
|
901
901
|
_a = [__assign({}, output)];
|
|
902
902
|
_e = {};
|
|
903
|
-
return [4
|
|
903
|
+
return [4, parseBody(output.body, context)];
|
|
904
904
|
case 1:
|
|
905
905
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
906
906
|
errorCode = "UnknownError";
|
|
907
907
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
908
908
|
_b = errorCode;
|
|
909
909
|
switch (_b) {
|
|
910
|
-
case "InternalServerException": return [3
|
|
911
|
-
case "com.amazonaws.emrcontainers#InternalServerException": return [3
|
|
912
|
-
case "ValidationException": return [3
|
|
913
|
-
case "com.amazonaws.emrcontainers#ValidationException": return [3
|
|
910
|
+
case "InternalServerException": return [3, 2];
|
|
911
|
+
case "com.amazonaws.emrcontainers#InternalServerException": return [3, 2];
|
|
912
|
+
case "ValidationException": return [3, 4];
|
|
913
|
+
case "com.amazonaws.emrcontainers#ValidationException": return [3, 4];
|
|
914
914
|
}
|
|
915
|
-
return [3
|
|
915
|
+
return [3, 6];
|
|
916
916
|
case 2:
|
|
917
917
|
_c = [{}];
|
|
918
|
-
return [4
|
|
918
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
919
919
|
case 3:
|
|
920
920
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
921
|
-
return [3
|
|
921
|
+
return [3, 7];
|
|
922
922
|
case 4:
|
|
923
923
|
_d = [{}];
|
|
924
|
-
return [4
|
|
924
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
925
925
|
case 5:
|
|
926
926
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
927
|
-
return [3
|
|
927
|
+
return [3, 7];
|
|
928
928
|
case 6:
|
|
929
929
|
parsedBody = parsedOutput.body;
|
|
930
930
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -934,7 +934,7 @@ var deserializeAws_restJson1DeleteVirtualClusterCommandError = function (output,
|
|
|
934
934
|
message = response.message || response.Message || errorCode;
|
|
935
935
|
response.message = message;
|
|
936
936
|
delete response.Message;
|
|
937
|
-
return [2
|
|
937
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
938
938
|
}
|
|
939
939
|
});
|
|
940
940
|
}); };
|
|
@@ -944,7 +944,7 @@ export var deserializeAws_restJson1DescribeJobRunCommand = function (output, con
|
|
|
944
944
|
switch (_c.label) {
|
|
945
945
|
case 0:
|
|
946
946
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
947
|
-
return [2
|
|
947
|
+
return [2, deserializeAws_restJson1DescribeJobRunCommandError(output, context)];
|
|
948
948
|
}
|
|
949
949
|
contents = {
|
|
950
950
|
$metadata: deserializeMetadata(output),
|
|
@@ -952,13 +952,13 @@ export var deserializeAws_restJson1DescribeJobRunCommand = function (output, con
|
|
|
952
952
|
};
|
|
953
953
|
_a = __expectNonNull;
|
|
954
954
|
_b = __expectObject;
|
|
955
|
-
return [4
|
|
955
|
+
return [4, parseBody(output.body, context)];
|
|
956
956
|
case 1:
|
|
957
957
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
958
958
|
if (data.jobRun !== undefined && data.jobRun !== null) {
|
|
959
959
|
contents.jobRun = deserializeAws_restJson1JobRun(data.jobRun, context);
|
|
960
960
|
}
|
|
961
|
-
return [2
|
|
961
|
+
return [2, Promise.resolve(contents)];
|
|
962
962
|
}
|
|
963
963
|
});
|
|
964
964
|
}); };
|
|
@@ -970,39 +970,39 @@ var deserializeAws_restJson1DescribeJobRunCommandError = function (output, conte
|
|
|
970
970
|
case 0:
|
|
971
971
|
_a = [__assign({}, output)];
|
|
972
972
|
_f = {};
|
|
973
|
-
return [4
|
|
973
|
+
return [4, parseBody(output.body, context)];
|
|
974
974
|
case 1:
|
|
975
975
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
976
976
|
errorCode = "UnknownError";
|
|
977
977
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
978
978
|
_b = errorCode;
|
|
979
979
|
switch (_b) {
|
|
980
|
-
case "InternalServerException": return [3
|
|
981
|
-
case "com.amazonaws.emrcontainers#InternalServerException": return [3
|
|
982
|
-
case "ResourceNotFoundException": return [3
|
|
983
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException": return [3
|
|
984
|
-
case "ValidationException": return [3
|
|
985
|
-
case "com.amazonaws.emrcontainers#ValidationException": return [3
|
|
986
|
-
}
|
|
987
|
-
return [3
|
|
980
|
+
case "InternalServerException": return [3, 2];
|
|
981
|
+
case "com.amazonaws.emrcontainers#InternalServerException": return [3, 2];
|
|
982
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
983
|
+
case "com.amazonaws.emrcontainers#ResourceNotFoundException": return [3, 4];
|
|
984
|
+
case "ValidationException": return [3, 6];
|
|
985
|
+
case "com.amazonaws.emrcontainers#ValidationException": return [3, 6];
|
|
986
|
+
}
|
|
987
|
+
return [3, 8];
|
|
988
988
|
case 2:
|
|
989
989
|
_c = [{}];
|
|
990
|
-
return [4
|
|
990
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
991
991
|
case 3:
|
|
992
992
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
993
|
-
return [3
|
|
993
|
+
return [3, 9];
|
|
994
994
|
case 4:
|
|
995
995
|
_d = [{}];
|
|
996
|
-
return [4
|
|
996
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
997
997
|
case 5:
|
|
998
998
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
999
|
-
return [3
|
|
999
|
+
return [3, 9];
|
|
1000
1000
|
case 6:
|
|
1001
1001
|
_e = [{}];
|
|
1002
|
-
return [4
|
|
1002
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1003
1003
|
case 7:
|
|
1004
1004
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1005
|
-
return [3
|
|
1005
|
+
return [3, 9];
|
|
1006
1006
|
case 8:
|
|
1007
1007
|
parsedBody = parsedOutput.body;
|
|
1008
1008
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1012,7 +1012,7 @@ var deserializeAws_restJson1DescribeJobRunCommandError = function (output, conte
|
|
|
1012
1012
|
message = response.message || response.Message || errorCode;
|
|
1013
1013
|
response.message = message;
|
|
1014
1014
|
delete response.Message;
|
|
1015
|
-
return [2
|
|
1015
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1016
1016
|
}
|
|
1017
1017
|
});
|
|
1018
1018
|
}); };
|
|
@@ -1022,7 +1022,7 @@ export var deserializeAws_restJson1DescribeManagedEndpointCommand = function (ou
|
|
|
1022
1022
|
switch (_c.label) {
|
|
1023
1023
|
case 0:
|
|
1024
1024
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1025
|
-
return [2
|
|
1025
|
+
return [2, deserializeAws_restJson1DescribeManagedEndpointCommandError(output, context)];
|
|
1026
1026
|
}
|
|
1027
1027
|
contents = {
|
|
1028
1028
|
$metadata: deserializeMetadata(output),
|
|
@@ -1030,13 +1030,13 @@ export var deserializeAws_restJson1DescribeManagedEndpointCommand = function (ou
|
|
|
1030
1030
|
};
|
|
1031
1031
|
_a = __expectNonNull;
|
|
1032
1032
|
_b = __expectObject;
|
|
1033
|
-
return [4
|
|
1033
|
+
return [4, parseBody(output.body, context)];
|
|
1034
1034
|
case 1:
|
|
1035
1035
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1036
1036
|
if (data.endpoint !== undefined && data.endpoint !== null) {
|
|
1037
1037
|
contents.endpoint = deserializeAws_restJson1Endpoint(data.endpoint, context);
|
|
1038
1038
|
}
|
|
1039
|
-
return [2
|
|
1039
|
+
return [2, Promise.resolve(contents)];
|
|
1040
1040
|
}
|
|
1041
1041
|
});
|
|
1042
1042
|
}); };
|
|
@@ -1048,39 +1048,39 @@ var deserializeAws_restJson1DescribeManagedEndpointCommandError = function (outp
|
|
|
1048
1048
|
case 0:
|
|
1049
1049
|
_a = [__assign({}, output)];
|
|
1050
1050
|
_f = {};
|
|
1051
|
-
return [4
|
|
1051
|
+
return [4, parseBody(output.body, context)];
|
|
1052
1052
|
case 1:
|
|
1053
1053
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1054
1054
|
errorCode = "UnknownError";
|
|
1055
1055
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1056
1056
|
_b = errorCode;
|
|
1057
1057
|
switch (_b) {
|
|
1058
|
-
case "InternalServerException": return [3
|
|
1059
|
-
case "com.amazonaws.emrcontainers#InternalServerException": return [3
|
|
1060
|
-
case "ResourceNotFoundException": return [3
|
|
1061
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException": return [3
|
|
1062
|
-
case "ValidationException": return [3
|
|
1063
|
-
case "com.amazonaws.emrcontainers#ValidationException": return [3
|
|
1064
|
-
}
|
|
1065
|
-
return [3
|
|
1058
|
+
case "InternalServerException": return [3, 2];
|
|
1059
|
+
case "com.amazonaws.emrcontainers#InternalServerException": return [3, 2];
|
|
1060
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1061
|
+
case "com.amazonaws.emrcontainers#ResourceNotFoundException": return [3, 4];
|
|
1062
|
+
case "ValidationException": return [3, 6];
|
|
1063
|
+
case "com.amazonaws.emrcontainers#ValidationException": return [3, 6];
|
|
1064
|
+
}
|
|
1065
|
+
return [3, 8];
|
|
1066
1066
|
case 2:
|
|
1067
1067
|
_c = [{}];
|
|
1068
|
-
return [4
|
|
1068
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1069
1069
|
case 3:
|
|
1070
1070
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1071
|
-
return [3
|
|
1071
|
+
return [3, 9];
|
|
1072
1072
|
case 4:
|
|
1073
1073
|
_d = [{}];
|
|
1074
|
-
return [4
|
|
1074
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1075
1075
|
case 5:
|
|
1076
1076
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1077
|
-
return [3
|
|
1077
|
+
return [3, 9];
|
|
1078
1078
|
case 6:
|
|
1079
1079
|
_e = [{}];
|
|
1080
|
-
return [4
|
|
1080
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1081
1081
|
case 7:
|
|
1082
1082
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1083
|
-
return [3
|
|
1083
|
+
return [3, 9];
|
|
1084
1084
|
case 8:
|
|
1085
1085
|
parsedBody = parsedOutput.body;
|
|
1086
1086
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1090,7 +1090,7 @@ var deserializeAws_restJson1DescribeManagedEndpointCommandError = function (outp
|
|
|
1090
1090
|
message = response.message || response.Message || errorCode;
|
|
1091
1091
|
response.message = message;
|
|
1092
1092
|
delete response.Message;
|
|
1093
|
-
return [2
|
|
1093
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1094
1094
|
}
|
|
1095
1095
|
});
|
|
1096
1096
|
}); };
|
|
@@ -1100,7 +1100,7 @@ export var deserializeAws_restJson1DescribeVirtualClusterCommand = function (out
|
|
|
1100
1100
|
switch (_c.label) {
|
|
1101
1101
|
case 0:
|
|
1102
1102
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1103
|
-
return [2
|
|
1103
|
+
return [2, deserializeAws_restJson1DescribeVirtualClusterCommandError(output, context)];
|
|
1104
1104
|
}
|
|
1105
1105
|
contents = {
|
|
1106
1106
|
$metadata: deserializeMetadata(output),
|
|
@@ -1108,13 +1108,13 @@ export var deserializeAws_restJson1DescribeVirtualClusterCommand = function (out
|
|
|
1108
1108
|
};
|
|
1109
1109
|
_a = __expectNonNull;
|
|
1110
1110
|
_b = __expectObject;
|
|
1111
|
-
return [4
|
|
1111
|
+
return [4, parseBody(output.body, context)];
|
|
1112
1112
|
case 1:
|
|
1113
1113
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1114
1114
|
if (data.virtualCluster !== undefined && data.virtualCluster !== null) {
|
|
1115
1115
|
contents.virtualCluster = deserializeAws_restJson1VirtualCluster(data.virtualCluster, context);
|
|
1116
1116
|
}
|
|
1117
|
-
return [2
|
|
1117
|
+
return [2, Promise.resolve(contents)];
|
|
1118
1118
|
}
|
|
1119
1119
|
});
|
|
1120
1120
|
}); };
|
|
@@ -1126,39 +1126,39 @@ var deserializeAws_restJson1DescribeVirtualClusterCommandError = function (outpu
|
|
|
1126
1126
|
case 0:
|
|
1127
1127
|
_a = [__assign({}, output)];
|
|
1128
1128
|
_f = {};
|
|
1129
|
-
return [4
|
|
1129
|
+
return [4, parseBody(output.body, context)];
|
|
1130
1130
|
case 1:
|
|
1131
1131
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1132
1132
|
errorCode = "UnknownError";
|
|
1133
1133
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1134
1134
|
_b = errorCode;
|
|
1135
1135
|
switch (_b) {
|
|
1136
|
-
case "InternalServerException": return [3
|
|
1137
|
-
case "com.amazonaws.emrcontainers#InternalServerException": return [3
|
|
1138
|
-
case "ResourceNotFoundException": return [3
|
|
1139
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException": return [3
|
|
1140
|
-
case "ValidationException": return [3
|
|
1141
|
-
case "com.amazonaws.emrcontainers#ValidationException": return [3
|
|
1142
|
-
}
|
|
1143
|
-
return [3
|
|
1136
|
+
case "InternalServerException": return [3, 2];
|
|
1137
|
+
case "com.amazonaws.emrcontainers#InternalServerException": return [3, 2];
|
|
1138
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1139
|
+
case "com.amazonaws.emrcontainers#ResourceNotFoundException": return [3, 4];
|
|
1140
|
+
case "ValidationException": return [3, 6];
|
|
1141
|
+
case "com.amazonaws.emrcontainers#ValidationException": return [3, 6];
|
|
1142
|
+
}
|
|
1143
|
+
return [3, 8];
|
|
1144
1144
|
case 2:
|
|
1145
1145
|
_c = [{}];
|
|
1146
|
-
return [4
|
|
1146
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1147
1147
|
case 3:
|
|
1148
1148
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1149
|
-
return [3
|
|
1149
|
+
return [3, 9];
|
|
1150
1150
|
case 4:
|
|
1151
1151
|
_d = [{}];
|
|
1152
|
-
return [4
|
|
1152
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1153
1153
|
case 5:
|
|
1154
1154
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1155
|
-
return [3
|
|
1155
|
+
return [3, 9];
|
|
1156
1156
|
case 6:
|
|
1157
1157
|
_e = [{}];
|
|
1158
|
-
return [4
|
|
1158
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1159
1159
|
case 7:
|
|
1160
1160
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1161
|
-
return [3
|
|
1161
|
+
return [3, 9];
|
|
1162
1162
|
case 8:
|
|
1163
1163
|
parsedBody = parsedOutput.body;
|
|
1164
1164
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1168,7 +1168,7 @@ var deserializeAws_restJson1DescribeVirtualClusterCommandError = function (outpu
|
|
|
1168
1168
|
message = response.message || response.Message || errorCode;
|
|
1169
1169
|
response.message = message;
|
|
1170
1170
|
delete response.Message;
|
|
1171
|
-
return [2
|
|
1171
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1172
1172
|
}
|
|
1173
1173
|
});
|
|
1174
1174
|
}); };
|
|
@@ -1178,7 +1178,7 @@ export var deserializeAws_restJson1ListJobRunsCommand = function (output, contex
|
|
|
1178
1178
|
switch (_c.label) {
|
|
1179
1179
|
case 0:
|
|
1180
1180
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1181
|
-
return [2
|
|
1181
|
+
return [2, deserializeAws_restJson1ListJobRunsCommandError(output, context)];
|
|
1182
1182
|
}
|
|
1183
1183
|
contents = {
|
|
1184
1184
|
$metadata: deserializeMetadata(output),
|
|
@@ -1187,7 +1187,7 @@ export var deserializeAws_restJson1ListJobRunsCommand = function (output, contex
|
|
|
1187
1187
|
};
|
|
1188
1188
|
_a = __expectNonNull;
|
|
1189
1189
|
_b = __expectObject;
|
|
1190
|
-
return [4
|
|
1190
|
+
return [4, parseBody(output.body, context)];
|
|
1191
1191
|
case 1:
|
|
1192
1192
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1193
1193
|
if (data.jobRuns !== undefined && data.jobRuns !== null) {
|
|
@@ -1196,7 +1196,7 @@ export var deserializeAws_restJson1ListJobRunsCommand = function (output, contex
|
|
|
1196
1196
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1197
1197
|
contents.nextToken = __expectString(data.nextToken);
|
|
1198
1198
|
}
|
|
1199
|
-
return [2
|
|
1199
|
+
return [2, Promise.resolve(contents)];
|
|
1200
1200
|
}
|
|
1201
1201
|
});
|
|
1202
1202
|
}); };
|
|
@@ -1208,31 +1208,31 @@ var deserializeAws_restJson1ListJobRunsCommandError = function (output, context)
|
|
|
1208
1208
|
case 0:
|
|
1209
1209
|
_a = [__assign({}, output)];
|
|
1210
1210
|
_e = {};
|
|
1211
|
-
return [4
|
|
1211
|
+
return [4, parseBody(output.body, context)];
|
|
1212
1212
|
case 1:
|
|
1213
1213
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1214
1214
|
errorCode = "UnknownError";
|
|
1215
1215
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1216
1216
|
_b = errorCode;
|
|
1217
1217
|
switch (_b) {
|
|
1218
|
-
case "InternalServerException": return [3
|
|
1219
|
-
case "com.amazonaws.emrcontainers#InternalServerException": return [3
|
|
1220
|
-
case "ValidationException": return [3
|
|
1221
|
-
case "com.amazonaws.emrcontainers#ValidationException": return [3
|
|
1218
|
+
case "InternalServerException": return [3, 2];
|
|
1219
|
+
case "com.amazonaws.emrcontainers#InternalServerException": return [3, 2];
|
|
1220
|
+
case "ValidationException": return [3, 4];
|
|
1221
|
+
case "com.amazonaws.emrcontainers#ValidationException": return [3, 4];
|
|
1222
1222
|
}
|
|
1223
|
-
return [3
|
|
1223
|
+
return [3, 6];
|
|
1224
1224
|
case 2:
|
|
1225
1225
|
_c = [{}];
|
|
1226
|
-
return [4
|
|
1226
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1227
1227
|
case 3:
|
|
1228
1228
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1229
|
-
return [3
|
|
1229
|
+
return [3, 7];
|
|
1230
1230
|
case 4:
|
|
1231
1231
|
_d = [{}];
|
|
1232
|
-
return [4
|
|
1232
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1233
1233
|
case 5:
|
|
1234
1234
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1235
|
-
return [3
|
|
1235
|
+
return [3, 7];
|
|
1236
1236
|
case 6:
|
|
1237
1237
|
parsedBody = parsedOutput.body;
|
|
1238
1238
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1242,7 +1242,7 @@ var deserializeAws_restJson1ListJobRunsCommandError = function (output, context)
|
|
|
1242
1242
|
message = response.message || response.Message || errorCode;
|
|
1243
1243
|
response.message = message;
|
|
1244
1244
|
delete response.Message;
|
|
1245
|
-
return [2
|
|
1245
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1246
1246
|
}
|
|
1247
1247
|
});
|
|
1248
1248
|
}); };
|
|
@@ -1252,7 +1252,7 @@ export var deserializeAws_restJson1ListManagedEndpointsCommand = function (outpu
|
|
|
1252
1252
|
switch (_c.label) {
|
|
1253
1253
|
case 0:
|
|
1254
1254
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1255
|
-
return [2
|
|
1255
|
+
return [2, deserializeAws_restJson1ListManagedEndpointsCommandError(output, context)];
|
|
1256
1256
|
}
|
|
1257
1257
|
contents = {
|
|
1258
1258
|
$metadata: deserializeMetadata(output),
|
|
@@ -1261,7 +1261,7 @@ export var deserializeAws_restJson1ListManagedEndpointsCommand = function (outpu
|
|
|
1261
1261
|
};
|
|
1262
1262
|
_a = __expectNonNull;
|
|
1263
1263
|
_b = __expectObject;
|
|
1264
|
-
return [4
|
|
1264
|
+
return [4, parseBody(output.body, context)];
|
|
1265
1265
|
case 1:
|
|
1266
1266
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1267
1267
|
if (data.endpoints !== undefined && data.endpoints !== null) {
|
|
@@ -1270,7 +1270,7 @@ export var deserializeAws_restJson1ListManagedEndpointsCommand = function (outpu
|
|
|
1270
1270
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1271
1271
|
contents.nextToken = __expectString(data.nextToken);
|
|
1272
1272
|
}
|
|
1273
|
-
return [2
|
|
1273
|
+
return [2, Promise.resolve(contents)];
|
|
1274
1274
|
}
|
|
1275
1275
|
});
|
|
1276
1276
|
}); };
|
|
@@ -1282,31 +1282,31 @@ var deserializeAws_restJson1ListManagedEndpointsCommandError = function (output,
|
|
|
1282
1282
|
case 0:
|
|
1283
1283
|
_a = [__assign({}, output)];
|
|
1284
1284
|
_e = {};
|
|
1285
|
-
return [4
|
|
1285
|
+
return [4, parseBody(output.body, context)];
|
|
1286
1286
|
case 1:
|
|
1287
1287
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1288
1288
|
errorCode = "UnknownError";
|
|
1289
1289
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1290
1290
|
_b = errorCode;
|
|
1291
1291
|
switch (_b) {
|
|
1292
|
-
case "InternalServerException": return [3
|
|
1293
|
-
case "com.amazonaws.emrcontainers#InternalServerException": return [3
|
|
1294
|
-
case "ValidationException": return [3
|
|
1295
|
-
case "com.amazonaws.emrcontainers#ValidationException": return [3
|
|
1292
|
+
case "InternalServerException": return [3, 2];
|
|
1293
|
+
case "com.amazonaws.emrcontainers#InternalServerException": return [3, 2];
|
|
1294
|
+
case "ValidationException": return [3, 4];
|
|
1295
|
+
case "com.amazonaws.emrcontainers#ValidationException": return [3, 4];
|
|
1296
1296
|
}
|
|
1297
|
-
return [3
|
|
1297
|
+
return [3, 6];
|
|
1298
1298
|
case 2:
|
|
1299
1299
|
_c = [{}];
|
|
1300
|
-
return [4
|
|
1300
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1301
1301
|
case 3:
|
|
1302
1302
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1303
|
-
return [3
|
|
1303
|
+
return [3, 7];
|
|
1304
1304
|
case 4:
|
|
1305
1305
|
_d = [{}];
|
|
1306
|
-
return [4
|
|
1306
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1307
1307
|
case 5:
|
|
1308
1308
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1309
|
-
return [3
|
|
1309
|
+
return [3, 7];
|
|
1310
1310
|
case 6:
|
|
1311
1311
|
parsedBody = parsedOutput.body;
|
|
1312
1312
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1316,7 +1316,7 @@ var deserializeAws_restJson1ListManagedEndpointsCommandError = function (output,
|
|
|
1316
1316
|
message = response.message || response.Message || errorCode;
|
|
1317
1317
|
response.message = message;
|
|
1318
1318
|
delete response.Message;
|
|
1319
|
-
return [2
|
|
1319
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1320
1320
|
}
|
|
1321
1321
|
});
|
|
1322
1322
|
}); };
|
|
@@ -1326,7 +1326,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
1326
1326
|
switch (_c.label) {
|
|
1327
1327
|
case 0:
|
|
1328
1328
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1329
|
-
return [2
|
|
1329
|
+
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
1330
1330
|
}
|
|
1331
1331
|
contents = {
|
|
1332
1332
|
$metadata: deserializeMetadata(output),
|
|
@@ -1334,13 +1334,13 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
1334
1334
|
};
|
|
1335
1335
|
_a = __expectNonNull;
|
|
1336
1336
|
_b = __expectObject;
|
|
1337
|
-
return [4
|
|
1337
|
+
return [4, parseBody(output.body, context)];
|
|
1338
1338
|
case 1:
|
|
1339
1339
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1340
1340
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1341
1341
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
1342
1342
|
}
|
|
1343
|
-
return [2
|
|
1343
|
+
return [2, Promise.resolve(contents)];
|
|
1344
1344
|
}
|
|
1345
1345
|
});
|
|
1346
1346
|
}); };
|
|
@@ -1352,39 +1352,39 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1352
1352
|
case 0:
|
|
1353
1353
|
_a = [__assign({}, output)];
|
|
1354
1354
|
_f = {};
|
|
1355
|
-
return [4
|
|
1355
|
+
return [4, parseBody(output.body, context)];
|
|
1356
1356
|
case 1:
|
|
1357
1357
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1358
1358
|
errorCode = "UnknownError";
|
|
1359
1359
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1360
1360
|
_b = errorCode;
|
|
1361
1361
|
switch (_b) {
|
|
1362
|
-
case "InternalServerException": return [3
|
|
1363
|
-
case "com.amazonaws.emrcontainers#InternalServerException": return [3
|
|
1364
|
-
case "ResourceNotFoundException": return [3
|
|
1365
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException": return [3
|
|
1366
|
-
case "ValidationException": return [3
|
|
1367
|
-
case "com.amazonaws.emrcontainers#ValidationException": return [3
|
|
1368
|
-
}
|
|
1369
|
-
return [3
|
|
1362
|
+
case "InternalServerException": return [3, 2];
|
|
1363
|
+
case "com.amazonaws.emrcontainers#InternalServerException": return [3, 2];
|
|
1364
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1365
|
+
case "com.amazonaws.emrcontainers#ResourceNotFoundException": return [3, 4];
|
|
1366
|
+
case "ValidationException": return [3, 6];
|
|
1367
|
+
case "com.amazonaws.emrcontainers#ValidationException": return [3, 6];
|
|
1368
|
+
}
|
|
1369
|
+
return [3, 8];
|
|
1370
1370
|
case 2:
|
|
1371
1371
|
_c = [{}];
|
|
1372
|
-
return [4
|
|
1372
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1373
1373
|
case 3:
|
|
1374
1374
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1375
|
-
return [3
|
|
1375
|
+
return [3, 9];
|
|
1376
1376
|
case 4:
|
|
1377
1377
|
_d = [{}];
|
|
1378
|
-
return [4
|
|
1378
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1379
1379
|
case 5:
|
|
1380
1380
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1381
|
-
return [3
|
|
1381
|
+
return [3, 9];
|
|
1382
1382
|
case 6:
|
|
1383
1383
|
_e = [{}];
|
|
1384
|
-
return [4
|
|
1384
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1385
1385
|
case 7:
|
|
1386
1386
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1387
|
-
return [3
|
|
1387
|
+
return [3, 9];
|
|
1388
1388
|
case 8:
|
|
1389
1389
|
parsedBody = parsedOutput.body;
|
|
1390
1390
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1394,7 +1394,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1394
1394
|
message = response.message || response.Message || errorCode;
|
|
1395
1395
|
response.message = message;
|
|
1396
1396
|
delete response.Message;
|
|
1397
|
-
return [2
|
|
1397
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1398
1398
|
}
|
|
1399
1399
|
});
|
|
1400
1400
|
}); };
|
|
@@ -1404,7 +1404,7 @@ export var deserializeAws_restJson1ListVirtualClustersCommand = function (output
|
|
|
1404
1404
|
switch (_c.label) {
|
|
1405
1405
|
case 0:
|
|
1406
1406
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1407
|
-
return [2
|
|
1407
|
+
return [2, deserializeAws_restJson1ListVirtualClustersCommandError(output, context)];
|
|
1408
1408
|
}
|
|
1409
1409
|
contents = {
|
|
1410
1410
|
$metadata: deserializeMetadata(output),
|
|
@@ -1413,7 +1413,7 @@ export var deserializeAws_restJson1ListVirtualClustersCommand = function (output
|
|
|
1413
1413
|
};
|
|
1414
1414
|
_a = __expectNonNull;
|
|
1415
1415
|
_b = __expectObject;
|
|
1416
|
-
return [4
|
|
1416
|
+
return [4, parseBody(output.body, context)];
|
|
1417
1417
|
case 1:
|
|
1418
1418
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1419
1419
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
@@ -1422,7 +1422,7 @@ export var deserializeAws_restJson1ListVirtualClustersCommand = function (output
|
|
|
1422
1422
|
if (data.virtualClusters !== undefined && data.virtualClusters !== null) {
|
|
1423
1423
|
contents.virtualClusters = deserializeAws_restJson1VirtualClusters(data.virtualClusters, context);
|
|
1424
1424
|
}
|
|
1425
|
-
return [2
|
|
1425
|
+
return [2, Promise.resolve(contents)];
|
|
1426
1426
|
}
|
|
1427
1427
|
});
|
|
1428
1428
|
}); };
|
|
@@ -1434,31 +1434,31 @@ var deserializeAws_restJson1ListVirtualClustersCommandError = function (output,
|
|
|
1434
1434
|
case 0:
|
|
1435
1435
|
_a = [__assign({}, output)];
|
|
1436
1436
|
_e = {};
|
|
1437
|
-
return [4
|
|
1437
|
+
return [4, parseBody(output.body, context)];
|
|
1438
1438
|
case 1:
|
|
1439
1439
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1440
1440
|
errorCode = "UnknownError";
|
|
1441
1441
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1442
1442
|
_b = errorCode;
|
|
1443
1443
|
switch (_b) {
|
|
1444
|
-
case "InternalServerException": return [3
|
|
1445
|
-
case "com.amazonaws.emrcontainers#InternalServerException": return [3
|
|
1446
|
-
case "ValidationException": return [3
|
|
1447
|
-
case "com.amazonaws.emrcontainers#ValidationException": return [3
|
|
1444
|
+
case "InternalServerException": return [3, 2];
|
|
1445
|
+
case "com.amazonaws.emrcontainers#InternalServerException": return [3, 2];
|
|
1446
|
+
case "ValidationException": return [3, 4];
|
|
1447
|
+
case "com.amazonaws.emrcontainers#ValidationException": return [3, 4];
|
|
1448
1448
|
}
|
|
1449
|
-
return [3
|
|
1449
|
+
return [3, 6];
|
|
1450
1450
|
case 2:
|
|
1451
1451
|
_c = [{}];
|
|
1452
|
-
return [4
|
|
1452
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1453
1453
|
case 3:
|
|
1454
1454
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1455
|
-
return [3
|
|
1455
|
+
return [3, 7];
|
|
1456
1456
|
case 4:
|
|
1457
1457
|
_d = [{}];
|
|
1458
|
-
return [4
|
|
1458
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1459
1459
|
case 5:
|
|
1460
1460
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1461
|
-
return [3
|
|
1461
|
+
return [3, 7];
|
|
1462
1462
|
case 6:
|
|
1463
1463
|
parsedBody = parsedOutput.body;
|
|
1464
1464
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1468,7 +1468,7 @@ var deserializeAws_restJson1ListVirtualClustersCommandError = function (output,
|
|
|
1468
1468
|
message = response.message || response.Message || errorCode;
|
|
1469
1469
|
response.message = message;
|
|
1470
1470
|
delete response.Message;
|
|
1471
|
-
return [2
|
|
1471
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1472
1472
|
}
|
|
1473
1473
|
});
|
|
1474
1474
|
}); };
|
|
@@ -1478,7 +1478,7 @@ export var deserializeAws_restJson1StartJobRunCommand = function (output, contex
|
|
|
1478
1478
|
switch (_c.label) {
|
|
1479
1479
|
case 0:
|
|
1480
1480
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1481
|
-
return [2
|
|
1481
|
+
return [2, deserializeAws_restJson1StartJobRunCommandError(output, context)];
|
|
1482
1482
|
}
|
|
1483
1483
|
contents = {
|
|
1484
1484
|
$metadata: deserializeMetadata(output),
|
|
@@ -1489,7 +1489,7 @@ export var deserializeAws_restJson1StartJobRunCommand = function (output, contex
|
|
|
1489
1489
|
};
|
|
1490
1490
|
_a = __expectNonNull;
|
|
1491
1491
|
_b = __expectObject;
|
|
1492
|
-
return [4
|
|
1492
|
+
return [4, parseBody(output.body, context)];
|
|
1493
1493
|
case 1:
|
|
1494
1494
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1495
1495
|
if (data.arn !== undefined && data.arn !== null) {
|
|
@@ -1504,7 +1504,7 @@ export var deserializeAws_restJson1StartJobRunCommand = function (output, contex
|
|
|
1504
1504
|
if (data.virtualClusterId !== undefined && data.virtualClusterId !== null) {
|
|
1505
1505
|
contents.virtualClusterId = __expectString(data.virtualClusterId);
|
|
1506
1506
|
}
|
|
1507
|
-
return [2
|
|
1507
|
+
return [2, Promise.resolve(contents)];
|
|
1508
1508
|
}
|
|
1509
1509
|
});
|
|
1510
1510
|
}); };
|
|
@@ -1516,39 +1516,39 @@ var deserializeAws_restJson1StartJobRunCommandError = function (output, context)
|
|
|
1516
1516
|
case 0:
|
|
1517
1517
|
_a = [__assign({}, output)];
|
|
1518
1518
|
_f = {};
|
|
1519
|
-
return [4
|
|
1519
|
+
return [4, parseBody(output.body, context)];
|
|
1520
1520
|
case 1:
|
|
1521
1521
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1522
1522
|
errorCode = "UnknownError";
|
|
1523
1523
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1524
1524
|
_b = errorCode;
|
|
1525
1525
|
switch (_b) {
|
|
1526
|
-
case "InternalServerException": return [3
|
|
1527
|
-
case "com.amazonaws.emrcontainers#InternalServerException": return [3
|
|
1528
|
-
case "ResourceNotFoundException": return [3
|
|
1529
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException": return [3
|
|
1530
|
-
case "ValidationException": return [3
|
|
1531
|
-
case "com.amazonaws.emrcontainers#ValidationException": return [3
|
|
1532
|
-
}
|
|
1533
|
-
return [3
|
|
1526
|
+
case "InternalServerException": return [3, 2];
|
|
1527
|
+
case "com.amazonaws.emrcontainers#InternalServerException": return [3, 2];
|
|
1528
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1529
|
+
case "com.amazonaws.emrcontainers#ResourceNotFoundException": return [3, 4];
|
|
1530
|
+
case "ValidationException": return [3, 6];
|
|
1531
|
+
case "com.amazonaws.emrcontainers#ValidationException": return [3, 6];
|
|
1532
|
+
}
|
|
1533
|
+
return [3, 8];
|
|
1534
1534
|
case 2:
|
|
1535
1535
|
_c = [{}];
|
|
1536
|
-
return [4
|
|
1536
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1537
1537
|
case 3:
|
|
1538
1538
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1539
|
-
return [3
|
|
1539
|
+
return [3, 9];
|
|
1540
1540
|
case 4:
|
|
1541
1541
|
_d = [{}];
|
|
1542
|
-
return [4
|
|
1542
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1543
1543
|
case 5:
|
|
1544
1544
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1545
|
-
return [3
|
|
1545
|
+
return [3, 9];
|
|
1546
1546
|
case 6:
|
|
1547
1547
|
_e = [{}];
|
|
1548
|
-
return [4
|
|
1548
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1549
1549
|
case 7:
|
|
1550
1550
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1551
|
-
return [3
|
|
1551
|
+
return [3, 9];
|
|
1552
1552
|
case 8:
|
|
1553
1553
|
parsedBody = parsedOutput.body;
|
|
1554
1554
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1558,7 +1558,7 @@ var deserializeAws_restJson1StartJobRunCommandError = function (output, context)
|
|
|
1558
1558
|
message = response.message || response.Message || errorCode;
|
|
1559
1559
|
response.message = message;
|
|
1560
1560
|
delete response.Message;
|
|
1561
|
-
return [2
|
|
1561
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1562
1562
|
}
|
|
1563
1563
|
});
|
|
1564
1564
|
}); };
|
|
@@ -1568,15 +1568,15 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
1568
1568
|
switch (_a.label) {
|
|
1569
1569
|
case 0:
|
|
1570
1570
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1571
|
-
return [2
|
|
1571
|
+
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
1572
1572
|
}
|
|
1573
1573
|
contents = {
|
|
1574
1574
|
$metadata: deserializeMetadata(output),
|
|
1575
1575
|
};
|
|
1576
|
-
return [4
|
|
1576
|
+
return [4, collectBody(output.body, context)];
|
|
1577
1577
|
case 1:
|
|
1578
1578
|
_a.sent();
|
|
1579
|
-
return [2
|
|
1579
|
+
return [2, Promise.resolve(contents)];
|
|
1580
1580
|
}
|
|
1581
1581
|
});
|
|
1582
1582
|
}); };
|
|
@@ -1588,39 +1588,39 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1588
1588
|
case 0:
|
|
1589
1589
|
_a = [__assign({}, output)];
|
|
1590
1590
|
_f = {};
|
|
1591
|
-
return [4
|
|
1591
|
+
return [4, parseBody(output.body, context)];
|
|
1592
1592
|
case 1:
|
|
1593
1593
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1594
1594
|
errorCode = "UnknownError";
|
|
1595
1595
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1596
1596
|
_b = errorCode;
|
|
1597
1597
|
switch (_b) {
|
|
1598
|
-
case "InternalServerException": return [3
|
|
1599
|
-
case "com.amazonaws.emrcontainers#InternalServerException": return [3
|
|
1600
|
-
case "ResourceNotFoundException": return [3
|
|
1601
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException": return [3
|
|
1602
|
-
case "ValidationException": return [3
|
|
1603
|
-
case "com.amazonaws.emrcontainers#ValidationException": return [3
|
|
1604
|
-
}
|
|
1605
|
-
return [3
|
|
1598
|
+
case "InternalServerException": return [3, 2];
|
|
1599
|
+
case "com.amazonaws.emrcontainers#InternalServerException": return [3, 2];
|
|
1600
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1601
|
+
case "com.amazonaws.emrcontainers#ResourceNotFoundException": return [3, 4];
|
|
1602
|
+
case "ValidationException": return [3, 6];
|
|
1603
|
+
case "com.amazonaws.emrcontainers#ValidationException": return [3, 6];
|
|
1604
|
+
}
|
|
1605
|
+
return [3, 8];
|
|
1606
1606
|
case 2:
|
|
1607
1607
|
_c = [{}];
|
|
1608
|
-
return [4
|
|
1608
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1609
1609
|
case 3:
|
|
1610
1610
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1611
|
-
return [3
|
|
1611
|
+
return [3, 9];
|
|
1612
1612
|
case 4:
|
|
1613
1613
|
_d = [{}];
|
|
1614
|
-
return [4
|
|
1614
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1615
1615
|
case 5:
|
|
1616
1616
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1617
|
-
return [3
|
|
1617
|
+
return [3, 9];
|
|
1618
1618
|
case 6:
|
|
1619
1619
|
_e = [{}];
|
|
1620
|
-
return [4
|
|
1620
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1621
1621
|
case 7:
|
|
1622
1622
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1623
|
-
return [3
|
|
1623
|
+
return [3, 9];
|
|
1624
1624
|
case 8:
|
|
1625
1625
|
parsedBody = parsedOutput.body;
|
|
1626
1626
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1630,7 +1630,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1630
1630
|
message = response.message || response.Message || errorCode;
|
|
1631
1631
|
response.message = message;
|
|
1632
1632
|
delete response.Message;
|
|
1633
|
-
return [2
|
|
1633
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1634
1634
|
}
|
|
1635
1635
|
});
|
|
1636
1636
|
}); };
|
|
@@ -1640,15 +1640,15 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
1640
1640
|
switch (_a.label) {
|
|
1641
1641
|
case 0:
|
|
1642
1642
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1643
|
-
return [2
|
|
1643
|
+
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
1644
1644
|
}
|
|
1645
1645
|
contents = {
|
|
1646
1646
|
$metadata: deserializeMetadata(output),
|
|
1647
1647
|
};
|
|
1648
|
-
return [4
|
|
1648
|
+
return [4, collectBody(output.body, context)];
|
|
1649
1649
|
case 1:
|
|
1650
1650
|
_a.sent();
|
|
1651
|
-
return [2
|
|
1651
|
+
return [2, Promise.resolve(contents)];
|
|
1652
1652
|
}
|
|
1653
1653
|
});
|
|
1654
1654
|
}); };
|
|
@@ -1660,39 +1660,39 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1660
1660
|
case 0:
|
|
1661
1661
|
_a = [__assign({}, output)];
|
|
1662
1662
|
_f = {};
|
|
1663
|
-
return [4
|
|
1663
|
+
return [4, parseBody(output.body, context)];
|
|
1664
1664
|
case 1:
|
|
1665
1665
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1666
1666
|
errorCode = "UnknownError";
|
|
1667
1667
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1668
1668
|
_b = errorCode;
|
|
1669
1669
|
switch (_b) {
|
|
1670
|
-
case "InternalServerException": return [3
|
|
1671
|
-
case "com.amazonaws.emrcontainers#InternalServerException": return [3
|
|
1672
|
-
case "ResourceNotFoundException": return [3
|
|
1673
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException": return [3
|
|
1674
|
-
case "ValidationException": return [3
|
|
1675
|
-
case "com.amazonaws.emrcontainers#ValidationException": return [3
|
|
1676
|
-
}
|
|
1677
|
-
return [3
|
|
1670
|
+
case "InternalServerException": return [3, 2];
|
|
1671
|
+
case "com.amazonaws.emrcontainers#InternalServerException": return [3, 2];
|
|
1672
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1673
|
+
case "com.amazonaws.emrcontainers#ResourceNotFoundException": return [3, 4];
|
|
1674
|
+
case "ValidationException": return [3, 6];
|
|
1675
|
+
case "com.amazonaws.emrcontainers#ValidationException": return [3, 6];
|
|
1676
|
+
}
|
|
1677
|
+
return [3, 8];
|
|
1678
1678
|
case 2:
|
|
1679
1679
|
_c = [{}];
|
|
1680
|
-
return [4
|
|
1680
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1681
1681
|
case 3:
|
|
1682
1682
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1683
|
-
return [3
|
|
1683
|
+
return [3, 9];
|
|
1684
1684
|
case 4:
|
|
1685
1685
|
_d = [{}];
|
|
1686
|
-
return [4
|
|
1686
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1687
1687
|
case 5:
|
|
1688
1688
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1689
|
-
return [3
|
|
1689
|
+
return [3, 9];
|
|
1690
1690
|
case 6:
|
|
1691
1691
|
_e = [{}];
|
|
1692
|
-
return [4
|
|
1692
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1693
1693
|
case 7:
|
|
1694
1694
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1695
|
-
return [3
|
|
1695
|
+
return [3, 9];
|
|
1696
1696
|
case 8:
|
|
1697
1697
|
parsedBody = parsedOutput.body;
|
|
1698
1698
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1702,7 +1702,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1702
1702
|
message = response.message || response.Message || errorCode;
|
|
1703
1703
|
response.message = message;
|
|
1704
1704
|
delete response.Message;
|
|
1705
|
-
return [2
|
|
1705
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1706
1706
|
}
|
|
1707
1707
|
});
|
|
1708
1708
|
}); };
|
|
@@ -1719,7 +1719,7 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
1719
1719
|
if (data.message !== undefined && data.message !== null) {
|
|
1720
1720
|
contents.message = __expectString(data.message);
|
|
1721
1721
|
}
|
|
1722
|
-
return [2
|
|
1722
|
+
return [2, contents];
|
|
1723
1723
|
});
|
|
1724
1724
|
}); };
|
|
1725
1725
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1735,7 +1735,7 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
1735
1735
|
if (data.message !== undefined && data.message !== null) {
|
|
1736
1736
|
contents.message = __expectString(data.message);
|
|
1737
1737
|
}
|
|
1738
|
-
return [2
|
|
1738
|
+
return [2, contents];
|
|
1739
1739
|
});
|
|
1740
1740
|
}); };
|
|
1741
1741
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1751,7 +1751,7 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
1751
1751
|
if (data.message !== undefined && data.message !== null) {
|
|
1752
1752
|
contents.message = __expectString(data.message);
|
|
1753
1753
|
}
|
|
1754
|
-
return [2
|
|
1754
|
+
return [2, contents];
|
|
1755
1755
|
});
|
|
1756
1756
|
}); };
|
|
1757
1757
|
var serializeAws_restJson1CloudWatchMonitoringConfiguration = function (input, context) {
|
|
@@ -1905,7 +1905,7 @@ var deserializeAws_restJson1ContainerProvider = function (output, context) {
|
|
|
1905
1905
|
return {
|
|
1906
1906
|
id: __expectString(output.id),
|
|
1907
1907
|
info: output.info !== undefined && output.info !== null
|
|
1908
|
-
? deserializeAws_restJson1ContainerInfo(output.info, context)
|
|
1908
|
+
? deserializeAws_restJson1ContainerInfo(__expectUnion(output.info), context)
|
|
1909
1909
|
: undefined,
|
|
1910
1910
|
type: __expectString(output.type),
|
|
1911
1911
|
};
|
|
@@ -1923,7 +1923,7 @@ var deserializeAws_restJson1Endpoint = function (output, context) {
|
|
|
1923
1923
|
? deserializeAws_restJson1ConfigurationOverrides(output.configurationOverrides, context)
|
|
1924
1924
|
: undefined,
|
|
1925
1925
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
1926
|
-
?
|
|
1926
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
1927
1927
|
: undefined,
|
|
1928
1928
|
executionRoleArn: __expectString(output.executionRoleArn),
|
|
1929
1929
|
failureReason: __expectString(output.failureReason),
|
|
@@ -1979,13 +1979,13 @@ var deserializeAws_restJson1JobRun = function (output, context) {
|
|
|
1979
1979
|
? deserializeAws_restJson1ConfigurationOverrides(output.configurationOverrides, context)
|
|
1980
1980
|
: undefined,
|
|
1981
1981
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
1982
|
-
?
|
|
1982
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
1983
1983
|
: undefined,
|
|
1984
1984
|
createdBy: __expectString(output.createdBy),
|
|
1985
1985
|
executionRoleArn: __expectString(output.executionRoleArn),
|
|
1986
1986
|
failureReason: __expectString(output.failureReason),
|
|
1987
1987
|
finishedAt: output.finishedAt !== undefined && output.finishedAt !== null
|
|
1988
|
-
?
|
|
1988
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.finishedAt)))
|
|
1989
1989
|
: undefined,
|
|
1990
1990
|
id: __expectString(output.id),
|
|
1991
1991
|
jobDriver: output.jobDriver !== undefined && output.jobDriver !== null
|
|
@@ -2073,7 +2073,7 @@ var deserializeAws_restJson1VirtualCluster = function (output, context) {
|
|
|
2073
2073
|
? deserializeAws_restJson1ContainerProvider(output.containerProvider, context)
|
|
2074
2074
|
: undefined,
|
|
2075
2075
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
2076
|
-
?
|
|
2076
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
2077
2077
|
: undefined,
|
|
2078
2078
|
id: __expectString(output.id),
|
|
2079
2079
|
name: __expectString(output.name),
|
|
@@ -2102,7 +2102,6 @@ var deserializeMetadata = function (output) {
|
|
|
2102
2102
|
cfId: output.headers["x-amz-cf-id"],
|
|
2103
2103
|
});
|
|
2104
2104
|
};
|
|
2105
|
-
// Collect low-level response body stream to Uint8Array.
|
|
2106
2105
|
var collectBody = function (streamBody, context) {
|
|
2107
2106
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
2108
2107
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -2110,7 +2109,6 @@ var collectBody = function (streamBody, context) {
|
|
|
2110
2109
|
}
|
|
2111
2110
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2112
2111
|
};
|
|
2113
|
-
// Encode Uint8Array data into string with utf-8.
|
|
2114
2112
|
var collectBodyString = function (streamBody, context) {
|
|
2115
2113
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
2116
2114
|
};
|
|
@@ -2129,9 +2127,6 @@ var parseBody = function (streamBody, context) {
|
|
|
2129
2127
|
return {};
|
|
2130
2128
|
});
|
|
2131
2129
|
};
|
|
2132
|
-
/**
|
|
2133
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
2134
|
-
*/
|
|
2135
2130
|
var loadRestJsonErrorCode = function (output, data) {
|
|
2136
2131
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2137
2132
|
var sanitizeErrorCode = function (rawValue) {
|