@aws-sdk/client-emr-serverless 3.303.0 → 3.309.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/dist-cjs/commands/CancelJobRunCommand.js +2 -2
- package/dist-cjs/commands/CreateApplicationCommand.js +2 -2
- package/dist-cjs/commands/DeleteApplicationCommand.js +2 -2
- package/dist-cjs/commands/GetApplicationCommand.js +2 -2
- package/dist-cjs/commands/GetDashboardForJobRunCommand.js +2 -2
- package/dist-cjs/commands/GetJobRunCommand.js +2 -2
- package/dist-cjs/commands/ListApplicationsCommand.js +2 -2
- package/dist-cjs/commands/ListJobRunsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/StartApplicationCommand.js +2 -2
- package/dist-cjs/commands/StartJobRunCommand.js +2 -2
- package/dist-cjs/commands/StopApplicationCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateApplicationCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +269 -303
- package/dist-es/commands/CancelJobRunCommand.js +3 -3
- package/dist-es/commands/CreateApplicationCommand.js +3 -3
- package/dist-es/commands/DeleteApplicationCommand.js +3 -3
- package/dist-es/commands/GetApplicationCommand.js +3 -3
- package/dist-es/commands/GetDashboardForJobRunCommand.js +3 -3
- package/dist-es/commands/GetJobRunCommand.js +3 -3
- package/dist-es/commands/ListApplicationsCommand.js +3 -3
- package/dist-es/commands/ListJobRunsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/StartApplicationCommand.js +3 -3
- package/dist-es/commands/StartJobRunCommand.js +3 -3
- package/dist-es/commands/StopApplicationCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateApplicationCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +238 -272
- package/dist-types/protocols/Aws_restJson1.d.ts +120 -30
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +30 -30
- package/package.json +29 -29
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_UpdateApplicationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopApplicationCommand = exports.de_StartJobRunCommand = exports.de_StartApplicationCommand = exports.de_ListTagsForResourceCommand = exports.de_ListJobRunsCommand = exports.de_ListApplicationsCommand = exports.de_GetJobRunCommand = exports.de_GetDashboardForJobRunCommand = exports.de_GetApplicationCommand = exports.de_DeleteApplicationCommand = exports.de_CreateApplicationCommand = exports.de_CancelJobRunCommand = exports.se_UpdateApplicationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopApplicationCommand = exports.se_StartJobRunCommand = exports.se_StartApplicationCommand = exports.se_ListTagsForResourceCommand = exports.se_ListJobRunsCommand = exports.se_ListApplicationsCommand = exports.se_GetJobRunCommand = exports.se_GetDashboardForJobRunCommand = exports.se_GetApplicationCommand = exports.se_DeleteApplicationCommand = exports.se_CreateApplicationCommand = exports.se_CancelJobRunCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const uuid_1 = require("uuid");
|
|
7
7
|
const EMRServerlessServiceException_1 = require("../models/EMRServerlessServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const
|
|
9
|
+
const se_CancelJobRunCommand = async (input, context) => {
|
|
10
10
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
11
11
|
const headers = {};
|
|
12
12
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -24,8 +24,8 @@ const serializeAws_restJson1CancelJobRunCommand = async (input, context) => {
|
|
|
24
24
|
body,
|
|
25
25
|
});
|
|
26
26
|
};
|
|
27
|
-
exports.
|
|
28
|
-
const
|
|
27
|
+
exports.se_CancelJobRunCommand = se_CancelJobRunCommand;
|
|
28
|
+
const se_CreateApplicationCommand = async (input, context) => {
|
|
29
29
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
30
30
|
const headers = {
|
|
31
31
|
"content-type": "application/json",
|
|
@@ -35,30 +35,30 @@ const serializeAws_restJson1CreateApplicationCommand = async (input, context) =>
|
|
|
35
35
|
body = JSON.stringify({
|
|
36
36
|
...(input.architecture != null && { architecture: input.architecture }),
|
|
37
37
|
...(input.autoStartConfiguration != null && {
|
|
38
|
-
autoStartConfiguration:
|
|
38
|
+
autoStartConfiguration: se_AutoStartConfig(input.autoStartConfiguration, context),
|
|
39
39
|
}),
|
|
40
40
|
...(input.autoStopConfiguration != null && {
|
|
41
|
-
autoStopConfiguration:
|
|
41
|
+
autoStopConfiguration: se_AutoStopConfig(input.autoStopConfiguration, context),
|
|
42
42
|
}),
|
|
43
43
|
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
44
44
|
...(input.imageConfiguration != null && {
|
|
45
|
-
imageConfiguration:
|
|
45
|
+
imageConfiguration: se_ImageConfigurationInput(input.imageConfiguration, context),
|
|
46
46
|
}),
|
|
47
47
|
...(input.initialCapacity != null && {
|
|
48
|
-
initialCapacity:
|
|
48
|
+
initialCapacity: se_InitialCapacityConfigMap(input.initialCapacity, context),
|
|
49
49
|
}),
|
|
50
50
|
...(input.maximumCapacity != null && {
|
|
51
|
-
maximumCapacity:
|
|
51
|
+
maximumCapacity: se_MaximumAllowedResources(input.maximumCapacity, context),
|
|
52
52
|
}),
|
|
53
53
|
...(input.name != null && { name: input.name }),
|
|
54
54
|
...(input.networkConfiguration != null && {
|
|
55
|
-
networkConfiguration:
|
|
55
|
+
networkConfiguration: se_NetworkConfiguration(input.networkConfiguration, context),
|
|
56
56
|
}),
|
|
57
57
|
...(input.releaseLabel != null && { releaseLabel: input.releaseLabel }),
|
|
58
|
-
...(input.tags != null && { tags:
|
|
58
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
59
59
|
...(input.type != null && { type: input.type }),
|
|
60
60
|
...(input.workerTypeSpecifications != null && {
|
|
61
|
-
workerTypeSpecifications:
|
|
61
|
+
workerTypeSpecifications: se_WorkerTypeSpecificationInputMap(input.workerTypeSpecifications, context),
|
|
62
62
|
}),
|
|
63
63
|
});
|
|
64
64
|
return new protocol_http_1.HttpRequest({
|
|
@@ -71,8 +71,8 @@ const serializeAws_restJson1CreateApplicationCommand = async (input, context) =>
|
|
|
71
71
|
body,
|
|
72
72
|
});
|
|
73
73
|
};
|
|
74
|
-
exports.
|
|
75
|
-
const
|
|
74
|
+
exports.se_CreateApplicationCommand = se_CreateApplicationCommand;
|
|
75
|
+
const se_DeleteApplicationCommand = async (input, context) => {
|
|
76
76
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
77
77
|
const headers = {};
|
|
78
78
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}";
|
|
@@ -88,8 +88,8 @@ const serializeAws_restJson1DeleteApplicationCommand = async (input, context) =>
|
|
|
88
88
|
body,
|
|
89
89
|
});
|
|
90
90
|
};
|
|
91
|
-
exports.
|
|
92
|
-
const
|
|
91
|
+
exports.se_DeleteApplicationCommand = se_DeleteApplicationCommand;
|
|
92
|
+
const se_GetApplicationCommand = async (input, context) => {
|
|
93
93
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
94
94
|
const headers = {};
|
|
95
95
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}";
|
|
@@ -105,8 +105,8 @@ const serializeAws_restJson1GetApplicationCommand = async (input, context) => {
|
|
|
105
105
|
body,
|
|
106
106
|
});
|
|
107
107
|
};
|
|
108
|
-
exports.
|
|
109
|
-
const
|
|
108
|
+
exports.se_GetApplicationCommand = se_GetApplicationCommand;
|
|
109
|
+
const se_GetDashboardForJobRunCommand = async (input, context) => {
|
|
110
110
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
111
111
|
const headers = {};
|
|
112
112
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -124,8 +124,8 @@ const serializeAws_restJson1GetDashboardForJobRunCommand = async (input, context
|
|
|
124
124
|
body,
|
|
125
125
|
});
|
|
126
126
|
};
|
|
127
|
-
exports.
|
|
128
|
-
const
|
|
127
|
+
exports.se_GetDashboardForJobRunCommand = se_GetDashboardForJobRunCommand;
|
|
128
|
+
const se_GetJobRunCommand = async (input, context) => {
|
|
129
129
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
130
130
|
const headers = {};
|
|
131
131
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -143,8 +143,8 @@ const serializeAws_restJson1GetJobRunCommand = async (input, context) => {
|
|
|
143
143
|
body,
|
|
144
144
|
});
|
|
145
145
|
};
|
|
146
|
-
exports.
|
|
147
|
-
const
|
|
146
|
+
exports.se_GetJobRunCommand = se_GetJobRunCommand;
|
|
147
|
+
const se_ListApplicationsCommand = async (input, context) => {
|
|
148
148
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
149
149
|
const headers = {};
|
|
150
150
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
|
|
@@ -165,8 +165,8 @@ const serializeAws_restJson1ListApplicationsCommand = async (input, context) =>
|
|
|
165
165
|
body,
|
|
166
166
|
});
|
|
167
167
|
};
|
|
168
|
-
exports.
|
|
169
|
-
const
|
|
168
|
+
exports.se_ListApplicationsCommand = se_ListApplicationsCommand;
|
|
169
|
+
const se_ListJobRunsCommand = async (input, context) => {
|
|
170
170
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
171
171
|
const headers = {};
|
|
172
172
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/jobruns";
|
|
@@ -196,8 +196,8 @@ const serializeAws_restJson1ListJobRunsCommand = async (input, context) => {
|
|
|
196
196
|
body,
|
|
197
197
|
});
|
|
198
198
|
};
|
|
199
|
-
exports.
|
|
200
|
-
const
|
|
199
|
+
exports.se_ListJobRunsCommand = se_ListJobRunsCommand;
|
|
200
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
201
201
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
202
202
|
const headers = {};
|
|
203
203
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -213,8 +213,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
213
213
|
body,
|
|
214
214
|
});
|
|
215
215
|
};
|
|
216
|
-
exports.
|
|
217
|
-
const
|
|
216
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
217
|
+
const se_StartApplicationCommand = async (input, context) => {
|
|
218
218
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
219
219
|
const headers = {};
|
|
220
220
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/start";
|
|
@@ -230,8 +230,8 @@ const serializeAws_restJson1StartApplicationCommand = async (input, context) =>
|
|
|
230
230
|
body,
|
|
231
231
|
});
|
|
232
232
|
};
|
|
233
|
-
exports.
|
|
234
|
-
const
|
|
233
|
+
exports.se_StartApplicationCommand = se_StartApplicationCommand;
|
|
234
|
+
const se_StartJobRunCommand = async (input, context) => {
|
|
235
235
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
236
236
|
const headers = {
|
|
237
237
|
"content-type": "application/json",
|
|
@@ -242,13 +242,13 @@ const serializeAws_restJson1StartJobRunCommand = async (input, context) => {
|
|
|
242
242
|
body = JSON.stringify({
|
|
243
243
|
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
244
244
|
...(input.configurationOverrides != null && {
|
|
245
|
-
configurationOverrides:
|
|
245
|
+
configurationOverrides: se_ConfigurationOverrides(input.configurationOverrides, context),
|
|
246
246
|
}),
|
|
247
247
|
...(input.executionRoleArn != null && { executionRoleArn: input.executionRoleArn }),
|
|
248
248
|
...(input.executionTimeoutMinutes != null && { executionTimeoutMinutes: input.executionTimeoutMinutes }),
|
|
249
|
-
...(input.jobDriver != null && { jobDriver:
|
|
249
|
+
...(input.jobDriver != null && { jobDriver: se_JobDriver(input.jobDriver, context) }),
|
|
250
250
|
...(input.name != null && { name: input.name }),
|
|
251
|
-
...(input.tags != null && { tags:
|
|
251
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
252
252
|
});
|
|
253
253
|
return new protocol_http_1.HttpRequest({
|
|
254
254
|
protocol,
|
|
@@ -260,8 +260,8 @@ const serializeAws_restJson1StartJobRunCommand = async (input, context) => {
|
|
|
260
260
|
body,
|
|
261
261
|
});
|
|
262
262
|
};
|
|
263
|
-
exports.
|
|
264
|
-
const
|
|
263
|
+
exports.se_StartJobRunCommand = se_StartJobRunCommand;
|
|
264
|
+
const se_StopApplicationCommand = async (input, context) => {
|
|
265
265
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
266
266
|
const headers = {};
|
|
267
267
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/stop";
|
|
@@ -277,8 +277,8 @@ const serializeAws_restJson1StopApplicationCommand = async (input, context) => {
|
|
|
277
277
|
body,
|
|
278
278
|
});
|
|
279
279
|
};
|
|
280
|
-
exports.
|
|
281
|
-
const
|
|
280
|
+
exports.se_StopApplicationCommand = se_StopApplicationCommand;
|
|
281
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
282
282
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
283
283
|
const headers = {
|
|
284
284
|
"content-type": "application/json",
|
|
@@ -287,7 +287,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
287
287
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
288
288
|
let body;
|
|
289
289
|
body = JSON.stringify({
|
|
290
|
-
...(input.tags != null && { tags:
|
|
290
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
291
291
|
});
|
|
292
292
|
return new protocol_http_1.HttpRequest({
|
|
293
293
|
protocol,
|
|
@@ -299,8 +299,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
299
299
|
body,
|
|
300
300
|
});
|
|
301
301
|
};
|
|
302
|
-
exports.
|
|
303
|
-
const
|
|
302
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
303
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
304
304
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
305
305
|
const headers = {};
|
|
306
306
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -323,8 +323,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
323
323
|
body,
|
|
324
324
|
});
|
|
325
325
|
};
|
|
326
|
-
exports.
|
|
327
|
-
const
|
|
326
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
327
|
+
const se_UpdateApplicationCommand = async (input, context) => {
|
|
328
328
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
329
329
|
const headers = {
|
|
330
330
|
"content-type": "application/json",
|
|
@@ -335,26 +335,26 @@ const serializeAws_restJson1UpdateApplicationCommand = async (input, context) =>
|
|
|
335
335
|
body = JSON.stringify({
|
|
336
336
|
...(input.architecture != null && { architecture: input.architecture }),
|
|
337
337
|
...(input.autoStartConfiguration != null && {
|
|
338
|
-
autoStartConfiguration:
|
|
338
|
+
autoStartConfiguration: se_AutoStartConfig(input.autoStartConfiguration, context),
|
|
339
339
|
}),
|
|
340
340
|
...(input.autoStopConfiguration != null && {
|
|
341
|
-
autoStopConfiguration:
|
|
341
|
+
autoStopConfiguration: se_AutoStopConfig(input.autoStopConfiguration, context),
|
|
342
342
|
}),
|
|
343
343
|
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
344
344
|
...(input.imageConfiguration != null && {
|
|
345
|
-
imageConfiguration:
|
|
345
|
+
imageConfiguration: se_ImageConfigurationInput(input.imageConfiguration, context),
|
|
346
346
|
}),
|
|
347
347
|
...(input.initialCapacity != null && {
|
|
348
|
-
initialCapacity:
|
|
348
|
+
initialCapacity: se_InitialCapacityConfigMap(input.initialCapacity, context),
|
|
349
349
|
}),
|
|
350
350
|
...(input.maximumCapacity != null && {
|
|
351
|
-
maximumCapacity:
|
|
351
|
+
maximumCapacity: se_MaximumAllowedResources(input.maximumCapacity, context),
|
|
352
352
|
}),
|
|
353
353
|
...(input.networkConfiguration != null && {
|
|
354
|
-
networkConfiguration:
|
|
354
|
+
networkConfiguration: se_NetworkConfiguration(input.networkConfiguration, context),
|
|
355
355
|
}),
|
|
356
356
|
...(input.workerTypeSpecifications != null && {
|
|
357
|
-
workerTypeSpecifications:
|
|
357
|
+
workerTypeSpecifications: se_WorkerTypeSpecificationInputMap(input.workerTypeSpecifications, context),
|
|
358
358
|
}),
|
|
359
359
|
});
|
|
360
360
|
return new protocol_http_1.HttpRequest({
|
|
@@ -367,10 +367,10 @@ const serializeAws_restJson1UpdateApplicationCommand = async (input, context) =>
|
|
|
367
367
|
body,
|
|
368
368
|
});
|
|
369
369
|
};
|
|
370
|
-
exports.
|
|
371
|
-
const
|
|
370
|
+
exports.se_UpdateApplicationCommand = se_UpdateApplicationCommand;
|
|
371
|
+
const de_CancelJobRunCommand = async (output, context) => {
|
|
372
372
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
373
|
-
return
|
|
373
|
+
return de_CancelJobRunCommandError(output, context);
|
|
374
374
|
}
|
|
375
375
|
const contents = map({
|
|
376
376
|
$metadata: deserializeMetadata(output),
|
|
@@ -384,8 +384,8 @@ const deserializeAws_restJson1CancelJobRunCommand = async (output, context) => {
|
|
|
384
384
|
}
|
|
385
385
|
return contents;
|
|
386
386
|
};
|
|
387
|
-
exports.
|
|
388
|
-
const
|
|
387
|
+
exports.de_CancelJobRunCommand = de_CancelJobRunCommand;
|
|
388
|
+
const de_CancelJobRunCommandError = async (output, context) => {
|
|
389
389
|
const parsedOutput = {
|
|
390
390
|
...output,
|
|
391
391
|
body: await parseErrorBody(output.body, context),
|
|
@@ -394,13 +394,13 @@ const deserializeAws_restJson1CancelJobRunCommandError = async (output, context)
|
|
|
394
394
|
switch (errorCode) {
|
|
395
395
|
case "InternalServerException":
|
|
396
396
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
397
|
-
throw await
|
|
397
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
398
398
|
case "ResourceNotFoundException":
|
|
399
399
|
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
400
|
-
throw await
|
|
400
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
401
401
|
case "ValidationException":
|
|
402
402
|
case "com.amazonaws.emrserverless#ValidationException":
|
|
403
|
-
throw await
|
|
403
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
404
404
|
default:
|
|
405
405
|
const parsedBody = parsedOutput.body;
|
|
406
406
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -411,9 +411,9 @@ const deserializeAws_restJson1CancelJobRunCommandError = async (output, context)
|
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
413
|
};
|
|
414
|
-
const
|
|
414
|
+
const de_CreateApplicationCommand = async (output, context) => {
|
|
415
415
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
416
|
-
return
|
|
416
|
+
return de_CreateApplicationCommandError(output, context);
|
|
417
417
|
}
|
|
418
418
|
const contents = map({
|
|
419
419
|
$metadata: deserializeMetadata(output),
|
|
@@ -430,8 +430,8 @@ const deserializeAws_restJson1CreateApplicationCommand = async (output, context)
|
|
|
430
430
|
}
|
|
431
431
|
return contents;
|
|
432
432
|
};
|
|
433
|
-
exports.
|
|
434
|
-
const
|
|
433
|
+
exports.de_CreateApplicationCommand = de_CreateApplicationCommand;
|
|
434
|
+
const de_CreateApplicationCommandError = async (output, context) => {
|
|
435
435
|
const parsedOutput = {
|
|
436
436
|
...output,
|
|
437
437
|
body: await parseErrorBody(output.body, context),
|
|
@@ -440,16 +440,16 @@ const deserializeAws_restJson1CreateApplicationCommandError = async (output, con
|
|
|
440
440
|
switch (errorCode) {
|
|
441
441
|
case "ConflictException":
|
|
442
442
|
case "com.amazonaws.emrserverless#ConflictException":
|
|
443
|
-
throw await
|
|
443
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
444
444
|
case "InternalServerException":
|
|
445
445
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
446
|
-
throw await
|
|
446
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
447
447
|
case "ResourceNotFoundException":
|
|
448
448
|
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
449
|
-
throw await
|
|
449
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
450
450
|
case "ValidationException":
|
|
451
451
|
case "com.amazonaws.emrserverless#ValidationException":
|
|
452
|
-
throw await
|
|
452
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
453
453
|
default:
|
|
454
454
|
const parsedBody = parsedOutput.body;
|
|
455
455
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -460,9 +460,9 @@ const deserializeAws_restJson1CreateApplicationCommandError = async (output, con
|
|
|
460
460
|
});
|
|
461
461
|
}
|
|
462
462
|
};
|
|
463
|
-
const
|
|
463
|
+
const de_DeleteApplicationCommand = async (output, context) => {
|
|
464
464
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
465
|
-
return
|
|
465
|
+
return de_DeleteApplicationCommandError(output, context);
|
|
466
466
|
}
|
|
467
467
|
const contents = map({
|
|
468
468
|
$metadata: deserializeMetadata(output),
|
|
@@ -470,8 +470,8 @@ const deserializeAws_restJson1DeleteApplicationCommand = async (output, context)
|
|
|
470
470
|
await collectBody(output.body, context);
|
|
471
471
|
return contents;
|
|
472
472
|
};
|
|
473
|
-
exports.
|
|
474
|
-
const
|
|
473
|
+
exports.de_DeleteApplicationCommand = de_DeleteApplicationCommand;
|
|
474
|
+
const de_DeleteApplicationCommandError = async (output, context) => {
|
|
475
475
|
const parsedOutput = {
|
|
476
476
|
...output,
|
|
477
477
|
body: await parseErrorBody(output.body, context),
|
|
@@ -480,13 +480,13 @@ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, con
|
|
|
480
480
|
switch (errorCode) {
|
|
481
481
|
case "InternalServerException":
|
|
482
482
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
483
|
-
throw await
|
|
483
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
484
484
|
case "ResourceNotFoundException":
|
|
485
485
|
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
486
|
-
throw await
|
|
486
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
487
487
|
case "ValidationException":
|
|
488
488
|
case "com.amazonaws.emrserverless#ValidationException":
|
|
489
|
-
throw await
|
|
489
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
490
490
|
default:
|
|
491
491
|
const parsedBody = parsedOutput.body;
|
|
492
492
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -497,21 +497,21 @@ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, con
|
|
|
497
497
|
});
|
|
498
498
|
}
|
|
499
499
|
};
|
|
500
|
-
const
|
|
500
|
+
const de_GetApplicationCommand = async (output, context) => {
|
|
501
501
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
502
|
-
return
|
|
502
|
+
return de_GetApplicationCommandError(output, context);
|
|
503
503
|
}
|
|
504
504
|
const contents = map({
|
|
505
505
|
$metadata: deserializeMetadata(output),
|
|
506
506
|
});
|
|
507
507
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
508
508
|
if (data.application != null) {
|
|
509
|
-
contents.application =
|
|
509
|
+
contents.application = de_Application(data.application, context);
|
|
510
510
|
}
|
|
511
511
|
return contents;
|
|
512
512
|
};
|
|
513
|
-
exports.
|
|
514
|
-
const
|
|
513
|
+
exports.de_GetApplicationCommand = de_GetApplicationCommand;
|
|
514
|
+
const de_GetApplicationCommandError = async (output, context) => {
|
|
515
515
|
const parsedOutput = {
|
|
516
516
|
...output,
|
|
517
517
|
body: await parseErrorBody(output.body, context),
|
|
@@ -520,13 +520,13 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
520
520
|
switch (errorCode) {
|
|
521
521
|
case "InternalServerException":
|
|
522
522
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
523
|
-
throw await
|
|
523
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
524
524
|
case "ResourceNotFoundException":
|
|
525
525
|
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
526
|
-
throw await
|
|
526
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
527
527
|
case "ValidationException":
|
|
528
528
|
case "com.amazonaws.emrserverless#ValidationException":
|
|
529
|
-
throw await
|
|
529
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
530
530
|
default:
|
|
531
531
|
const parsedBody = parsedOutput.body;
|
|
532
532
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -537,9 +537,9 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
537
537
|
});
|
|
538
538
|
}
|
|
539
539
|
};
|
|
540
|
-
const
|
|
540
|
+
const de_GetDashboardForJobRunCommand = async (output, context) => {
|
|
541
541
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
542
|
-
return
|
|
542
|
+
return de_GetDashboardForJobRunCommandError(output, context);
|
|
543
543
|
}
|
|
544
544
|
const contents = map({
|
|
545
545
|
$metadata: deserializeMetadata(output),
|
|
@@ -550,8 +550,8 @@ const deserializeAws_restJson1GetDashboardForJobRunCommand = async (output, cont
|
|
|
550
550
|
}
|
|
551
551
|
return contents;
|
|
552
552
|
};
|
|
553
|
-
exports.
|
|
554
|
-
const
|
|
553
|
+
exports.de_GetDashboardForJobRunCommand = de_GetDashboardForJobRunCommand;
|
|
554
|
+
const de_GetDashboardForJobRunCommandError = async (output, context) => {
|
|
555
555
|
const parsedOutput = {
|
|
556
556
|
...output,
|
|
557
557
|
body: await parseErrorBody(output.body, context),
|
|
@@ -560,13 +560,13 @@ const deserializeAws_restJson1GetDashboardForJobRunCommandError = async (output,
|
|
|
560
560
|
switch (errorCode) {
|
|
561
561
|
case "InternalServerException":
|
|
562
562
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
563
|
-
throw await
|
|
563
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
564
564
|
case "ResourceNotFoundException":
|
|
565
565
|
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
566
|
-
throw await
|
|
566
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
567
567
|
case "ValidationException":
|
|
568
568
|
case "com.amazonaws.emrserverless#ValidationException":
|
|
569
|
-
throw await
|
|
569
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
570
570
|
default:
|
|
571
571
|
const parsedBody = parsedOutput.body;
|
|
572
572
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -577,21 +577,21 @@ const deserializeAws_restJson1GetDashboardForJobRunCommandError = async (output,
|
|
|
577
577
|
});
|
|
578
578
|
}
|
|
579
579
|
};
|
|
580
|
-
const
|
|
580
|
+
const de_GetJobRunCommand = async (output, context) => {
|
|
581
581
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
582
|
-
return
|
|
582
|
+
return de_GetJobRunCommandError(output, context);
|
|
583
583
|
}
|
|
584
584
|
const contents = map({
|
|
585
585
|
$metadata: deserializeMetadata(output),
|
|
586
586
|
});
|
|
587
587
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
588
588
|
if (data.jobRun != null) {
|
|
589
|
-
contents.jobRun =
|
|
589
|
+
contents.jobRun = de_JobRun(data.jobRun, context);
|
|
590
590
|
}
|
|
591
591
|
return contents;
|
|
592
592
|
};
|
|
593
|
-
exports.
|
|
594
|
-
const
|
|
593
|
+
exports.de_GetJobRunCommand = de_GetJobRunCommand;
|
|
594
|
+
const de_GetJobRunCommandError = async (output, context) => {
|
|
595
595
|
const parsedOutput = {
|
|
596
596
|
...output,
|
|
597
597
|
body: await parseErrorBody(output.body, context),
|
|
@@ -600,13 +600,13 @@ const deserializeAws_restJson1GetJobRunCommandError = async (output, context) =>
|
|
|
600
600
|
switch (errorCode) {
|
|
601
601
|
case "InternalServerException":
|
|
602
602
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
603
|
-
throw await
|
|
603
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
604
604
|
case "ResourceNotFoundException":
|
|
605
605
|
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
606
|
-
throw await
|
|
606
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
607
607
|
case "ValidationException":
|
|
608
608
|
case "com.amazonaws.emrserverless#ValidationException":
|
|
609
|
-
throw await
|
|
609
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
610
610
|
default:
|
|
611
611
|
const parsedBody = parsedOutput.body;
|
|
612
612
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -617,24 +617,24 @@ const deserializeAws_restJson1GetJobRunCommandError = async (output, context) =>
|
|
|
617
617
|
});
|
|
618
618
|
}
|
|
619
619
|
};
|
|
620
|
-
const
|
|
620
|
+
const de_ListApplicationsCommand = async (output, context) => {
|
|
621
621
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
622
|
-
return
|
|
622
|
+
return de_ListApplicationsCommandError(output, context);
|
|
623
623
|
}
|
|
624
624
|
const contents = map({
|
|
625
625
|
$metadata: deserializeMetadata(output),
|
|
626
626
|
});
|
|
627
627
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
628
628
|
if (data.applications != null) {
|
|
629
|
-
contents.applications =
|
|
629
|
+
contents.applications = de_ApplicationList(data.applications, context);
|
|
630
630
|
}
|
|
631
631
|
if (data.nextToken != null) {
|
|
632
632
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
633
633
|
}
|
|
634
634
|
return contents;
|
|
635
635
|
};
|
|
636
|
-
exports.
|
|
637
|
-
const
|
|
636
|
+
exports.de_ListApplicationsCommand = de_ListApplicationsCommand;
|
|
637
|
+
const de_ListApplicationsCommandError = async (output, context) => {
|
|
638
638
|
const parsedOutput = {
|
|
639
639
|
...output,
|
|
640
640
|
body: await parseErrorBody(output.body, context),
|
|
@@ -643,10 +643,10 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
643
643
|
switch (errorCode) {
|
|
644
644
|
case "InternalServerException":
|
|
645
645
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
646
|
-
throw await
|
|
646
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
647
647
|
case "ValidationException":
|
|
648
648
|
case "com.amazonaws.emrserverless#ValidationException":
|
|
649
|
-
throw await
|
|
649
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
650
650
|
default:
|
|
651
651
|
const parsedBody = parsedOutput.body;
|
|
652
652
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -657,24 +657,24 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
657
657
|
});
|
|
658
658
|
}
|
|
659
659
|
};
|
|
660
|
-
const
|
|
660
|
+
const de_ListJobRunsCommand = async (output, context) => {
|
|
661
661
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
662
|
-
return
|
|
662
|
+
return de_ListJobRunsCommandError(output, context);
|
|
663
663
|
}
|
|
664
664
|
const contents = map({
|
|
665
665
|
$metadata: deserializeMetadata(output),
|
|
666
666
|
});
|
|
667
667
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
668
668
|
if (data.jobRuns != null) {
|
|
669
|
-
contents.jobRuns =
|
|
669
|
+
contents.jobRuns = de_JobRuns(data.jobRuns, context);
|
|
670
670
|
}
|
|
671
671
|
if (data.nextToken != null) {
|
|
672
672
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
673
673
|
}
|
|
674
674
|
return contents;
|
|
675
675
|
};
|
|
676
|
-
exports.
|
|
677
|
-
const
|
|
676
|
+
exports.de_ListJobRunsCommand = de_ListJobRunsCommand;
|
|
677
|
+
const de_ListJobRunsCommandError = async (output, context) => {
|
|
678
678
|
const parsedOutput = {
|
|
679
679
|
...output,
|
|
680
680
|
body: await parseErrorBody(output.body, context),
|
|
@@ -683,10 +683,10 @@ const deserializeAws_restJson1ListJobRunsCommandError = async (output, context)
|
|
|
683
683
|
switch (errorCode) {
|
|
684
684
|
case "InternalServerException":
|
|
685
685
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
686
|
-
throw await
|
|
686
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
687
687
|
case "ValidationException":
|
|
688
688
|
case "com.amazonaws.emrserverless#ValidationException":
|
|
689
|
-
throw await
|
|
689
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
690
690
|
default:
|
|
691
691
|
const parsedBody = parsedOutput.body;
|
|
692
692
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -697,21 +697,21 @@ const deserializeAws_restJson1ListJobRunsCommandError = async (output, context)
|
|
|
697
697
|
});
|
|
698
698
|
}
|
|
699
699
|
};
|
|
700
|
-
const
|
|
700
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
701
701
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
702
|
-
return
|
|
702
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
703
703
|
}
|
|
704
704
|
const contents = map({
|
|
705
705
|
$metadata: deserializeMetadata(output),
|
|
706
706
|
});
|
|
707
707
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
708
708
|
if (data.tags != null) {
|
|
709
|
-
contents.tags =
|
|
709
|
+
contents.tags = de_TagMap(data.tags, context);
|
|
710
710
|
}
|
|
711
711
|
return contents;
|
|
712
712
|
};
|
|
713
|
-
exports.
|
|
714
|
-
const
|
|
713
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
714
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
715
715
|
const parsedOutput = {
|
|
716
716
|
...output,
|
|
717
717
|
body: await parseErrorBody(output.body, context),
|
|
@@ -720,13 +720,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
720
720
|
switch (errorCode) {
|
|
721
721
|
case "InternalServerException":
|
|
722
722
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
723
|
-
throw await
|
|
723
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
724
724
|
case "ResourceNotFoundException":
|
|
725
725
|
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
726
|
-
throw await
|
|
726
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
727
727
|
case "ValidationException":
|
|
728
728
|
case "com.amazonaws.emrserverless#ValidationException":
|
|
729
|
-
throw await
|
|
729
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
730
730
|
default:
|
|
731
731
|
const parsedBody = parsedOutput.body;
|
|
732
732
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -737,9 +737,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
737
737
|
});
|
|
738
738
|
}
|
|
739
739
|
};
|
|
740
|
-
const
|
|
740
|
+
const de_StartApplicationCommand = async (output, context) => {
|
|
741
741
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
742
|
-
return
|
|
742
|
+
return de_StartApplicationCommandError(output, context);
|
|
743
743
|
}
|
|
744
744
|
const contents = map({
|
|
745
745
|
$metadata: deserializeMetadata(output),
|
|
@@ -747,8 +747,8 @@ const deserializeAws_restJson1StartApplicationCommand = async (output, context)
|
|
|
747
747
|
await collectBody(output.body, context);
|
|
748
748
|
return contents;
|
|
749
749
|
};
|
|
750
|
-
exports.
|
|
751
|
-
const
|
|
750
|
+
exports.de_StartApplicationCommand = de_StartApplicationCommand;
|
|
751
|
+
const de_StartApplicationCommandError = async (output, context) => {
|
|
752
752
|
const parsedOutput = {
|
|
753
753
|
...output,
|
|
754
754
|
body: await parseErrorBody(output.body, context),
|
|
@@ -757,16 +757,16 @@ const deserializeAws_restJson1StartApplicationCommandError = async (output, cont
|
|
|
757
757
|
switch (errorCode) {
|
|
758
758
|
case "InternalServerException":
|
|
759
759
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
760
|
-
throw await
|
|
760
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
761
761
|
case "ResourceNotFoundException":
|
|
762
762
|
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
763
|
-
throw await
|
|
763
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
764
764
|
case "ServiceQuotaExceededException":
|
|
765
765
|
case "com.amazonaws.emrserverless#ServiceQuotaExceededException":
|
|
766
|
-
throw await
|
|
766
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
767
767
|
case "ValidationException":
|
|
768
768
|
case "com.amazonaws.emrserverless#ValidationException":
|
|
769
|
-
throw await
|
|
769
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
770
770
|
default:
|
|
771
771
|
const parsedBody = parsedOutput.body;
|
|
772
772
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -777,9 +777,9 @@ const deserializeAws_restJson1StartApplicationCommandError = async (output, cont
|
|
|
777
777
|
});
|
|
778
778
|
}
|
|
779
779
|
};
|
|
780
|
-
const
|
|
780
|
+
const de_StartJobRunCommand = async (output, context) => {
|
|
781
781
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
782
|
-
return
|
|
782
|
+
return de_StartJobRunCommandError(output, context);
|
|
783
783
|
}
|
|
784
784
|
const contents = map({
|
|
785
785
|
$metadata: deserializeMetadata(output),
|
|
@@ -796,8 +796,8 @@ const deserializeAws_restJson1StartJobRunCommand = async (output, context) => {
|
|
|
796
796
|
}
|
|
797
797
|
return contents;
|
|
798
798
|
};
|
|
799
|
-
exports.
|
|
800
|
-
const
|
|
799
|
+
exports.de_StartJobRunCommand = de_StartJobRunCommand;
|
|
800
|
+
const de_StartJobRunCommandError = async (output, context) => {
|
|
801
801
|
const parsedOutput = {
|
|
802
802
|
...output,
|
|
803
803
|
body: await parseErrorBody(output.body, context),
|
|
@@ -806,16 +806,16 @@ const deserializeAws_restJson1StartJobRunCommandError = async (output, context)
|
|
|
806
806
|
switch (errorCode) {
|
|
807
807
|
case "ConflictException":
|
|
808
808
|
case "com.amazonaws.emrserverless#ConflictException":
|
|
809
|
-
throw await
|
|
809
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
810
810
|
case "InternalServerException":
|
|
811
811
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
812
|
-
throw await
|
|
812
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
813
813
|
case "ResourceNotFoundException":
|
|
814
814
|
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
815
|
-
throw await
|
|
815
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
816
816
|
case "ValidationException":
|
|
817
817
|
case "com.amazonaws.emrserverless#ValidationException":
|
|
818
|
-
throw await
|
|
818
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
819
819
|
default:
|
|
820
820
|
const parsedBody = parsedOutput.body;
|
|
821
821
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -826,9 +826,9 @@ const deserializeAws_restJson1StartJobRunCommandError = async (output, context)
|
|
|
826
826
|
});
|
|
827
827
|
}
|
|
828
828
|
};
|
|
829
|
-
const
|
|
829
|
+
const de_StopApplicationCommand = async (output, context) => {
|
|
830
830
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
831
|
-
return
|
|
831
|
+
return de_StopApplicationCommandError(output, context);
|
|
832
832
|
}
|
|
833
833
|
const contents = map({
|
|
834
834
|
$metadata: deserializeMetadata(output),
|
|
@@ -836,8 +836,8 @@ const deserializeAws_restJson1StopApplicationCommand = async (output, context) =
|
|
|
836
836
|
await collectBody(output.body, context);
|
|
837
837
|
return contents;
|
|
838
838
|
};
|
|
839
|
-
exports.
|
|
840
|
-
const
|
|
839
|
+
exports.de_StopApplicationCommand = de_StopApplicationCommand;
|
|
840
|
+
const de_StopApplicationCommandError = async (output, context) => {
|
|
841
841
|
const parsedOutput = {
|
|
842
842
|
...output,
|
|
843
843
|
body: await parseErrorBody(output.body, context),
|
|
@@ -846,13 +846,13 @@ const deserializeAws_restJson1StopApplicationCommandError = async (output, conte
|
|
|
846
846
|
switch (errorCode) {
|
|
847
847
|
case "InternalServerException":
|
|
848
848
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
849
|
-
throw await
|
|
849
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
850
850
|
case "ResourceNotFoundException":
|
|
851
851
|
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
852
|
-
throw await
|
|
852
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
853
853
|
case "ValidationException":
|
|
854
854
|
case "com.amazonaws.emrserverless#ValidationException":
|
|
855
|
-
throw await
|
|
855
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
856
856
|
default:
|
|
857
857
|
const parsedBody = parsedOutput.body;
|
|
858
858
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -863,9 +863,9 @@ const deserializeAws_restJson1StopApplicationCommandError = async (output, conte
|
|
|
863
863
|
});
|
|
864
864
|
}
|
|
865
865
|
};
|
|
866
|
-
const
|
|
866
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
867
867
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
868
|
-
return
|
|
868
|
+
return de_TagResourceCommandError(output, context);
|
|
869
869
|
}
|
|
870
870
|
const contents = map({
|
|
871
871
|
$metadata: deserializeMetadata(output),
|
|
@@ -873,8 +873,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
|
873
873
|
await collectBody(output.body, context);
|
|
874
874
|
return contents;
|
|
875
875
|
};
|
|
876
|
-
exports.
|
|
877
|
-
const
|
|
876
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
877
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
878
878
|
const parsedOutput = {
|
|
879
879
|
...output,
|
|
880
880
|
body: await parseErrorBody(output.body, context),
|
|
@@ -883,13 +883,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
883
883
|
switch (errorCode) {
|
|
884
884
|
case "InternalServerException":
|
|
885
885
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
886
|
-
throw await
|
|
886
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
887
887
|
case "ResourceNotFoundException":
|
|
888
888
|
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
889
|
-
throw await
|
|
889
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
890
890
|
case "ValidationException":
|
|
891
891
|
case "com.amazonaws.emrserverless#ValidationException":
|
|
892
|
-
throw await
|
|
892
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
893
893
|
default:
|
|
894
894
|
const parsedBody = parsedOutput.body;
|
|
895
895
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -900,9 +900,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
900
900
|
});
|
|
901
901
|
}
|
|
902
902
|
};
|
|
903
|
-
const
|
|
903
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
904
904
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
905
|
-
return
|
|
905
|
+
return de_UntagResourceCommandError(output, context);
|
|
906
906
|
}
|
|
907
907
|
const contents = map({
|
|
908
908
|
$metadata: deserializeMetadata(output),
|
|
@@ -910,8 +910,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
|
|
|
910
910
|
await collectBody(output.body, context);
|
|
911
911
|
return contents;
|
|
912
912
|
};
|
|
913
|
-
exports.
|
|
914
|
-
const
|
|
913
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
914
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
915
915
|
const parsedOutput = {
|
|
916
916
|
...output,
|
|
917
917
|
body: await parseErrorBody(output.body, context),
|
|
@@ -920,13 +920,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
920
920
|
switch (errorCode) {
|
|
921
921
|
case "InternalServerException":
|
|
922
922
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
923
|
-
throw await
|
|
923
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
924
924
|
case "ResourceNotFoundException":
|
|
925
925
|
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
926
|
-
throw await
|
|
926
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
927
927
|
case "ValidationException":
|
|
928
928
|
case "com.amazonaws.emrserverless#ValidationException":
|
|
929
|
-
throw await
|
|
929
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
930
930
|
default:
|
|
931
931
|
const parsedBody = parsedOutput.body;
|
|
932
932
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -937,21 +937,21 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
937
937
|
});
|
|
938
938
|
}
|
|
939
939
|
};
|
|
940
|
-
const
|
|
940
|
+
const de_UpdateApplicationCommand = async (output, context) => {
|
|
941
941
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
942
|
-
return
|
|
942
|
+
return de_UpdateApplicationCommandError(output, context);
|
|
943
943
|
}
|
|
944
944
|
const contents = map({
|
|
945
945
|
$metadata: deserializeMetadata(output),
|
|
946
946
|
});
|
|
947
947
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
948
948
|
if (data.application != null) {
|
|
949
|
-
contents.application =
|
|
949
|
+
contents.application = de_Application(data.application, context);
|
|
950
950
|
}
|
|
951
951
|
return contents;
|
|
952
952
|
};
|
|
953
|
-
exports.
|
|
954
|
-
const
|
|
953
|
+
exports.de_UpdateApplicationCommand = de_UpdateApplicationCommand;
|
|
954
|
+
const de_UpdateApplicationCommandError = async (output, context) => {
|
|
955
955
|
const parsedOutput = {
|
|
956
956
|
...output,
|
|
957
957
|
body: await parseErrorBody(output.body, context),
|
|
@@ -960,13 +960,13 @@ const deserializeAws_restJson1UpdateApplicationCommandError = async (output, con
|
|
|
960
960
|
switch (errorCode) {
|
|
961
961
|
case "InternalServerException":
|
|
962
962
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
963
|
-
throw await
|
|
963
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
964
964
|
case "ResourceNotFoundException":
|
|
965
965
|
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
966
|
-
throw await
|
|
966
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
967
967
|
case "ValidationException":
|
|
968
968
|
case "com.amazonaws.emrserverless#ValidationException":
|
|
969
|
-
throw await
|
|
969
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
970
970
|
default:
|
|
971
971
|
const parsedBody = parsedOutput.body;
|
|
972
972
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -978,7 +978,7 @@ const deserializeAws_restJson1UpdateApplicationCommandError = async (output, con
|
|
|
978
978
|
}
|
|
979
979
|
};
|
|
980
980
|
const map = smithy_client_1.map;
|
|
981
|
-
const
|
|
981
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
982
982
|
const contents = map({});
|
|
983
983
|
const data = parsedOutput.body;
|
|
984
984
|
if (data.message != null) {
|
|
@@ -990,7 +990,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
990
990
|
});
|
|
991
991
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
992
992
|
};
|
|
993
|
-
const
|
|
993
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
994
994
|
const contents = map({});
|
|
995
995
|
const data = parsedOutput.body;
|
|
996
996
|
if (data.message != null) {
|
|
@@ -1002,7 +1002,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
1002
1002
|
});
|
|
1003
1003
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1004
1004
|
};
|
|
1005
|
-
const
|
|
1005
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1006
1006
|
const contents = map({});
|
|
1007
1007
|
const data = parsedOutput.body;
|
|
1008
1008
|
if (data.message != null) {
|
|
@@ -1014,7 +1014,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
1014
1014
|
});
|
|
1015
1015
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1016
1016
|
};
|
|
1017
|
-
const
|
|
1017
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1018
1018
|
const contents = map({});
|
|
1019
1019
|
const data = parsedOutput.body;
|
|
1020
1020
|
if (data.message != null) {
|
|
@@ -1026,7 +1026,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
1026
1026
|
});
|
|
1027
1027
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1028
1028
|
};
|
|
1029
|
-
const
|
|
1029
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1030
1030
|
const contents = map({});
|
|
1031
1031
|
const data = parsedOutput.body;
|
|
1032
1032
|
if (data.message != null) {
|
|
@@ -1038,133 +1038,127 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
1038
1038
|
});
|
|
1039
1039
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1040
1040
|
};
|
|
1041
|
-
const
|
|
1041
|
+
const se_AutoStartConfig = (input, context) => {
|
|
1042
1042
|
return {
|
|
1043
1043
|
...(input.enabled != null && { enabled: input.enabled }),
|
|
1044
1044
|
};
|
|
1045
1045
|
};
|
|
1046
|
-
const
|
|
1046
|
+
const se_AutoStopConfig = (input, context) => {
|
|
1047
1047
|
return {
|
|
1048
1048
|
...(input.enabled != null && { enabled: input.enabled }),
|
|
1049
1049
|
...(input.idleTimeoutMinutes != null && { idleTimeoutMinutes: input.idleTimeoutMinutes }),
|
|
1050
1050
|
};
|
|
1051
1051
|
};
|
|
1052
|
-
const
|
|
1052
|
+
const se_Configuration = (input, context) => {
|
|
1053
1053
|
return {
|
|
1054
1054
|
...(input.classification != null && { classification: input.classification }),
|
|
1055
|
-
...(input.configurations != null && {
|
|
1056
|
-
|
|
1057
|
-
}),
|
|
1058
|
-
...(input.properties != null && {
|
|
1059
|
-
properties: serializeAws_restJson1SensitivePropertiesMap(input.properties, context),
|
|
1060
|
-
}),
|
|
1055
|
+
...(input.configurations != null && { configurations: se_ConfigurationList(input.configurations, context) }),
|
|
1056
|
+
...(input.properties != null && { properties: se_SensitivePropertiesMap(input.properties, context) }),
|
|
1061
1057
|
};
|
|
1062
1058
|
};
|
|
1063
|
-
const
|
|
1059
|
+
const se_ConfigurationList = (input, context) => {
|
|
1064
1060
|
return input
|
|
1065
1061
|
.filter((e) => e != null)
|
|
1066
1062
|
.map((entry) => {
|
|
1067
|
-
return
|
|
1063
|
+
return se_Configuration(entry, context);
|
|
1068
1064
|
});
|
|
1069
1065
|
};
|
|
1070
|
-
const
|
|
1066
|
+
const se_ConfigurationOverrides = (input, context) => {
|
|
1071
1067
|
return {
|
|
1072
1068
|
...(input.applicationConfiguration != null && {
|
|
1073
|
-
applicationConfiguration:
|
|
1069
|
+
applicationConfiguration: se_ConfigurationList(input.applicationConfiguration, context),
|
|
1074
1070
|
}),
|
|
1075
1071
|
...(input.monitoringConfiguration != null && {
|
|
1076
|
-
monitoringConfiguration:
|
|
1072
|
+
monitoringConfiguration: se_MonitoringConfiguration(input.monitoringConfiguration, context),
|
|
1077
1073
|
}),
|
|
1078
1074
|
};
|
|
1079
1075
|
};
|
|
1080
|
-
const
|
|
1076
|
+
const se_EntryPointArguments = (input, context) => {
|
|
1081
1077
|
return input
|
|
1082
1078
|
.filter((e) => e != null)
|
|
1083
1079
|
.map((entry) => {
|
|
1084
1080
|
return entry;
|
|
1085
1081
|
});
|
|
1086
1082
|
};
|
|
1087
|
-
const
|
|
1083
|
+
const se_Hive = (input, context) => {
|
|
1088
1084
|
return {
|
|
1089
1085
|
...(input.initQueryFile != null && { initQueryFile: input.initQueryFile }),
|
|
1090
1086
|
...(input.parameters != null && { parameters: input.parameters }),
|
|
1091
1087
|
...(input.query != null && { query: input.query }),
|
|
1092
1088
|
};
|
|
1093
1089
|
};
|
|
1094
|
-
const
|
|
1090
|
+
const se_ImageConfigurationInput = (input, context) => {
|
|
1095
1091
|
return {
|
|
1096
1092
|
...(input.imageUri != null && { imageUri: input.imageUri }),
|
|
1097
1093
|
};
|
|
1098
1094
|
};
|
|
1099
|
-
const
|
|
1095
|
+
const se_InitialCapacityConfig = (input, context) => {
|
|
1100
1096
|
return {
|
|
1101
1097
|
...(input.workerConfiguration != null && {
|
|
1102
|
-
workerConfiguration:
|
|
1098
|
+
workerConfiguration: se_WorkerResourceConfig(input.workerConfiguration, context),
|
|
1103
1099
|
}),
|
|
1104
1100
|
...(input.workerCount != null && { workerCount: input.workerCount }),
|
|
1105
1101
|
};
|
|
1106
1102
|
};
|
|
1107
|
-
const
|
|
1103
|
+
const se_InitialCapacityConfigMap = (input, context) => {
|
|
1108
1104
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1109
1105
|
if (value === null) {
|
|
1110
1106
|
return acc;
|
|
1111
1107
|
}
|
|
1112
|
-
acc[key] =
|
|
1108
|
+
acc[key] = se_InitialCapacityConfig(value, context);
|
|
1113
1109
|
return acc;
|
|
1114
1110
|
}, {});
|
|
1115
1111
|
};
|
|
1116
|
-
const
|
|
1112
|
+
const se_JobDriver = (input, context) => {
|
|
1117
1113
|
return models_0_1.JobDriver.visit(input, {
|
|
1118
|
-
hive: (value) => ({ hive:
|
|
1119
|
-
sparkSubmit: (value) => ({ sparkSubmit:
|
|
1114
|
+
hive: (value) => ({ hive: se_Hive(value, context) }),
|
|
1115
|
+
sparkSubmit: (value) => ({ sparkSubmit: se_SparkSubmit(value, context) }),
|
|
1120
1116
|
_: (name, value) => ({ name: value }),
|
|
1121
1117
|
});
|
|
1122
1118
|
};
|
|
1123
|
-
const
|
|
1119
|
+
const se_ManagedPersistenceMonitoringConfiguration = (input, context) => {
|
|
1124
1120
|
return {
|
|
1125
1121
|
...(input.enabled != null && { enabled: input.enabled }),
|
|
1126
1122
|
...(input.encryptionKeyArn != null && { encryptionKeyArn: input.encryptionKeyArn }),
|
|
1127
1123
|
};
|
|
1128
1124
|
};
|
|
1129
|
-
const
|
|
1125
|
+
const se_MaximumAllowedResources = (input, context) => {
|
|
1130
1126
|
return {
|
|
1131
1127
|
...(input.cpu != null && { cpu: input.cpu }),
|
|
1132
1128
|
...(input.disk != null && { disk: input.disk }),
|
|
1133
1129
|
...(input.memory != null && { memory: input.memory }),
|
|
1134
1130
|
};
|
|
1135
1131
|
};
|
|
1136
|
-
const
|
|
1132
|
+
const se_MonitoringConfiguration = (input, context) => {
|
|
1137
1133
|
return {
|
|
1138
1134
|
...(input.managedPersistenceMonitoringConfiguration != null && {
|
|
1139
|
-
managedPersistenceMonitoringConfiguration:
|
|
1135
|
+
managedPersistenceMonitoringConfiguration: se_ManagedPersistenceMonitoringConfiguration(input.managedPersistenceMonitoringConfiguration, context),
|
|
1140
1136
|
}),
|
|
1141
1137
|
...(input.s3MonitoringConfiguration != null && {
|
|
1142
|
-
s3MonitoringConfiguration:
|
|
1138
|
+
s3MonitoringConfiguration: se_S3MonitoringConfiguration(input.s3MonitoringConfiguration, context),
|
|
1143
1139
|
}),
|
|
1144
1140
|
};
|
|
1145
1141
|
};
|
|
1146
|
-
const
|
|
1142
|
+
const se_NetworkConfiguration = (input, context) => {
|
|
1147
1143
|
return {
|
|
1148
|
-
...(input.securityGroupIds != null && {
|
|
1149
|
-
|
|
1150
|
-
}),
|
|
1151
|
-
...(input.subnetIds != null && { subnetIds: serializeAws_restJson1SubnetIds(input.subnetIds, context) }),
|
|
1144
|
+
...(input.securityGroupIds != null && { securityGroupIds: se_SecurityGroupIds(input.securityGroupIds, context) }),
|
|
1145
|
+
...(input.subnetIds != null && { subnetIds: se_SubnetIds(input.subnetIds, context) }),
|
|
1152
1146
|
};
|
|
1153
1147
|
};
|
|
1154
|
-
const
|
|
1148
|
+
const se_S3MonitoringConfiguration = (input, context) => {
|
|
1155
1149
|
return {
|
|
1156
1150
|
...(input.encryptionKeyArn != null && { encryptionKeyArn: input.encryptionKeyArn }),
|
|
1157
1151
|
...(input.logUri != null && { logUri: input.logUri }),
|
|
1158
1152
|
};
|
|
1159
1153
|
};
|
|
1160
|
-
const
|
|
1154
|
+
const se_SecurityGroupIds = (input, context) => {
|
|
1161
1155
|
return input
|
|
1162
1156
|
.filter((e) => e != null)
|
|
1163
1157
|
.map((entry) => {
|
|
1164
1158
|
return entry;
|
|
1165
1159
|
});
|
|
1166
1160
|
};
|
|
1167
|
-
const
|
|
1161
|
+
const se_SensitivePropertiesMap = (input, context) => {
|
|
1168
1162
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1169
1163
|
if (value === null) {
|
|
1170
1164
|
return acc;
|
|
@@ -1173,23 +1167,23 @@ const serializeAws_restJson1SensitivePropertiesMap = (input, context) => {
|
|
|
1173
1167
|
return acc;
|
|
1174
1168
|
}, {});
|
|
1175
1169
|
};
|
|
1176
|
-
const
|
|
1170
|
+
const se_SparkSubmit = (input, context) => {
|
|
1177
1171
|
return {
|
|
1178
1172
|
...(input.entryPoint != null && { entryPoint: input.entryPoint }),
|
|
1179
1173
|
...(input.entryPointArguments != null && {
|
|
1180
|
-
entryPointArguments:
|
|
1174
|
+
entryPointArguments: se_EntryPointArguments(input.entryPointArguments, context),
|
|
1181
1175
|
}),
|
|
1182
1176
|
...(input.sparkSubmitParameters != null && { sparkSubmitParameters: input.sparkSubmitParameters }),
|
|
1183
1177
|
};
|
|
1184
1178
|
};
|
|
1185
|
-
const
|
|
1179
|
+
const se_SubnetIds = (input, context) => {
|
|
1186
1180
|
return input
|
|
1187
1181
|
.filter((e) => e != null)
|
|
1188
1182
|
.map((entry) => {
|
|
1189
1183
|
return entry;
|
|
1190
1184
|
});
|
|
1191
1185
|
};
|
|
1192
|
-
const
|
|
1186
|
+
const se_TagMap = (input, context) => {
|
|
1193
1187
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1194
1188
|
if (value === null) {
|
|
1195
1189
|
return acc;
|
|
@@ -1198,77 +1192,65 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
1198
1192
|
return acc;
|
|
1199
1193
|
}, {});
|
|
1200
1194
|
};
|
|
1201
|
-
const
|
|
1195
|
+
const se_WorkerResourceConfig = (input, context) => {
|
|
1202
1196
|
return {
|
|
1203
1197
|
...(input.cpu != null && { cpu: input.cpu }),
|
|
1204
1198
|
...(input.disk != null && { disk: input.disk }),
|
|
1205
1199
|
...(input.memory != null && { memory: input.memory }),
|
|
1206
1200
|
};
|
|
1207
1201
|
};
|
|
1208
|
-
const
|
|
1202
|
+
const se_WorkerTypeSpecificationInput = (input, context) => {
|
|
1209
1203
|
return {
|
|
1210
1204
|
...(input.imageConfiguration != null && {
|
|
1211
|
-
imageConfiguration:
|
|
1205
|
+
imageConfiguration: se_ImageConfigurationInput(input.imageConfiguration, context),
|
|
1212
1206
|
}),
|
|
1213
1207
|
};
|
|
1214
1208
|
};
|
|
1215
|
-
const
|
|
1209
|
+
const se_WorkerTypeSpecificationInputMap = (input, context) => {
|
|
1216
1210
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1217
1211
|
if (value === null) {
|
|
1218
1212
|
return acc;
|
|
1219
1213
|
}
|
|
1220
|
-
acc[key] =
|
|
1214
|
+
acc[key] = se_WorkerTypeSpecificationInput(value, context);
|
|
1221
1215
|
return acc;
|
|
1222
1216
|
}, {});
|
|
1223
1217
|
};
|
|
1224
|
-
const
|
|
1218
|
+
const de_Application = (output, context) => {
|
|
1225
1219
|
return {
|
|
1226
1220
|
applicationId: (0, smithy_client_1.expectString)(output.applicationId),
|
|
1227
1221
|
architecture: (0, smithy_client_1.expectString)(output.architecture),
|
|
1228
1222
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1229
|
-
autoStartConfiguration: output.autoStartConfiguration != null
|
|
1230
|
-
|
|
1231
|
-
: undefined,
|
|
1232
|
-
autoStopConfiguration: output.autoStopConfiguration != null
|
|
1233
|
-
? deserializeAws_restJson1AutoStopConfig(output.autoStopConfiguration, context)
|
|
1234
|
-
: undefined,
|
|
1223
|
+
autoStartConfiguration: output.autoStartConfiguration != null ? de_AutoStartConfig(output.autoStartConfiguration, context) : undefined,
|
|
1224
|
+
autoStopConfiguration: output.autoStopConfiguration != null ? de_AutoStopConfig(output.autoStopConfiguration, context) : undefined,
|
|
1235
1225
|
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
1236
|
-
imageConfiguration: output.imageConfiguration != null
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
initialCapacity: output.initialCapacity != null
|
|
1240
|
-
? deserializeAws_restJson1InitialCapacityConfigMap(output.initialCapacity, context)
|
|
1241
|
-
: undefined,
|
|
1242
|
-
maximumCapacity: output.maximumCapacity != null
|
|
1243
|
-
? deserializeAws_restJson1MaximumAllowedResources(output.maximumCapacity, context)
|
|
1244
|
-
: undefined,
|
|
1226
|
+
imageConfiguration: output.imageConfiguration != null ? de_ImageConfiguration(output.imageConfiguration, context) : undefined,
|
|
1227
|
+
initialCapacity: output.initialCapacity != null ? de_InitialCapacityConfigMap(output.initialCapacity, context) : undefined,
|
|
1228
|
+
maximumCapacity: output.maximumCapacity != null ? de_MaximumAllowedResources(output.maximumCapacity, context) : undefined,
|
|
1245
1229
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1246
|
-
networkConfiguration: output.networkConfiguration != null
|
|
1247
|
-
? deserializeAws_restJson1NetworkConfiguration(output.networkConfiguration, context)
|
|
1248
|
-
: undefined,
|
|
1230
|
+
networkConfiguration: output.networkConfiguration != null ? de_NetworkConfiguration(output.networkConfiguration, context) : undefined,
|
|
1249
1231
|
releaseLabel: (0, smithy_client_1.expectString)(output.releaseLabel),
|
|
1250
1232
|
state: (0, smithy_client_1.expectString)(output.state),
|
|
1251
1233
|
stateDetails: (0, smithy_client_1.expectString)(output.stateDetails),
|
|
1252
|
-
tags: output.tags != null ?
|
|
1234
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
1253
1235
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
1254
1236
|
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
|
|
1255
1237
|
workerTypeSpecifications: output.workerTypeSpecifications != null
|
|
1256
|
-
?
|
|
1238
|
+
? de_WorkerTypeSpecificationMap(output.workerTypeSpecifications, context)
|
|
1257
1239
|
: undefined,
|
|
1258
1240
|
};
|
|
1259
1241
|
};
|
|
1260
|
-
const
|
|
1242
|
+
const de_ApplicationList = (output, context) => {
|
|
1261
1243
|
const retVal = (output || [])
|
|
1262
1244
|
.filter((e) => e != null)
|
|
1263
1245
|
.map((entry) => {
|
|
1264
1246
|
if (entry === null) {
|
|
1265
1247
|
return null;
|
|
1266
1248
|
}
|
|
1267
|
-
return
|
|
1249
|
+
return de_ApplicationSummary(entry, context);
|
|
1268
1250
|
});
|
|
1269
1251
|
return retVal;
|
|
1270
1252
|
};
|
|
1271
|
-
const
|
|
1253
|
+
const de_ApplicationSummary = (output, context) => {
|
|
1272
1254
|
return {
|
|
1273
1255
|
architecture: (0, smithy_client_1.expectString)(output.architecture),
|
|
1274
1256
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
@@ -1282,50 +1264,46 @@ const deserializeAws_restJson1ApplicationSummary = (output, context) => {
|
|
|
1282
1264
|
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
|
|
1283
1265
|
};
|
|
1284
1266
|
};
|
|
1285
|
-
const
|
|
1267
|
+
const de_AutoStartConfig = (output, context) => {
|
|
1286
1268
|
return {
|
|
1287
1269
|
enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
|
|
1288
1270
|
};
|
|
1289
1271
|
};
|
|
1290
|
-
const
|
|
1272
|
+
const de_AutoStopConfig = (output, context) => {
|
|
1291
1273
|
return {
|
|
1292
1274
|
enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
|
|
1293
1275
|
idleTimeoutMinutes: (0, smithy_client_1.expectInt32)(output.idleTimeoutMinutes),
|
|
1294
1276
|
};
|
|
1295
1277
|
};
|
|
1296
|
-
const
|
|
1278
|
+
const de_Configuration = (output, context) => {
|
|
1297
1279
|
return {
|
|
1298
1280
|
classification: (0, smithy_client_1.expectString)(output.classification),
|
|
1299
|
-
configurations: output.configurations != null
|
|
1300
|
-
|
|
1301
|
-
: undefined,
|
|
1302
|
-
properties: output.properties != null
|
|
1303
|
-
? deserializeAws_restJson1SensitivePropertiesMap(output.properties, context)
|
|
1304
|
-
: undefined,
|
|
1281
|
+
configurations: output.configurations != null ? de_ConfigurationList(output.configurations, context) : undefined,
|
|
1282
|
+
properties: output.properties != null ? de_SensitivePropertiesMap(output.properties, context) : undefined,
|
|
1305
1283
|
};
|
|
1306
1284
|
};
|
|
1307
|
-
const
|
|
1285
|
+
const de_ConfigurationList = (output, context) => {
|
|
1308
1286
|
const retVal = (output || [])
|
|
1309
1287
|
.filter((e) => e != null)
|
|
1310
1288
|
.map((entry) => {
|
|
1311
1289
|
if (entry === null) {
|
|
1312
1290
|
return null;
|
|
1313
1291
|
}
|
|
1314
|
-
return
|
|
1292
|
+
return de_Configuration(entry, context);
|
|
1315
1293
|
});
|
|
1316
1294
|
return retVal;
|
|
1317
1295
|
};
|
|
1318
|
-
const
|
|
1296
|
+
const de_ConfigurationOverrides = (output, context) => {
|
|
1319
1297
|
return {
|
|
1320
1298
|
applicationConfiguration: output.applicationConfiguration != null
|
|
1321
|
-
?
|
|
1299
|
+
? de_ConfigurationList(output.applicationConfiguration, context)
|
|
1322
1300
|
: undefined,
|
|
1323
1301
|
monitoringConfiguration: output.monitoringConfiguration != null
|
|
1324
|
-
?
|
|
1302
|
+
? de_MonitoringConfiguration(output.monitoringConfiguration, context)
|
|
1325
1303
|
: undefined,
|
|
1326
1304
|
};
|
|
1327
1305
|
};
|
|
1328
|
-
const
|
|
1306
|
+
const de_EntryPointArguments = (output, context) => {
|
|
1329
1307
|
const retVal = (output || [])
|
|
1330
1308
|
.filter((e) => e != null)
|
|
1331
1309
|
.map((entry) => {
|
|
@@ -1336,90 +1314,84 @@ const deserializeAws_restJson1EntryPointArguments = (output, context) => {
|
|
|
1336
1314
|
});
|
|
1337
1315
|
return retVal;
|
|
1338
1316
|
};
|
|
1339
|
-
const
|
|
1317
|
+
const de_Hive = (output, context) => {
|
|
1340
1318
|
return {
|
|
1341
1319
|
initQueryFile: (0, smithy_client_1.expectString)(output.initQueryFile),
|
|
1342
1320
|
parameters: (0, smithy_client_1.expectString)(output.parameters),
|
|
1343
1321
|
query: (0, smithy_client_1.expectString)(output.query),
|
|
1344
1322
|
};
|
|
1345
1323
|
};
|
|
1346
|
-
const
|
|
1324
|
+
const de_ImageConfiguration = (output, context) => {
|
|
1347
1325
|
return {
|
|
1348
1326
|
imageUri: (0, smithy_client_1.expectString)(output.imageUri),
|
|
1349
1327
|
resolvedImageDigest: (0, smithy_client_1.expectString)(output.resolvedImageDigest),
|
|
1350
1328
|
};
|
|
1351
1329
|
};
|
|
1352
|
-
const
|
|
1330
|
+
const de_InitialCapacityConfig = (output, context) => {
|
|
1353
1331
|
return {
|
|
1354
|
-
workerConfiguration: output.workerConfiguration != null
|
|
1355
|
-
? deserializeAws_restJson1WorkerResourceConfig(output.workerConfiguration, context)
|
|
1356
|
-
: undefined,
|
|
1332
|
+
workerConfiguration: output.workerConfiguration != null ? de_WorkerResourceConfig(output.workerConfiguration, context) : undefined,
|
|
1357
1333
|
workerCount: (0, smithy_client_1.expectLong)(output.workerCount),
|
|
1358
1334
|
};
|
|
1359
1335
|
};
|
|
1360
|
-
const
|
|
1336
|
+
const de_InitialCapacityConfigMap = (output, context) => {
|
|
1361
1337
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1362
1338
|
if (value === null) {
|
|
1363
1339
|
return acc;
|
|
1364
1340
|
}
|
|
1365
|
-
acc[key] =
|
|
1341
|
+
acc[key] = de_InitialCapacityConfig(value, context);
|
|
1366
1342
|
return acc;
|
|
1367
1343
|
}, {});
|
|
1368
1344
|
};
|
|
1369
|
-
const
|
|
1345
|
+
const de_JobDriver = (output, context) => {
|
|
1370
1346
|
if (output.hive != null) {
|
|
1371
1347
|
return {
|
|
1372
|
-
hive:
|
|
1348
|
+
hive: de_Hive(output.hive, context),
|
|
1373
1349
|
};
|
|
1374
1350
|
}
|
|
1375
1351
|
if (output.sparkSubmit != null) {
|
|
1376
1352
|
return {
|
|
1377
|
-
sparkSubmit:
|
|
1353
|
+
sparkSubmit: de_SparkSubmit(output.sparkSubmit, context),
|
|
1378
1354
|
};
|
|
1379
1355
|
}
|
|
1380
1356
|
return { $unknown: Object.entries(output)[0] };
|
|
1381
1357
|
};
|
|
1382
|
-
const
|
|
1358
|
+
const de_JobRun = (output, context) => {
|
|
1383
1359
|
return {
|
|
1384
1360
|
applicationId: (0, smithy_client_1.expectString)(output.applicationId),
|
|
1385
1361
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1386
1362
|
configurationOverrides: output.configurationOverrides != null
|
|
1387
|
-
?
|
|
1363
|
+
? de_ConfigurationOverrides(output.configurationOverrides, context)
|
|
1388
1364
|
: undefined,
|
|
1389
1365
|
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
1390
1366
|
createdBy: (0, smithy_client_1.expectString)(output.createdBy),
|
|
1391
1367
|
executionRole: (0, smithy_client_1.expectString)(output.executionRole),
|
|
1392
|
-
jobDriver: output.jobDriver != null
|
|
1393
|
-
? deserializeAws_restJson1JobDriver((0, smithy_client_1.expectUnion)(output.jobDriver), context)
|
|
1394
|
-
: undefined,
|
|
1368
|
+
jobDriver: output.jobDriver != null ? de_JobDriver((0, smithy_client_1.expectUnion)(output.jobDriver), context) : undefined,
|
|
1395
1369
|
jobRunId: (0, smithy_client_1.expectString)(output.jobRunId),
|
|
1396
1370
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1397
|
-
networkConfiguration: output.networkConfiguration != null
|
|
1398
|
-
? deserializeAws_restJson1NetworkConfiguration(output.networkConfiguration, context)
|
|
1399
|
-
: undefined,
|
|
1371
|
+
networkConfiguration: output.networkConfiguration != null ? de_NetworkConfiguration(output.networkConfiguration, context) : undefined,
|
|
1400
1372
|
releaseLabel: (0, smithy_client_1.expectString)(output.releaseLabel),
|
|
1401
1373
|
state: (0, smithy_client_1.expectString)(output.state),
|
|
1402
1374
|
stateDetails: (0, smithy_client_1.expectString)(output.stateDetails),
|
|
1403
|
-
tags: output.tags != null ?
|
|
1375
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
1404
1376
|
totalExecutionDurationSeconds: (0, smithy_client_1.expectInt32)(output.totalExecutionDurationSeconds),
|
|
1405
1377
|
totalResourceUtilization: output.totalResourceUtilization != null
|
|
1406
|
-
?
|
|
1378
|
+
? de_TotalResourceUtilization(output.totalResourceUtilization, context)
|
|
1407
1379
|
: undefined,
|
|
1408
1380
|
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
|
|
1409
1381
|
};
|
|
1410
1382
|
};
|
|
1411
|
-
const
|
|
1383
|
+
const de_JobRuns = (output, context) => {
|
|
1412
1384
|
const retVal = (output || [])
|
|
1413
1385
|
.filter((e) => e != null)
|
|
1414
1386
|
.map((entry) => {
|
|
1415
1387
|
if (entry === null) {
|
|
1416
1388
|
return null;
|
|
1417
1389
|
}
|
|
1418
|
-
return
|
|
1390
|
+
return de_JobRunSummary(entry, context);
|
|
1419
1391
|
});
|
|
1420
1392
|
return retVal;
|
|
1421
1393
|
};
|
|
1422
|
-
const
|
|
1394
|
+
const de_JobRunSummary = (output, context) => {
|
|
1423
1395
|
return {
|
|
1424
1396
|
applicationId: (0, smithy_client_1.expectString)(output.applicationId),
|
|
1425
1397
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
@@ -1435,44 +1407,42 @@ const deserializeAws_restJson1JobRunSummary = (output, context) => {
|
|
|
1435
1407
|
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
|
|
1436
1408
|
};
|
|
1437
1409
|
};
|
|
1438
|
-
const
|
|
1410
|
+
const de_ManagedPersistenceMonitoringConfiguration = (output, context) => {
|
|
1439
1411
|
return {
|
|
1440
1412
|
enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
|
|
1441
1413
|
encryptionKeyArn: (0, smithy_client_1.expectString)(output.encryptionKeyArn),
|
|
1442
1414
|
};
|
|
1443
1415
|
};
|
|
1444
|
-
const
|
|
1416
|
+
const de_MaximumAllowedResources = (output, context) => {
|
|
1445
1417
|
return {
|
|
1446
1418
|
cpu: (0, smithy_client_1.expectString)(output.cpu),
|
|
1447
1419
|
disk: (0, smithy_client_1.expectString)(output.disk),
|
|
1448
1420
|
memory: (0, smithy_client_1.expectString)(output.memory),
|
|
1449
1421
|
};
|
|
1450
1422
|
};
|
|
1451
|
-
const
|
|
1423
|
+
const de_MonitoringConfiguration = (output, context) => {
|
|
1452
1424
|
return {
|
|
1453
1425
|
managedPersistenceMonitoringConfiguration: output.managedPersistenceMonitoringConfiguration != null
|
|
1454
|
-
?
|
|
1426
|
+
? de_ManagedPersistenceMonitoringConfiguration(output.managedPersistenceMonitoringConfiguration, context)
|
|
1455
1427
|
: undefined,
|
|
1456
1428
|
s3MonitoringConfiguration: output.s3MonitoringConfiguration != null
|
|
1457
|
-
?
|
|
1429
|
+
? de_S3MonitoringConfiguration(output.s3MonitoringConfiguration, context)
|
|
1458
1430
|
: undefined,
|
|
1459
1431
|
};
|
|
1460
1432
|
};
|
|
1461
|
-
const
|
|
1433
|
+
const de_NetworkConfiguration = (output, context) => {
|
|
1462
1434
|
return {
|
|
1463
|
-
securityGroupIds: output.securityGroupIds != null
|
|
1464
|
-
|
|
1465
|
-
: undefined,
|
|
1466
|
-
subnetIds: output.subnetIds != null ? deserializeAws_restJson1SubnetIds(output.subnetIds, context) : undefined,
|
|
1435
|
+
securityGroupIds: output.securityGroupIds != null ? de_SecurityGroupIds(output.securityGroupIds, context) : undefined,
|
|
1436
|
+
subnetIds: output.subnetIds != null ? de_SubnetIds(output.subnetIds, context) : undefined,
|
|
1467
1437
|
};
|
|
1468
1438
|
};
|
|
1469
|
-
const
|
|
1439
|
+
const de_S3MonitoringConfiguration = (output, context) => {
|
|
1470
1440
|
return {
|
|
1471
1441
|
encryptionKeyArn: (0, smithy_client_1.expectString)(output.encryptionKeyArn),
|
|
1472
1442
|
logUri: (0, smithy_client_1.expectString)(output.logUri),
|
|
1473
1443
|
};
|
|
1474
1444
|
};
|
|
1475
|
-
const
|
|
1445
|
+
const de_SecurityGroupIds = (output, context) => {
|
|
1476
1446
|
const retVal = (output || [])
|
|
1477
1447
|
.filter((e) => e != null)
|
|
1478
1448
|
.map((entry) => {
|
|
@@ -1483,7 +1453,7 @@ const deserializeAws_restJson1SecurityGroupIds = (output, context) => {
|
|
|
1483
1453
|
});
|
|
1484
1454
|
return retVal;
|
|
1485
1455
|
};
|
|
1486
|
-
const
|
|
1456
|
+
const de_SensitivePropertiesMap = (output, context) => {
|
|
1487
1457
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1488
1458
|
if (value === null) {
|
|
1489
1459
|
return acc;
|
|
@@ -1492,16 +1462,14 @@ const deserializeAws_restJson1SensitivePropertiesMap = (output, context) => {
|
|
|
1492
1462
|
return acc;
|
|
1493
1463
|
}, {});
|
|
1494
1464
|
};
|
|
1495
|
-
const
|
|
1465
|
+
const de_SparkSubmit = (output, context) => {
|
|
1496
1466
|
return {
|
|
1497
1467
|
entryPoint: (0, smithy_client_1.expectString)(output.entryPoint),
|
|
1498
|
-
entryPointArguments: output.entryPointArguments != null
|
|
1499
|
-
? deserializeAws_restJson1EntryPointArguments(output.entryPointArguments, context)
|
|
1500
|
-
: undefined,
|
|
1468
|
+
entryPointArguments: output.entryPointArguments != null ? de_EntryPointArguments(output.entryPointArguments, context) : undefined,
|
|
1501
1469
|
sparkSubmitParameters: (0, smithy_client_1.expectString)(output.sparkSubmitParameters),
|
|
1502
1470
|
};
|
|
1503
1471
|
};
|
|
1504
|
-
const
|
|
1472
|
+
const de_SubnetIds = (output, context) => {
|
|
1505
1473
|
const retVal = (output || [])
|
|
1506
1474
|
.filter((e) => e != null)
|
|
1507
1475
|
.map((entry) => {
|
|
@@ -1512,7 +1480,7 @@ const deserializeAws_restJson1SubnetIds = (output, context) => {
|
|
|
1512
1480
|
});
|
|
1513
1481
|
return retVal;
|
|
1514
1482
|
};
|
|
1515
|
-
const
|
|
1483
|
+
const de_TagMap = (output, context) => {
|
|
1516
1484
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1517
1485
|
if (value === null) {
|
|
1518
1486
|
return acc;
|
|
@@ -1521,33 +1489,31 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
1521
1489
|
return acc;
|
|
1522
1490
|
}, {});
|
|
1523
1491
|
};
|
|
1524
|
-
const
|
|
1492
|
+
const de_TotalResourceUtilization = (output, context) => {
|
|
1525
1493
|
return {
|
|
1526
1494
|
memoryGBHour: (0, smithy_client_1.limitedParseDouble)(output.memoryGBHour),
|
|
1527
1495
|
storageGBHour: (0, smithy_client_1.limitedParseDouble)(output.storageGBHour),
|
|
1528
1496
|
vCPUHour: (0, smithy_client_1.limitedParseDouble)(output.vCPUHour),
|
|
1529
1497
|
};
|
|
1530
1498
|
};
|
|
1531
|
-
const
|
|
1499
|
+
const de_WorkerResourceConfig = (output, context) => {
|
|
1532
1500
|
return {
|
|
1533
1501
|
cpu: (0, smithy_client_1.expectString)(output.cpu),
|
|
1534
1502
|
disk: (0, smithy_client_1.expectString)(output.disk),
|
|
1535
1503
|
memory: (0, smithy_client_1.expectString)(output.memory),
|
|
1536
1504
|
};
|
|
1537
1505
|
};
|
|
1538
|
-
const
|
|
1506
|
+
const de_WorkerTypeSpecification = (output, context) => {
|
|
1539
1507
|
return {
|
|
1540
|
-
imageConfiguration: output.imageConfiguration != null
|
|
1541
|
-
? deserializeAws_restJson1ImageConfiguration(output.imageConfiguration, context)
|
|
1542
|
-
: undefined,
|
|
1508
|
+
imageConfiguration: output.imageConfiguration != null ? de_ImageConfiguration(output.imageConfiguration, context) : undefined,
|
|
1543
1509
|
};
|
|
1544
1510
|
};
|
|
1545
|
-
const
|
|
1511
|
+
const de_WorkerTypeSpecificationMap = (output, context) => {
|
|
1546
1512
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1547
1513
|
if (value === null) {
|
|
1548
1514
|
return acc;
|
|
1549
1515
|
}
|
|
1550
|
-
acc[key] =
|
|
1516
|
+
acc[key] = de_WorkerTypeSpecification(value, context);
|
|
1551
1517
|
return acc;
|
|
1552
1518
|
}, {});
|
|
1553
1519
|
};
|