@aws-sdk/client-emr-serverless 3.141.0 → 3.142.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 +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +182 -373
- package/dist-es/protocols/Aws_restJson1.js +237 -374
- package/package.json +6 -6
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, limitedParseDouble as __limitedParseDouble, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { EMRServerlessServiceException as __BaseException } from "../models/EMRServerlessServiceException";
|
|
6
6
|
import { ConflictException, InternalServerException, JobDriver, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
|
|
7
7
|
export var serializeAws_restJson1CancelJobRunCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
8
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
9
9
|
return __generator(this, function (_c) {
|
|
10
10
|
switch (_c.label) {
|
|
11
11
|
case 0: return [4, context.endpoint()];
|
|
@@ -14,26 +14,8 @@ export var serializeAws_restJson1CancelJobRunCommand = function (input, context)
|
|
|
14
14
|
headers = {};
|
|
15
15
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
16
16
|
"/applications/{applicationId}/jobruns/{jobRunId}";
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
if (labelValue.length <= 0) {
|
|
20
|
-
throw new Error("Empty value provided for input HTTP label: applicationId.");
|
|
21
|
-
}
|
|
22
|
-
resolvedPath = resolvedPath.replace("{applicationId}", __extendedEncodeURIComponent(labelValue));
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
throw new Error("No value provided for input HTTP label: applicationId.");
|
|
26
|
-
}
|
|
27
|
-
if (input.jobRunId !== undefined) {
|
|
28
|
-
labelValue = input.jobRunId;
|
|
29
|
-
if (labelValue.length <= 0) {
|
|
30
|
-
throw new Error("Empty value provided for input HTTP label: jobRunId.");
|
|
31
|
-
}
|
|
32
|
-
resolvedPath = resolvedPath.replace("{jobRunId}", __extendedEncodeURIComponent(labelValue));
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
throw new Error("No value provided for input HTTP label: jobRunId.");
|
|
36
|
-
}
|
|
17
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "applicationId", function () { return input.applicationId; }, "{applicationId}", false);
|
|
18
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "jobRunId", function () { return input.jobRunId; }, "{jobRunId}", false);
|
|
37
19
|
return [2, new __HttpRequest({
|
|
38
20
|
protocol: protocol,
|
|
39
21
|
hostname: hostname,
|
|
@@ -82,7 +64,7 @@ export var serializeAws_restJson1CreateApplicationCommand = function (input, con
|
|
|
82
64
|
});
|
|
83
65
|
}); };
|
|
84
66
|
export var serializeAws_restJson1DeleteApplicationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
85
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
67
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
86
68
|
return __generator(this, function (_c) {
|
|
87
69
|
switch (_c.label) {
|
|
88
70
|
case 0: return [4, context.endpoint()];
|
|
@@ -90,16 +72,7 @@ export var serializeAws_restJson1DeleteApplicationCommand = function (input, con
|
|
|
90
72
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
91
73
|
headers = {};
|
|
92
74
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications/{applicationId}";
|
|
93
|
-
|
|
94
|
-
labelValue = input.applicationId;
|
|
95
|
-
if (labelValue.length <= 0) {
|
|
96
|
-
throw new Error("Empty value provided for input HTTP label: applicationId.");
|
|
97
|
-
}
|
|
98
|
-
resolvedPath = resolvedPath.replace("{applicationId}", __extendedEncodeURIComponent(labelValue));
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
throw new Error("No value provided for input HTTP label: applicationId.");
|
|
102
|
-
}
|
|
75
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "applicationId", function () { return input.applicationId; }, "{applicationId}", false);
|
|
103
76
|
return [2, new __HttpRequest({
|
|
104
77
|
protocol: protocol,
|
|
105
78
|
hostname: hostname,
|
|
@@ -113,7 +86,7 @@ export var serializeAws_restJson1DeleteApplicationCommand = function (input, con
|
|
|
113
86
|
});
|
|
114
87
|
}); };
|
|
115
88
|
export var serializeAws_restJson1GetApplicationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
116
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
89
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
117
90
|
return __generator(this, function (_c) {
|
|
118
91
|
switch (_c.label) {
|
|
119
92
|
case 0: return [4, context.endpoint()];
|
|
@@ -121,16 +94,7 @@ export var serializeAws_restJson1GetApplicationCommand = function (input, contex
|
|
|
121
94
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
122
95
|
headers = {};
|
|
123
96
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications/{applicationId}";
|
|
124
|
-
|
|
125
|
-
labelValue = input.applicationId;
|
|
126
|
-
if (labelValue.length <= 0) {
|
|
127
|
-
throw new Error("Empty value provided for input HTTP label: applicationId.");
|
|
128
|
-
}
|
|
129
|
-
resolvedPath = resolvedPath.replace("{applicationId}", __extendedEncodeURIComponent(labelValue));
|
|
130
|
-
}
|
|
131
|
-
else {
|
|
132
|
-
throw new Error("No value provided for input HTTP label: applicationId.");
|
|
133
|
-
}
|
|
97
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "applicationId", function () { return input.applicationId; }, "{applicationId}", false);
|
|
134
98
|
return [2, new __HttpRequest({
|
|
135
99
|
protocol: protocol,
|
|
136
100
|
hostname: hostname,
|
|
@@ -144,7 +108,7 @@ export var serializeAws_restJson1GetApplicationCommand = function (input, contex
|
|
|
144
108
|
});
|
|
145
109
|
}); };
|
|
146
110
|
export var serializeAws_restJson1GetJobRunCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
147
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
111
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
148
112
|
return __generator(this, function (_c) {
|
|
149
113
|
switch (_c.label) {
|
|
150
114
|
case 0: return [4, context.endpoint()];
|
|
@@ -153,26 +117,8 @@ export var serializeAws_restJson1GetJobRunCommand = function (input, context) {
|
|
|
153
117
|
headers = {};
|
|
154
118
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
155
119
|
"/applications/{applicationId}/jobruns/{jobRunId}";
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
if (labelValue.length <= 0) {
|
|
159
|
-
throw new Error("Empty value provided for input HTTP label: applicationId.");
|
|
160
|
-
}
|
|
161
|
-
resolvedPath = resolvedPath.replace("{applicationId}", __extendedEncodeURIComponent(labelValue));
|
|
162
|
-
}
|
|
163
|
-
else {
|
|
164
|
-
throw new Error("No value provided for input HTTP label: applicationId.");
|
|
165
|
-
}
|
|
166
|
-
if (input.jobRunId !== undefined) {
|
|
167
|
-
labelValue = input.jobRunId;
|
|
168
|
-
if (labelValue.length <= 0) {
|
|
169
|
-
throw new Error("Empty value provided for input HTTP label: jobRunId.");
|
|
170
|
-
}
|
|
171
|
-
resolvedPath = resolvedPath.replace("{jobRunId}", __extendedEncodeURIComponent(labelValue));
|
|
172
|
-
}
|
|
173
|
-
else {
|
|
174
|
-
throw new Error("No value provided for input HTTP label: jobRunId.");
|
|
175
|
-
}
|
|
120
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "applicationId", function () { return input.applicationId; }, "{applicationId}", false);
|
|
121
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "jobRunId", function () { return input.jobRunId; }, "{jobRunId}", false);
|
|
176
122
|
return [2, new __HttpRequest({
|
|
177
123
|
protocol: protocol,
|
|
178
124
|
hostname: hostname,
|
|
@@ -194,9 +140,14 @@ export var serializeAws_restJson1ListApplicationsCommand = function (input, cont
|
|
|
194
140
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
195
141
|
headers = {};
|
|
196
142
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications";
|
|
197
|
-
query =
|
|
198
|
-
|
|
199
|
-
|
|
143
|
+
query = map({
|
|
144
|
+
nextToken: [, input.nextToken],
|
|
145
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
146
|
+
states: [
|
|
147
|
+
function () { return input.states !== void 0; },
|
|
148
|
+
function () { return (Array.from(input.states.values()) || []).map(function (_entry) { return _entry; }); },
|
|
149
|
+
],
|
|
150
|
+
});
|
|
200
151
|
return [2, new __HttpRequest({
|
|
201
152
|
protocol: protocol,
|
|
202
153
|
hostname: hostname,
|
|
@@ -211,7 +162,7 @@ export var serializeAws_restJson1ListApplicationsCommand = function (input, cont
|
|
|
211
162
|
});
|
|
212
163
|
}); };
|
|
213
164
|
export var serializeAws_restJson1ListJobRunsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
214
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
165
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
215
166
|
return __generator(this, function (_c) {
|
|
216
167
|
switch (_c.label) {
|
|
217
168
|
case 0: return [4, context.endpoint()];
|
|
@@ -219,23 +170,23 @@ export var serializeAws_restJson1ListJobRunsCommand = function (input, context)
|
|
|
219
170
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
220
171
|
headers = {};
|
|
221
172
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications/{applicationId}/jobruns";
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
})
|
|
173
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "applicationId", function () { return input.applicationId; }, "{applicationId}", false);
|
|
174
|
+
query = map({
|
|
175
|
+
nextToken: [, input.nextToken],
|
|
176
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
177
|
+
createdAtAfter: [
|
|
178
|
+
function () { return input.createdAtAfter !== void 0; },
|
|
179
|
+
function () { return (input.createdAtAfter.toISOString().split(".")[0] + "Z").toString(); },
|
|
180
|
+
],
|
|
181
|
+
createdAtBefore: [
|
|
182
|
+
function () { return input.createdAtBefore !== void 0; },
|
|
183
|
+
function () { return (input.createdAtBefore.toISOString().split(".")[0] + "Z").toString(); },
|
|
184
|
+
],
|
|
185
|
+
states: [
|
|
186
|
+
function () { return input.states !== void 0; },
|
|
187
|
+
function () { return (Array.from(input.states.values()) || []).map(function (_entry) { return _entry; }); },
|
|
188
|
+
],
|
|
189
|
+
});
|
|
239
190
|
return [2, new __HttpRequest({
|
|
240
191
|
protocol: protocol,
|
|
241
192
|
hostname: hostname,
|
|
@@ -250,7 +201,7 @@ export var serializeAws_restJson1ListJobRunsCommand = function (input, context)
|
|
|
250
201
|
});
|
|
251
202
|
}); };
|
|
252
203
|
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
253
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
204
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
254
205
|
return __generator(this, function (_c) {
|
|
255
206
|
switch (_c.label) {
|
|
256
207
|
case 0: return [4, context.endpoint()];
|
|
@@ -258,16 +209,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
258
209
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
259
210
|
headers = {};
|
|
260
211
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
261
|
-
|
|
262
|
-
labelValue = input.resourceArn;
|
|
263
|
-
if (labelValue.length <= 0) {
|
|
264
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
265
|
-
}
|
|
266
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
267
|
-
}
|
|
268
|
-
else {
|
|
269
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
270
|
-
}
|
|
212
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
271
213
|
return [2, new __HttpRequest({
|
|
272
214
|
protocol: protocol,
|
|
273
215
|
hostname: hostname,
|
|
@@ -281,7 +223,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
281
223
|
});
|
|
282
224
|
}); };
|
|
283
225
|
export var serializeAws_restJson1StartApplicationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
284
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
226
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
285
227
|
return __generator(this, function (_c) {
|
|
286
228
|
switch (_c.label) {
|
|
287
229
|
case 0: return [4, context.endpoint()];
|
|
@@ -289,16 +231,7 @@ export var serializeAws_restJson1StartApplicationCommand = function (input, cont
|
|
|
289
231
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
290
232
|
headers = {};
|
|
291
233
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications/{applicationId}/start";
|
|
292
|
-
|
|
293
|
-
labelValue = input.applicationId;
|
|
294
|
-
if (labelValue.length <= 0) {
|
|
295
|
-
throw new Error("Empty value provided for input HTTP label: applicationId.");
|
|
296
|
-
}
|
|
297
|
-
resolvedPath = resolvedPath.replace("{applicationId}", __extendedEncodeURIComponent(labelValue));
|
|
298
|
-
}
|
|
299
|
-
else {
|
|
300
|
-
throw new Error("No value provided for input HTTP label: applicationId.");
|
|
301
|
-
}
|
|
234
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "applicationId", function () { return input.applicationId; }, "{applicationId}", false);
|
|
302
235
|
return [2, new __HttpRequest({
|
|
303
236
|
protocol: protocol,
|
|
304
237
|
hostname: hostname,
|
|
@@ -312,7 +245,7 @@ export var serializeAws_restJson1StartApplicationCommand = function (input, cont
|
|
|
312
245
|
});
|
|
313
246
|
}); };
|
|
314
247
|
export var serializeAws_restJson1StartJobRunCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
315
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
248
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
316
249
|
var _c;
|
|
317
250
|
return __generator(this, function (_d) {
|
|
318
251
|
switch (_d.label) {
|
|
@@ -323,16 +256,7 @@ export var serializeAws_restJson1StartJobRunCommand = function (input, context)
|
|
|
323
256
|
"content-type": "application/json",
|
|
324
257
|
};
|
|
325
258
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications/{applicationId}/jobruns";
|
|
326
|
-
|
|
327
|
-
labelValue = input.applicationId;
|
|
328
|
-
if (labelValue.length <= 0) {
|
|
329
|
-
throw new Error("Empty value provided for input HTTP label: applicationId.");
|
|
330
|
-
}
|
|
331
|
-
resolvedPath = resolvedPath.replace("{applicationId}", __extendedEncodeURIComponent(labelValue));
|
|
332
|
-
}
|
|
333
|
-
else {
|
|
334
|
-
throw new Error("No value provided for input HTTP label: applicationId.");
|
|
335
|
-
}
|
|
259
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "applicationId", function () { return input.applicationId; }, "{applicationId}", false);
|
|
336
260
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.configurationOverrides != null && {
|
|
337
261
|
configurationOverrides: serializeAws_restJson1ConfigurationOverrides(input.configurationOverrides, context),
|
|
338
262
|
})), (input.executionRoleArn != null && { executionRoleArn: input.executionRoleArn })), (input.executionTimeoutMinutes != null && { executionTimeoutMinutes: input.executionTimeoutMinutes })), (input.jobDriver != null && { jobDriver: serializeAws_restJson1JobDriver(input.jobDriver, context) })), (input.name != null && { name: input.name })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
@@ -349,7 +273,7 @@ export var serializeAws_restJson1StartJobRunCommand = function (input, context)
|
|
|
349
273
|
});
|
|
350
274
|
}); };
|
|
351
275
|
export var serializeAws_restJson1StopApplicationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
352
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
276
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
353
277
|
return __generator(this, function (_c) {
|
|
354
278
|
switch (_c.label) {
|
|
355
279
|
case 0: return [4, context.endpoint()];
|
|
@@ -357,16 +281,7 @@ export var serializeAws_restJson1StopApplicationCommand = function (input, conte
|
|
|
357
281
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
358
282
|
headers = {};
|
|
359
283
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications/{applicationId}/stop";
|
|
360
|
-
|
|
361
|
-
labelValue = input.applicationId;
|
|
362
|
-
if (labelValue.length <= 0) {
|
|
363
|
-
throw new Error("Empty value provided for input HTTP label: applicationId.");
|
|
364
|
-
}
|
|
365
|
-
resolvedPath = resolvedPath.replace("{applicationId}", __extendedEncodeURIComponent(labelValue));
|
|
366
|
-
}
|
|
367
|
-
else {
|
|
368
|
-
throw new Error("No value provided for input HTTP label: applicationId.");
|
|
369
|
-
}
|
|
284
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "applicationId", function () { return input.applicationId; }, "{applicationId}", false);
|
|
370
285
|
return [2, new __HttpRequest({
|
|
371
286
|
protocol: protocol,
|
|
372
287
|
hostname: hostname,
|
|
@@ -380,7 +295,7 @@ export var serializeAws_restJson1StopApplicationCommand = function (input, conte
|
|
|
380
295
|
});
|
|
381
296
|
}); };
|
|
382
297
|
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
383
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
298
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
384
299
|
return __generator(this, function (_c) {
|
|
385
300
|
switch (_c.label) {
|
|
386
301
|
case 0: return [4, context.endpoint()];
|
|
@@ -390,16 +305,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
390
305
|
"content-type": "application/json",
|
|
391
306
|
};
|
|
392
307
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
393
|
-
|
|
394
|
-
labelValue = input.resourceArn;
|
|
395
|
-
if (labelValue.length <= 0) {
|
|
396
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
397
|
-
}
|
|
398
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
399
|
-
}
|
|
400
|
-
else {
|
|
401
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
402
|
-
}
|
|
308
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
403
309
|
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
404
310
|
return [2, new __HttpRequest({
|
|
405
311
|
protocol: protocol,
|
|
@@ -414,7 +320,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
414
320
|
});
|
|
415
321
|
}); };
|
|
416
322
|
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
417
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
323
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
418
324
|
return __generator(this, function (_c) {
|
|
419
325
|
switch (_c.label) {
|
|
420
326
|
case 0: return [4, context.endpoint()];
|
|
@@ -422,17 +328,10 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
422
328
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
423
329
|
headers = {};
|
|
424
330
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
}
|
|
430
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
431
|
-
}
|
|
432
|
-
else {
|
|
433
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
434
|
-
}
|
|
435
|
-
query = __assign({}, (input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
331
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
332
|
+
query = map({
|
|
333
|
+
tagKeys: [function () { return input.tagKeys !== void 0; }, function () { return (input.tagKeys || []).map(function (_entry) { return _entry; }); }],
|
|
334
|
+
});
|
|
436
335
|
return [2, new __HttpRequest({
|
|
437
336
|
protocol: protocol,
|
|
438
337
|
hostname: hostname,
|
|
@@ -447,7 +346,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
447
346
|
});
|
|
448
347
|
}); };
|
|
449
348
|
export var serializeAws_restJson1UpdateApplicationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
450
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
349
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
451
350
|
var _c;
|
|
452
351
|
return __generator(this, function (_d) {
|
|
453
352
|
switch (_d.label) {
|
|
@@ -458,16 +357,7 @@ export var serializeAws_restJson1UpdateApplicationCommand = function (input, con
|
|
|
458
357
|
"content-type": "application/json",
|
|
459
358
|
};
|
|
460
359
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications/{applicationId}";
|
|
461
|
-
|
|
462
|
-
labelValue = input.applicationId;
|
|
463
|
-
if (labelValue.length <= 0) {
|
|
464
|
-
throw new Error("Empty value provided for input HTTP label: applicationId.");
|
|
465
|
-
}
|
|
466
|
-
resolvedPath = resolvedPath.replace("{applicationId}", __extendedEncodeURIComponent(labelValue));
|
|
467
|
-
}
|
|
468
|
-
else {
|
|
469
|
-
throw new Error("No value provided for input HTTP label: applicationId.");
|
|
470
|
-
}
|
|
360
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "applicationId", function () { return input.applicationId; }, "{applicationId}", false);
|
|
471
361
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.autoStartConfiguration != null && {
|
|
472
362
|
autoStartConfiguration: serializeAws_restJson1AutoStartConfig(input.autoStartConfiguration, context),
|
|
473
363
|
})), (input.autoStopConfiguration != null && {
|
|
@@ -499,28 +389,26 @@ export var deserializeAws_restJson1CancelJobRunCommand = function (output, conte
|
|
|
499
389
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
500
390
|
return [2, deserializeAws_restJson1CancelJobRunCommandError(output, context)];
|
|
501
391
|
}
|
|
502
|
-
contents = {
|
|
392
|
+
contents = map({
|
|
503
393
|
$metadata: deserializeMetadata(output),
|
|
504
|
-
|
|
505
|
-
jobRunId: undefined,
|
|
506
|
-
};
|
|
394
|
+
});
|
|
507
395
|
_a = __expectNonNull;
|
|
508
396
|
_b = __expectObject;
|
|
509
397
|
return [4, parseBody(output.body, context)];
|
|
510
398
|
case 1:
|
|
511
399
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
512
|
-
if (data.applicationId
|
|
400
|
+
if (data.applicationId != null) {
|
|
513
401
|
contents.applicationId = __expectString(data.applicationId);
|
|
514
402
|
}
|
|
515
|
-
if (data.jobRunId
|
|
403
|
+
if (data.jobRunId != null) {
|
|
516
404
|
contents.jobRunId = __expectString(data.jobRunId);
|
|
517
405
|
}
|
|
518
|
-
return [2,
|
|
406
|
+
return [2, contents];
|
|
519
407
|
}
|
|
520
408
|
});
|
|
521
409
|
}); };
|
|
522
410
|
var deserializeAws_restJson1CancelJobRunCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
523
|
-
var parsedOutput, _a,
|
|
411
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
524
412
|
var _c;
|
|
525
413
|
return __generator(this, function (_d) {
|
|
526
414
|
switch (_d.label) {
|
|
@@ -549,14 +437,14 @@ var deserializeAws_restJson1CancelJobRunCommandError = function (output, context
|
|
|
549
437
|
case 7: throw _d.sent();
|
|
550
438
|
case 8:
|
|
551
439
|
parsedBody = parsedOutput.body;
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
$metadata: $metadata,
|
|
440
|
+
throwDefaultError({
|
|
441
|
+
output: output,
|
|
442
|
+
parsedBody: parsedBody,
|
|
443
|
+
exceptionCtor: __BaseException,
|
|
444
|
+
errorCode: errorCode,
|
|
558
445
|
});
|
|
559
|
-
|
|
446
|
+
_d.label = 9;
|
|
447
|
+
case 9: return [2];
|
|
560
448
|
}
|
|
561
449
|
});
|
|
562
450
|
}); };
|
|
@@ -568,32 +456,29 @@ export var deserializeAws_restJson1CreateApplicationCommand = function (output,
|
|
|
568
456
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
569
457
|
return [2, deserializeAws_restJson1CreateApplicationCommandError(output, context)];
|
|
570
458
|
}
|
|
571
|
-
contents = {
|
|
459
|
+
contents = map({
|
|
572
460
|
$metadata: deserializeMetadata(output),
|
|
573
|
-
|
|
574
|
-
arn: undefined,
|
|
575
|
-
name: undefined,
|
|
576
|
-
};
|
|
461
|
+
});
|
|
577
462
|
_a = __expectNonNull;
|
|
578
463
|
_b = __expectObject;
|
|
579
464
|
return [4, parseBody(output.body, context)];
|
|
580
465
|
case 1:
|
|
581
466
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
582
|
-
if (data.applicationId
|
|
467
|
+
if (data.applicationId != null) {
|
|
583
468
|
contents.applicationId = __expectString(data.applicationId);
|
|
584
469
|
}
|
|
585
|
-
if (data.arn
|
|
470
|
+
if (data.arn != null) {
|
|
586
471
|
contents.arn = __expectString(data.arn);
|
|
587
472
|
}
|
|
588
|
-
if (data.name
|
|
473
|
+
if (data.name != null) {
|
|
589
474
|
contents.name = __expectString(data.name);
|
|
590
475
|
}
|
|
591
|
-
return [2,
|
|
476
|
+
return [2, contents];
|
|
592
477
|
}
|
|
593
478
|
});
|
|
594
479
|
}); };
|
|
595
480
|
var deserializeAws_restJson1CreateApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
596
|
-
var parsedOutput, _a,
|
|
481
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
597
482
|
var _c;
|
|
598
483
|
return __generator(this, function (_d) {
|
|
599
484
|
switch (_d.label) {
|
|
@@ -622,14 +507,14 @@ var deserializeAws_restJson1CreateApplicationCommandError = function (output, co
|
|
|
622
507
|
case 7: throw _d.sent();
|
|
623
508
|
case 8:
|
|
624
509
|
parsedBody = parsedOutput.body;
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
$metadata: $metadata,
|
|
510
|
+
throwDefaultError({
|
|
511
|
+
output: output,
|
|
512
|
+
parsedBody: parsedBody,
|
|
513
|
+
exceptionCtor: __BaseException,
|
|
514
|
+
errorCode: errorCode,
|
|
631
515
|
});
|
|
632
|
-
|
|
516
|
+
_d.label = 9;
|
|
517
|
+
case 9: return [2];
|
|
633
518
|
}
|
|
634
519
|
});
|
|
635
520
|
}); };
|
|
@@ -641,18 +526,18 @@ export var deserializeAws_restJson1DeleteApplicationCommand = function (output,
|
|
|
641
526
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
642
527
|
return [2, deserializeAws_restJson1DeleteApplicationCommandError(output, context)];
|
|
643
528
|
}
|
|
644
|
-
contents = {
|
|
529
|
+
contents = map({
|
|
645
530
|
$metadata: deserializeMetadata(output),
|
|
646
|
-
};
|
|
531
|
+
});
|
|
647
532
|
return [4, collectBody(output.body, context)];
|
|
648
533
|
case 1:
|
|
649
534
|
_a.sent();
|
|
650
|
-
return [2,
|
|
535
|
+
return [2, contents];
|
|
651
536
|
}
|
|
652
537
|
});
|
|
653
538
|
}); };
|
|
654
539
|
var deserializeAws_restJson1DeleteApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
655
|
-
var parsedOutput, _a,
|
|
540
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
656
541
|
var _c;
|
|
657
542
|
return __generator(this, function (_d) {
|
|
658
543
|
switch (_d.label) {
|
|
@@ -681,14 +566,14 @@ var deserializeAws_restJson1DeleteApplicationCommandError = function (output, co
|
|
|
681
566
|
case 7: throw _d.sent();
|
|
682
567
|
case 8:
|
|
683
568
|
parsedBody = parsedOutput.body;
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
$metadata: $metadata,
|
|
569
|
+
throwDefaultError({
|
|
570
|
+
output: output,
|
|
571
|
+
parsedBody: parsedBody,
|
|
572
|
+
exceptionCtor: __BaseException,
|
|
573
|
+
errorCode: errorCode,
|
|
690
574
|
});
|
|
691
|
-
|
|
575
|
+
_d.label = 9;
|
|
576
|
+
case 9: return [2];
|
|
692
577
|
}
|
|
693
578
|
});
|
|
694
579
|
}); };
|
|
@@ -700,24 +585,23 @@ export var deserializeAws_restJson1GetApplicationCommand = function (output, con
|
|
|
700
585
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
701
586
|
return [2, deserializeAws_restJson1GetApplicationCommandError(output, context)];
|
|
702
587
|
}
|
|
703
|
-
contents = {
|
|
588
|
+
contents = map({
|
|
704
589
|
$metadata: deserializeMetadata(output),
|
|
705
|
-
|
|
706
|
-
};
|
|
590
|
+
});
|
|
707
591
|
_a = __expectNonNull;
|
|
708
592
|
_b = __expectObject;
|
|
709
593
|
return [4, parseBody(output.body, context)];
|
|
710
594
|
case 1:
|
|
711
595
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
712
|
-
if (data.application
|
|
596
|
+
if (data.application != null) {
|
|
713
597
|
contents.application = deserializeAws_restJson1Application(data.application, context);
|
|
714
598
|
}
|
|
715
|
-
return [2,
|
|
599
|
+
return [2, contents];
|
|
716
600
|
}
|
|
717
601
|
});
|
|
718
602
|
}); };
|
|
719
603
|
var deserializeAws_restJson1GetApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
720
|
-
var parsedOutput, _a,
|
|
604
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
721
605
|
var _c;
|
|
722
606
|
return __generator(this, function (_d) {
|
|
723
607
|
switch (_d.label) {
|
|
@@ -746,14 +630,14 @@ var deserializeAws_restJson1GetApplicationCommandError = function (output, conte
|
|
|
746
630
|
case 7: throw _d.sent();
|
|
747
631
|
case 8:
|
|
748
632
|
parsedBody = parsedOutput.body;
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
$metadata: $metadata,
|
|
633
|
+
throwDefaultError({
|
|
634
|
+
output: output,
|
|
635
|
+
parsedBody: parsedBody,
|
|
636
|
+
exceptionCtor: __BaseException,
|
|
637
|
+
errorCode: errorCode,
|
|
755
638
|
});
|
|
756
|
-
|
|
639
|
+
_d.label = 9;
|
|
640
|
+
case 9: return [2];
|
|
757
641
|
}
|
|
758
642
|
});
|
|
759
643
|
}); };
|
|
@@ -765,24 +649,23 @@ export var deserializeAws_restJson1GetJobRunCommand = function (output, context)
|
|
|
765
649
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
766
650
|
return [2, deserializeAws_restJson1GetJobRunCommandError(output, context)];
|
|
767
651
|
}
|
|
768
|
-
contents = {
|
|
652
|
+
contents = map({
|
|
769
653
|
$metadata: deserializeMetadata(output),
|
|
770
|
-
|
|
771
|
-
};
|
|
654
|
+
});
|
|
772
655
|
_a = __expectNonNull;
|
|
773
656
|
_b = __expectObject;
|
|
774
657
|
return [4, parseBody(output.body, context)];
|
|
775
658
|
case 1:
|
|
776
659
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
777
|
-
if (data.jobRun
|
|
660
|
+
if (data.jobRun != null) {
|
|
778
661
|
contents.jobRun = deserializeAws_restJson1JobRun(data.jobRun, context);
|
|
779
662
|
}
|
|
780
|
-
return [2,
|
|
663
|
+
return [2, contents];
|
|
781
664
|
}
|
|
782
665
|
});
|
|
783
666
|
}); };
|
|
784
667
|
var deserializeAws_restJson1GetJobRunCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
785
|
-
var parsedOutput, _a,
|
|
668
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
786
669
|
var _c;
|
|
787
670
|
return __generator(this, function (_d) {
|
|
788
671
|
switch (_d.label) {
|
|
@@ -811,14 +694,14 @@ var deserializeAws_restJson1GetJobRunCommandError = function (output, context) {
|
|
|
811
694
|
case 7: throw _d.sent();
|
|
812
695
|
case 8:
|
|
813
696
|
parsedBody = parsedOutput.body;
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
$metadata: $metadata,
|
|
697
|
+
throwDefaultError({
|
|
698
|
+
output: output,
|
|
699
|
+
parsedBody: parsedBody,
|
|
700
|
+
exceptionCtor: __BaseException,
|
|
701
|
+
errorCode: errorCode,
|
|
820
702
|
});
|
|
821
|
-
|
|
703
|
+
_d.label = 9;
|
|
704
|
+
case 9: return [2];
|
|
822
705
|
}
|
|
823
706
|
});
|
|
824
707
|
}); };
|
|
@@ -830,28 +713,26 @@ export var deserializeAws_restJson1ListApplicationsCommand = function (output, c
|
|
|
830
713
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
831
714
|
return [2, deserializeAws_restJson1ListApplicationsCommandError(output, context)];
|
|
832
715
|
}
|
|
833
|
-
contents = {
|
|
716
|
+
contents = map({
|
|
834
717
|
$metadata: deserializeMetadata(output),
|
|
835
|
-
|
|
836
|
-
nextToken: undefined,
|
|
837
|
-
};
|
|
718
|
+
});
|
|
838
719
|
_a = __expectNonNull;
|
|
839
720
|
_b = __expectObject;
|
|
840
721
|
return [4, parseBody(output.body, context)];
|
|
841
722
|
case 1:
|
|
842
723
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
843
|
-
if (data.applications
|
|
724
|
+
if (data.applications != null) {
|
|
844
725
|
contents.applications = deserializeAws_restJson1ApplicationList(data.applications, context);
|
|
845
726
|
}
|
|
846
|
-
if (data.nextToken
|
|
727
|
+
if (data.nextToken != null) {
|
|
847
728
|
contents.nextToken = __expectString(data.nextToken);
|
|
848
729
|
}
|
|
849
|
-
return [2,
|
|
730
|
+
return [2, contents];
|
|
850
731
|
}
|
|
851
732
|
});
|
|
852
733
|
}); };
|
|
853
734
|
var deserializeAws_restJson1ListApplicationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
854
|
-
var parsedOutput, _a,
|
|
735
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
855
736
|
var _c;
|
|
856
737
|
return __generator(this, function (_d) {
|
|
857
738
|
switch (_d.label) {
|
|
@@ -876,14 +757,14 @@ var deserializeAws_restJson1ListApplicationsCommandError = function (output, con
|
|
|
876
757
|
case 5: throw _d.sent();
|
|
877
758
|
case 6:
|
|
878
759
|
parsedBody = parsedOutput.body;
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
$metadata: $metadata,
|
|
760
|
+
throwDefaultError({
|
|
761
|
+
output: output,
|
|
762
|
+
parsedBody: parsedBody,
|
|
763
|
+
exceptionCtor: __BaseException,
|
|
764
|
+
errorCode: errorCode,
|
|
885
765
|
});
|
|
886
|
-
|
|
766
|
+
_d.label = 7;
|
|
767
|
+
case 7: return [2];
|
|
887
768
|
}
|
|
888
769
|
});
|
|
889
770
|
}); };
|
|
@@ -895,28 +776,26 @@ export var deserializeAws_restJson1ListJobRunsCommand = function (output, contex
|
|
|
895
776
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
896
777
|
return [2, deserializeAws_restJson1ListJobRunsCommandError(output, context)];
|
|
897
778
|
}
|
|
898
|
-
contents = {
|
|
779
|
+
contents = map({
|
|
899
780
|
$metadata: deserializeMetadata(output),
|
|
900
|
-
|
|
901
|
-
nextToken: undefined,
|
|
902
|
-
};
|
|
781
|
+
});
|
|
903
782
|
_a = __expectNonNull;
|
|
904
783
|
_b = __expectObject;
|
|
905
784
|
return [4, parseBody(output.body, context)];
|
|
906
785
|
case 1:
|
|
907
786
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
908
|
-
if (data.jobRuns
|
|
787
|
+
if (data.jobRuns != null) {
|
|
909
788
|
contents.jobRuns = deserializeAws_restJson1JobRuns(data.jobRuns, context);
|
|
910
789
|
}
|
|
911
|
-
if (data.nextToken
|
|
790
|
+
if (data.nextToken != null) {
|
|
912
791
|
contents.nextToken = __expectString(data.nextToken);
|
|
913
792
|
}
|
|
914
|
-
return [2,
|
|
793
|
+
return [2, contents];
|
|
915
794
|
}
|
|
916
795
|
});
|
|
917
796
|
}); };
|
|
918
797
|
var deserializeAws_restJson1ListJobRunsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
919
|
-
var parsedOutput, _a,
|
|
798
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
920
799
|
var _c;
|
|
921
800
|
return __generator(this, function (_d) {
|
|
922
801
|
switch (_d.label) {
|
|
@@ -941,14 +820,14 @@ var deserializeAws_restJson1ListJobRunsCommandError = function (output, context)
|
|
|
941
820
|
case 5: throw _d.sent();
|
|
942
821
|
case 6:
|
|
943
822
|
parsedBody = parsedOutput.body;
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
$metadata: $metadata,
|
|
823
|
+
throwDefaultError({
|
|
824
|
+
output: output,
|
|
825
|
+
parsedBody: parsedBody,
|
|
826
|
+
exceptionCtor: __BaseException,
|
|
827
|
+
errorCode: errorCode,
|
|
950
828
|
});
|
|
951
|
-
|
|
829
|
+
_d.label = 7;
|
|
830
|
+
case 7: return [2];
|
|
952
831
|
}
|
|
953
832
|
});
|
|
954
833
|
}); };
|
|
@@ -960,24 +839,23 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
960
839
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
961
840
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
962
841
|
}
|
|
963
|
-
contents = {
|
|
842
|
+
contents = map({
|
|
964
843
|
$metadata: deserializeMetadata(output),
|
|
965
|
-
|
|
966
|
-
};
|
|
844
|
+
});
|
|
967
845
|
_a = __expectNonNull;
|
|
968
846
|
_b = __expectObject;
|
|
969
847
|
return [4, parseBody(output.body, context)];
|
|
970
848
|
case 1:
|
|
971
849
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
972
|
-
if (data.tags
|
|
850
|
+
if (data.tags != null) {
|
|
973
851
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
974
852
|
}
|
|
975
|
-
return [2,
|
|
853
|
+
return [2, contents];
|
|
976
854
|
}
|
|
977
855
|
});
|
|
978
856
|
}); };
|
|
979
857
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
980
|
-
var parsedOutput, _a,
|
|
858
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
981
859
|
var _c;
|
|
982
860
|
return __generator(this, function (_d) {
|
|
983
861
|
switch (_d.label) {
|
|
@@ -1006,14 +884,14 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1006
884
|
case 7: throw _d.sent();
|
|
1007
885
|
case 8:
|
|
1008
886
|
parsedBody = parsedOutput.body;
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
$metadata: $metadata,
|
|
887
|
+
throwDefaultError({
|
|
888
|
+
output: output,
|
|
889
|
+
parsedBody: parsedBody,
|
|
890
|
+
exceptionCtor: __BaseException,
|
|
891
|
+
errorCode: errorCode,
|
|
1015
892
|
});
|
|
1016
|
-
|
|
893
|
+
_d.label = 9;
|
|
894
|
+
case 9: return [2];
|
|
1017
895
|
}
|
|
1018
896
|
});
|
|
1019
897
|
}); };
|
|
@@ -1025,18 +903,18 @@ export var deserializeAws_restJson1StartApplicationCommand = function (output, c
|
|
|
1025
903
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1026
904
|
return [2, deserializeAws_restJson1StartApplicationCommandError(output, context)];
|
|
1027
905
|
}
|
|
1028
|
-
contents = {
|
|
906
|
+
contents = map({
|
|
1029
907
|
$metadata: deserializeMetadata(output),
|
|
1030
|
-
};
|
|
908
|
+
});
|
|
1031
909
|
return [4, collectBody(output.body, context)];
|
|
1032
910
|
case 1:
|
|
1033
911
|
_a.sent();
|
|
1034
|
-
return [2,
|
|
912
|
+
return [2, contents];
|
|
1035
913
|
}
|
|
1036
914
|
});
|
|
1037
915
|
}); };
|
|
1038
916
|
var deserializeAws_restJson1StartApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1039
|
-
var parsedOutput, _a,
|
|
917
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1040
918
|
var _c;
|
|
1041
919
|
return __generator(this, function (_d) {
|
|
1042
920
|
switch (_d.label) {
|
|
@@ -1069,14 +947,14 @@ var deserializeAws_restJson1StartApplicationCommandError = function (output, con
|
|
|
1069
947
|
case 9: throw _d.sent();
|
|
1070
948
|
case 10:
|
|
1071
949
|
parsedBody = parsedOutput.body;
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
$metadata: $metadata,
|
|
950
|
+
throwDefaultError({
|
|
951
|
+
output: output,
|
|
952
|
+
parsedBody: parsedBody,
|
|
953
|
+
exceptionCtor: __BaseException,
|
|
954
|
+
errorCode: errorCode,
|
|
1078
955
|
});
|
|
1079
|
-
|
|
956
|
+
_d.label = 11;
|
|
957
|
+
case 11: return [2];
|
|
1080
958
|
}
|
|
1081
959
|
});
|
|
1082
960
|
}); };
|
|
@@ -1088,32 +966,29 @@ export var deserializeAws_restJson1StartJobRunCommand = function (output, contex
|
|
|
1088
966
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1089
967
|
return [2, deserializeAws_restJson1StartJobRunCommandError(output, context)];
|
|
1090
968
|
}
|
|
1091
|
-
contents = {
|
|
969
|
+
contents = map({
|
|
1092
970
|
$metadata: deserializeMetadata(output),
|
|
1093
|
-
|
|
1094
|
-
arn: undefined,
|
|
1095
|
-
jobRunId: undefined,
|
|
1096
|
-
};
|
|
971
|
+
});
|
|
1097
972
|
_a = __expectNonNull;
|
|
1098
973
|
_b = __expectObject;
|
|
1099
974
|
return [4, parseBody(output.body, context)];
|
|
1100
975
|
case 1:
|
|
1101
976
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1102
|
-
if (data.applicationId
|
|
977
|
+
if (data.applicationId != null) {
|
|
1103
978
|
contents.applicationId = __expectString(data.applicationId);
|
|
1104
979
|
}
|
|
1105
|
-
if (data.arn
|
|
980
|
+
if (data.arn != null) {
|
|
1106
981
|
contents.arn = __expectString(data.arn);
|
|
1107
982
|
}
|
|
1108
|
-
if (data.jobRunId
|
|
983
|
+
if (data.jobRunId != null) {
|
|
1109
984
|
contents.jobRunId = __expectString(data.jobRunId);
|
|
1110
985
|
}
|
|
1111
|
-
return [2,
|
|
986
|
+
return [2, contents];
|
|
1112
987
|
}
|
|
1113
988
|
});
|
|
1114
989
|
}); };
|
|
1115
990
|
var deserializeAws_restJson1StartJobRunCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1116
|
-
var parsedOutput, _a,
|
|
991
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1117
992
|
var _c;
|
|
1118
993
|
return __generator(this, function (_d) {
|
|
1119
994
|
switch (_d.label) {
|
|
@@ -1146,14 +1021,14 @@ var deserializeAws_restJson1StartJobRunCommandError = function (output, context)
|
|
|
1146
1021
|
case 9: throw _d.sent();
|
|
1147
1022
|
case 10:
|
|
1148
1023
|
parsedBody = parsedOutput.body;
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
$metadata: $metadata,
|
|
1024
|
+
throwDefaultError({
|
|
1025
|
+
output: output,
|
|
1026
|
+
parsedBody: parsedBody,
|
|
1027
|
+
exceptionCtor: __BaseException,
|
|
1028
|
+
errorCode: errorCode,
|
|
1155
1029
|
});
|
|
1156
|
-
|
|
1030
|
+
_d.label = 11;
|
|
1031
|
+
case 11: return [2];
|
|
1157
1032
|
}
|
|
1158
1033
|
});
|
|
1159
1034
|
}); };
|
|
@@ -1165,18 +1040,18 @@ export var deserializeAws_restJson1StopApplicationCommand = function (output, co
|
|
|
1165
1040
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1166
1041
|
return [2, deserializeAws_restJson1StopApplicationCommandError(output, context)];
|
|
1167
1042
|
}
|
|
1168
|
-
contents = {
|
|
1043
|
+
contents = map({
|
|
1169
1044
|
$metadata: deserializeMetadata(output),
|
|
1170
|
-
};
|
|
1045
|
+
});
|
|
1171
1046
|
return [4, collectBody(output.body, context)];
|
|
1172
1047
|
case 1:
|
|
1173
1048
|
_a.sent();
|
|
1174
|
-
return [2,
|
|
1049
|
+
return [2, contents];
|
|
1175
1050
|
}
|
|
1176
1051
|
});
|
|
1177
1052
|
}); };
|
|
1178
1053
|
var deserializeAws_restJson1StopApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1179
|
-
var parsedOutput, _a,
|
|
1054
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1180
1055
|
var _c;
|
|
1181
1056
|
return __generator(this, function (_d) {
|
|
1182
1057
|
switch (_d.label) {
|
|
@@ -1205,14 +1080,14 @@ var deserializeAws_restJson1StopApplicationCommandError = function (output, cont
|
|
|
1205
1080
|
case 7: throw _d.sent();
|
|
1206
1081
|
case 8:
|
|
1207
1082
|
parsedBody = parsedOutput.body;
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
$metadata: $metadata,
|
|
1083
|
+
throwDefaultError({
|
|
1084
|
+
output: output,
|
|
1085
|
+
parsedBody: parsedBody,
|
|
1086
|
+
exceptionCtor: __BaseException,
|
|
1087
|
+
errorCode: errorCode,
|
|
1214
1088
|
});
|
|
1215
|
-
|
|
1089
|
+
_d.label = 9;
|
|
1090
|
+
case 9: return [2];
|
|
1216
1091
|
}
|
|
1217
1092
|
});
|
|
1218
1093
|
}); };
|
|
@@ -1224,18 +1099,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
1224
1099
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1225
1100
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
1226
1101
|
}
|
|
1227
|
-
contents = {
|
|
1102
|
+
contents = map({
|
|
1228
1103
|
$metadata: deserializeMetadata(output),
|
|
1229
|
-
};
|
|
1104
|
+
});
|
|
1230
1105
|
return [4, collectBody(output.body, context)];
|
|
1231
1106
|
case 1:
|
|
1232
1107
|
_a.sent();
|
|
1233
|
-
return [2,
|
|
1108
|
+
return [2, contents];
|
|
1234
1109
|
}
|
|
1235
1110
|
});
|
|
1236
1111
|
}); };
|
|
1237
1112
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1238
|
-
var parsedOutput, _a,
|
|
1113
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1239
1114
|
var _c;
|
|
1240
1115
|
return __generator(this, function (_d) {
|
|
1241
1116
|
switch (_d.label) {
|
|
@@ -1264,14 +1139,14 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1264
1139
|
case 7: throw _d.sent();
|
|
1265
1140
|
case 8:
|
|
1266
1141
|
parsedBody = parsedOutput.body;
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
$metadata: $metadata,
|
|
1142
|
+
throwDefaultError({
|
|
1143
|
+
output: output,
|
|
1144
|
+
parsedBody: parsedBody,
|
|
1145
|
+
exceptionCtor: __BaseException,
|
|
1146
|
+
errorCode: errorCode,
|
|
1273
1147
|
});
|
|
1274
|
-
|
|
1148
|
+
_d.label = 9;
|
|
1149
|
+
case 9: return [2];
|
|
1275
1150
|
}
|
|
1276
1151
|
});
|
|
1277
1152
|
}); };
|
|
@@ -1283,18 +1158,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
1283
1158
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1284
1159
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
1285
1160
|
}
|
|
1286
|
-
contents = {
|
|
1161
|
+
contents = map({
|
|
1287
1162
|
$metadata: deserializeMetadata(output),
|
|
1288
|
-
};
|
|
1163
|
+
});
|
|
1289
1164
|
return [4, collectBody(output.body, context)];
|
|
1290
1165
|
case 1:
|
|
1291
1166
|
_a.sent();
|
|
1292
|
-
return [2,
|
|
1167
|
+
return [2, contents];
|
|
1293
1168
|
}
|
|
1294
1169
|
});
|
|
1295
1170
|
}); };
|
|
1296
1171
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1297
|
-
var parsedOutput, _a,
|
|
1172
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1298
1173
|
var _c;
|
|
1299
1174
|
return __generator(this, function (_d) {
|
|
1300
1175
|
switch (_d.label) {
|
|
@@ -1323,14 +1198,14 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1323
1198
|
case 7: throw _d.sent();
|
|
1324
1199
|
case 8:
|
|
1325
1200
|
parsedBody = parsedOutput.body;
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
$metadata: $metadata,
|
|
1201
|
+
throwDefaultError({
|
|
1202
|
+
output: output,
|
|
1203
|
+
parsedBody: parsedBody,
|
|
1204
|
+
exceptionCtor: __BaseException,
|
|
1205
|
+
errorCode: errorCode,
|
|
1332
1206
|
});
|
|
1333
|
-
|
|
1207
|
+
_d.label = 9;
|
|
1208
|
+
case 9: return [2];
|
|
1334
1209
|
}
|
|
1335
1210
|
});
|
|
1336
1211
|
}); };
|
|
@@ -1342,24 +1217,23 @@ export var deserializeAws_restJson1UpdateApplicationCommand = function (output,
|
|
|
1342
1217
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1343
1218
|
return [2, deserializeAws_restJson1UpdateApplicationCommandError(output, context)];
|
|
1344
1219
|
}
|
|
1345
|
-
contents = {
|
|
1220
|
+
contents = map({
|
|
1346
1221
|
$metadata: deserializeMetadata(output),
|
|
1347
|
-
|
|
1348
|
-
};
|
|
1222
|
+
});
|
|
1349
1223
|
_a = __expectNonNull;
|
|
1350
1224
|
_b = __expectObject;
|
|
1351
1225
|
return [4, parseBody(output.body, context)];
|
|
1352
1226
|
case 1:
|
|
1353
1227
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1354
|
-
if (data.application
|
|
1228
|
+
if (data.application != null) {
|
|
1355
1229
|
contents.application = deserializeAws_restJson1Application(data.application, context);
|
|
1356
1230
|
}
|
|
1357
|
-
return [2,
|
|
1231
|
+
return [2, contents];
|
|
1358
1232
|
}
|
|
1359
1233
|
});
|
|
1360
1234
|
}); };
|
|
1361
1235
|
var deserializeAws_restJson1UpdateApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1362
|
-
var parsedOutput, _a,
|
|
1236
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1363
1237
|
var _c;
|
|
1364
1238
|
return __generator(this, function (_d) {
|
|
1365
1239
|
switch (_d.label) {
|
|
@@ -1388,23 +1262,24 @@ var deserializeAws_restJson1UpdateApplicationCommandError = function (output, co
|
|
|
1388
1262
|
case 7: throw _d.sent();
|
|
1389
1263
|
case 8:
|
|
1390
1264
|
parsedBody = parsedOutput.body;
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
$metadata: $metadata,
|
|
1265
|
+
throwDefaultError({
|
|
1266
|
+
output: output,
|
|
1267
|
+
parsedBody: parsedBody,
|
|
1268
|
+
exceptionCtor: __BaseException,
|
|
1269
|
+
errorCode: errorCode,
|
|
1397
1270
|
});
|
|
1398
|
-
|
|
1271
|
+
_d.label = 9;
|
|
1272
|
+
case 9: return [2];
|
|
1399
1273
|
}
|
|
1400
1274
|
});
|
|
1401
1275
|
}); };
|
|
1276
|
+
var map = __map;
|
|
1402
1277
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1403
1278
|
var contents, data, exception;
|
|
1404
1279
|
return __generator(this, function (_a) {
|
|
1405
|
-
contents = {};
|
|
1280
|
+
contents = map({});
|
|
1406
1281
|
data = parsedOutput.body;
|
|
1407
|
-
if (data.message
|
|
1282
|
+
if (data.message != null) {
|
|
1408
1283
|
contents.message = __expectString(data.message);
|
|
1409
1284
|
}
|
|
1410
1285
|
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1414,9 +1289,9 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
1414
1289
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1415
1290
|
var contents, data, exception;
|
|
1416
1291
|
return __generator(this, function (_a) {
|
|
1417
|
-
contents = {};
|
|
1292
|
+
contents = map({});
|
|
1418
1293
|
data = parsedOutput.body;
|
|
1419
|
-
if (data.message
|
|
1294
|
+
if (data.message != null) {
|
|
1420
1295
|
contents.message = __expectString(data.message);
|
|
1421
1296
|
}
|
|
1422
1297
|
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1426,9 +1301,9 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
1426
1301
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1427
1302
|
var contents, data, exception;
|
|
1428
1303
|
return __generator(this, function (_a) {
|
|
1429
|
-
contents = {};
|
|
1304
|
+
contents = map({});
|
|
1430
1305
|
data = parsedOutput.body;
|
|
1431
|
-
if (data.message
|
|
1306
|
+
if (data.message != null) {
|
|
1432
1307
|
contents.message = __expectString(data.message);
|
|
1433
1308
|
}
|
|
1434
1309
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1438,9 +1313,9 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
1438
1313
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1439
1314
|
var contents, data, exception;
|
|
1440
1315
|
return __generator(this, function (_a) {
|
|
1441
|
-
contents = {};
|
|
1316
|
+
contents = map({});
|
|
1442
1317
|
data = parsedOutput.body;
|
|
1443
|
-
if (data.message
|
|
1318
|
+
if (data.message != null) {
|
|
1444
1319
|
contents.message = __expectString(data.message);
|
|
1445
1320
|
}
|
|
1446
1321
|
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1450,9 +1325,9 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
1450
1325
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1451
1326
|
var contents, data, exception;
|
|
1452
1327
|
return __generator(this, function (_a) {
|
|
1453
|
-
contents = {};
|
|
1328
|
+
contents = map({});
|
|
1454
1329
|
data = parsedOutput.body;
|
|
1455
|
-
if (data.message
|
|
1330
|
+
if (data.message != null) {
|
|
1456
1331
|
contents.message = __expectString(data.message);
|
|
1457
1332
|
}
|
|
1458
1333
|
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1476,9 +1351,6 @@ var serializeAws_restJson1ConfigurationList = function (input, context) {
|
|
|
1476
1351
|
return input
|
|
1477
1352
|
.filter(function (e) { return e != null; })
|
|
1478
1353
|
.map(function (entry) {
|
|
1479
|
-
if (entry === null) {
|
|
1480
|
-
return null;
|
|
1481
|
-
}
|
|
1482
1354
|
return serializeAws_restJson1Configuration(entry, context);
|
|
1483
1355
|
});
|
|
1484
1356
|
};
|
|
@@ -1493,9 +1365,6 @@ var serializeAws_restJson1EntryPointArguments = function (input, context) {
|
|
|
1493
1365
|
return input
|
|
1494
1366
|
.filter(function (e) { return e != null; })
|
|
1495
1367
|
.map(function (entry) {
|
|
1496
|
-
if (entry === null) {
|
|
1497
|
-
return null;
|
|
1498
|
-
}
|
|
1499
1368
|
return entry;
|
|
1500
1369
|
});
|
|
1501
1370
|
};
|
|
@@ -1549,9 +1418,6 @@ var serializeAws_restJson1SecurityGroupIds = function (input, context) {
|
|
|
1549
1418
|
return input
|
|
1550
1419
|
.filter(function (e) { return e != null; })
|
|
1551
1420
|
.map(function (entry) {
|
|
1552
|
-
if (entry === null) {
|
|
1553
|
-
return null;
|
|
1554
|
-
}
|
|
1555
1421
|
return entry;
|
|
1556
1422
|
});
|
|
1557
1423
|
};
|
|
@@ -1574,9 +1440,6 @@ var serializeAws_restJson1SubnetIds = function (input, context) {
|
|
|
1574
1440
|
return input
|
|
1575
1441
|
.filter(function (e) { return e != null; })
|
|
1576
1442
|
.map(function (entry) {
|
|
1577
|
-
if (entry === null) {
|
|
1578
|
-
return null;
|
|
1579
|
-
}
|
|
1580
1443
|
return entry;
|
|
1581
1444
|
});
|
|
1582
1445
|
};
|
|
@@ -1726,12 +1589,12 @@ var deserializeAws_restJson1InitialCapacityConfigMap = function (output, context
|
|
|
1726
1589
|
}, {});
|
|
1727
1590
|
};
|
|
1728
1591
|
var deserializeAws_restJson1JobDriver = function (output, context) {
|
|
1729
|
-
if (output.hive
|
|
1592
|
+
if (output.hive != null) {
|
|
1730
1593
|
return {
|
|
1731
1594
|
hive: deserializeAws_restJson1Hive(output.hive, context),
|
|
1732
1595
|
};
|
|
1733
1596
|
}
|
|
1734
|
-
if (output.sparkSubmit
|
|
1597
|
+
if (output.sparkSubmit != null) {
|
|
1735
1598
|
return {
|
|
1736
1599
|
sparkSubmit: deserializeAws_restJson1SparkSubmit(output.sparkSubmit, context),
|
|
1737
1600
|
};
|