@aws-sdk/client-emr-containers 3.306.0 → 3.310.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/CreateJobTemplateCommand.js +2 -2
- package/dist-cjs/commands/CreateManagedEndpointCommand.js +2 -2
- package/dist-cjs/commands/CreateVirtualClusterCommand.js +2 -2
- package/dist-cjs/commands/DeleteJobTemplateCommand.js +2 -2
- package/dist-cjs/commands/DeleteManagedEndpointCommand.js +2 -2
- package/dist-cjs/commands/DeleteVirtualClusterCommand.js +2 -2
- package/dist-cjs/commands/DescribeJobRunCommand.js +2 -2
- package/dist-cjs/commands/DescribeJobTemplateCommand.js +2 -2
- package/dist-cjs/commands/DescribeManagedEndpointCommand.js +2 -2
- package/dist-cjs/commands/DescribeVirtualClusterCommand.js +2 -2
- package/dist-cjs/commands/ListJobRunsCommand.js +2 -2
- package/dist-cjs/commands/ListJobTemplatesCommand.js +2 -2
- package/dist-cjs/commands/ListManagedEndpointsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListVirtualClustersCommand.js +2 -2
- package/dist-cjs/commands/StartJobRunCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +305 -329
- package/dist-es/commands/CancelJobRunCommand.js +3 -3
- package/dist-es/commands/CreateJobTemplateCommand.js +3 -3
- package/dist-es/commands/CreateManagedEndpointCommand.js +3 -3
- package/dist-es/commands/CreateVirtualClusterCommand.js +3 -3
- package/dist-es/commands/DeleteJobTemplateCommand.js +3 -3
- package/dist-es/commands/DeleteManagedEndpointCommand.js +3 -3
- package/dist-es/commands/DeleteVirtualClusterCommand.js +3 -3
- package/dist-es/commands/DescribeJobRunCommand.js +3 -3
- package/dist-es/commands/DescribeJobTemplateCommand.js +3 -3
- package/dist-es/commands/DescribeManagedEndpointCommand.js +3 -3
- package/dist-es/commands/DescribeVirtualClusterCommand.js +3 -3
- package/dist-es/commands/ListJobRunsCommand.js +3 -3
- package/dist-es/commands/ListJobTemplatesCommand.js +3 -3
- package/dist-es/commands/ListManagedEndpointsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListVirtualClustersCommand.js +3 -3
- package/dist-es/commands/StartJobRunCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +266 -290
- package/dist-types/protocols/Aws_restJson1.d.ts +152 -38
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +38 -38
- package/package.json +35 -35
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartJobRunCommand = exports.de_ListVirtualClustersCommand = exports.de_ListTagsForResourceCommand = exports.de_ListManagedEndpointsCommand = exports.de_ListJobTemplatesCommand = exports.de_ListJobRunsCommand = exports.de_DescribeVirtualClusterCommand = exports.de_DescribeManagedEndpointCommand = exports.de_DescribeJobTemplateCommand = exports.de_DescribeJobRunCommand = exports.de_DeleteVirtualClusterCommand = exports.de_DeleteManagedEndpointCommand = exports.de_DeleteJobTemplateCommand = exports.de_CreateVirtualClusterCommand = exports.de_CreateManagedEndpointCommand = exports.de_CreateJobTemplateCommand = exports.de_CancelJobRunCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartJobRunCommand = exports.se_ListVirtualClustersCommand = exports.se_ListTagsForResourceCommand = exports.se_ListManagedEndpointsCommand = exports.se_ListJobTemplatesCommand = exports.se_ListJobRunsCommand = exports.se_DescribeVirtualClusterCommand = exports.se_DescribeManagedEndpointCommand = exports.se_DescribeJobTemplateCommand = exports.se_DescribeJobRunCommand = exports.se_DeleteVirtualClusterCommand = exports.se_DeleteManagedEndpointCommand = exports.se_DeleteJobTemplateCommand = exports.se_CreateVirtualClusterCommand = exports.se_CreateManagedEndpointCommand = exports.se_CreateJobTemplateCommand = 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 EMRContainersServiceException_1 = require("../models/EMRContainersServiceException");
|
|
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_CreateJobTemplateCommand = 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",
|
|
@@ -34,12 +34,10 @@ const serializeAws_restJson1CreateJobTemplateCommand = async (input, context) =>
|
|
|
34
34
|
let body;
|
|
35
35
|
body = JSON.stringify({
|
|
36
36
|
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
37
|
-
...(input.jobTemplateData != null && {
|
|
38
|
-
jobTemplateData: serializeAws_restJson1JobTemplateData(input.jobTemplateData, context),
|
|
39
|
-
}),
|
|
37
|
+
...(input.jobTemplateData != null && { jobTemplateData: se_JobTemplateData(input.jobTemplateData, context) }),
|
|
40
38
|
...(input.kmsKeyArn != null && { kmsKeyArn: input.kmsKeyArn }),
|
|
41
39
|
...(input.name != null && { name: input.name }),
|
|
42
|
-
...(input.tags != null && { tags:
|
|
40
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
43
41
|
});
|
|
44
42
|
return new protocol_http_1.HttpRequest({
|
|
45
43
|
protocol,
|
|
@@ -51,8 +49,8 @@ const serializeAws_restJson1CreateJobTemplateCommand = async (input, context) =>
|
|
|
51
49
|
body,
|
|
52
50
|
});
|
|
53
51
|
};
|
|
54
|
-
exports.
|
|
55
|
-
const
|
|
52
|
+
exports.se_CreateJobTemplateCommand = se_CreateJobTemplateCommand;
|
|
53
|
+
const se_CreateManagedEndpointCommand = async (input, context) => {
|
|
56
54
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
57
55
|
const headers = {
|
|
58
56
|
"content-type": "application/json",
|
|
@@ -65,12 +63,12 @@ const serializeAws_restJson1CreateManagedEndpointCommand = async (input, context
|
|
|
65
63
|
...(input.certificateArn != null && { certificateArn: input.certificateArn }),
|
|
66
64
|
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
67
65
|
...(input.configurationOverrides != null && {
|
|
68
|
-
configurationOverrides:
|
|
66
|
+
configurationOverrides: se_ConfigurationOverrides(input.configurationOverrides, context),
|
|
69
67
|
}),
|
|
70
68
|
...(input.executionRoleArn != null && { executionRoleArn: input.executionRoleArn }),
|
|
71
69
|
...(input.name != null && { name: input.name }),
|
|
72
70
|
...(input.releaseLabel != null && { releaseLabel: input.releaseLabel }),
|
|
73
|
-
...(input.tags != null && { tags:
|
|
71
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
74
72
|
...(input.type != null && { type: input.type }),
|
|
75
73
|
});
|
|
76
74
|
return new protocol_http_1.HttpRequest({
|
|
@@ -83,8 +81,8 @@ const serializeAws_restJson1CreateManagedEndpointCommand = async (input, context
|
|
|
83
81
|
body,
|
|
84
82
|
});
|
|
85
83
|
};
|
|
86
|
-
exports.
|
|
87
|
-
const
|
|
84
|
+
exports.se_CreateManagedEndpointCommand = se_CreateManagedEndpointCommand;
|
|
85
|
+
const se_CreateVirtualClusterCommand = async (input, context) => {
|
|
88
86
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
89
87
|
const headers = {
|
|
90
88
|
"content-type": "application/json",
|
|
@@ -94,10 +92,10 @@ const serializeAws_restJson1CreateVirtualClusterCommand = async (input, context)
|
|
|
94
92
|
body = JSON.stringify({
|
|
95
93
|
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
96
94
|
...(input.containerProvider != null && {
|
|
97
|
-
containerProvider:
|
|
95
|
+
containerProvider: se_ContainerProvider(input.containerProvider, context),
|
|
98
96
|
}),
|
|
99
97
|
...(input.name != null && { name: input.name }),
|
|
100
|
-
...(input.tags != null && { tags:
|
|
98
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
101
99
|
});
|
|
102
100
|
return new protocol_http_1.HttpRequest({
|
|
103
101
|
protocol,
|
|
@@ -109,8 +107,8 @@ const serializeAws_restJson1CreateVirtualClusterCommand = async (input, context)
|
|
|
109
107
|
body,
|
|
110
108
|
});
|
|
111
109
|
};
|
|
112
|
-
exports.
|
|
113
|
-
const
|
|
110
|
+
exports.se_CreateVirtualClusterCommand = se_CreateVirtualClusterCommand;
|
|
111
|
+
const se_DeleteJobTemplateCommand = async (input, context) => {
|
|
114
112
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
115
113
|
const headers = {};
|
|
116
114
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobtemplates/{id}";
|
|
@@ -126,8 +124,8 @@ const serializeAws_restJson1DeleteJobTemplateCommand = async (input, context) =>
|
|
|
126
124
|
body,
|
|
127
125
|
});
|
|
128
126
|
};
|
|
129
|
-
exports.
|
|
130
|
-
const
|
|
127
|
+
exports.se_DeleteJobTemplateCommand = se_DeleteJobTemplateCommand;
|
|
128
|
+
const se_DeleteManagedEndpointCommand = async (input, context) => {
|
|
131
129
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
132
130
|
const headers = {};
|
|
133
131
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -145,8 +143,8 @@ const serializeAws_restJson1DeleteManagedEndpointCommand = async (input, context
|
|
|
145
143
|
body,
|
|
146
144
|
});
|
|
147
145
|
};
|
|
148
|
-
exports.
|
|
149
|
-
const
|
|
146
|
+
exports.se_DeleteManagedEndpointCommand = se_DeleteManagedEndpointCommand;
|
|
147
|
+
const se_DeleteVirtualClusterCommand = async (input, context) => {
|
|
150
148
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
151
149
|
const headers = {};
|
|
152
150
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/virtualclusters/{id}";
|
|
@@ -162,8 +160,8 @@ const serializeAws_restJson1DeleteVirtualClusterCommand = async (input, context)
|
|
|
162
160
|
body,
|
|
163
161
|
});
|
|
164
162
|
};
|
|
165
|
-
exports.
|
|
166
|
-
const
|
|
163
|
+
exports.se_DeleteVirtualClusterCommand = se_DeleteVirtualClusterCommand;
|
|
164
|
+
const se_DescribeJobRunCommand = async (input, context) => {
|
|
167
165
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
168
166
|
const headers = {};
|
|
169
167
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -181,8 +179,8 @@ const serializeAws_restJson1DescribeJobRunCommand = async (input, context) => {
|
|
|
181
179
|
body,
|
|
182
180
|
});
|
|
183
181
|
};
|
|
184
|
-
exports.
|
|
185
|
-
const
|
|
182
|
+
exports.se_DescribeJobRunCommand = se_DescribeJobRunCommand;
|
|
183
|
+
const se_DescribeJobTemplateCommand = async (input, context) => {
|
|
186
184
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
187
185
|
const headers = {};
|
|
188
186
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobtemplates/{id}";
|
|
@@ -198,8 +196,8 @@ const serializeAws_restJson1DescribeJobTemplateCommand = async (input, context)
|
|
|
198
196
|
body,
|
|
199
197
|
});
|
|
200
198
|
};
|
|
201
|
-
exports.
|
|
202
|
-
const
|
|
199
|
+
exports.se_DescribeJobTemplateCommand = se_DescribeJobTemplateCommand;
|
|
200
|
+
const se_DescribeManagedEndpointCommand = async (input, context) => {
|
|
203
201
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
204
202
|
const headers = {};
|
|
205
203
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -217,8 +215,8 @@ const serializeAws_restJson1DescribeManagedEndpointCommand = async (input, conte
|
|
|
217
215
|
body,
|
|
218
216
|
});
|
|
219
217
|
};
|
|
220
|
-
exports.
|
|
221
|
-
const
|
|
218
|
+
exports.se_DescribeManagedEndpointCommand = se_DescribeManagedEndpointCommand;
|
|
219
|
+
const se_DescribeVirtualClusterCommand = async (input, context) => {
|
|
222
220
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
223
221
|
const headers = {};
|
|
224
222
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/virtualclusters/{id}";
|
|
@@ -234,8 +232,8 @@ const serializeAws_restJson1DescribeVirtualClusterCommand = async (input, contex
|
|
|
234
232
|
body,
|
|
235
233
|
});
|
|
236
234
|
};
|
|
237
|
-
exports.
|
|
238
|
-
const
|
|
235
|
+
exports.se_DescribeVirtualClusterCommand = se_DescribeVirtualClusterCommand;
|
|
236
|
+
const se_ListJobRunsCommand = async (input, context) => {
|
|
239
237
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
240
238
|
const headers = {};
|
|
241
239
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -267,8 +265,8 @@ const serializeAws_restJson1ListJobRunsCommand = async (input, context) => {
|
|
|
267
265
|
body,
|
|
268
266
|
});
|
|
269
267
|
};
|
|
270
|
-
exports.
|
|
271
|
-
const
|
|
268
|
+
exports.se_ListJobRunsCommand = se_ListJobRunsCommand;
|
|
269
|
+
const se_ListJobTemplatesCommand = async (input, context) => {
|
|
272
270
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
273
271
|
const headers = {};
|
|
274
272
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobtemplates";
|
|
@@ -296,8 +294,8 @@ const serializeAws_restJson1ListJobTemplatesCommand = async (input, context) =>
|
|
|
296
294
|
body,
|
|
297
295
|
});
|
|
298
296
|
};
|
|
299
|
-
exports.
|
|
300
|
-
const
|
|
297
|
+
exports.se_ListJobTemplatesCommand = se_ListJobTemplatesCommand;
|
|
298
|
+
const se_ListManagedEndpointsCommand = async (input, context) => {
|
|
301
299
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
302
300
|
const headers = {};
|
|
303
301
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -329,8 +327,8 @@ const serializeAws_restJson1ListManagedEndpointsCommand = async (input, context)
|
|
|
329
327
|
body,
|
|
330
328
|
});
|
|
331
329
|
};
|
|
332
|
-
exports.
|
|
333
|
-
const
|
|
330
|
+
exports.se_ListManagedEndpointsCommand = se_ListManagedEndpointsCommand;
|
|
331
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
334
332
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
335
333
|
const headers = {};
|
|
336
334
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -346,8 +344,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
346
344
|
body,
|
|
347
345
|
});
|
|
348
346
|
};
|
|
349
|
-
exports.
|
|
350
|
-
const
|
|
347
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
348
|
+
const se_ListVirtualClustersCommand = async (input, context) => {
|
|
351
349
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
352
350
|
const headers = {};
|
|
353
351
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/virtualclusters";
|
|
@@ -378,8 +376,8 @@ const serializeAws_restJson1ListVirtualClustersCommand = async (input, context)
|
|
|
378
376
|
body,
|
|
379
377
|
});
|
|
380
378
|
};
|
|
381
|
-
exports.
|
|
382
|
-
const
|
|
379
|
+
exports.se_ListVirtualClustersCommand = se_ListVirtualClustersCommand;
|
|
380
|
+
const se_StartJobRunCommand = async (input, context) => {
|
|
383
381
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
384
382
|
const headers = {
|
|
385
383
|
"content-type": "application/json",
|
|
@@ -391,20 +389,20 @@ const serializeAws_restJson1StartJobRunCommand = async (input, context) => {
|
|
|
391
389
|
body = JSON.stringify({
|
|
392
390
|
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
393
391
|
...(input.configurationOverrides != null && {
|
|
394
|
-
configurationOverrides:
|
|
392
|
+
configurationOverrides: se_ConfigurationOverrides(input.configurationOverrides, context),
|
|
395
393
|
}),
|
|
396
394
|
...(input.executionRoleArn != null && { executionRoleArn: input.executionRoleArn }),
|
|
397
|
-
...(input.jobDriver != null && { jobDriver:
|
|
395
|
+
...(input.jobDriver != null && { jobDriver: se_JobDriver(input.jobDriver, context) }),
|
|
398
396
|
...(input.jobTemplateId != null && { jobTemplateId: input.jobTemplateId }),
|
|
399
397
|
...(input.jobTemplateParameters != null && {
|
|
400
|
-
jobTemplateParameters:
|
|
398
|
+
jobTemplateParameters: se_TemplateParameterInputMap(input.jobTemplateParameters, context),
|
|
401
399
|
}),
|
|
402
400
|
...(input.name != null && { name: input.name }),
|
|
403
401
|
...(input.releaseLabel != null && { releaseLabel: input.releaseLabel }),
|
|
404
402
|
...(input.retryPolicyConfiguration != null && {
|
|
405
|
-
retryPolicyConfiguration:
|
|
403
|
+
retryPolicyConfiguration: se_RetryPolicyConfiguration(input.retryPolicyConfiguration, context),
|
|
406
404
|
}),
|
|
407
|
-
...(input.tags != null && { tags:
|
|
405
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
408
406
|
});
|
|
409
407
|
return new protocol_http_1.HttpRequest({
|
|
410
408
|
protocol,
|
|
@@ -416,8 +414,8 @@ const serializeAws_restJson1StartJobRunCommand = async (input, context) => {
|
|
|
416
414
|
body,
|
|
417
415
|
});
|
|
418
416
|
};
|
|
419
|
-
exports.
|
|
420
|
-
const
|
|
417
|
+
exports.se_StartJobRunCommand = se_StartJobRunCommand;
|
|
418
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
421
419
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
422
420
|
const headers = {
|
|
423
421
|
"content-type": "application/json",
|
|
@@ -426,7 +424,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
426
424
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
427
425
|
let body;
|
|
428
426
|
body = JSON.stringify({
|
|
429
|
-
...(input.tags != null && { tags:
|
|
427
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
430
428
|
});
|
|
431
429
|
return new protocol_http_1.HttpRequest({
|
|
432
430
|
protocol,
|
|
@@ -438,8 +436,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
438
436
|
body,
|
|
439
437
|
});
|
|
440
438
|
};
|
|
441
|
-
exports.
|
|
442
|
-
const
|
|
439
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
440
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
443
441
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
444
442
|
const headers = {};
|
|
445
443
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -462,10 +460,10 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
462
460
|
body,
|
|
463
461
|
});
|
|
464
462
|
};
|
|
465
|
-
exports.
|
|
466
|
-
const
|
|
463
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
464
|
+
const de_CancelJobRunCommand = async (output, context) => {
|
|
467
465
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
468
|
-
return
|
|
466
|
+
return de_CancelJobRunCommandError(output, context);
|
|
469
467
|
}
|
|
470
468
|
const contents = map({
|
|
471
469
|
$metadata: deserializeMetadata(output),
|
|
@@ -479,8 +477,8 @@ const deserializeAws_restJson1CancelJobRunCommand = async (output, context) => {
|
|
|
479
477
|
}
|
|
480
478
|
return contents;
|
|
481
479
|
};
|
|
482
|
-
exports.
|
|
483
|
-
const
|
|
480
|
+
exports.de_CancelJobRunCommand = de_CancelJobRunCommand;
|
|
481
|
+
const de_CancelJobRunCommandError = async (output, context) => {
|
|
484
482
|
const parsedOutput = {
|
|
485
483
|
...output,
|
|
486
484
|
body: await parseErrorBody(output.body, context),
|
|
@@ -489,10 +487,10 @@ const deserializeAws_restJson1CancelJobRunCommandError = async (output, context)
|
|
|
489
487
|
switch (errorCode) {
|
|
490
488
|
case "InternalServerException":
|
|
491
489
|
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
492
|
-
throw await
|
|
490
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
493
491
|
case "ValidationException":
|
|
494
492
|
case "com.amazonaws.emrcontainers#ValidationException":
|
|
495
|
-
throw await
|
|
493
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
496
494
|
default:
|
|
497
495
|
const parsedBody = parsedOutput.body;
|
|
498
496
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -503,9 +501,9 @@ const deserializeAws_restJson1CancelJobRunCommandError = async (output, context)
|
|
|
503
501
|
});
|
|
504
502
|
}
|
|
505
503
|
};
|
|
506
|
-
const
|
|
504
|
+
const de_CreateJobTemplateCommand = async (output, context) => {
|
|
507
505
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
508
|
-
return
|
|
506
|
+
return de_CreateJobTemplateCommandError(output, context);
|
|
509
507
|
}
|
|
510
508
|
const contents = map({
|
|
511
509
|
$metadata: deserializeMetadata(output),
|
|
@@ -525,8 +523,8 @@ const deserializeAws_restJson1CreateJobTemplateCommand = async (output, context)
|
|
|
525
523
|
}
|
|
526
524
|
return contents;
|
|
527
525
|
};
|
|
528
|
-
exports.
|
|
529
|
-
const
|
|
526
|
+
exports.de_CreateJobTemplateCommand = de_CreateJobTemplateCommand;
|
|
527
|
+
const de_CreateJobTemplateCommandError = async (output, context) => {
|
|
530
528
|
const parsedOutput = {
|
|
531
529
|
...output,
|
|
532
530
|
body: await parseErrorBody(output.body, context),
|
|
@@ -535,13 +533,13 @@ const deserializeAws_restJson1CreateJobTemplateCommandError = async (output, con
|
|
|
535
533
|
switch (errorCode) {
|
|
536
534
|
case "InternalServerException":
|
|
537
535
|
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
538
|
-
throw await
|
|
536
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
539
537
|
case "ResourceNotFoundException":
|
|
540
538
|
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
541
|
-
throw await
|
|
539
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
542
540
|
case "ValidationException":
|
|
543
541
|
case "com.amazonaws.emrcontainers#ValidationException":
|
|
544
|
-
throw await
|
|
542
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
545
543
|
default:
|
|
546
544
|
const parsedBody = parsedOutput.body;
|
|
547
545
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -552,9 +550,9 @@ const deserializeAws_restJson1CreateJobTemplateCommandError = async (output, con
|
|
|
552
550
|
});
|
|
553
551
|
}
|
|
554
552
|
};
|
|
555
|
-
const
|
|
553
|
+
const de_CreateManagedEndpointCommand = async (output, context) => {
|
|
556
554
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
557
|
-
return
|
|
555
|
+
return de_CreateManagedEndpointCommandError(output, context);
|
|
558
556
|
}
|
|
559
557
|
const contents = map({
|
|
560
558
|
$metadata: deserializeMetadata(output),
|
|
@@ -574,8 +572,8 @@ const deserializeAws_restJson1CreateManagedEndpointCommand = async (output, cont
|
|
|
574
572
|
}
|
|
575
573
|
return contents;
|
|
576
574
|
};
|
|
577
|
-
exports.
|
|
578
|
-
const
|
|
575
|
+
exports.de_CreateManagedEndpointCommand = de_CreateManagedEndpointCommand;
|
|
576
|
+
const de_CreateManagedEndpointCommandError = async (output, context) => {
|
|
579
577
|
const parsedOutput = {
|
|
580
578
|
...output,
|
|
581
579
|
body: await parseErrorBody(output.body, context),
|
|
@@ -584,13 +582,13 @@ const deserializeAws_restJson1CreateManagedEndpointCommandError = async (output,
|
|
|
584
582
|
switch (errorCode) {
|
|
585
583
|
case "InternalServerException":
|
|
586
584
|
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
587
|
-
throw await
|
|
585
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
588
586
|
case "ResourceNotFoundException":
|
|
589
587
|
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
590
|
-
throw await
|
|
588
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
591
589
|
case "ValidationException":
|
|
592
590
|
case "com.amazonaws.emrcontainers#ValidationException":
|
|
593
|
-
throw await
|
|
591
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
594
592
|
default:
|
|
595
593
|
const parsedBody = parsedOutput.body;
|
|
596
594
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -601,9 +599,9 @@ const deserializeAws_restJson1CreateManagedEndpointCommandError = async (output,
|
|
|
601
599
|
});
|
|
602
600
|
}
|
|
603
601
|
};
|
|
604
|
-
const
|
|
602
|
+
const de_CreateVirtualClusterCommand = async (output, context) => {
|
|
605
603
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
606
|
-
return
|
|
604
|
+
return de_CreateVirtualClusterCommandError(output, context);
|
|
607
605
|
}
|
|
608
606
|
const contents = map({
|
|
609
607
|
$metadata: deserializeMetadata(output),
|
|
@@ -620,8 +618,8 @@ const deserializeAws_restJson1CreateVirtualClusterCommand = async (output, conte
|
|
|
620
618
|
}
|
|
621
619
|
return contents;
|
|
622
620
|
};
|
|
623
|
-
exports.
|
|
624
|
-
const
|
|
621
|
+
exports.de_CreateVirtualClusterCommand = de_CreateVirtualClusterCommand;
|
|
622
|
+
const de_CreateVirtualClusterCommandError = async (output, context) => {
|
|
625
623
|
const parsedOutput = {
|
|
626
624
|
...output,
|
|
627
625
|
body: await parseErrorBody(output.body, context),
|
|
@@ -630,13 +628,13 @@ const deserializeAws_restJson1CreateVirtualClusterCommandError = async (output,
|
|
|
630
628
|
switch (errorCode) {
|
|
631
629
|
case "InternalServerException":
|
|
632
630
|
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
633
|
-
throw await
|
|
631
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
634
632
|
case "ResourceNotFoundException":
|
|
635
633
|
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
636
|
-
throw await
|
|
634
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
637
635
|
case "ValidationException":
|
|
638
636
|
case "com.amazonaws.emrcontainers#ValidationException":
|
|
639
|
-
throw await
|
|
637
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
640
638
|
default:
|
|
641
639
|
const parsedBody = parsedOutput.body;
|
|
642
640
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -647,9 +645,9 @@ const deserializeAws_restJson1CreateVirtualClusterCommandError = async (output,
|
|
|
647
645
|
});
|
|
648
646
|
}
|
|
649
647
|
};
|
|
650
|
-
const
|
|
648
|
+
const de_DeleteJobTemplateCommand = async (output, context) => {
|
|
651
649
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
652
|
-
return
|
|
650
|
+
return de_DeleteJobTemplateCommandError(output, context);
|
|
653
651
|
}
|
|
654
652
|
const contents = map({
|
|
655
653
|
$metadata: deserializeMetadata(output),
|
|
@@ -660,8 +658,8 @@ const deserializeAws_restJson1DeleteJobTemplateCommand = async (output, context)
|
|
|
660
658
|
}
|
|
661
659
|
return contents;
|
|
662
660
|
};
|
|
663
|
-
exports.
|
|
664
|
-
const
|
|
661
|
+
exports.de_DeleteJobTemplateCommand = de_DeleteJobTemplateCommand;
|
|
662
|
+
const de_DeleteJobTemplateCommandError = async (output, context) => {
|
|
665
663
|
const parsedOutput = {
|
|
666
664
|
...output,
|
|
667
665
|
body: await parseErrorBody(output.body, context),
|
|
@@ -670,10 +668,10 @@ const deserializeAws_restJson1DeleteJobTemplateCommandError = async (output, con
|
|
|
670
668
|
switch (errorCode) {
|
|
671
669
|
case "InternalServerException":
|
|
672
670
|
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
673
|
-
throw await
|
|
671
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
674
672
|
case "ValidationException":
|
|
675
673
|
case "com.amazonaws.emrcontainers#ValidationException":
|
|
676
|
-
throw await
|
|
674
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
677
675
|
default:
|
|
678
676
|
const parsedBody = parsedOutput.body;
|
|
679
677
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -684,9 +682,9 @@ const deserializeAws_restJson1DeleteJobTemplateCommandError = async (output, con
|
|
|
684
682
|
});
|
|
685
683
|
}
|
|
686
684
|
};
|
|
687
|
-
const
|
|
685
|
+
const de_DeleteManagedEndpointCommand = async (output, context) => {
|
|
688
686
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
689
|
-
return
|
|
687
|
+
return de_DeleteManagedEndpointCommandError(output, context);
|
|
690
688
|
}
|
|
691
689
|
const contents = map({
|
|
692
690
|
$metadata: deserializeMetadata(output),
|
|
@@ -700,8 +698,8 @@ const deserializeAws_restJson1DeleteManagedEndpointCommand = async (output, cont
|
|
|
700
698
|
}
|
|
701
699
|
return contents;
|
|
702
700
|
};
|
|
703
|
-
exports.
|
|
704
|
-
const
|
|
701
|
+
exports.de_DeleteManagedEndpointCommand = de_DeleteManagedEndpointCommand;
|
|
702
|
+
const de_DeleteManagedEndpointCommandError = async (output, context) => {
|
|
705
703
|
const parsedOutput = {
|
|
706
704
|
...output,
|
|
707
705
|
body: await parseErrorBody(output.body, context),
|
|
@@ -710,10 +708,10 @@ const deserializeAws_restJson1DeleteManagedEndpointCommandError = async (output,
|
|
|
710
708
|
switch (errorCode) {
|
|
711
709
|
case "InternalServerException":
|
|
712
710
|
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
713
|
-
throw await
|
|
711
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
714
712
|
case "ValidationException":
|
|
715
713
|
case "com.amazonaws.emrcontainers#ValidationException":
|
|
716
|
-
throw await
|
|
714
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
717
715
|
default:
|
|
718
716
|
const parsedBody = parsedOutput.body;
|
|
719
717
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -724,9 +722,9 @@ const deserializeAws_restJson1DeleteManagedEndpointCommandError = async (output,
|
|
|
724
722
|
});
|
|
725
723
|
}
|
|
726
724
|
};
|
|
727
|
-
const
|
|
725
|
+
const de_DeleteVirtualClusterCommand = async (output, context) => {
|
|
728
726
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
729
|
-
return
|
|
727
|
+
return de_DeleteVirtualClusterCommandError(output, context);
|
|
730
728
|
}
|
|
731
729
|
const contents = map({
|
|
732
730
|
$metadata: deserializeMetadata(output),
|
|
@@ -737,8 +735,8 @@ const deserializeAws_restJson1DeleteVirtualClusterCommand = async (output, conte
|
|
|
737
735
|
}
|
|
738
736
|
return contents;
|
|
739
737
|
};
|
|
740
|
-
exports.
|
|
741
|
-
const
|
|
738
|
+
exports.de_DeleteVirtualClusterCommand = de_DeleteVirtualClusterCommand;
|
|
739
|
+
const de_DeleteVirtualClusterCommandError = async (output, context) => {
|
|
742
740
|
const parsedOutput = {
|
|
743
741
|
...output,
|
|
744
742
|
body: await parseErrorBody(output.body, context),
|
|
@@ -747,10 +745,10 @@ const deserializeAws_restJson1DeleteVirtualClusterCommandError = async (output,
|
|
|
747
745
|
switch (errorCode) {
|
|
748
746
|
case "InternalServerException":
|
|
749
747
|
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
750
|
-
throw await
|
|
748
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
751
749
|
case "ValidationException":
|
|
752
750
|
case "com.amazonaws.emrcontainers#ValidationException":
|
|
753
|
-
throw await
|
|
751
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
754
752
|
default:
|
|
755
753
|
const parsedBody = parsedOutput.body;
|
|
756
754
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -761,21 +759,21 @@ const deserializeAws_restJson1DeleteVirtualClusterCommandError = async (output,
|
|
|
761
759
|
});
|
|
762
760
|
}
|
|
763
761
|
};
|
|
764
|
-
const
|
|
762
|
+
const de_DescribeJobRunCommand = async (output, context) => {
|
|
765
763
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
766
|
-
return
|
|
764
|
+
return de_DescribeJobRunCommandError(output, context);
|
|
767
765
|
}
|
|
768
766
|
const contents = map({
|
|
769
767
|
$metadata: deserializeMetadata(output),
|
|
770
768
|
});
|
|
771
769
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
772
770
|
if (data.jobRun != null) {
|
|
773
|
-
contents.jobRun =
|
|
771
|
+
contents.jobRun = de_JobRun(data.jobRun, context);
|
|
774
772
|
}
|
|
775
773
|
return contents;
|
|
776
774
|
};
|
|
777
|
-
exports.
|
|
778
|
-
const
|
|
775
|
+
exports.de_DescribeJobRunCommand = de_DescribeJobRunCommand;
|
|
776
|
+
const de_DescribeJobRunCommandError = async (output, context) => {
|
|
779
777
|
const parsedOutput = {
|
|
780
778
|
...output,
|
|
781
779
|
body: await parseErrorBody(output.body, context),
|
|
@@ -784,13 +782,13 @@ const deserializeAws_restJson1DescribeJobRunCommandError = async (output, contex
|
|
|
784
782
|
switch (errorCode) {
|
|
785
783
|
case "InternalServerException":
|
|
786
784
|
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
787
|
-
throw await
|
|
785
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
788
786
|
case "ResourceNotFoundException":
|
|
789
787
|
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
790
|
-
throw await
|
|
788
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
791
789
|
case "ValidationException":
|
|
792
790
|
case "com.amazonaws.emrcontainers#ValidationException":
|
|
793
|
-
throw await
|
|
791
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
794
792
|
default:
|
|
795
793
|
const parsedBody = parsedOutput.body;
|
|
796
794
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -801,21 +799,21 @@ const deserializeAws_restJson1DescribeJobRunCommandError = async (output, contex
|
|
|
801
799
|
});
|
|
802
800
|
}
|
|
803
801
|
};
|
|
804
|
-
const
|
|
802
|
+
const de_DescribeJobTemplateCommand = async (output, context) => {
|
|
805
803
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
806
|
-
return
|
|
804
|
+
return de_DescribeJobTemplateCommandError(output, context);
|
|
807
805
|
}
|
|
808
806
|
const contents = map({
|
|
809
807
|
$metadata: deserializeMetadata(output),
|
|
810
808
|
});
|
|
811
809
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
812
810
|
if (data.jobTemplate != null) {
|
|
813
|
-
contents.jobTemplate =
|
|
811
|
+
contents.jobTemplate = de_JobTemplate(data.jobTemplate, context);
|
|
814
812
|
}
|
|
815
813
|
return contents;
|
|
816
814
|
};
|
|
817
|
-
exports.
|
|
818
|
-
const
|
|
815
|
+
exports.de_DescribeJobTemplateCommand = de_DescribeJobTemplateCommand;
|
|
816
|
+
const de_DescribeJobTemplateCommandError = async (output, context) => {
|
|
819
817
|
const parsedOutput = {
|
|
820
818
|
...output,
|
|
821
819
|
body: await parseErrorBody(output.body, context),
|
|
@@ -824,13 +822,13 @@ const deserializeAws_restJson1DescribeJobTemplateCommandError = async (output, c
|
|
|
824
822
|
switch (errorCode) {
|
|
825
823
|
case "InternalServerException":
|
|
826
824
|
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
827
|
-
throw await
|
|
825
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
828
826
|
case "ResourceNotFoundException":
|
|
829
827
|
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
830
|
-
throw await
|
|
828
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
831
829
|
case "ValidationException":
|
|
832
830
|
case "com.amazonaws.emrcontainers#ValidationException":
|
|
833
|
-
throw await
|
|
831
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
834
832
|
default:
|
|
835
833
|
const parsedBody = parsedOutput.body;
|
|
836
834
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -841,21 +839,21 @@ const deserializeAws_restJson1DescribeJobTemplateCommandError = async (output, c
|
|
|
841
839
|
});
|
|
842
840
|
}
|
|
843
841
|
};
|
|
844
|
-
const
|
|
842
|
+
const de_DescribeManagedEndpointCommand = async (output, context) => {
|
|
845
843
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
846
|
-
return
|
|
844
|
+
return de_DescribeManagedEndpointCommandError(output, context);
|
|
847
845
|
}
|
|
848
846
|
const contents = map({
|
|
849
847
|
$metadata: deserializeMetadata(output),
|
|
850
848
|
});
|
|
851
849
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
852
850
|
if (data.endpoint != null) {
|
|
853
|
-
contents.endpoint =
|
|
851
|
+
contents.endpoint = de_Endpoint(data.endpoint, context);
|
|
854
852
|
}
|
|
855
853
|
return contents;
|
|
856
854
|
};
|
|
857
|
-
exports.
|
|
858
|
-
const
|
|
855
|
+
exports.de_DescribeManagedEndpointCommand = de_DescribeManagedEndpointCommand;
|
|
856
|
+
const de_DescribeManagedEndpointCommandError = async (output, context) => {
|
|
859
857
|
const parsedOutput = {
|
|
860
858
|
...output,
|
|
861
859
|
body: await parseErrorBody(output.body, context),
|
|
@@ -864,13 +862,13 @@ const deserializeAws_restJson1DescribeManagedEndpointCommandError = async (outpu
|
|
|
864
862
|
switch (errorCode) {
|
|
865
863
|
case "InternalServerException":
|
|
866
864
|
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
867
|
-
throw await
|
|
865
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
868
866
|
case "ResourceNotFoundException":
|
|
869
867
|
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
870
|
-
throw await
|
|
868
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
871
869
|
case "ValidationException":
|
|
872
870
|
case "com.amazonaws.emrcontainers#ValidationException":
|
|
873
|
-
throw await
|
|
871
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
874
872
|
default:
|
|
875
873
|
const parsedBody = parsedOutput.body;
|
|
876
874
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -881,21 +879,21 @@ const deserializeAws_restJson1DescribeManagedEndpointCommandError = async (outpu
|
|
|
881
879
|
});
|
|
882
880
|
}
|
|
883
881
|
};
|
|
884
|
-
const
|
|
882
|
+
const de_DescribeVirtualClusterCommand = async (output, context) => {
|
|
885
883
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
886
|
-
return
|
|
884
|
+
return de_DescribeVirtualClusterCommandError(output, context);
|
|
887
885
|
}
|
|
888
886
|
const contents = map({
|
|
889
887
|
$metadata: deserializeMetadata(output),
|
|
890
888
|
});
|
|
891
889
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
892
890
|
if (data.virtualCluster != null) {
|
|
893
|
-
contents.virtualCluster =
|
|
891
|
+
contents.virtualCluster = de_VirtualCluster(data.virtualCluster, context);
|
|
894
892
|
}
|
|
895
893
|
return contents;
|
|
896
894
|
};
|
|
897
|
-
exports.
|
|
898
|
-
const
|
|
895
|
+
exports.de_DescribeVirtualClusterCommand = de_DescribeVirtualClusterCommand;
|
|
896
|
+
const de_DescribeVirtualClusterCommandError = async (output, context) => {
|
|
899
897
|
const parsedOutput = {
|
|
900
898
|
...output,
|
|
901
899
|
body: await parseErrorBody(output.body, context),
|
|
@@ -904,13 +902,13 @@ const deserializeAws_restJson1DescribeVirtualClusterCommandError = async (output
|
|
|
904
902
|
switch (errorCode) {
|
|
905
903
|
case "InternalServerException":
|
|
906
904
|
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
907
|
-
throw await
|
|
905
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
908
906
|
case "ResourceNotFoundException":
|
|
909
907
|
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
910
|
-
throw await
|
|
908
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
911
909
|
case "ValidationException":
|
|
912
910
|
case "com.amazonaws.emrcontainers#ValidationException":
|
|
913
|
-
throw await
|
|
911
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
914
912
|
default:
|
|
915
913
|
const parsedBody = parsedOutput.body;
|
|
916
914
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -921,24 +919,24 @@ const deserializeAws_restJson1DescribeVirtualClusterCommandError = async (output
|
|
|
921
919
|
});
|
|
922
920
|
}
|
|
923
921
|
};
|
|
924
|
-
const
|
|
922
|
+
const de_ListJobRunsCommand = async (output, context) => {
|
|
925
923
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
926
|
-
return
|
|
924
|
+
return de_ListJobRunsCommandError(output, context);
|
|
927
925
|
}
|
|
928
926
|
const contents = map({
|
|
929
927
|
$metadata: deserializeMetadata(output),
|
|
930
928
|
});
|
|
931
929
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
932
930
|
if (data.jobRuns != null) {
|
|
933
|
-
contents.jobRuns =
|
|
931
|
+
contents.jobRuns = de_JobRuns(data.jobRuns, context);
|
|
934
932
|
}
|
|
935
933
|
if (data.nextToken != null) {
|
|
936
934
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
937
935
|
}
|
|
938
936
|
return contents;
|
|
939
937
|
};
|
|
940
|
-
exports.
|
|
941
|
-
const
|
|
938
|
+
exports.de_ListJobRunsCommand = de_ListJobRunsCommand;
|
|
939
|
+
const de_ListJobRunsCommandError = async (output, context) => {
|
|
942
940
|
const parsedOutput = {
|
|
943
941
|
...output,
|
|
944
942
|
body: await parseErrorBody(output.body, context),
|
|
@@ -947,10 +945,10 @@ const deserializeAws_restJson1ListJobRunsCommandError = async (output, context)
|
|
|
947
945
|
switch (errorCode) {
|
|
948
946
|
case "InternalServerException":
|
|
949
947
|
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
950
|
-
throw await
|
|
948
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
951
949
|
case "ValidationException":
|
|
952
950
|
case "com.amazonaws.emrcontainers#ValidationException":
|
|
953
|
-
throw await
|
|
951
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
954
952
|
default:
|
|
955
953
|
const parsedBody = parsedOutput.body;
|
|
956
954
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -961,9 +959,9 @@ const deserializeAws_restJson1ListJobRunsCommandError = async (output, context)
|
|
|
961
959
|
});
|
|
962
960
|
}
|
|
963
961
|
};
|
|
964
|
-
const
|
|
962
|
+
const de_ListJobTemplatesCommand = async (output, context) => {
|
|
965
963
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
966
|
-
return
|
|
964
|
+
return de_ListJobTemplatesCommandError(output, context);
|
|
967
965
|
}
|
|
968
966
|
const contents = map({
|
|
969
967
|
$metadata: deserializeMetadata(output),
|
|
@@ -973,12 +971,12 @@ const deserializeAws_restJson1ListJobTemplatesCommand = async (output, context)
|
|
|
973
971
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
974
972
|
}
|
|
975
973
|
if (data.templates != null) {
|
|
976
|
-
contents.templates =
|
|
974
|
+
contents.templates = de_JobTemplates(data.templates, context);
|
|
977
975
|
}
|
|
978
976
|
return contents;
|
|
979
977
|
};
|
|
980
|
-
exports.
|
|
981
|
-
const
|
|
978
|
+
exports.de_ListJobTemplatesCommand = de_ListJobTemplatesCommand;
|
|
979
|
+
const de_ListJobTemplatesCommandError = async (output, context) => {
|
|
982
980
|
const parsedOutput = {
|
|
983
981
|
...output,
|
|
984
982
|
body: await parseErrorBody(output.body, context),
|
|
@@ -987,10 +985,10 @@ const deserializeAws_restJson1ListJobTemplatesCommandError = async (output, cont
|
|
|
987
985
|
switch (errorCode) {
|
|
988
986
|
case "InternalServerException":
|
|
989
987
|
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
990
|
-
throw await
|
|
988
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
991
989
|
case "ValidationException":
|
|
992
990
|
case "com.amazonaws.emrcontainers#ValidationException":
|
|
993
|
-
throw await
|
|
991
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
994
992
|
default:
|
|
995
993
|
const parsedBody = parsedOutput.body;
|
|
996
994
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1001,24 +999,24 @@ const deserializeAws_restJson1ListJobTemplatesCommandError = async (output, cont
|
|
|
1001
999
|
});
|
|
1002
1000
|
}
|
|
1003
1001
|
};
|
|
1004
|
-
const
|
|
1002
|
+
const de_ListManagedEndpointsCommand = async (output, context) => {
|
|
1005
1003
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1006
|
-
return
|
|
1004
|
+
return de_ListManagedEndpointsCommandError(output, context);
|
|
1007
1005
|
}
|
|
1008
1006
|
const contents = map({
|
|
1009
1007
|
$metadata: deserializeMetadata(output),
|
|
1010
1008
|
});
|
|
1011
1009
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1012
1010
|
if (data.endpoints != null) {
|
|
1013
|
-
contents.endpoints =
|
|
1011
|
+
contents.endpoints = de_Endpoints(data.endpoints, context);
|
|
1014
1012
|
}
|
|
1015
1013
|
if (data.nextToken != null) {
|
|
1016
1014
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1017
1015
|
}
|
|
1018
1016
|
return contents;
|
|
1019
1017
|
};
|
|
1020
|
-
exports.
|
|
1021
|
-
const
|
|
1018
|
+
exports.de_ListManagedEndpointsCommand = de_ListManagedEndpointsCommand;
|
|
1019
|
+
const de_ListManagedEndpointsCommandError = async (output, context) => {
|
|
1022
1020
|
const parsedOutput = {
|
|
1023
1021
|
...output,
|
|
1024
1022
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1027,10 +1025,10 @@ const deserializeAws_restJson1ListManagedEndpointsCommandError = async (output,
|
|
|
1027
1025
|
switch (errorCode) {
|
|
1028
1026
|
case "InternalServerException":
|
|
1029
1027
|
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
1030
|
-
throw await
|
|
1028
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1031
1029
|
case "ValidationException":
|
|
1032
1030
|
case "com.amazonaws.emrcontainers#ValidationException":
|
|
1033
|
-
throw await
|
|
1031
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1034
1032
|
default:
|
|
1035
1033
|
const parsedBody = parsedOutput.body;
|
|
1036
1034
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1041,21 +1039,21 @@ const deserializeAws_restJson1ListManagedEndpointsCommandError = async (output,
|
|
|
1041
1039
|
});
|
|
1042
1040
|
}
|
|
1043
1041
|
};
|
|
1044
|
-
const
|
|
1042
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1045
1043
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1046
|
-
return
|
|
1044
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1047
1045
|
}
|
|
1048
1046
|
const contents = map({
|
|
1049
1047
|
$metadata: deserializeMetadata(output),
|
|
1050
1048
|
});
|
|
1051
1049
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1052
1050
|
if (data.tags != null) {
|
|
1053
|
-
contents.tags =
|
|
1051
|
+
contents.tags = de_TagMap(data.tags, context);
|
|
1054
1052
|
}
|
|
1055
1053
|
return contents;
|
|
1056
1054
|
};
|
|
1057
|
-
exports.
|
|
1058
|
-
const
|
|
1055
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1056
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1059
1057
|
const parsedOutput = {
|
|
1060
1058
|
...output,
|
|
1061
1059
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1064,13 +1062,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1064
1062
|
switch (errorCode) {
|
|
1065
1063
|
case "InternalServerException":
|
|
1066
1064
|
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
1067
|
-
throw await
|
|
1065
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1068
1066
|
case "ResourceNotFoundException":
|
|
1069
1067
|
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
1070
|
-
throw await
|
|
1068
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1071
1069
|
case "ValidationException":
|
|
1072
1070
|
case "com.amazonaws.emrcontainers#ValidationException":
|
|
1073
|
-
throw await
|
|
1071
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1074
1072
|
default:
|
|
1075
1073
|
const parsedBody = parsedOutput.body;
|
|
1076
1074
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1081,9 +1079,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1081
1079
|
});
|
|
1082
1080
|
}
|
|
1083
1081
|
};
|
|
1084
|
-
const
|
|
1082
|
+
const de_ListVirtualClustersCommand = async (output, context) => {
|
|
1085
1083
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1086
|
-
return
|
|
1084
|
+
return de_ListVirtualClustersCommandError(output, context);
|
|
1087
1085
|
}
|
|
1088
1086
|
const contents = map({
|
|
1089
1087
|
$metadata: deserializeMetadata(output),
|
|
@@ -1093,12 +1091,12 @@ const deserializeAws_restJson1ListVirtualClustersCommand = async (output, contex
|
|
|
1093
1091
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1094
1092
|
}
|
|
1095
1093
|
if (data.virtualClusters != null) {
|
|
1096
|
-
contents.virtualClusters =
|
|
1094
|
+
contents.virtualClusters = de_VirtualClusters(data.virtualClusters, context);
|
|
1097
1095
|
}
|
|
1098
1096
|
return contents;
|
|
1099
1097
|
};
|
|
1100
|
-
exports.
|
|
1101
|
-
const
|
|
1098
|
+
exports.de_ListVirtualClustersCommand = de_ListVirtualClustersCommand;
|
|
1099
|
+
const de_ListVirtualClustersCommandError = async (output, context) => {
|
|
1102
1100
|
const parsedOutput = {
|
|
1103
1101
|
...output,
|
|
1104
1102
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1107,10 +1105,10 @@ const deserializeAws_restJson1ListVirtualClustersCommandError = async (output, c
|
|
|
1107
1105
|
switch (errorCode) {
|
|
1108
1106
|
case "InternalServerException":
|
|
1109
1107
|
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
1110
|
-
throw await
|
|
1108
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1111
1109
|
case "ValidationException":
|
|
1112
1110
|
case "com.amazonaws.emrcontainers#ValidationException":
|
|
1113
|
-
throw await
|
|
1111
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1114
1112
|
default:
|
|
1115
1113
|
const parsedBody = parsedOutput.body;
|
|
1116
1114
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1121,9 +1119,9 @@ const deserializeAws_restJson1ListVirtualClustersCommandError = async (output, c
|
|
|
1121
1119
|
});
|
|
1122
1120
|
}
|
|
1123
1121
|
};
|
|
1124
|
-
const
|
|
1122
|
+
const de_StartJobRunCommand = async (output, context) => {
|
|
1125
1123
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1126
|
-
return
|
|
1124
|
+
return de_StartJobRunCommandError(output, context);
|
|
1127
1125
|
}
|
|
1128
1126
|
const contents = map({
|
|
1129
1127
|
$metadata: deserializeMetadata(output),
|
|
@@ -1143,8 +1141,8 @@ const deserializeAws_restJson1StartJobRunCommand = async (output, context) => {
|
|
|
1143
1141
|
}
|
|
1144
1142
|
return contents;
|
|
1145
1143
|
};
|
|
1146
|
-
exports.
|
|
1147
|
-
const
|
|
1144
|
+
exports.de_StartJobRunCommand = de_StartJobRunCommand;
|
|
1145
|
+
const de_StartJobRunCommandError = async (output, context) => {
|
|
1148
1146
|
const parsedOutput = {
|
|
1149
1147
|
...output,
|
|
1150
1148
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1153,13 +1151,13 @@ const deserializeAws_restJson1StartJobRunCommandError = async (output, context)
|
|
|
1153
1151
|
switch (errorCode) {
|
|
1154
1152
|
case "InternalServerException":
|
|
1155
1153
|
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
1156
|
-
throw await
|
|
1154
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1157
1155
|
case "ResourceNotFoundException":
|
|
1158
1156
|
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
1159
|
-
throw await
|
|
1157
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1160
1158
|
case "ValidationException":
|
|
1161
1159
|
case "com.amazonaws.emrcontainers#ValidationException":
|
|
1162
|
-
throw await
|
|
1160
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1163
1161
|
default:
|
|
1164
1162
|
const parsedBody = parsedOutput.body;
|
|
1165
1163
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1170,9 +1168,9 @@ const deserializeAws_restJson1StartJobRunCommandError = async (output, context)
|
|
|
1170
1168
|
});
|
|
1171
1169
|
}
|
|
1172
1170
|
};
|
|
1173
|
-
const
|
|
1171
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
1174
1172
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1175
|
-
return
|
|
1173
|
+
return de_TagResourceCommandError(output, context);
|
|
1176
1174
|
}
|
|
1177
1175
|
const contents = map({
|
|
1178
1176
|
$metadata: deserializeMetadata(output),
|
|
@@ -1180,8 +1178,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
|
1180
1178
|
await collectBody(output.body, context);
|
|
1181
1179
|
return contents;
|
|
1182
1180
|
};
|
|
1183
|
-
exports.
|
|
1184
|
-
const
|
|
1181
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1182
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1185
1183
|
const parsedOutput = {
|
|
1186
1184
|
...output,
|
|
1187
1185
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1190,13 +1188,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1190
1188
|
switch (errorCode) {
|
|
1191
1189
|
case "InternalServerException":
|
|
1192
1190
|
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
1193
|
-
throw await
|
|
1191
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1194
1192
|
case "ResourceNotFoundException":
|
|
1195
1193
|
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
1196
|
-
throw await
|
|
1194
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1197
1195
|
case "ValidationException":
|
|
1198
1196
|
case "com.amazonaws.emrcontainers#ValidationException":
|
|
1199
|
-
throw await
|
|
1197
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1200
1198
|
default:
|
|
1201
1199
|
const parsedBody = parsedOutput.body;
|
|
1202
1200
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1207,9 +1205,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1207
1205
|
});
|
|
1208
1206
|
}
|
|
1209
1207
|
};
|
|
1210
|
-
const
|
|
1208
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
1211
1209
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1212
|
-
return
|
|
1210
|
+
return de_UntagResourceCommandError(output, context);
|
|
1213
1211
|
}
|
|
1214
1212
|
const contents = map({
|
|
1215
1213
|
$metadata: deserializeMetadata(output),
|
|
@@ -1217,8 +1215,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
|
|
|
1217
1215
|
await collectBody(output.body, context);
|
|
1218
1216
|
return contents;
|
|
1219
1217
|
};
|
|
1220
|
-
exports.
|
|
1221
|
-
const
|
|
1218
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1219
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1222
1220
|
const parsedOutput = {
|
|
1223
1221
|
...output,
|
|
1224
1222
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1227,13 +1225,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1227
1225
|
switch (errorCode) {
|
|
1228
1226
|
case "InternalServerException":
|
|
1229
1227
|
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
1230
|
-
throw await
|
|
1228
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1231
1229
|
case "ResourceNotFoundException":
|
|
1232
1230
|
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
1233
|
-
throw await
|
|
1231
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1234
1232
|
case "ValidationException":
|
|
1235
1233
|
case "com.amazonaws.emrcontainers#ValidationException":
|
|
1236
|
-
throw await
|
|
1234
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1237
1235
|
default:
|
|
1238
1236
|
const parsedBody = parsedOutput.body;
|
|
1239
1237
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1245,7 +1243,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1245
1243
|
}
|
|
1246
1244
|
};
|
|
1247
1245
|
const map = smithy_client_1.map;
|
|
1248
|
-
const
|
|
1246
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1249
1247
|
const contents = map({});
|
|
1250
1248
|
const data = parsedOutput.body;
|
|
1251
1249
|
if (data.message != null) {
|
|
@@ -1257,7 +1255,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
1257
1255
|
});
|
|
1258
1256
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1259
1257
|
};
|
|
1260
|
-
const
|
|
1258
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1261
1259
|
const contents = map({});
|
|
1262
1260
|
const data = parsedOutput.body;
|
|
1263
1261
|
if (data.message != null) {
|
|
@@ -1269,7 +1267,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
1269
1267
|
});
|
|
1270
1268
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1271
1269
|
};
|
|
1272
|
-
const
|
|
1270
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1273
1271
|
const contents = map({});
|
|
1274
1272
|
const data = parsedOutput.body;
|
|
1275
1273
|
if (data.message != null) {
|
|
@@ -1281,143 +1279,139 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
1281
1279
|
});
|
|
1282
1280
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1283
1281
|
};
|
|
1284
|
-
const
|
|
1282
|
+
const se_CloudWatchMonitoringConfiguration = (input, context) => {
|
|
1285
1283
|
return {
|
|
1286
1284
|
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
1287
1285
|
...(input.logStreamNamePrefix != null && { logStreamNamePrefix: input.logStreamNamePrefix }),
|
|
1288
1286
|
};
|
|
1289
1287
|
};
|
|
1290
|
-
const
|
|
1288
|
+
const se_Configuration = (input, context) => {
|
|
1291
1289
|
return {
|
|
1292
1290
|
...(input.classification != null && { classification: input.classification }),
|
|
1293
|
-
...(input.configurations != null && {
|
|
1294
|
-
|
|
1295
|
-
}),
|
|
1296
|
-
...(input.properties != null && {
|
|
1297
|
-
properties: serializeAws_restJson1SensitivePropertiesMap(input.properties, context),
|
|
1298
|
-
}),
|
|
1291
|
+
...(input.configurations != null && { configurations: se_ConfigurationList(input.configurations, context) }),
|
|
1292
|
+
...(input.properties != null && { properties: se_SensitivePropertiesMap(input.properties, context) }),
|
|
1299
1293
|
};
|
|
1300
1294
|
};
|
|
1301
|
-
const
|
|
1295
|
+
const se_ConfigurationList = (input, context) => {
|
|
1302
1296
|
return input
|
|
1303
1297
|
.filter((e) => e != null)
|
|
1304
1298
|
.map((entry) => {
|
|
1305
|
-
return
|
|
1299
|
+
return se_Configuration(entry, context);
|
|
1306
1300
|
});
|
|
1307
1301
|
};
|
|
1308
|
-
const
|
|
1302
|
+
const se_ConfigurationOverrides = (input, context) => {
|
|
1309
1303
|
return {
|
|
1310
1304
|
...(input.applicationConfiguration != null && {
|
|
1311
|
-
applicationConfiguration:
|
|
1305
|
+
applicationConfiguration: se_ConfigurationList(input.applicationConfiguration, context),
|
|
1312
1306
|
}),
|
|
1313
1307
|
...(input.monitoringConfiguration != null && {
|
|
1314
|
-
monitoringConfiguration:
|
|
1308
|
+
monitoringConfiguration: se_MonitoringConfiguration(input.monitoringConfiguration, context),
|
|
1315
1309
|
}),
|
|
1316
1310
|
};
|
|
1317
1311
|
};
|
|
1318
|
-
const
|
|
1312
|
+
const se_ContainerInfo = (input, context) => {
|
|
1319
1313
|
return models_0_1.ContainerInfo.visit(input, {
|
|
1320
|
-
eksInfo: (value) => ({ eksInfo:
|
|
1314
|
+
eksInfo: (value) => ({ eksInfo: se_EksInfo(value, context) }),
|
|
1321
1315
|
_: (name, value) => ({ name: value }),
|
|
1322
1316
|
});
|
|
1323
1317
|
};
|
|
1324
|
-
const
|
|
1318
|
+
const se_ContainerProvider = (input, context) => {
|
|
1325
1319
|
return {
|
|
1326
1320
|
...(input.id != null && { id: input.id }),
|
|
1327
|
-
...(input.info != null && { info:
|
|
1321
|
+
...(input.info != null && { info: se_ContainerInfo(input.info, context) }),
|
|
1328
1322
|
...(input.type != null && { type: input.type }),
|
|
1329
1323
|
};
|
|
1330
1324
|
};
|
|
1331
|
-
const
|
|
1325
|
+
const se_EksInfo = (input, context) => {
|
|
1332
1326
|
return {
|
|
1333
1327
|
...(input.namespace != null && { namespace: input.namespace }),
|
|
1334
1328
|
};
|
|
1335
1329
|
};
|
|
1336
|
-
const
|
|
1330
|
+
const se_EntryPointArguments = (input, context) => {
|
|
1337
1331
|
return input
|
|
1338
1332
|
.filter((e) => e != null)
|
|
1339
1333
|
.map((entry) => {
|
|
1340
1334
|
return entry;
|
|
1341
1335
|
});
|
|
1342
1336
|
};
|
|
1343
|
-
const
|
|
1337
|
+
const se_JobDriver = (input, context) => {
|
|
1344
1338
|
return {
|
|
1345
1339
|
...(input.sparkSqlJobDriver != null && {
|
|
1346
|
-
sparkSqlJobDriver:
|
|
1340
|
+
sparkSqlJobDriver: se_SparkSqlJobDriver(input.sparkSqlJobDriver, context),
|
|
1347
1341
|
}),
|
|
1348
1342
|
...(input.sparkSubmitJobDriver != null && {
|
|
1349
|
-
sparkSubmitJobDriver:
|
|
1343
|
+
sparkSubmitJobDriver: se_SparkSubmitJobDriver(input.sparkSubmitJobDriver, context),
|
|
1350
1344
|
}),
|
|
1351
1345
|
};
|
|
1352
1346
|
};
|
|
1353
|
-
const
|
|
1347
|
+
const se_JobTemplateData = (input, context) => {
|
|
1354
1348
|
return {
|
|
1355
1349
|
...(input.configurationOverrides != null && {
|
|
1356
|
-
configurationOverrides:
|
|
1350
|
+
configurationOverrides: se_ParametricConfigurationOverrides(input.configurationOverrides, context),
|
|
1357
1351
|
}),
|
|
1358
1352
|
...(input.executionRoleArn != null && { executionRoleArn: input.executionRoleArn }),
|
|
1359
|
-
...(input.jobDriver != null && { jobDriver:
|
|
1360
|
-
...(input.jobTags != null && { jobTags:
|
|
1353
|
+
...(input.jobDriver != null && { jobDriver: se_JobDriver(input.jobDriver, context) }),
|
|
1354
|
+
...(input.jobTags != null && { jobTags: se_TagMap(input.jobTags, context) }),
|
|
1361
1355
|
...(input.parameterConfiguration != null && {
|
|
1362
|
-
parameterConfiguration:
|
|
1356
|
+
parameterConfiguration: se_TemplateParameterConfigurationMap(input.parameterConfiguration, context),
|
|
1363
1357
|
}),
|
|
1364
1358
|
...(input.releaseLabel != null && { releaseLabel: input.releaseLabel }),
|
|
1365
1359
|
};
|
|
1366
1360
|
};
|
|
1367
|
-
const
|
|
1361
|
+
const se_MonitoringConfiguration = (input, context) => {
|
|
1368
1362
|
return {
|
|
1369
1363
|
...(input.cloudWatchMonitoringConfiguration != null && {
|
|
1370
|
-
cloudWatchMonitoringConfiguration:
|
|
1364
|
+
cloudWatchMonitoringConfiguration: se_CloudWatchMonitoringConfiguration(input.cloudWatchMonitoringConfiguration, context),
|
|
1371
1365
|
}),
|
|
1372
1366
|
...(input.persistentAppUI != null && { persistentAppUI: input.persistentAppUI }),
|
|
1373
1367
|
...(input.s3MonitoringConfiguration != null && {
|
|
1374
|
-
s3MonitoringConfiguration:
|
|
1368
|
+
s3MonitoringConfiguration: se_S3MonitoringConfiguration(input.s3MonitoringConfiguration, context),
|
|
1375
1369
|
}),
|
|
1376
1370
|
};
|
|
1377
1371
|
};
|
|
1378
|
-
const
|
|
1372
|
+
const se_ParametricCloudWatchMonitoringConfiguration = (input, context) => {
|
|
1379
1373
|
return {
|
|
1380
1374
|
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
1381
1375
|
...(input.logStreamNamePrefix != null && { logStreamNamePrefix: input.logStreamNamePrefix }),
|
|
1382
1376
|
};
|
|
1383
1377
|
};
|
|
1384
|
-
const
|
|
1378
|
+
const se_ParametricConfigurationOverrides = (input, context) => {
|
|
1385
1379
|
return {
|
|
1386
1380
|
...(input.applicationConfiguration != null && {
|
|
1387
|
-
applicationConfiguration:
|
|
1381
|
+
applicationConfiguration: se_ConfigurationList(input.applicationConfiguration, context),
|
|
1388
1382
|
}),
|
|
1389
1383
|
...(input.monitoringConfiguration != null && {
|
|
1390
|
-
monitoringConfiguration:
|
|
1384
|
+
monitoringConfiguration: se_ParametricMonitoringConfiguration(input.monitoringConfiguration, context),
|
|
1391
1385
|
}),
|
|
1392
1386
|
};
|
|
1393
1387
|
};
|
|
1394
|
-
const
|
|
1388
|
+
const se_ParametricMonitoringConfiguration = (input, context) => {
|
|
1395
1389
|
return {
|
|
1396
1390
|
...(input.cloudWatchMonitoringConfiguration != null && {
|
|
1397
|
-
cloudWatchMonitoringConfiguration:
|
|
1391
|
+
cloudWatchMonitoringConfiguration: se_ParametricCloudWatchMonitoringConfiguration(input.cloudWatchMonitoringConfiguration, context),
|
|
1398
1392
|
}),
|
|
1399
1393
|
...(input.persistentAppUI != null && { persistentAppUI: input.persistentAppUI }),
|
|
1400
1394
|
...(input.s3MonitoringConfiguration != null && {
|
|
1401
|
-
s3MonitoringConfiguration:
|
|
1395
|
+
s3MonitoringConfiguration: se_ParametricS3MonitoringConfiguration(input.s3MonitoringConfiguration, context),
|
|
1402
1396
|
}),
|
|
1403
1397
|
};
|
|
1404
1398
|
};
|
|
1405
|
-
const
|
|
1399
|
+
const se_ParametricS3MonitoringConfiguration = (input, context) => {
|
|
1406
1400
|
return {
|
|
1407
1401
|
...(input.logUri != null && { logUri: input.logUri }),
|
|
1408
1402
|
};
|
|
1409
1403
|
};
|
|
1410
|
-
const
|
|
1404
|
+
const se_RetryPolicyConfiguration = (input, context) => {
|
|
1411
1405
|
return {
|
|
1412
1406
|
...(input.maxAttempts != null && { maxAttempts: input.maxAttempts }),
|
|
1413
1407
|
};
|
|
1414
1408
|
};
|
|
1415
|
-
const
|
|
1409
|
+
const se_S3MonitoringConfiguration = (input, context) => {
|
|
1416
1410
|
return {
|
|
1417
1411
|
...(input.logUri != null && { logUri: input.logUri }),
|
|
1418
1412
|
};
|
|
1419
1413
|
};
|
|
1420
|
-
const
|
|
1414
|
+
const se_SensitivePropertiesMap = (input, context) => {
|
|
1421
1415
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1422
1416
|
if (value === null) {
|
|
1423
1417
|
return acc;
|
|
@@ -1426,22 +1420,22 @@ const serializeAws_restJson1SensitivePropertiesMap = (input, context) => {
|
|
|
1426
1420
|
return acc;
|
|
1427
1421
|
}, {});
|
|
1428
1422
|
};
|
|
1429
|
-
const
|
|
1423
|
+
const se_SparkSqlJobDriver = (input, context) => {
|
|
1430
1424
|
return {
|
|
1431
1425
|
...(input.entryPoint != null && { entryPoint: input.entryPoint }),
|
|
1432
1426
|
...(input.sparkSqlParameters != null && { sparkSqlParameters: input.sparkSqlParameters }),
|
|
1433
1427
|
};
|
|
1434
1428
|
};
|
|
1435
|
-
const
|
|
1429
|
+
const se_SparkSubmitJobDriver = (input, context) => {
|
|
1436
1430
|
return {
|
|
1437
1431
|
...(input.entryPoint != null && { entryPoint: input.entryPoint }),
|
|
1438
1432
|
...(input.entryPointArguments != null && {
|
|
1439
|
-
entryPointArguments:
|
|
1433
|
+
entryPointArguments: se_EntryPointArguments(input.entryPointArguments, context),
|
|
1440
1434
|
}),
|
|
1441
1435
|
...(input.sparkSubmitParameters != null && { sparkSubmitParameters: input.sparkSubmitParameters }),
|
|
1442
1436
|
};
|
|
1443
1437
|
};
|
|
1444
|
-
const
|
|
1438
|
+
const se_TagMap = (input, context) => {
|
|
1445
1439
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1446
1440
|
if (value === null) {
|
|
1447
1441
|
return acc;
|
|
@@ -1450,22 +1444,22 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
1450
1444
|
return acc;
|
|
1451
1445
|
}, {});
|
|
1452
1446
|
};
|
|
1453
|
-
const
|
|
1447
|
+
const se_TemplateParameterConfiguration = (input, context) => {
|
|
1454
1448
|
return {
|
|
1455
1449
|
...(input.defaultValue != null && { defaultValue: input.defaultValue }),
|
|
1456
1450
|
...(input.type != null && { type: input.type }),
|
|
1457
1451
|
};
|
|
1458
1452
|
};
|
|
1459
|
-
const
|
|
1453
|
+
const se_TemplateParameterConfigurationMap = (input, context) => {
|
|
1460
1454
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1461
1455
|
if (value === null) {
|
|
1462
1456
|
return acc;
|
|
1463
1457
|
}
|
|
1464
|
-
acc[key] =
|
|
1458
|
+
acc[key] = se_TemplateParameterConfiguration(value, context);
|
|
1465
1459
|
return acc;
|
|
1466
1460
|
}, {});
|
|
1467
1461
|
};
|
|
1468
|
-
const
|
|
1462
|
+
const se_TemplateParameterInputMap = (input, context) => {
|
|
1469
1463
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1470
1464
|
if (value === null) {
|
|
1471
1465
|
return acc;
|
|
@@ -1474,79 +1468,73 @@ const serializeAws_restJson1TemplateParameterInputMap = (input, context) => {
|
|
|
1474
1468
|
return acc;
|
|
1475
1469
|
}, {});
|
|
1476
1470
|
};
|
|
1477
|
-
const
|
|
1471
|
+
const de_Certificate = (output, context) => {
|
|
1478
1472
|
return {
|
|
1479
1473
|
certificateArn: (0, smithy_client_1.expectString)(output.certificateArn),
|
|
1480
1474
|
certificateData: (0, smithy_client_1.expectString)(output.certificateData),
|
|
1481
1475
|
};
|
|
1482
1476
|
};
|
|
1483
|
-
const
|
|
1477
|
+
const de_CloudWatchMonitoringConfiguration = (output, context) => {
|
|
1484
1478
|
return {
|
|
1485
1479
|
logGroupName: (0, smithy_client_1.expectString)(output.logGroupName),
|
|
1486
1480
|
logStreamNamePrefix: (0, smithy_client_1.expectString)(output.logStreamNamePrefix),
|
|
1487
1481
|
};
|
|
1488
1482
|
};
|
|
1489
|
-
const
|
|
1483
|
+
const de_Configuration = (output, context) => {
|
|
1490
1484
|
return {
|
|
1491
1485
|
classification: (0, smithy_client_1.expectString)(output.classification),
|
|
1492
|
-
configurations: output.configurations != null
|
|
1493
|
-
|
|
1494
|
-
: undefined,
|
|
1495
|
-
properties: output.properties != null
|
|
1496
|
-
? deserializeAws_restJson1SensitivePropertiesMap(output.properties, context)
|
|
1497
|
-
: undefined,
|
|
1486
|
+
configurations: output.configurations != null ? de_ConfigurationList(output.configurations, context) : undefined,
|
|
1487
|
+
properties: output.properties != null ? de_SensitivePropertiesMap(output.properties, context) : undefined,
|
|
1498
1488
|
};
|
|
1499
1489
|
};
|
|
1500
|
-
const
|
|
1490
|
+
const de_ConfigurationList = (output, context) => {
|
|
1501
1491
|
const retVal = (output || [])
|
|
1502
1492
|
.filter((e) => e != null)
|
|
1503
1493
|
.map((entry) => {
|
|
1504
1494
|
if (entry === null) {
|
|
1505
1495
|
return null;
|
|
1506
1496
|
}
|
|
1507
|
-
return
|
|
1497
|
+
return de_Configuration(entry, context);
|
|
1508
1498
|
});
|
|
1509
1499
|
return retVal;
|
|
1510
1500
|
};
|
|
1511
|
-
const
|
|
1501
|
+
const de_ConfigurationOverrides = (output, context) => {
|
|
1512
1502
|
return {
|
|
1513
1503
|
applicationConfiguration: output.applicationConfiguration != null
|
|
1514
|
-
?
|
|
1504
|
+
? de_ConfigurationList(output.applicationConfiguration, context)
|
|
1515
1505
|
: undefined,
|
|
1516
1506
|
monitoringConfiguration: output.monitoringConfiguration != null
|
|
1517
|
-
?
|
|
1507
|
+
? de_MonitoringConfiguration(output.monitoringConfiguration, context)
|
|
1518
1508
|
: undefined,
|
|
1519
1509
|
};
|
|
1520
1510
|
};
|
|
1521
|
-
const
|
|
1511
|
+
const de_ContainerInfo = (output, context) => {
|
|
1522
1512
|
if (output.eksInfo != null) {
|
|
1523
1513
|
return {
|
|
1524
|
-
eksInfo:
|
|
1514
|
+
eksInfo: de_EksInfo(output.eksInfo, context),
|
|
1525
1515
|
};
|
|
1526
1516
|
}
|
|
1527
1517
|
return { $unknown: Object.entries(output)[0] };
|
|
1528
1518
|
};
|
|
1529
|
-
const
|
|
1519
|
+
const de_ContainerProvider = (output, context) => {
|
|
1530
1520
|
return {
|
|
1531
1521
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
1532
|
-
info: output.info != null ?
|
|
1522
|
+
info: output.info != null ? de_ContainerInfo((0, smithy_client_1.expectUnion)(output.info), context) : undefined,
|
|
1533
1523
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
1534
1524
|
};
|
|
1535
1525
|
};
|
|
1536
|
-
const
|
|
1526
|
+
const de_EksInfo = (output, context) => {
|
|
1537
1527
|
return {
|
|
1538
1528
|
namespace: (0, smithy_client_1.expectString)(output.namespace),
|
|
1539
1529
|
};
|
|
1540
1530
|
};
|
|
1541
|
-
const
|
|
1531
|
+
const de_Endpoint = (output, context) => {
|
|
1542
1532
|
return {
|
|
1543
1533
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1544
1534
|
certificateArn: (0, smithy_client_1.expectString)(output.certificateArn),
|
|
1545
|
-
certificateAuthority: output.certificateAuthority != null
|
|
1546
|
-
? deserializeAws_restJson1Certificate(output.certificateAuthority, context)
|
|
1547
|
-
: undefined,
|
|
1535
|
+
certificateAuthority: output.certificateAuthority != null ? de_Certificate(output.certificateAuthority, context) : undefined,
|
|
1548
1536
|
configurationOverrides: output.configurationOverrides != null
|
|
1549
|
-
?
|
|
1537
|
+
? de_ConfigurationOverrides(output.configurationOverrides, context)
|
|
1550
1538
|
: undefined,
|
|
1551
1539
|
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.createdAt)) : undefined,
|
|
1552
1540
|
executionRoleArn: (0, smithy_client_1.expectString)(output.executionRoleArn),
|
|
@@ -1558,24 +1546,24 @@ const deserializeAws_restJson1Endpoint = (output, context) => {
|
|
|
1558
1546
|
serverUrl: (0, smithy_client_1.expectString)(output.serverUrl),
|
|
1559
1547
|
state: (0, smithy_client_1.expectString)(output.state),
|
|
1560
1548
|
stateDetails: (0, smithy_client_1.expectString)(output.stateDetails),
|
|
1561
|
-
subnetIds: output.subnetIds != null ?
|
|
1562
|
-
tags: output.tags != null ?
|
|
1549
|
+
subnetIds: output.subnetIds != null ? de_SubnetIds(output.subnetIds, context) : undefined,
|
|
1550
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
1563
1551
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
1564
1552
|
virtualClusterId: (0, smithy_client_1.expectString)(output.virtualClusterId),
|
|
1565
1553
|
};
|
|
1566
1554
|
};
|
|
1567
|
-
const
|
|
1555
|
+
const de_Endpoints = (output, context) => {
|
|
1568
1556
|
const retVal = (output || [])
|
|
1569
1557
|
.filter((e) => e != null)
|
|
1570
1558
|
.map((entry) => {
|
|
1571
1559
|
if (entry === null) {
|
|
1572
1560
|
return null;
|
|
1573
1561
|
}
|
|
1574
|
-
return
|
|
1562
|
+
return de_Endpoint(entry, context);
|
|
1575
1563
|
});
|
|
1576
1564
|
return retVal;
|
|
1577
1565
|
};
|
|
1578
|
-
const
|
|
1566
|
+
const de_EntryPointArguments = (output, context) => {
|
|
1579
1567
|
const retVal = (output || [])
|
|
1580
1568
|
.filter((e) => e != null)
|
|
1581
1569
|
.map((entry) => {
|
|
@@ -1586,22 +1574,18 @@ const deserializeAws_restJson1EntryPointArguments = (output, context) => {
|
|
|
1586
1574
|
});
|
|
1587
1575
|
return retVal;
|
|
1588
1576
|
};
|
|
1589
|
-
const
|
|
1577
|
+
const de_JobDriver = (output, context) => {
|
|
1590
1578
|
return {
|
|
1591
|
-
sparkSqlJobDriver: output.sparkSqlJobDriver != null
|
|
1592
|
-
|
|
1593
|
-
: undefined,
|
|
1594
|
-
sparkSubmitJobDriver: output.sparkSubmitJobDriver != null
|
|
1595
|
-
? deserializeAws_restJson1SparkSubmitJobDriver(output.sparkSubmitJobDriver, context)
|
|
1596
|
-
: undefined,
|
|
1579
|
+
sparkSqlJobDriver: output.sparkSqlJobDriver != null ? de_SparkSqlJobDriver(output.sparkSqlJobDriver, context) : undefined,
|
|
1580
|
+
sparkSubmitJobDriver: output.sparkSubmitJobDriver != null ? de_SparkSubmitJobDriver(output.sparkSubmitJobDriver, context) : undefined,
|
|
1597
1581
|
};
|
|
1598
1582
|
};
|
|
1599
|
-
const
|
|
1583
|
+
const de_JobRun = (output, context) => {
|
|
1600
1584
|
return {
|
|
1601
1585
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1602
1586
|
clientToken: (0, smithy_client_1.expectString)(output.clientToken),
|
|
1603
1587
|
configurationOverrides: output.configurationOverrides != null
|
|
1604
|
-
?
|
|
1588
|
+
? de_ConfigurationOverrides(output.configurationOverrides, context)
|
|
1605
1589
|
: undefined,
|
|
1606
1590
|
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.createdAt)) : undefined,
|
|
1607
1591
|
createdBy: (0, smithy_client_1.expectString)(output.createdBy),
|
|
@@ -1609,131 +1593,127 @@ const deserializeAws_restJson1JobRun = (output, context) => {
|
|
|
1609
1593
|
failureReason: (0, smithy_client_1.expectString)(output.failureReason),
|
|
1610
1594
|
finishedAt: output.finishedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.finishedAt)) : undefined,
|
|
1611
1595
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
1612
|
-
jobDriver: output.jobDriver != null ?
|
|
1596
|
+
jobDriver: output.jobDriver != null ? de_JobDriver(output.jobDriver, context) : undefined,
|
|
1613
1597
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1614
1598
|
releaseLabel: (0, smithy_client_1.expectString)(output.releaseLabel),
|
|
1615
1599
|
retryPolicyConfiguration: output.retryPolicyConfiguration != null
|
|
1616
|
-
?
|
|
1617
|
-
: undefined,
|
|
1618
|
-
retryPolicyExecution: output.retryPolicyExecution != null
|
|
1619
|
-
? deserializeAws_restJson1RetryPolicyExecution(output.retryPolicyExecution, context)
|
|
1600
|
+
? de_RetryPolicyConfiguration(output.retryPolicyConfiguration, context)
|
|
1620
1601
|
: undefined,
|
|
1602
|
+
retryPolicyExecution: output.retryPolicyExecution != null ? de_RetryPolicyExecution(output.retryPolicyExecution, context) : undefined,
|
|
1621
1603
|
state: (0, smithy_client_1.expectString)(output.state),
|
|
1622
1604
|
stateDetails: (0, smithy_client_1.expectString)(output.stateDetails),
|
|
1623
|
-
tags: output.tags != null ?
|
|
1605
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
1624
1606
|
virtualClusterId: (0, smithy_client_1.expectString)(output.virtualClusterId),
|
|
1625
1607
|
};
|
|
1626
1608
|
};
|
|
1627
|
-
const
|
|
1609
|
+
const de_JobRuns = (output, context) => {
|
|
1628
1610
|
const retVal = (output || [])
|
|
1629
1611
|
.filter((e) => e != null)
|
|
1630
1612
|
.map((entry) => {
|
|
1631
1613
|
if (entry === null) {
|
|
1632
1614
|
return null;
|
|
1633
1615
|
}
|
|
1634
|
-
return
|
|
1616
|
+
return de_JobRun(entry, context);
|
|
1635
1617
|
});
|
|
1636
1618
|
return retVal;
|
|
1637
1619
|
};
|
|
1638
|
-
const
|
|
1620
|
+
const de_JobTemplate = (output, context) => {
|
|
1639
1621
|
return {
|
|
1640
1622
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1641
1623
|
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.createdAt)) : undefined,
|
|
1642
1624
|
createdBy: (0, smithy_client_1.expectString)(output.createdBy),
|
|
1643
1625
|
decryptionError: (0, smithy_client_1.expectString)(output.decryptionError),
|
|
1644
1626
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
1645
|
-
jobTemplateData: output.jobTemplateData != null
|
|
1646
|
-
? deserializeAws_restJson1JobTemplateData(output.jobTemplateData, context)
|
|
1647
|
-
: undefined,
|
|
1627
|
+
jobTemplateData: output.jobTemplateData != null ? de_JobTemplateData(output.jobTemplateData, context) : undefined,
|
|
1648
1628
|
kmsKeyArn: (0, smithy_client_1.expectString)(output.kmsKeyArn),
|
|
1649
1629
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1650
|
-
tags: output.tags != null ?
|
|
1630
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
1651
1631
|
};
|
|
1652
1632
|
};
|
|
1653
|
-
const
|
|
1633
|
+
const de_JobTemplateData = (output, context) => {
|
|
1654
1634
|
return {
|
|
1655
1635
|
configurationOverrides: output.configurationOverrides != null
|
|
1656
|
-
?
|
|
1636
|
+
? de_ParametricConfigurationOverrides(output.configurationOverrides, context)
|
|
1657
1637
|
: undefined,
|
|
1658
1638
|
executionRoleArn: (0, smithy_client_1.expectString)(output.executionRoleArn),
|
|
1659
|
-
jobDriver: output.jobDriver != null ?
|
|
1660
|
-
jobTags: output.jobTags != null ?
|
|
1639
|
+
jobDriver: output.jobDriver != null ? de_JobDriver(output.jobDriver, context) : undefined,
|
|
1640
|
+
jobTags: output.jobTags != null ? de_TagMap(output.jobTags, context) : undefined,
|
|
1661
1641
|
parameterConfiguration: output.parameterConfiguration != null
|
|
1662
|
-
?
|
|
1642
|
+
? de_TemplateParameterConfigurationMap(output.parameterConfiguration, context)
|
|
1663
1643
|
: undefined,
|
|
1664
1644
|
releaseLabel: (0, smithy_client_1.expectString)(output.releaseLabel),
|
|
1665
1645
|
};
|
|
1666
1646
|
};
|
|
1667
|
-
const
|
|
1647
|
+
const de_JobTemplates = (output, context) => {
|
|
1668
1648
|
const retVal = (output || [])
|
|
1669
1649
|
.filter((e) => e != null)
|
|
1670
1650
|
.map((entry) => {
|
|
1671
1651
|
if (entry === null) {
|
|
1672
1652
|
return null;
|
|
1673
1653
|
}
|
|
1674
|
-
return
|
|
1654
|
+
return de_JobTemplate(entry, context);
|
|
1675
1655
|
});
|
|
1676
1656
|
return retVal;
|
|
1677
1657
|
};
|
|
1678
|
-
const
|
|
1658
|
+
const de_MonitoringConfiguration = (output, context) => {
|
|
1679
1659
|
return {
|
|
1680
1660
|
cloudWatchMonitoringConfiguration: output.cloudWatchMonitoringConfiguration != null
|
|
1681
|
-
?
|
|
1661
|
+
? de_CloudWatchMonitoringConfiguration(output.cloudWatchMonitoringConfiguration, context)
|
|
1682
1662
|
: undefined,
|
|
1683
1663
|
persistentAppUI: (0, smithy_client_1.expectString)(output.persistentAppUI),
|
|
1684
1664
|
s3MonitoringConfiguration: output.s3MonitoringConfiguration != null
|
|
1685
|
-
?
|
|
1665
|
+
? de_S3MonitoringConfiguration(output.s3MonitoringConfiguration, context)
|
|
1686
1666
|
: undefined,
|
|
1687
1667
|
};
|
|
1688
1668
|
};
|
|
1689
|
-
const
|
|
1669
|
+
const de_ParametricCloudWatchMonitoringConfiguration = (output, context) => {
|
|
1690
1670
|
return {
|
|
1691
1671
|
logGroupName: (0, smithy_client_1.expectString)(output.logGroupName),
|
|
1692
1672
|
logStreamNamePrefix: (0, smithy_client_1.expectString)(output.logStreamNamePrefix),
|
|
1693
1673
|
};
|
|
1694
1674
|
};
|
|
1695
|
-
const
|
|
1675
|
+
const de_ParametricConfigurationOverrides = (output, context) => {
|
|
1696
1676
|
return {
|
|
1697
1677
|
applicationConfiguration: output.applicationConfiguration != null
|
|
1698
|
-
?
|
|
1678
|
+
? de_ConfigurationList(output.applicationConfiguration, context)
|
|
1699
1679
|
: undefined,
|
|
1700
1680
|
monitoringConfiguration: output.monitoringConfiguration != null
|
|
1701
|
-
?
|
|
1681
|
+
? de_ParametricMonitoringConfiguration(output.monitoringConfiguration, context)
|
|
1702
1682
|
: undefined,
|
|
1703
1683
|
};
|
|
1704
1684
|
};
|
|
1705
|
-
const
|
|
1685
|
+
const de_ParametricMonitoringConfiguration = (output, context) => {
|
|
1706
1686
|
return {
|
|
1707
1687
|
cloudWatchMonitoringConfiguration: output.cloudWatchMonitoringConfiguration != null
|
|
1708
|
-
?
|
|
1688
|
+
? de_ParametricCloudWatchMonitoringConfiguration(output.cloudWatchMonitoringConfiguration, context)
|
|
1709
1689
|
: undefined,
|
|
1710
1690
|
persistentAppUI: (0, smithy_client_1.expectString)(output.persistentAppUI),
|
|
1711
1691
|
s3MonitoringConfiguration: output.s3MonitoringConfiguration != null
|
|
1712
|
-
?
|
|
1692
|
+
? de_ParametricS3MonitoringConfiguration(output.s3MonitoringConfiguration, context)
|
|
1713
1693
|
: undefined,
|
|
1714
1694
|
};
|
|
1715
1695
|
};
|
|
1716
|
-
const
|
|
1696
|
+
const de_ParametricS3MonitoringConfiguration = (output, context) => {
|
|
1717
1697
|
return {
|
|
1718
1698
|
logUri: (0, smithy_client_1.expectString)(output.logUri),
|
|
1719
1699
|
};
|
|
1720
1700
|
};
|
|
1721
|
-
const
|
|
1701
|
+
const de_RetryPolicyConfiguration = (output, context) => {
|
|
1722
1702
|
return {
|
|
1723
1703
|
maxAttempts: (0, smithy_client_1.expectInt32)(output.maxAttempts),
|
|
1724
1704
|
};
|
|
1725
1705
|
};
|
|
1726
|
-
const
|
|
1706
|
+
const de_RetryPolicyExecution = (output, context) => {
|
|
1727
1707
|
return {
|
|
1728
1708
|
currentAttemptCount: (0, smithy_client_1.expectInt32)(output.currentAttemptCount),
|
|
1729
1709
|
};
|
|
1730
1710
|
};
|
|
1731
|
-
const
|
|
1711
|
+
const de_S3MonitoringConfiguration = (output, context) => {
|
|
1732
1712
|
return {
|
|
1733
1713
|
logUri: (0, smithy_client_1.expectString)(output.logUri),
|
|
1734
1714
|
};
|
|
1735
1715
|
};
|
|
1736
|
-
const
|
|
1716
|
+
const de_SensitivePropertiesMap = (output, context) => {
|
|
1737
1717
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1738
1718
|
if (value === null) {
|
|
1739
1719
|
return acc;
|
|
@@ -1742,22 +1722,20 @@ const deserializeAws_restJson1SensitivePropertiesMap = (output, context) => {
|
|
|
1742
1722
|
return acc;
|
|
1743
1723
|
}, {});
|
|
1744
1724
|
};
|
|
1745
|
-
const
|
|
1725
|
+
const de_SparkSqlJobDriver = (output, context) => {
|
|
1746
1726
|
return {
|
|
1747
1727
|
entryPoint: (0, smithy_client_1.expectString)(output.entryPoint),
|
|
1748
1728
|
sparkSqlParameters: (0, smithy_client_1.expectString)(output.sparkSqlParameters),
|
|
1749
1729
|
};
|
|
1750
1730
|
};
|
|
1751
|
-
const
|
|
1731
|
+
const de_SparkSubmitJobDriver = (output, context) => {
|
|
1752
1732
|
return {
|
|
1753
1733
|
entryPoint: (0, smithy_client_1.expectString)(output.entryPoint),
|
|
1754
|
-
entryPointArguments: output.entryPointArguments != null
|
|
1755
|
-
? deserializeAws_restJson1EntryPointArguments(output.entryPointArguments, context)
|
|
1756
|
-
: undefined,
|
|
1734
|
+
entryPointArguments: output.entryPointArguments != null ? de_EntryPointArguments(output.entryPointArguments, context) : undefined,
|
|
1757
1735
|
sparkSubmitParameters: (0, smithy_client_1.expectString)(output.sparkSubmitParameters),
|
|
1758
1736
|
};
|
|
1759
1737
|
};
|
|
1760
|
-
const
|
|
1738
|
+
const de_SubnetIds = (output, context) => {
|
|
1761
1739
|
const retVal = (output || [])
|
|
1762
1740
|
.filter((e) => e != null)
|
|
1763
1741
|
.map((entry) => {
|
|
@@ -1768,7 +1746,7 @@ const deserializeAws_restJson1SubnetIds = (output, context) => {
|
|
|
1768
1746
|
});
|
|
1769
1747
|
return retVal;
|
|
1770
1748
|
};
|
|
1771
|
-
const
|
|
1749
|
+
const de_TagMap = (output, context) => {
|
|
1772
1750
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1773
1751
|
if (value === null) {
|
|
1774
1752
|
return acc;
|
|
@@ -1777,42 +1755,40 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
1777
1755
|
return acc;
|
|
1778
1756
|
}, {});
|
|
1779
1757
|
};
|
|
1780
|
-
const
|
|
1758
|
+
const de_TemplateParameterConfiguration = (output, context) => {
|
|
1781
1759
|
return {
|
|
1782
1760
|
defaultValue: (0, smithy_client_1.expectString)(output.defaultValue),
|
|
1783
1761
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
1784
1762
|
};
|
|
1785
1763
|
};
|
|
1786
|
-
const
|
|
1764
|
+
const de_TemplateParameterConfigurationMap = (output, context) => {
|
|
1787
1765
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1788
1766
|
if (value === null) {
|
|
1789
1767
|
return acc;
|
|
1790
1768
|
}
|
|
1791
|
-
acc[key] =
|
|
1769
|
+
acc[key] = de_TemplateParameterConfiguration(value, context);
|
|
1792
1770
|
return acc;
|
|
1793
1771
|
}, {});
|
|
1794
1772
|
};
|
|
1795
|
-
const
|
|
1773
|
+
const de_VirtualCluster = (output, context) => {
|
|
1796
1774
|
return {
|
|
1797
1775
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1798
|
-
containerProvider: output.containerProvider != null
|
|
1799
|
-
? deserializeAws_restJson1ContainerProvider(output.containerProvider, context)
|
|
1800
|
-
: undefined,
|
|
1776
|
+
containerProvider: output.containerProvider != null ? de_ContainerProvider(output.containerProvider, context) : undefined,
|
|
1801
1777
|
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.createdAt)) : undefined,
|
|
1802
1778
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
1803
1779
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1804
1780
|
state: (0, smithy_client_1.expectString)(output.state),
|
|
1805
|
-
tags: output.tags != null ?
|
|
1781
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
1806
1782
|
};
|
|
1807
1783
|
};
|
|
1808
|
-
const
|
|
1784
|
+
const de_VirtualClusters = (output, context) => {
|
|
1809
1785
|
const retVal = (output || [])
|
|
1810
1786
|
.filter((e) => e != null)
|
|
1811
1787
|
.map((entry) => {
|
|
1812
1788
|
if (entry === null) {
|
|
1813
1789
|
return null;
|
|
1814
1790
|
}
|
|
1815
|
-
return
|
|
1791
|
+
return de_VirtualCluster(entry, context);
|
|
1816
1792
|
});
|
|
1817
1793
|
return retVal;
|
|
1818
1794
|
};
|