@aws-sdk/client-m2 3.489.0 → 3.495.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.
Files changed (56) hide show
  1. package/dist-cjs/M2.js +1 -77
  2. package/dist-cjs/M2Client.js +1 -43
  3. package/dist-cjs/commands/CancelBatchJobExecutionCommand.js +1 -28
  4. package/dist-cjs/commands/CreateApplicationCommand.js +1 -28
  5. package/dist-cjs/commands/CreateDataSetImportTaskCommand.js +1 -28
  6. package/dist-cjs/commands/CreateDeploymentCommand.js +1 -28
  7. package/dist-cjs/commands/CreateEnvironmentCommand.js +1 -28
  8. package/dist-cjs/commands/DeleteApplicationCommand.js +1 -28
  9. package/dist-cjs/commands/DeleteApplicationFromEnvironmentCommand.js +1 -28
  10. package/dist-cjs/commands/DeleteEnvironmentCommand.js +1 -28
  11. package/dist-cjs/commands/GetApplicationCommand.js +1 -28
  12. package/dist-cjs/commands/GetApplicationVersionCommand.js +1 -28
  13. package/dist-cjs/commands/GetBatchJobExecutionCommand.js +1 -28
  14. package/dist-cjs/commands/GetDataSetDetailsCommand.js +1 -28
  15. package/dist-cjs/commands/GetDataSetImportTaskCommand.js +1 -28
  16. package/dist-cjs/commands/GetDeploymentCommand.js +1 -28
  17. package/dist-cjs/commands/GetEnvironmentCommand.js +1 -28
  18. package/dist-cjs/commands/GetSignedBluinsightsUrlCommand.js +1 -28
  19. package/dist-cjs/commands/ListApplicationVersionsCommand.js +1 -28
  20. package/dist-cjs/commands/ListApplicationsCommand.js +1 -28
  21. package/dist-cjs/commands/ListBatchJobDefinitionsCommand.js +1 -28
  22. package/dist-cjs/commands/ListBatchJobExecutionsCommand.js +1 -28
  23. package/dist-cjs/commands/ListDataSetImportHistoryCommand.js +1 -28
  24. package/dist-cjs/commands/ListDataSetsCommand.js +1 -28
  25. package/dist-cjs/commands/ListDeploymentsCommand.js +1 -28
  26. package/dist-cjs/commands/ListEngineVersionsCommand.js +1 -28
  27. package/dist-cjs/commands/ListEnvironmentsCommand.js +1 -28
  28. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  29. package/dist-cjs/commands/StartApplicationCommand.js +1 -28
  30. package/dist-cjs/commands/StartBatchJobCommand.js +1 -28
  31. package/dist-cjs/commands/StopApplicationCommand.js +1 -28
  32. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  33. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  34. package/dist-cjs/commands/UpdateApplicationCommand.js +1 -28
  35. package/dist-cjs/commands/UpdateEnvironmentCommand.js +1 -28
  36. package/dist-cjs/commands/index.js +1 -36
  37. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  38. package/dist-cjs/extensionConfiguration.js +1 -2
  39. package/dist-cjs/index.js +3675 -11
  40. package/dist-cjs/models/M2ServiceException.js +1 -12
  41. package/dist-cjs/models/index.js +1 -4
  42. package/dist-cjs/models/models_0.js +1 -306
  43. package/dist-cjs/pagination/Interfaces.js +1 -2
  44. package/dist-cjs/pagination/ListApplicationVersionsPaginator.js +1 -7
  45. package/dist-cjs/pagination/ListApplicationsPaginator.js +1 -7
  46. package/dist-cjs/pagination/ListBatchJobDefinitionsPaginator.js +1 -7
  47. package/dist-cjs/pagination/ListBatchJobExecutionsPaginator.js +1 -7
  48. package/dist-cjs/pagination/ListDataSetImportHistoryPaginator.js +1 -7
  49. package/dist-cjs/pagination/ListDataSetsPaginator.js +1 -7
  50. package/dist-cjs/pagination/ListDeploymentsPaginator.js +1 -7
  51. package/dist-cjs/pagination/ListEngineVersionsPaginator.js +1 -7
  52. package/dist-cjs/pagination/ListEnvironmentsPaginator.js +1 -7
  53. package/dist-cjs/pagination/index.js +1 -13
  54. package/dist-cjs/protocols/Aws_restJson1.js +1 -2485
  55. package/dist-cjs/runtimeExtensions.js +1 -22
  56. package/package.json +40 -40
@@ -1,2485 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_ListApplicationsCommand = exports.de_GetSignedBluinsightsUrlCommand = exports.de_GetEnvironmentCommand = exports.de_GetDeploymentCommand = exports.de_GetDataSetImportTaskCommand = exports.de_GetDataSetDetailsCommand = exports.de_GetBatchJobExecutionCommand = exports.de_GetApplicationVersionCommand = exports.de_GetApplicationCommand = exports.de_DeleteEnvironmentCommand = exports.de_DeleteApplicationFromEnvironmentCommand = exports.de_DeleteApplicationCommand = exports.de_CreateEnvironmentCommand = exports.de_CreateDeploymentCommand = exports.de_CreateDataSetImportTaskCommand = exports.de_CreateApplicationCommand = exports.de_CancelBatchJobExecutionCommand = exports.se_UpdateEnvironmentCommand = exports.se_UpdateApplicationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopApplicationCommand = exports.se_StartBatchJobCommand = exports.se_StartApplicationCommand = exports.se_ListTagsForResourceCommand = exports.se_ListEnvironmentsCommand = exports.se_ListEngineVersionsCommand = exports.se_ListDeploymentsCommand = exports.se_ListDataSetsCommand = exports.se_ListDataSetImportHistoryCommand = exports.se_ListBatchJobExecutionsCommand = exports.se_ListBatchJobDefinitionsCommand = exports.se_ListApplicationVersionsCommand = exports.se_ListApplicationsCommand = exports.se_GetSignedBluinsightsUrlCommand = exports.se_GetEnvironmentCommand = exports.se_GetDeploymentCommand = exports.se_GetDataSetImportTaskCommand = exports.se_GetDataSetDetailsCommand = exports.se_GetBatchJobExecutionCommand = exports.se_GetApplicationVersionCommand = exports.se_GetApplicationCommand = exports.se_DeleteEnvironmentCommand = exports.se_DeleteApplicationFromEnvironmentCommand = exports.se_DeleteApplicationCommand = exports.se_CreateEnvironmentCommand = exports.se_CreateDeploymentCommand = exports.se_CreateDataSetImportTaskCommand = exports.se_CreateApplicationCommand = exports.se_CancelBatchJobExecutionCommand = void 0;
4
- exports.de_UpdateEnvironmentCommand = exports.de_UpdateApplicationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopApplicationCommand = exports.de_StartBatchJobCommand = exports.de_StartApplicationCommand = exports.de_ListTagsForResourceCommand = exports.de_ListEnvironmentsCommand = exports.de_ListEngineVersionsCommand = exports.de_ListDeploymentsCommand = exports.de_ListDataSetsCommand = exports.de_ListDataSetImportHistoryCommand = exports.de_ListBatchJobExecutionsCommand = exports.de_ListBatchJobDefinitionsCommand = exports.de_ListApplicationVersionsCommand = void 0;
5
- const core_1 = require("@aws-sdk/core");
6
- const core_2 = require("@smithy/core");
7
- const smithy_client_1 = require("@smithy/smithy-client");
8
- const uuid_1 = require("uuid");
9
- const M2ServiceException_1 = require("../models/M2ServiceException");
10
- const models_0_1 = require("../models/models_0");
11
- const se_CancelBatchJobExecutionCommand = async (input, context) => {
12
- const b = (0, core_2.requestBuilder)(input, context);
13
- const headers = {};
14
- b.bp("/applications/{applicationId}/batch-job-executions/{executionId}/cancel");
15
- b.p("applicationId", () => input.applicationId, "{applicationId}", false);
16
- b.p("executionId", () => input.executionId, "{executionId}", false);
17
- let body;
18
- b.m("POST").h(headers).b(body);
19
- return b.build();
20
- };
21
- exports.se_CancelBatchJobExecutionCommand = se_CancelBatchJobExecutionCommand;
22
- const se_CreateApplicationCommand = async (input, context) => {
23
- const b = (0, core_2.requestBuilder)(input, context);
24
- const headers = {
25
- "content-type": "application/json",
26
- };
27
- b.bp("/applications");
28
- let body;
29
- body = JSON.stringify((0, smithy_client_1.take)(input, {
30
- clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
31
- definition: (_) => (0, smithy_client_1._json)(_),
32
- description: [],
33
- engineType: [],
34
- kmsKeyId: [],
35
- name: [],
36
- roleArn: [],
37
- tags: (_) => (0, smithy_client_1._json)(_),
38
- }));
39
- b.m("POST").h(headers).b(body);
40
- return b.build();
41
- };
42
- exports.se_CreateApplicationCommand = se_CreateApplicationCommand;
43
- const se_CreateDataSetImportTaskCommand = async (input, context) => {
44
- const b = (0, core_2.requestBuilder)(input, context);
45
- const headers = {
46
- "content-type": "application/json",
47
- };
48
- b.bp("/applications/{applicationId}/dataset-import-task");
49
- b.p("applicationId", () => input.applicationId, "{applicationId}", false);
50
- let body;
51
- body = JSON.stringify((0, smithy_client_1.take)(input, {
52
- clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
53
- importConfig: (_) => (0, smithy_client_1._json)(_),
54
- }));
55
- b.m("POST").h(headers).b(body);
56
- return b.build();
57
- };
58
- exports.se_CreateDataSetImportTaskCommand = se_CreateDataSetImportTaskCommand;
59
- const se_CreateDeploymentCommand = async (input, context) => {
60
- const b = (0, core_2.requestBuilder)(input, context);
61
- const headers = {
62
- "content-type": "application/json",
63
- };
64
- b.bp("/applications/{applicationId}/deployments");
65
- b.p("applicationId", () => input.applicationId, "{applicationId}", false);
66
- let body;
67
- body = JSON.stringify((0, smithy_client_1.take)(input, {
68
- applicationVersion: [],
69
- clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
70
- environmentId: [],
71
- }));
72
- b.m("POST").h(headers).b(body);
73
- return b.build();
74
- };
75
- exports.se_CreateDeploymentCommand = se_CreateDeploymentCommand;
76
- const se_CreateEnvironmentCommand = async (input, context) => {
77
- const b = (0, core_2.requestBuilder)(input, context);
78
- const headers = {
79
- "content-type": "application/json",
80
- };
81
- b.bp("/environments");
82
- let body;
83
- body = JSON.stringify((0, smithy_client_1.take)(input, {
84
- clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
85
- description: [],
86
- engineType: [],
87
- engineVersion: [],
88
- highAvailabilityConfig: (_) => (0, smithy_client_1._json)(_),
89
- instanceType: [],
90
- kmsKeyId: [],
91
- name: [],
92
- preferredMaintenanceWindow: [],
93
- publiclyAccessible: [],
94
- securityGroupIds: (_) => (0, smithy_client_1._json)(_),
95
- storageConfigurations: (_) => se_StorageConfigurationList(_, context),
96
- subnetIds: (_) => (0, smithy_client_1._json)(_),
97
- tags: (_) => (0, smithy_client_1._json)(_),
98
- }));
99
- b.m("POST").h(headers).b(body);
100
- return b.build();
101
- };
102
- exports.se_CreateEnvironmentCommand = se_CreateEnvironmentCommand;
103
- const se_DeleteApplicationCommand = async (input, context) => {
104
- const b = (0, core_2.requestBuilder)(input, context);
105
- const headers = {};
106
- b.bp("/applications/{applicationId}");
107
- b.p("applicationId", () => input.applicationId, "{applicationId}", false);
108
- let body;
109
- b.m("DELETE").h(headers).b(body);
110
- return b.build();
111
- };
112
- exports.se_DeleteApplicationCommand = se_DeleteApplicationCommand;
113
- const se_DeleteApplicationFromEnvironmentCommand = async (input, context) => {
114
- const b = (0, core_2.requestBuilder)(input, context);
115
- const headers = {};
116
- b.bp("/applications/{applicationId}/environment/{environmentId}");
117
- b.p("applicationId", () => input.applicationId, "{applicationId}", false);
118
- b.p("environmentId", () => input.environmentId, "{environmentId}", false);
119
- let body;
120
- b.m("DELETE").h(headers).b(body);
121
- return b.build();
122
- };
123
- exports.se_DeleteApplicationFromEnvironmentCommand = se_DeleteApplicationFromEnvironmentCommand;
124
- const se_DeleteEnvironmentCommand = async (input, context) => {
125
- const b = (0, core_2.requestBuilder)(input, context);
126
- const headers = {};
127
- b.bp("/environments/{environmentId}");
128
- b.p("environmentId", () => input.environmentId, "{environmentId}", false);
129
- let body;
130
- b.m("DELETE").h(headers).b(body);
131
- return b.build();
132
- };
133
- exports.se_DeleteEnvironmentCommand = se_DeleteEnvironmentCommand;
134
- const se_GetApplicationCommand = async (input, context) => {
135
- const b = (0, core_2.requestBuilder)(input, context);
136
- const headers = {};
137
- b.bp("/applications/{applicationId}");
138
- b.p("applicationId", () => input.applicationId, "{applicationId}", false);
139
- let body;
140
- b.m("GET").h(headers).b(body);
141
- return b.build();
142
- };
143
- exports.se_GetApplicationCommand = se_GetApplicationCommand;
144
- const se_GetApplicationVersionCommand = async (input, context) => {
145
- const b = (0, core_2.requestBuilder)(input, context);
146
- const headers = {};
147
- b.bp("/applications/{applicationId}/versions/{applicationVersion}");
148
- b.p("applicationId", () => input.applicationId, "{applicationId}", false);
149
- b.p("applicationVersion", () => input.applicationVersion.toString(), "{applicationVersion}", false);
150
- let body;
151
- b.m("GET").h(headers).b(body);
152
- return b.build();
153
- };
154
- exports.se_GetApplicationVersionCommand = se_GetApplicationVersionCommand;
155
- const se_GetBatchJobExecutionCommand = async (input, context) => {
156
- const b = (0, core_2.requestBuilder)(input, context);
157
- const headers = {};
158
- b.bp("/applications/{applicationId}/batch-job-executions/{executionId}");
159
- b.p("applicationId", () => input.applicationId, "{applicationId}", false);
160
- b.p("executionId", () => input.executionId, "{executionId}", false);
161
- let body;
162
- b.m("GET").h(headers).b(body);
163
- return b.build();
164
- };
165
- exports.se_GetBatchJobExecutionCommand = se_GetBatchJobExecutionCommand;
166
- const se_GetDataSetDetailsCommand = async (input, context) => {
167
- const b = (0, core_2.requestBuilder)(input, context);
168
- const headers = {};
169
- b.bp("/applications/{applicationId}/datasets/{dataSetName}");
170
- b.p("applicationId", () => input.applicationId, "{applicationId}", false);
171
- b.p("dataSetName", () => input.dataSetName, "{dataSetName}", false);
172
- let body;
173
- b.m("GET").h(headers).b(body);
174
- return b.build();
175
- };
176
- exports.se_GetDataSetDetailsCommand = se_GetDataSetDetailsCommand;
177
- const se_GetDataSetImportTaskCommand = async (input, context) => {
178
- const b = (0, core_2.requestBuilder)(input, context);
179
- const headers = {};
180
- b.bp("/applications/{applicationId}/dataset-import-tasks/{taskId}");
181
- b.p("applicationId", () => input.applicationId, "{applicationId}", false);
182
- b.p("taskId", () => input.taskId, "{taskId}", false);
183
- let body;
184
- b.m("GET").h(headers).b(body);
185
- return b.build();
186
- };
187
- exports.se_GetDataSetImportTaskCommand = se_GetDataSetImportTaskCommand;
188
- const se_GetDeploymentCommand = async (input, context) => {
189
- const b = (0, core_2.requestBuilder)(input, context);
190
- const headers = {};
191
- b.bp("/applications/{applicationId}/deployments/{deploymentId}");
192
- b.p("deploymentId", () => input.deploymentId, "{deploymentId}", false);
193
- b.p("applicationId", () => input.applicationId, "{applicationId}", false);
194
- let body;
195
- b.m("GET").h(headers).b(body);
196
- return b.build();
197
- };
198
- exports.se_GetDeploymentCommand = se_GetDeploymentCommand;
199
- const se_GetEnvironmentCommand = async (input, context) => {
200
- const b = (0, core_2.requestBuilder)(input, context);
201
- const headers = {};
202
- b.bp("/environments/{environmentId}");
203
- b.p("environmentId", () => input.environmentId, "{environmentId}", false);
204
- let body;
205
- b.m("GET").h(headers).b(body);
206
- return b.build();
207
- };
208
- exports.se_GetEnvironmentCommand = se_GetEnvironmentCommand;
209
- const se_GetSignedBluinsightsUrlCommand = async (input, context) => {
210
- const b = (0, core_2.requestBuilder)(input, context);
211
- const headers = {
212
- "content-type": "application/json",
213
- };
214
- b.bp("/signed-bi-url");
215
- let body;
216
- body = "";
217
- b.m("GET").h(headers).b(body);
218
- return b.build();
219
- };
220
- exports.se_GetSignedBluinsightsUrlCommand = se_GetSignedBluinsightsUrlCommand;
221
- const se_ListApplicationsCommand = async (input, context) => {
222
- const b = (0, core_2.requestBuilder)(input, context);
223
- const headers = {};
224
- b.bp("/applications");
225
- const query = (0, smithy_client_1.map)({
226
- [_nT]: [, input[_nT]],
227
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
228
- [_n]: [() => input.names !== void 0, () => (input[_n] || []).map((_entry) => _entry)],
229
- [_eI]: [, input[_eI]],
230
- });
231
- let body;
232
- b.m("GET").h(headers).q(query).b(body);
233
- return b.build();
234
- };
235
- exports.se_ListApplicationsCommand = se_ListApplicationsCommand;
236
- const se_ListApplicationVersionsCommand = async (input, context) => {
237
- const b = (0, core_2.requestBuilder)(input, context);
238
- const headers = {};
239
- b.bp("/applications/{applicationId}/versions");
240
- b.p("applicationId", () => input.applicationId, "{applicationId}", false);
241
- const query = (0, smithy_client_1.map)({
242
- [_nT]: [, input[_nT]],
243
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
244
- });
245
- let body;
246
- b.m("GET").h(headers).q(query).b(body);
247
- return b.build();
248
- };
249
- exports.se_ListApplicationVersionsCommand = se_ListApplicationVersionsCommand;
250
- const se_ListBatchJobDefinitionsCommand = async (input, context) => {
251
- const b = (0, core_2.requestBuilder)(input, context);
252
- const headers = {};
253
- b.bp("/applications/{applicationId}/batch-job-definitions");
254
- b.p("applicationId", () => input.applicationId, "{applicationId}", false);
255
- const query = (0, smithy_client_1.map)({
256
- [_nT]: [, input[_nT]],
257
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
258
- [_p]: [, input[_p]],
259
- });
260
- let body;
261
- b.m("GET").h(headers).q(query).b(body);
262
- return b.build();
263
- };
264
- exports.se_ListBatchJobDefinitionsCommand = se_ListBatchJobDefinitionsCommand;
265
- const se_ListBatchJobExecutionsCommand = async (input, context) => {
266
- const b = (0, core_2.requestBuilder)(input, context);
267
- const headers = {};
268
- b.bp("/applications/{applicationId}/batch-job-executions");
269
- b.p("applicationId", () => input.applicationId, "{applicationId}", false);
270
- const query = (0, smithy_client_1.map)({
271
- [_nT]: [, input[_nT]],
272
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
273
- [_eIx]: [() => input.executionIds !== void 0, () => (input[_eIx] || []).map((_entry) => _entry)],
274
- [_jN]: [, input[_jN]],
275
- [_s]: [, input[_s]],
276
- [_sA]: [() => input.startedAfter !== void 0, () => (input[_sA].toISOString().split(".")[0] + "Z").toString()],
277
- [_sB]: [() => input.startedBefore !== void 0, () => (input[_sB].toISOString().split(".")[0] + "Z").toString()],
278
- });
279
- let body;
280
- b.m("GET").h(headers).q(query).b(body);
281
- return b.build();
282
- };
283
- exports.se_ListBatchJobExecutionsCommand = se_ListBatchJobExecutionsCommand;
284
- const se_ListDataSetImportHistoryCommand = async (input, context) => {
285
- const b = (0, core_2.requestBuilder)(input, context);
286
- const headers = {};
287
- b.bp("/applications/{applicationId}/dataset-import-tasks");
288
- b.p("applicationId", () => input.applicationId, "{applicationId}", false);
289
- const query = (0, smithy_client_1.map)({
290
- [_nT]: [, input[_nT]],
291
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
292
- });
293
- let body;
294
- b.m("GET").h(headers).q(query).b(body);
295
- return b.build();
296
- };
297
- exports.se_ListDataSetImportHistoryCommand = se_ListDataSetImportHistoryCommand;
298
- const se_ListDataSetsCommand = async (input, context) => {
299
- const b = (0, core_2.requestBuilder)(input, context);
300
- const headers = {};
301
- b.bp("/applications/{applicationId}/datasets");
302
- b.p("applicationId", () => input.applicationId, "{applicationId}", false);
303
- const query = (0, smithy_client_1.map)({
304
- [_nT]: [, input[_nT]],
305
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
306
- [_p]: [, input[_p]],
307
- [_nF]: [, input[_nF]],
308
- });
309
- let body;
310
- b.m("GET").h(headers).q(query).b(body);
311
- return b.build();
312
- };
313
- exports.se_ListDataSetsCommand = se_ListDataSetsCommand;
314
- const se_ListDeploymentsCommand = async (input, context) => {
315
- const b = (0, core_2.requestBuilder)(input, context);
316
- const headers = {};
317
- b.bp("/applications/{applicationId}/deployments");
318
- b.p("applicationId", () => input.applicationId, "{applicationId}", false);
319
- const query = (0, smithy_client_1.map)({
320
- [_nT]: [, input[_nT]],
321
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
322
- });
323
- let body;
324
- b.m("GET").h(headers).q(query).b(body);
325
- return b.build();
326
- };
327
- exports.se_ListDeploymentsCommand = se_ListDeploymentsCommand;
328
- const se_ListEngineVersionsCommand = async (input, context) => {
329
- const b = (0, core_2.requestBuilder)(input, context);
330
- const headers = {};
331
- b.bp("/engine-versions");
332
- const query = (0, smithy_client_1.map)({
333
- [_eT]: [, input[_eT]],
334
- [_nT]: [, input[_nT]],
335
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
336
- });
337
- let body;
338
- b.m("GET").h(headers).q(query).b(body);
339
- return b.build();
340
- };
341
- exports.se_ListEngineVersionsCommand = se_ListEngineVersionsCommand;
342
- const se_ListEnvironmentsCommand = async (input, context) => {
343
- const b = (0, core_2.requestBuilder)(input, context);
344
- const headers = {};
345
- b.bp("/environments");
346
- const query = (0, smithy_client_1.map)({
347
- [_nT]: [, input[_nT]],
348
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
349
- [_n]: [() => input.names !== void 0, () => (input[_n] || []).map((_entry) => _entry)],
350
- [_eT]: [, input[_eT]],
351
- });
352
- let body;
353
- b.m("GET").h(headers).q(query).b(body);
354
- return b.build();
355
- };
356
- exports.se_ListEnvironmentsCommand = se_ListEnvironmentsCommand;
357
- const se_ListTagsForResourceCommand = async (input, context) => {
358
- const b = (0, core_2.requestBuilder)(input, context);
359
- const headers = {};
360
- b.bp("/tags/{resourceArn}");
361
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
362
- let body;
363
- b.m("GET").h(headers).b(body);
364
- return b.build();
365
- };
366
- exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
367
- const se_StartApplicationCommand = async (input, context) => {
368
- const b = (0, core_2.requestBuilder)(input, context);
369
- const headers = {};
370
- b.bp("/applications/{applicationId}/start");
371
- b.p("applicationId", () => input.applicationId, "{applicationId}", false);
372
- let body;
373
- b.m("POST").h(headers).b(body);
374
- return b.build();
375
- };
376
- exports.se_StartApplicationCommand = se_StartApplicationCommand;
377
- const se_StartBatchJobCommand = async (input, context) => {
378
- const b = (0, core_2.requestBuilder)(input, context);
379
- const headers = {
380
- "content-type": "application/json",
381
- };
382
- b.bp("/applications/{applicationId}/batch-job");
383
- b.p("applicationId", () => input.applicationId, "{applicationId}", false);
384
- let body;
385
- body = JSON.stringify((0, smithy_client_1.take)(input, {
386
- batchJobIdentifier: (_) => (0, smithy_client_1._json)(_),
387
- jobParams: (_) => (0, smithy_client_1._json)(_),
388
- }));
389
- b.m("POST").h(headers).b(body);
390
- return b.build();
391
- };
392
- exports.se_StartBatchJobCommand = se_StartBatchJobCommand;
393
- const se_StopApplicationCommand = async (input, context) => {
394
- const b = (0, core_2.requestBuilder)(input, context);
395
- const headers = {
396
- "content-type": "application/json",
397
- };
398
- b.bp("/applications/{applicationId}/stop");
399
- b.p("applicationId", () => input.applicationId, "{applicationId}", false);
400
- let body;
401
- body = JSON.stringify((0, smithy_client_1.take)(input, {
402
- forceStop: [],
403
- }));
404
- b.m("POST").h(headers).b(body);
405
- return b.build();
406
- };
407
- exports.se_StopApplicationCommand = se_StopApplicationCommand;
408
- const se_TagResourceCommand = async (input, context) => {
409
- const b = (0, core_2.requestBuilder)(input, context);
410
- const headers = {
411
- "content-type": "application/json",
412
- };
413
- b.bp("/tags/{resourceArn}");
414
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
415
- let body;
416
- body = JSON.stringify((0, smithy_client_1.take)(input, {
417
- tags: (_) => (0, smithy_client_1._json)(_),
418
- }));
419
- b.m("POST").h(headers).b(body);
420
- return b.build();
421
- };
422
- exports.se_TagResourceCommand = se_TagResourceCommand;
423
- const se_UntagResourceCommand = async (input, context) => {
424
- const b = (0, core_2.requestBuilder)(input, context);
425
- const headers = {};
426
- b.bp("/tags/{resourceArn}");
427
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
428
- const query = (0, smithy_client_1.map)({
429
- [_tK]: [
430
- (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
431
- () => (input[_tK] || []).map((_entry) => _entry),
432
- ],
433
- });
434
- let body;
435
- b.m("DELETE").h(headers).q(query).b(body);
436
- return b.build();
437
- };
438
- exports.se_UntagResourceCommand = se_UntagResourceCommand;
439
- const se_UpdateApplicationCommand = async (input, context) => {
440
- const b = (0, core_2.requestBuilder)(input, context);
441
- const headers = {
442
- "content-type": "application/json",
443
- };
444
- b.bp("/applications/{applicationId}");
445
- b.p("applicationId", () => input.applicationId, "{applicationId}", false);
446
- let body;
447
- body = JSON.stringify((0, smithy_client_1.take)(input, {
448
- currentApplicationVersion: [],
449
- definition: (_) => (0, smithy_client_1._json)(_),
450
- description: [],
451
- }));
452
- b.m("PATCH").h(headers).b(body);
453
- return b.build();
454
- };
455
- exports.se_UpdateApplicationCommand = se_UpdateApplicationCommand;
456
- const se_UpdateEnvironmentCommand = async (input, context) => {
457
- const b = (0, core_2.requestBuilder)(input, context);
458
- const headers = {
459
- "content-type": "application/json",
460
- };
461
- b.bp("/environments/{environmentId}");
462
- b.p("environmentId", () => input.environmentId, "{environmentId}", false);
463
- let body;
464
- body = JSON.stringify((0, smithy_client_1.take)(input, {
465
- applyDuringMaintenanceWindow: [],
466
- desiredCapacity: [],
467
- engineVersion: [],
468
- forceUpdate: [],
469
- instanceType: [],
470
- preferredMaintenanceWindow: [],
471
- }));
472
- b.m("PATCH").h(headers).b(body);
473
- return b.build();
474
- };
475
- exports.se_UpdateEnvironmentCommand = se_UpdateEnvironmentCommand;
476
- const de_CancelBatchJobExecutionCommand = async (output, context) => {
477
- if (output.statusCode !== 200 && output.statusCode >= 300) {
478
- return de_CancelBatchJobExecutionCommandError(output, context);
479
- }
480
- const contents = (0, smithy_client_1.map)({
481
- $metadata: deserializeMetadata(output),
482
- });
483
- await (0, smithy_client_1.collectBody)(output.body, context);
484
- return contents;
485
- };
486
- exports.de_CancelBatchJobExecutionCommand = de_CancelBatchJobExecutionCommand;
487
- const de_CancelBatchJobExecutionCommandError = async (output, context) => {
488
- const parsedOutput = {
489
- ...output,
490
- body: await parseErrorBody(output.body, context),
491
- };
492
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
493
- switch (errorCode) {
494
- case "AccessDeniedException":
495
- case "com.amazonaws.m2#AccessDeniedException":
496
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
497
- case "ConflictException":
498
- case "com.amazonaws.m2#ConflictException":
499
- throw await de_ConflictExceptionRes(parsedOutput, context);
500
- case "InternalServerException":
501
- case "com.amazonaws.m2#InternalServerException":
502
- throw await de_InternalServerExceptionRes(parsedOutput, context);
503
- case "ResourceNotFoundException":
504
- case "com.amazonaws.m2#ResourceNotFoundException":
505
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
506
- case "ThrottlingException":
507
- case "com.amazonaws.m2#ThrottlingException":
508
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
509
- case "ValidationException":
510
- case "com.amazonaws.m2#ValidationException":
511
- throw await de_ValidationExceptionRes(parsedOutput, context);
512
- default:
513
- const parsedBody = parsedOutput.body;
514
- return throwDefaultError({
515
- output,
516
- parsedBody,
517
- errorCode,
518
- });
519
- }
520
- };
521
- const de_CreateApplicationCommand = async (output, context) => {
522
- if (output.statusCode !== 200 && output.statusCode >= 300) {
523
- return de_CreateApplicationCommandError(output, context);
524
- }
525
- const contents = (0, smithy_client_1.map)({
526
- $metadata: deserializeMetadata(output),
527
- });
528
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
529
- const doc = (0, smithy_client_1.take)(data, {
530
- applicationArn: smithy_client_1.expectString,
531
- applicationId: smithy_client_1.expectString,
532
- applicationVersion: smithy_client_1.expectInt32,
533
- });
534
- Object.assign(contents, doc);
535
- return contents;
536
- };
537
- exports.de_CreateApplicationCommand = de_CreateApplicationCommand;
538
- const de_CreateApplicationCommandError = async (output, context) => {
539
- const parsedOutput = {
540
- ...output,
541
- body: await parseErrorBody(output.body, context),
542
- };
543
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
544
- switch (errorCode) {
545
- case "AccessDeniedException":
546
- case "com.amazonaws.m2#AccessDeniedException":
547
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
548
- case "ConflictException":
549
- case "com.amazonaws.m2#ConflictException":
550
- throw await de_ConflictExceptionRes(parsedOutput, context);
551
- case "InternalServerException":
552
- case "com.amazonaws.m2#InternalServerException":
553
- throw await de_InternalServerExceptionRes(parsedOutput, context);
554
- case "ServiceQuotaExceededException":
555
- case "com.amazonaws.m2#ServiceQuotaExceededException":
556
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
557
- case "ThrottlingException":
558
- case "com.amazonaws.m2#ThrottlingException":
559
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
560
- case "ValidationException":
561
- case "com.amazonaws.m2#ValidationException":
562
- throw await de_ValidationExceptionRes(parsedOutput, context);
563
- default:
564
- const parsedBody = parsedOutput.body;
565
- return throwDefaultError({
566
- output,
567
- parsedBody,
568
- errorCode,
569
- });
570
- }
571
- };
572
- const de_CreateDataSetImportTaskCommand = async (output, context) => {
573
- if (output.statusCode !== 200 && output.statusCode >= 300) {
574
- return de_CreateDataSetImportTaskCommandError(output, context);
575
- }
576
- const contents = (0, smithy_client_1.map)({
577
- $metadata: deserializeMetadata(output),
578
- });
579
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
580
- const doc = (0, smithy_client_1.take)(data, {
581
- taskId: smithy_client_1.expectString,
582
- });
583
- Object.assign(contents, doc);
584
- return contents;
585
- };
586
- exports.de_CreateDataSetImportTaskCommand = de_CreateDataSetImportTaskCommand;
587
- const de_CreateDataSetImportTaskCommandError = async (output, context) => {
588
- const parsedOutput = {
589
- ...output,
590
- body: await parseErrorBody(output.body, context),
591
- };
592
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
593
- switch (errorCode) {
594
- case "AccessDeniedException":
595
- case "com.amazonaws.m2#AccessDeniedException":
596
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
597
- case "ConflictException":
598
- case "com.amazonaws.m2#ConflictException":
599
- throw await de_ConflictExceptionRes(parsedOutput, context);
600
- case "InternalServerException":
601
- case "com.amazonaws.m2#InternalServerException":
602
- throw await de_InternalServerExceptionRes(parsedOutput, context);
603
- case "ResourceNotFoundException":
604
- case "com.amazonaws.m2#ResourceNotFoundException":
605
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
606
- case "ServiceQuotaExceededException":
607
- case "com.amazonaws.m2#ServiceQuotaExceededException":
608
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
609
- case "ThrottlingException":
610
- case "com.amazonaws.m2#ThrottlingException":
611
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
612
- case "ValidationException":
613
- case "com.amazonaws.m2#ValidationException":
614
- throw await de_ValidationExceptionRes(parsedOutput, context);
615
- default:
616
- const parsedBody = parsedOutput.body;
617
- return throwDefaultError({
618
- output,
619
- parsedBody,
620
- errorCode,
621
- });
622
- }
623
- };
624
- const de_CreateDeploymentCommand = async (output, context) => {
625
- if (output.statusCode !== 200 && output.statusCode >= 300) {
626
- return de_CreateDeploymentCommandError(output, context);
627
- }
628
- const contents = (0, smithy_client_1.map)({
629
- $metadata: deserializeMetadata(output),
630
- });
631
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
632
- const doc = (0, smithy_client_1.take)(data, {
633
- deploymentId: smithy_client_1.expectString,
634
- });
635
- Object.assign(contents, doc);
636
- return contents;
637
- };
638
- exports.de_CreateDeploymentCommand = de_CreateDeploymentCommand;
639
- const de_CreateDeploymentCommandError = async (output, context) => {
640
- const parsedOutput = {
641
- ...output,
642
- body: await parseErrorBody(output.body, context),
643
- };
644
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
645
- switch (errorCode) {
646
- case "AccessDeniedException":
647
- case "com.amazonaws.m2#AccessDeniedException":
648
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
649
- case "ConflictException":
650
- case "com.amazonaws.m2#ConflictException":
651
- throw await de_ConflictExceptionRes(parsedOutput, context);
652
- case "InternalServerException":
653
- case "com.amazonaws.m2#InternalServerException":
654
- throw await de_InternalServerExceptionRes(parsedOutput, context);
655
- case "ResourceNotFoundException":
656
- case "com.amazonaws.m2#ResourceNotFoundException":
657
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
658
- case "ServiceQuotaExceededException":
659
- case "com.amazonaws.m2#ServiceQuotaExceededException":
660
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
661
- case "ThrottlingException":
662
- case "com.amazonaws.m2#ThrottlingException":
663
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
664
- case "ValidationException":
665
- case "com.amazonaws.m2#ValidationException":
666
- throw await de_ValidationExceptionRes(parsedOutput, context);
667
- default:
668
- const parsedBody = parsedOutput.body;
669
- return throwDefaultError({
670
- output,
671
- parsedBody,
672
- errorCode,
673
- });
674
- }
675
- };
676
- const de_CreateEnvironmentCommand = async (output, context) => {
677
- if (output.statusCode !== 200 && output.statusCode >= 300) {
678
- return de_CreateEnvironmentCommandError(output, context);
679
- }
680
- const contents = (0, smithy_client_1.map)({
681
- $metadata: deserializeMetadata(output),
682
- });
683
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
684
- const doc = (0, smithy_client_1.take)(data, {
685
- environmentId: smithy_client_1.expectString,
686
- });
687
- Object.assign(contents, doc);
688
- return contents;
689
- };
690
- exports.de_CreateEnvironmentCommand = de_CreateEnvironmentCommand;
691
- const de_CreateEnvironmentCommandError = async (output, context) => {
692
- const parsedOutput = {
693
- ...output,
694
- body: await parseErrorBody(output.body, context),
695
- };
696
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
697
- switch (errorCode) {
698
- case "AccessDeniedException":
699
- case "com.amazonaws.m2#AccessDeniedException":
700
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
701
- case "ConflictException":
702
- case "com.amazonaws.m2#ConflictException":
703
- throw await de_ConflictExceptionRes(parsedOutput, context);
704
- case "InternalServerException":
705
- case "com.amazonaws.m2#InternalServerException":
706
- throw await de_InternalServerExceptionRes(parsedOutput, context);
707
- case "ServiceQuotaExceededException":
708
- case "com.amazonaws.m2#ServiceQuotaExceededException":
709
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
710
- case "ThrottlingException":
711
- case "com.amazonaws.m2#ThrottlingException":
712
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
713
- case "ValidationException":
714
- case "com.amazonaws.m2#ValidationException":
715
- throw await de_ValidationExceptionRes(parsedOutput, context);
716
- default:
717
- const parsedBody = parsedOutput.body;
718
- return throwDefaultError({
719
- output,
720
- parsedBody,
721
- errorCode,
722
- });
723
- }
724
- };
725
- const de_DeleteApplicationCommand = async (output, context) => {
726
- if (output.statusCode !== 200 && output.statusCode >= 300) {
727
- return de_DeleteApplicationCommandError(output, context);
728
- }
729
- const contents = (0, smithy_client_1.map)({
730
- $metadata: deserializeMetadata(output),
731
- });
732
- await (0, smithy_client_1.collectBody)(output.body, context);
733
- return contents;
734
- };
735
- exports.de_DeleteApplicationCommand = de_DeleteApplicationCommand;
736
- const de_DeleteApplicationCommandError = async (output, context) => {
737
- const parsedOutput = {
738
- ...output,
739
- body: await parseErrorBody(output.body, context),
740
- };
741
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
742
- switch (errorCode) {
743
- case "AccessDeniedException":
744
- case "com.amazonaws.m2#AccessDeniedException":
745
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
746
- case "ConflictException":
747
- case "com.amazonaws.m2#ConflictException":
748
- throw await de_ConflictExceptionRes(parsedOutput, context);
749
- case "InternalServerException":
750
- case "com.amazonaws.m2#InternalServerException":
751
- throw await de_InternalServerExceptionRes(parsedOutput, context);
752
- case "ThrottlingException":
753
- case "com.amazonaws.m2#ThrottlingException":
754
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
755
- case "ValidationException":
756
- case "com.amazonaws.m2#ValidationException":
757
- throw await de_ValidationExceptionRes(parsedOutput, context);
758
- default:
759
- const parsedBody = parsedOutput.body;
760
- return throwDefaultError({
761
- output,
762
- parsedBody,
763
- errorCode,
764
- });
765
- }
766
- };
767
- const de_DeleteApplicationFromEnvironmentCommand = async (output, context) => {
768
- if (output.statusCode !== 200 && output.statusCode >= 300) {
769
- return de_DeleteApplicationFromEnvironmentCommandError(output, context);
770
- }
771
- const contents = (0, smithy_client_1.map)({
772
- $metadata: deserializeMetadata(output),
773
- });
774
- await (0, smithy_client_1.collectBody)(output.body, context);
775
- return contents;
776
- };
777
- exports.de_DeleteApplicationFromEnvironmentCommand = de_DeleteApplicationFromEnvironmentCommand;
778
- const de_DeleteApplicationFromEnvironmentCommandError = async (output, context) => {
779
- const parsedOutput = {
780
- ...output,
781
- body: await parseErrorBody(output.body, context),
782
- };
783
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
784
- switch (errorCode) {
785
- case "AccessDeniedException":
786
- case "com.amazonaws.m2#AccessDeniedException":
787
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
788
- case "ConflictException":
789
- case "com.amazonaws.m2#ConflictException":
790
- throw await de_ConflictExceptionRes(parsedOutput, context);
791
- case "InternalServerException":
792
- case "com.amazonaws.m2#InternalServerException":
793
- throw await de_InternalServerExceptionRes(parsedOutput, context);
794
- case "ResourceNotFoundException":
795
- case "com.amazonaws.m2#ResourceNotFoundException":
796
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
797
- case "ThrottlingException":
798
- case "com.amazonaws.m2#ThrottlingException":
799
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
800
- case "ValidationException":
801
- case "com.amazonaws.m2#ValidationException":
802
- throw await de_ValidationExceptionRes(parsedOutput, context);
803
- default:
804
- const parsedBody = parsedOutput.body;
805
- return throwDefaultError({
806
- output,
807
- parsedBody,
808
- errorCode,
809
- });
810
- }
811
- };
812
- const de_DeleteEnvironmentCommand = async (output, context) => {
813
- if (output.statusCode !== 200 && output.statusCode >= 300) {
814
- return de_DeleteEnvironmentCommandError(output, context);
815
- }
816
- const contents = (0, smithy_client_1.map)({
817
- $metadata: deserializeMetadata(output),
818
- });
819
- await (0, smithy_client_1.collectBody)(output.body, context);
820
- return contents;
821
- };
822
- exports.de_DeleteEnvironmentCommand = de_DeleteEnvironmentCommand;
823
- const de_DeleteEnvironmentCommandError = async (output, context) => {
824
- const parsedOutput = {
825
- ...output,
826
- body: await parseErrorBody(output.body, context),
827
- };
828
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
829
- switch (errorCode) {
830
- case "AccessDeniedException":
831
- case "com.amazonaws.m2#AccessDeniedException":
832
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
833
- case "ConflictException":
834
- case "com.amazonaws.m2#ConflictException":
835
- throw await de_ConflictExceptionRes(parsedOutput, context);
836
- case "InternalServerException":
837
- case "com.amazonaws.m2#InternalServerException":
838
- throw await de_InternalServerExceptionRes(parsedOutput, context);
839
- case "ThrottlingException":
840
- case "com.amazonaws.m2#ThrottlingException":
841
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
842
- case "ValidationException":
843
- case "com.amazonaws.m2#ValidationException":
844
- throw await de_ValidationExceptionRes(parsedOutput, context);
845
- default:
846
- const parsedBody = parsedOutput.body;
847
- return throwDefaultError({
848
- output,
849
- parsedBody,
850
- errorCode,
851
- });
852
- }
853
- };
854
- const de_GetApplicationCommand = async (output, context) => {
855
- if (output.statusCode !== 200 && output.statusCode >= 300) {
856
- return de_GetApplicationCommandError(output, context);
857
- }
858
- const contents = (0, smithy_client_1.map)({
859
- $metadata: deserializeMetadata(output),
860
- });
861
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
862
- const doc = (0, smithy_client_1.take)(data, {
863
- applicationArn: smithy_client_1.expectString,
864
- applicationId: smithy_client_1.expectString,
865
- creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
866
- deployedVersion: smithy_client_1._json,
867
- description: smithy_client_1.expectString,
868
- engineType: smithy_client_1.expectString,
869
- environmentId: smithy_client_1.expectString,
870
- kmsKeyId: smithy_client_1.expectString,
871
- lastStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
872
- latestVersion: (_) => de_ApplicationVersionSummary(_, context),
873
- listenerArns: smithy_client_1._json,
874
- listenerPorts: smithy_client_1._json,
875
- loadBalancerDnsName: smithy_client_1.expectString,
876
- logGroups: smithy_client_1._json,
877
- name: smithy_client_1.expectString,
878
- roleArn: smithy_client_1.expectString,
879
- status: smithy_client_1.expectString,
880
- statusReason: smithy_client_1.expectString,
881
- tags: smithy_client_1._json,
882
- targetGroupArns: smithy_client_1._json,
883
- });
884
- Object.assign(contents, doc);
885
- return contents;
886
- };
887
- exports.de_GetApplicationCommand = de_GetApplicationCommand;
888
- const de_GetApplicationCommandError = async (output, context) => {
889
- const parsedOutput = {
890
- ...output,
891
- body: await parseErrorBody(output.body, context),
892
- };
893
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
894
- switch (errorCode) {
895
- case "AccessDeniedException":
896
- case "com.amazonaws.m2#AccessDeniedException":
897
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
898
- case "InternalServerException":
899
- case "com.amazonaws.m2#InternalServerException":
900
- throw await de_InternalServerExceptionRes(parsedOutput, context);
901
- case "ResourceNotFoundException":
902
- case "com.amazonaws.m2#ResourceNotFoundException":
903
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
904
- case "ThrottlingException":
905
- case "com.amazonaws.m2#ThrottlingException":
906
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
907
- case "ValidationException":
908
- case "com.amazonaws.m2#ValidationException":
909
- throw await de_ValidationExceptionRes(parsedOutput, context);
910
- default:
911
- const parsedBody = parsedOutput.body;
912
- return throwDefaultError({
913
- output,
914
- parsedBody,
915
- errorCode,
916
- });
917
- }
918
- };
919
- const de_GetApplicationVersionCommand = async (output, context) => {
920
- if (output.statusCode !== 200 && output.statusCode >= 300) {
921
- return de_GetApplicationVersionCommandError(output, context);
922
- }
923
- const contents = (0, smithy_client_1.map)({
924
- $metadata: deserializeMetadata(output),
925
- });
926
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
927
- const doc = (0, smithy_client_1.take)(data, {
928
- applicationVersion: smithy_client_1.expectInt32,
929
- creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
930
- definitionContent: smithy_client_1.expectString,
931
- description: smithy_client_1.expectString,
932
- name: smithy_client_1.expectString,
933
- status: smithy_client_1.expectString,
934
- statusReason: smithy_client_1.expectString,
935
- });
936
- Object.assign(contents, doc);
937
- return contents;
938
- };
939
- exports.de_GetApplicationVersionCommand = de_GetApplicationVersionCommand;
940
- const de_GetApplicationVersionCommandError = async (output, context) => {
941
- const parsedOutput = {
942
- ...output,
943
- body: await parseErrorBody(output.body, context),
944
- };
945
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
946
- switch (errorCode) {
947
- case "AccessDeniedException":
948
- case "com.amazonaws.m2#AccessDeniedException":
949
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
950
- case "InternalServerException":
951
- case "com.amazonaws.m2#InternalServerException":
952
- throw await de_InternalServerExceptionRes(parsedOutput, context);
953
- case "ResourceNotFoundException":
954
- case "com.amazonaws.m2#ResourceNotFoundException":
955
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
956
- case "ThrottlingException":
957
- case "com.amazonaws.m2#ThrottlingException":
958
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
959
- case "ValidationException":
960
- case "com.amazonaws.m2#ValidationException":
961
- throw await de_ValidationExceptionRes(parsedOutput, context);
962
- default:
963
- const parsedBody = parsedOutput.body;
964
- return throwDefaultError({
965
- output,
966
- parsedBody,
967
- errorCode,
968
- });
969
- }
970
- };
971
- const de_GetBatchJobExecutionCommand = async (output, context) => {
972
- if (output.statusCode !== 200 && output.statusCode >= 300) {
973
- return de_GetBatchJobExecutionCommandError(output, context);
974
- }
975
- const contents = (0, smithy_client_1.map)({
976
- $metadata: deserializeMetadata(output),
977
- });
978
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
979
- const doc = (0, smithy_client_1.take)(data, {
980
- applicationId: smithy_client_1.expectString,
981
- batchJobIdentifier: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
982
- endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
983
- executionId: smithy_client_1.expectString,
984
- jobId: smithy_client_1.expectString,
985
- jobName: smithy_client_1.expectString,
986
- jobType: smithy_client_1.expectString,
987
- jobUser: smithy_client_1.expectString,
988
- returnCode: smithy_client_1.expectString,
989
- startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
990
- status: smithy_client_1.expectString,
991
- statusReason: smithy_client_1.expectString,
992
- });
993
- Object.assign(contents, doc);
994
- return contents;
995
- };
996
- exports.de_GetBatchJobExecutionCommand = de_GetBatchJobExecutionCommand;
997
- const de_GetBatchJobExecutionCommandError = async (output, context) => {
998
- const parsedOutput = {
999
- ...output,
1000
- body: await parseErrorBody(output.body, context),
1001
- };
1002
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1003
- switch (errorCode) {
1004
- case "AccessDeniedException":
1005
- case "com.amazonaws.m2#AccessDeniedException":
1006
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1007
- case "InternalServerException":
1008
- case "com.amazonaws.m2#InternalServerException":
1009
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1010
- case "ResourceNotFoundException":
1011
- case "com.amazonaws.m2#ResourceNotFoundException":
1012
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1013
- case "ThrottlingException":
1014
- case "com.amazonaws.m2#ThrottlingException":
1015
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1016
- case "ValidationException":
1017
- case "com.amazonaws.m2#ValidationException":
1018
- throw await de_ValidationExceptionRes(parsedOutput, context);
1019
- default:
1020
- const parsedBody = parsedOutput.body;
1021
- return throwDefaultError({
1022
- output,
1023
- parsedBody,
1024
- errorCode,
1025
- });
1026
- }
1027
- };
1028
- const de_GetDataSetDetailsCommand = async (output, context) => {
1029
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1030
- return de_GetDataSetDetailsCommandError(output, context);
1031
- }
1032
- const contents = (0, smithy_client_1.map)({
1033
- $metadata: deserializeMetadata(output),
1034
- });
1035
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1036
- const doc = (0, smithy_client_1.take)(data, {
1037
- blocksize: smithy_client_1.expectInt32,
1038
- creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1039
- dataSetName: smithy_client_1.expectString,
1040
- dataSetOrg: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
1041
- fileSize: smithy_client_1.expectLong,
1042
- lastReferencedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1043
- lastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1044
- location: smithy_client_1.expectString,
1045
- recordLength: smithy_client_1.expectInt32,
1046
- });
1047
- Object.assign(contents, doc);
1048
- return contents;
1049
- };
1050
- exports.de_GetDataSetDetailsCommand = de_GetDataSetDetailsCommand;
1051
- const de_GetDataSetDetailsCommandError = async (output, context) => {
1052
- const parsedOutput = {
1053
- ...output,
1054
- body: await parseErrorBody(output.body, context),
1055
- };
1056
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1057
- switch (errorCode) {
1058
- case "AccessDeniedException":
1059
- case "com.amazonaws.m2#AccessDeniedException":
1060
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1061
- case "ConflictException":
1062
- case "com.amazonaws.m2#ConflictException":
1063
- throw await de_ConflictExceptionRes(parsedOutput, context);
1064
- case "ExecutionTimeoutException":
1065
- case "com.amazonaws.m2#ExecutionTimeoutException":
1066
- throw await de_ExecutionTimeoutExceptionRes(parsedOutput, context);
1067
- case "InternalServerException":
1068
- case "com.amazonaws.m2#InternalServerException":
1069
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1070
- case "ResourceNotFoundException":
1071
- case "com.amazonaws.m2#ResourceNotFoundException":
1072
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1073
- case "ServiceUnavailableException":
1074
- case "com.amazonaws.m2#ServiceUnavailableException":
1075
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1076
- case "ThrottlingException":
1077
- case "com.amazonaws.m2#ThrottlingException":
1078
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1079
- case "ValidationException":
1080
- case "com.amazonaws.m2#ValidationException":
1081
- throw await de_ValidationExceptionRes(parsedOutput, context);
1082
- default:
1083
- const parsedBody = parsedOutput.body;
1084
- return throwDefaultError({
1085
- output,
1086
- parsedBody,
1087
- errorCode,
1088
- });
1089
- }
1090
- };
1091
- const de_GetDataSetImportTaskCommand = async (output, context) => {
1092
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1093
- return de_GetDataSetImportTaskCommandError(output, context);
1094
- }
1095
- const contents = (0, smithy_client_1.map)({
1096
- $metadata: deserializeMetadata(output),
1097
- });
1098
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1099
- const doc = (0, smithy_client_1.take)(data, {
1100
- status: smithy_client_1.expectString,
1101
- summary: smithy_client_1._json,
1102
- taskId: smithy_client_1.expectString,
1103
- });
1104
- Object.assign(contents, doc);
1105
- return contents;
1106
- };
1107
- exports.de_GetDataSetImportTaskCommand = de_GetDataSetImportTaskCommand;
1108
- const de_GetDataSetImportTaskCommandError = async (output, context) => {
1109
- const parsedOutput = {
1110
- ...output,
1111
- body: await parseErrorBody(output.body, context),
1112
- };
1113
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1114
- switch (errorCode) {
1115
- case "AccessDeniedException":
1116
- case "com.amazonaws.m2#AccessDeniedException":
1117
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1118
- case "InternalServerException":
1119
- case "com.amazonaws.m2#InternalServerException":
1120
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1121
- case "ResourceNotFoundException":
1122
- case "com.amazonaws.m2#ResourceNotFoundException":
1123
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1124
- case "ThrottlingException":
1125
- case "com.amazonaws.m2#ThrottlingException":
1126
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1127
- case "ValidationException":
1128
- case "com.amazonaws.m2#ValidationException":
1129
- throw await de_ValidationExceptionRes(parsedOutput, context);
1130
- default:
1131
- const parsedBody = parsedOutput.body;
1132
- return throwDefaultError({
1133
- output,
1134
- parsedBody,
1135
- errorCode,
1136
- });
1137
- }
1138
- };
1139
- const de_GetDeploymentCommand = async (output, context) => {
1140
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1141
- return de_GetDeploymentCommandError(output, context);
1142
- }
1143
- const contents = (0, smithy_client_1.map)({
1144
- $metadata: deserializeMetadata(output),
1145
- });
1146
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1147
- const doc = (0, smithy_client_1.take)(data, {
1148
- applicationId: smithy_client_1.expectString,
1149
- applicationVersion: smithy_client_1.expectInt32,
1150
- creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1151
- deploymentId: smithy_client_1.expectString,
1152
- environmentId: smithy_client_1.expectString,
1153
- status: smithy_client_1.expectString,
1154
- statusReason: smithy_client_1.expectString,
1155
- });
1156
- Object.assign(contents, doc);
1157
- return contents;
1158
- };
1159
- exports.de_GetDeploymentCommand = de_GetDeploymentCommand;
1160
- const de_GetDeploymentCommandError = async (output, context) => {
1161
- const parsedOutput = {
1162
- ...output,
1163
- body: await parseErrorBody(output.body, context),
1164
- };
1165
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1166
- switch (errorCode) {
1167
- case "AccessDeniedException":
1168
- case "com.amazonaws.m2#AccessDeniedException":
1169
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1170
- case "InternalServerException":
1171
- case "com.amazonaws.m2#InternalServerException":
1172
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1173
- case "ResourceNotFoundException":
1174
- case "com.amazonaws.m2#ResourceNotFoundException":
1175
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1176
- case "ThrottlingException":
1177
- case "com.amazonaws.m2#ThrottlingException":
1178
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1179
- case "ValidationException":
1180
- case "com.amazonaws.m2#ValidationException":
1181
- throw await de_ValidationExceptionRes(parsedOutput, context);
1182
- default:
1183
- const parsedBody = parsedOutput.body;
1184
- return throwDefaultError({
1185
- output,
1186
- parsedBody,
1187
- errorCode,
1188
- });
1189
- }
1190
- };
1191
- const de_GetEnvironmentCommand = async (output, context) => {
1192
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1193
- return de_GetEnvironmentCommandError(output, context);
1194
- }
1195
- const contents = (0, smithy_client_1.map)({
1196
- $metadata: deserializeMetadata(output),
1197
- });
1198
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1199
- const doc = (0, smithy_client_1.take)(data, {
1200
- actualCapacity: smithy_client_1.expectInt32,
1201
- creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1202
- description: smithy_client_1.expectString,
1203
- engineType: smithy_client_1.expectString,
1204
- engineVersion: smithy_client_1.expectString,
1205
- environmentArn: smithy_client_1.expectString,
1206
- environmentId: smithy_client_1.expectString,
1207
- highAvailabilityConfig: smithy_client_1._json,
1208
- instanceType: smithy_client_1.expectString,
1209
- kmsKeyId: smithy_client_1.expectString,
1210
- loadBalancerArn: smithy_client_1.expectString,
1211
- name: smithy_client_1.expectString,
1212
- pendingMaintenance: (_) => de_PendingMaintenance(_, context),
1213
- preferredMaintenanceWindow: smithy_client_1.expectString,
1214
- publiclyAccessible: smithy_client_1.expectBoolean,
1215
- securityGroupIds: smithy_client_1._json,
1216
- status: smithy_client_1.expectString,
1217
- statusReason: smithy_client_1.expectString,
1218
- storageConfigurations: (_) => de_StorageConfigurationList(_, context),
1219
- subnetIds: smithy_client_1._json,
1220
- tags: smithy_client_1._json,
1221
- vpcId: smithy_client_1.expectString,
1222
- });
1223
- Object.assign(contents, doc);
1224
- return contents;
1225
- };
1226
- exports.de_GetEnvironmentCommand = de_GetEnvironmentCommand;
1227
- const de_GetEnvironmentCommandError = async (output, context) => {
1228
- const parsedOutput = {
1229
- ...output,
1230
- body: await parseErrorBody(output.body, context),
1231
- };
1232
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1233
- switch (errorCode) {
1234
- case "AccessDeniedException":
1235
- case "com.amazonaws.m2#AccessDeniedException":
1236
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1237
- case "InternalServerException":
1238
- case "com.amazonaws.m2#InternalServerException":
1239
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1240
- case "ResourceNotFoundException":
1241
- case "com.amazonaws.m2#ResourceNotFoundException":
1242
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1243
- case "ThrottlingException":
1244
- case "com.amazonaws.m2#ThrottlingException":
1245
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1246
- case "ValidationException":
1247
- case "com.amazonaws.m2#ValidationException":
1248
- throw await de_ValidationExceptionRes(parsedOutput, context);
1249
- default:
1250
- const parsedBody = parsedOutput.body;
1251
- return throwDefaultError({
1252
- output,
1253
- parsedBody,
1254
- errorCode,
1255
- });
1256
- }
1257
- };
1258
- const de_GetSignedBluinsightsUrlCommand = async (output, context) => {
1259
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1260
- return de_GetSignedBluinsightsUrlCommandError(output, context);
1261
- }
1262
- const contents = (0, smithy_client_1.map)({
1263
- $metadata: deserializeMetadata(output),
1264
- });
1265
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1266
- const doc = (0, smithy_client_1.take)(data, {
1267
- signedBiUrl: smithy_client_1.expectString,
1268
- });
1269
- Object.assign(contents, doc);
1270
- return contents;
1271
- };
1272
- exports.de_GetSignedBluinsightsUrlCommand = de_GetSignedBluinsightsUrlCommand;
1273
- const de_GetSignedBluinsightsUrlCommandError = async (output, context) => {
1274
- const parsedOutput = {
1275
- ...output,
1276
- body: await parseErrorBody(output.body, context),
1277
- };
1278
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1279
- switch (errorCode) {
1280
- case "AccessDeniedException":
1281
- case "com.amazonaws.m2#AccessDeniedException":
1282
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1283
- case "InternalServerException":
1284
- case "com.amazonaws.m2#InternalServerException":
1285
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1286
- case "ThrottlingException":
1287
- case "com.amazonaws.m2#ThrottlingException":
1288
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1289
- default:
1290
- const parsedBody = parsedOutput.body;
1291
- return throwDefaultError({
1292
- output,
1293
- parsedBody,
1294
- errorCode,
1295
- });
1296
- }
1297
- };
1298
- const de_ListApplicationsCommand = async (output, context) => {
1299
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1300
- return de_ListApplicationsCommandError(output, context);
1301
- }
1302
- const contents = (0, smithy_client_1.map)({
1303
- $metadata: deserializeMetadata(output),
1304
- });
1305
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1306
- const doc = (0, smithy_client_1.take)(data, {
1307
- applications: (_) => de_ApplicationSummaryList(_, context),
1308
- nextToken: smithy_client_1.expectString,
1309
- });
1310
- Object.assign(contents, doc);
1311
- return contents;
1312
- };
1313
- exports.de_ListApplicationsCommand = de_ListApplicationsCommand;
1314
- const de_ListApplicationsCommandError = async (output, context) => {
1315
- const parsedOutput = {
1316
- ...output,
1317
- body: await parseErrorBody(output.body, context),
1318
- };
1319
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1320
- switch (errorCode) {
1321
- case "AccessDeniedException":
1322
- case "com.amazonaws.m2#AccessDeniedException":
1323
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1324
- case "InternalServerException":
1325
- case "com.amazonaws.m2#InternalServerException":
1326
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1327
- case "ThrottlingException":
1328
- case "com.amazonaws.m2#ThrottlingException":
1329
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1330
- case "ValidationException":
1331
- case "com.amazonaws.m2#ValidationException":
1332
- throw await de_ValidationExceptionRes(parsedOutput, context);
1333
- default:
1334
- const parsedBody = parsedOutput.body;
1335
- return throwDefaultError({
1336
- output,
1337
- parsedBody,
1338
- errorCode,
1339
- });
1340
- }
1341
- };
1342
- const de_ListApplicationVersionsCommand = async (output, context) => {
1343
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1344
- return de_ListApplicationVersionsCommandError(output, context);
1345
- }
1346
- const contents = (0, smithy_client_1.map)({
1347
- $metadata: deserializeMetadata(output),
1348
- });
1349
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1350
- const doc = (0, smithy_client_1.take)(data, {
1351
- applicationVersions: (_) => de_ApplicationVersionSummaryList(_, context),
1352
- nextToken: smithy_client_1.expectString,
1353
- });
1354
- Object.assign(contents, doc);
1355
- return contents;
1356
- };
1357
- exports.de_ListApplicationVersionsCommand = de_ListApplicationVersionsCommand;
1358
- const de_ListApplicationVersionsCommandError = async (output, context) => {
1359
- const parsedOutput = {
1360
- ...output,
1361
- body: await parseErrorBody(output.body, context),
1362
- };
1363
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1364
- switch (errorCode) {
1365
- case "AccessDeniedException":
1366
- case "com.amazonaws.m2#AccessDeniedException":
1367
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1368
- case "InternalServerException":
1369
- case "com.amazonaws.m2#InternalServerException":
1370
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1371
- case "ResourceNotFoundException":
1372
- case "com.amazonaws.m2#ResourceNotFoundException":
1373
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1374
- case "ThrottlingException":
1375
- case "com.amazonaws.m2#ThrottlingException":
1376
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1377
- case "ValidationException":
1378
- case "com.amazonaws.m2#ValidationException":
1379
- throw await de_ValidationExceptionRes(parsedOutput, context);
1380
- default:
1381
- const parsedBody = parsedOutput.body;
1382
- return throwDefaultError({
1383
- output,
1384
- parsedBody,
1385
- errorCode,
1386
- });
1387
- }
1388
- };
1389
- const de_ListBatchJobDefinitionsCommand = async (output, context) => {
1390
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1391
- return de_ListBatchJobDefinitionsCommandError(output, context);
1392
- }
1393
- const contents = (0, smithy_client_1.map)({
1394
- $metadata: deserializeMetadata(output),
1395
- });
1396
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1397
- const doc = (0, smithy_client_1.take)(data, {
1398
- batchJobDefinitions: smithy_client_1._json,
1399
- nextToken: smithy_client_1.expectString,
1400
- });
1401
- Object.assign(contents, doc);
1402
- return contents;
1403
- };
1404
- exports.de_ListBatchJobDefinitionsCommand = de_ListBatchJobDefinitionsCommand;
1405
- const de_ListBatchJobDefinitionsCommandError = async (output, context) => {
1406
- const parsedOutput = {
1407
- ...output,
1408
- body: await parseErrorBody(output.body, context),
1409
- };
1410
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1411
- switch (errorCode) {
1412
- case "AccessDeniedException":
1413
- case "com.amazonaws.m2#AccessDeniedException":
1414
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1415
- case "InternalServerException":
1416
- case "com.amazonaws.m2#InternalServerException":
1417
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1418
- case "ResourceNotFoundException":
1419
- case "com.amazonaws.m2#ResourceNotFoundException":
1420
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1421
- case "ThrottlingException":
1422
- case "com.amazonaws.m2#ThrottlingException":
1423
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1424
- case "ValidationException":
1425
- case "com.amazonaws.m2#ValidationException":
1426
- throw await de_ValidationExceptionRes(parsedOutput, context);
1427
- default:
1428
- const parsedBody = parsedOutput.body;
1429
- return throwDefaultError({
1430
- output,
1431
- parsedBody,
1432
- errorCode,
1433
- });
1434
- }
1435
- };
1436
- const de_ListBatchJobExecutionsCommand = async (output, context) => {
1437
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1438
- return de_ListBatchJobExecutionsCommandError(output, context);
1439
- }
1440
- const contents = (0, smithy_client_1.map)({
1441
- $metadata: deserializeMetadata(output),
1442
- });
1443
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1444
- const doc = (0, smithy_client_1.take)(data, {
1445
- batchJobExecutions: (_) => de_BatchJobExecutionSummaryList(_, context),
1446
- nextToken: smithy_client_1.expectString,
1447
- });
1448
- Object.assign(contents, doc);
1449
- return contents;
1450
- };
1451
- exports.de_ListBatchJobExecutionsCommand = de_ListBatchJobExecutionsCommand;
1452
- const de_ListBatchJobExecutionsCommandError = async (output, context) => {
1453
- const parsedOutput = {
1454
- ...output,
1455
- body: await parseErrorBody(output.body, context),
1456
- };
1457
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1458
- switch (errorCode) {
1459
- case "AccessDeniedException":
1460
- case "com.amazonaws.m2#AccessDeniedException":
1461
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1462
- case "InternalServerException":
1463
- case "com.amazonaws.m2#InternalServerException":
1464
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1465
- case "ResourceNotFoundException":
1466
- case "com.amazonaws.m2#ResourceNotFoundException":
1467
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1468
- case "ThrottlingException":
1469
- case "com.amazonaws.m2#ThrottlingException":
1470
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1471
- case "ValidationException":
1472
- case "com.amazonaws.m2#ValidationException":
1473
- throw await de_ValidationExceptionRes(parsedOutput, context);
1474
- default:
1475
- const parsedBody = parsedOutput.body;
1476
- return throwDefaultError({
1477
- output,
1478
- parsedBody,
1479
- errorCode,
1480
- });
1481
- }
1482
- };
1483
- const de_ListDataSetImportHistoryCommand = async (output, context) => {
1484
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1485
- return de_ListDataSetImportHistoryCommandError(output, context);
1486
- }
1487
- const contents = (0, smithy_client_1.map)({
1488
- $metadata: deserializeMetadata(output),
1489
- });
1490
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1491
- const doc = (0, smithy_client_1.take)(data, {
1492
- dataSetImportTasks: smithy_client_1._json,
1493
- nextToken: smithy_client_1.expectString,
1494
- });
1495
- Object.assign(contents, doc);
1496
- return contents;
1497
- };
1498
- exports.de_ListDataSetImportHistoryCommand = de_ListDataSetImportHistoryCommand;
1499
- const de_ListDataSetImportHistoryCommandError = async (output, context) => {
1500
- const parsedOutput = {
1501
- ...output,
1502
- body: await parseErrorBody(output.body, context),
1503
- };
1504
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1505
- switch (errorCode) {
1506
- case "AccessDeniedException":
1507
- case "com.amazonaws.m2#AccessDeniedException":
1508
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1509
- case "InternalServerException":
1510
- case "com.amazonaws.m2#InternalServerException":
1511
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1512
- case "ResourceNotFoundException":
1513
- case "com.amazonaws.m2#ResourceNotFoundException":
1514
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1515
- case "ThrottlingException":
1516
- case "com.amazonaws.m2#ThrottlingException":
1517
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1518
- case "ValidationException":
1519
- case "com.amazonaws.m2#ValidationException":
1520
- throw await de_ValidationExceptionRes(parsedOutput, context);
1521
- default:
1522
- const parsedBody = parsedOutput.body;
1523
- return throwDefaultError({
1524
- output,
1525
- parsedBody,
1526
- errorCode,
1527
- });
1528
- }
1529
- };
1530
- const de_ListDataSetsCommand = async (output, context) => {
1531
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1532
- return de_ListDataSetsCommandError(output, context);
1533
- }
1534
- const contents = (0, smithy_client_1.map)({
1535
- $metadata: deserializeMetadata(output),
1536
- });
1537
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1538
- const doc = (0, smithy_client_1.take)(data, {
1539
- dataSets: (_) => de_DataSetsSummaryList(_, context),
1540
- nextToken: smithy_client_1.expectString,
1541
- });
1542
- Object.assign(contents, doc);
1543
- return contents;
1544
- };
1545
- exports.de_ListDataSetsCommand = de_ListDataSetsCommand;
1546
- const de_ListDataSetsCommandError = async (output, context) => {
1547
- const parsedOutput = {
1548
- ...output,
1549
- body: await parseErrorBody(output.body, context),
1550
- };
1551
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1552
- switch (errorCode) {
1553
- case "AccessDeniedException":
1554
- case "com.amazonaws.m2#AccessDeniedException":
1555
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1556
- case "ConflictException":
1557
- case "com.amazonaws.m2#ConflictException":
1558
- throw await de_ConflictExceptionRes(parsedOutput, context);
1559
- case "ExecutionTimeoutException":
1560
- case "com.amazonaws.m2#ExecutionTimeoutException":
1561
- throw await de_ExecutionTimeoutExceptionRes(parsedOutput, context);
1562
- case "InternalServerException":
1563
- case "com.amazonaws.m2#InternalServerException":
1564
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1565
- case "ResourceNotFoundException":
1566
- case "com.amazonaws.m2#ResourceNotFoundException":
1567
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1568
- case "ServiceUnavailableException":
1569
- case "com.amazonaws.m2#ServiceUnavailableException":
1570
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1571
- case "ThrottlingException":
1572
- case "com.amazonaws.m2#ThrottlingException":
1573
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1574
- case "ValidationException":
1575
- case "com.amazonaws.m2#ValidationException":
1576
- throw await de_ValidationExceptionRes(parsedOutput, context);
1577
- default:
1578
- const parsedBody = parsedOutput.body;
1579
- return throwDefaultError({
1580
- output,
1581
- parsedBody,
1582
- errorCode,
1583
- });
1584
- }
1585
- };
1586
- const de_ListDeploymentsCommand = async (output, context) => {
1587
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1588
- return de_ListDeploymentsCommandError(output, context);
1589
- }
1590
- const contents = (0, smithy_client_1.map)({
1591
- $metadata: deserializeMetadata(output),
1592
- });
1593
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1594
- const doc = (0, smithy_client_1.take)(data, {
1595
- deployments: (_) => de_DeploymentList(_, context),
1596
- nextToken: smithy_client_1.expectString,
1597
- });
1598
- Object.assign(contents, doc);
1599
- return contents;
1600
- };
1601
- exports.de_ListDeploymentsCommand = de_ListDeploymentsCommand;
1602
- const de_ListDeploymentsCommandError = async (output, context) => {
1603
- const parsedOutput = {
1604
- ...output,
1605
- body: await parseErrorBody(output.body, context),
1606
- };
1607
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1608
- switch (errorCode) {
1609
- case "AccessDeniedException":
1610
- case "com.amazonaws.m2#AccessDeniedException":
1611
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1612
- case "InternalServerException":
1613
- case "com.amazonaws.m2#InternalServerException":
1614
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1615
- case "ResourceNotFoundException":
1616
- case "com.amazonaws.m2#ResourceNotFoundException":
1617
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1618
- case "ThrottlingException":
1619
- case "com.amazonaws.m2#ThrottlingException":
1620
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1621
- case "ValidationException":
1622
- case "com.amazonaws.m2#ValidationException":
1623
- throw await de_ValidationExceptionRes(parsedOutput, context);
1624
- default:
1625
- const parsedBody = parsedOutput.body;
1626
- return throwDefaultError({
1627
- output,
1628
- parsedBody,
1629
- errorCode,
1630
- });
1631
- }
1632
- };
1633
- const de_ListEngineVersionsCommand = async (output, context) => {
1634
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1635
- return de_ListEngineVersionsCommandError(output, context);
1636
- }
1637
- const contents = (0, smithy_client_1.map)({
1638
- $metadata: deserializeMetadata(output),
1639
- });
1640
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1641
- const doc = (0, smithy_client_1.take)(data, {
1642
- engineVersions: smithy_client_1._json,
1643
- nextToken: smithy_client_1.expectString,
1644
- });
1645
- Object.assign(contents, doc);
1646
- return contents;
1647
- };
1648
- exports.de_ListEngineVersionsCommand = de_ListEngineVersionsCommand;
1649
- const de_ListEngineVersionsCommandError = async (output, context) => {
1650
- const parsedOutput = {
1651
- ...output,
1652
- body: await parseErrorBody(output.body, context),
1653
- };
1654
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1655
- switch (errorCode) {
1656
- case "AccessDeniedException":
1657
- case "com.amazonaws.m2#AccessDeniedException":
1658
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1659
- case "InternalServerException":
1660
- case "com.amazonaws.m2#InternalServerException":
1661
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1662
- case "ThrottlingException":
1663
- case "com.amazonaws.m2#ThrottlingException":
1664
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1665
- case "ValidationException":
1666
- case "com.amazonaws.m2#ValidationException":
1667
- throw await de_ValidationExceptionRes(parsedOutput, context);
1668
- default:
1669
- const parsedBody = parsedOutput.body;
1670
- return throwDefaultError({
1671
- output,
1672
- parsedBody,
1673
- errorCode,
1674
- });
1675
- }
1676
- };
1677
- const de_ListEnvironmentsCommand = async (output, context) => {
1678
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1679
- return de_ListEnvironmentsCommandError(output, context);
1680
- }
1681
- const contents = (0, smithy_client_1.map)({
1682
- $metadata: deserializeMetadata(output),
1683
- });
1684
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1685
- const doc = (0, smithy_client_1.take)(data, {
1686
- environments: (_) => de_EnvironmentSummaryList(_, context),
1687
- nextToken: smithy_client_1.expectString,
1688
- });
1689
- Object.assign(contents, doc);
1690
- return contents;
1691
- };
1692
- exports.de_ListEnvironmentsCommand = de_ListEnvironmentsCommand;
1693
- const de_ListEnvironmentsCommandError = async (output, context) => {
1694
- const parsedOutput = {
1695
- ...output,
1696
- body: await parseErrorBody(output.body, context),
1697
- };
1698
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1699
- switch (errorCode) {
1700
- case "AccessDeniedException":
1701
- case "com.amazonaws.m2#AccessDeniedException":
1702
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1703
- case "InternalServerException":
1704
- case "com.amazonaws.m2#InternalServerException":
1705
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1706
- case "ThrottlingException":
1707
- case "com.amazonaws.m2#ThrottlingException":
1708
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1709
- case "ValidationException":
1710
- case "com.amazonaws.m2#ValidationException":
1711
- throw await de_ValidationExceptionRes(parsedOutput, context);
1712
- default:
1713
- const parsedBody = parsedOutput.body;
1714
- return throwDefaultError({
1715
- output,
1716
- parsedBody,
1717
- errorCode,
1718
- });
1719
- }
1720
- };
1721
- const de_ListTagsForResourceCommand = async (output, context) => {
1722
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1723
- return de_ListTagsForResourceCommandError(output, context);
1724
- }
1725
- const contents = (0, smithy_client_1.map)({
1726
- $metadata: deserializeMetadata(output),
1727
- });
1728
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1729
- const doc = (0, smithy_client_1.take)(data, {
1730
- tags: smithy_client_1._json,
1731
- });
1732
- Object.assign(contents, doc);
1733
- return contents;
1734
- };
1735
- exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
1736
- const de_ListTagsForResourceCommandError = async (output, context) => {
1737
- const parsedOutput = {
1738
- ...output,
1739
- body: await parseErrorBody(output.body, context),
1740
- };
1741
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1742
- switch (errorCode) {
1743
- case "AccessDeniedException":
1744
- case "com.amazonaws.m2#AccessDeniedException":
1745
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1746
- case "InternalServerException":
1747
- case "com.amazonaws.m2#InternalServerException":
1748
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1749
- case "ResourceNotFoundException":
1750
- case "com.amazonaws.m2#ResourceNotFoundException":
1751
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1752
- case "ThrottlingException":
1753
- case "com.amazonaws.m2#ThrottlingException":
1754
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1755
- case "ValidationException":
1756
- case "com.amazonaws.m2#ValidationException":
1757
- throw await de_ValidationExceptionRes(parsedOutput, context);
1758
- default:
1759
- const parsedBody = parsedOutput.body;
1760
- return throwDefaultError({
1761
- output,
1762
- parsedBody,
1763
- errorCode,
1764
- });
1765
- }
1766
- };
1767
- const de_StartApplicationCommand = async (output, context) => {
1768
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1769
- return de_StartApplicationCommandError(output, context);
1770
- }
1771
- const contents = (0, smithy_client_1.map)({
1772
- $metadata: deserializeMetadata(output),
1773
- });
1774
- await (0, smithy_client_1.collectBody)(output.body, context);
1775
- return contents;
1776
- };
1777
- exports.de_StartApplicationCommand = de_StartApplicationCommand;
1778
- const de_StartApplicationCommandError = async (output, context) => {
1779
- const parsedOutput = {
1780
- ...output,
1781
- body: await parseErrorBody(output.body, context),
1782
- };
1783
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1784
- switch (errorCode) {
1785
- case "AccessDeniedException":
1786
- case "com.amazonaws.m2#AccessDeniedException":
1787
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1788
- case "ConflictException":
1789
- case "com.amazonaws.m2#ConflictException":
1790
- throw await de_ConflictExceptionRes(parsedOutput, context);
1791
- case "InternalServerException":
1792
- case "com.amazonaws.m2#InternalServerException":
1793
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1794
- case "ResourceNotFoundException":
1795
- case "com.amazonaws.m2#ResourceNotFoundException":
1796
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1797
- case "ThrottlingException":
1798
- case "com.amazonaws.m2#ThrottlingException":
1799
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1800
- case "ValidationException":
1801
- case "com.amazonaws.m2#ValidationException":
1802
- throw await de_ValidationExceptionRes(parsedOutput, context);
1803
- default:
1804
- const parsedBody = parsedOutput.body;
1805
- return throwDefaultError({
1806
- output,
1807
- parsedBody,
1808
- errorCode,
1809
- });
1810
- }
1811
- };
1812
- const de_StartBatchJobCommand = async (output, context) => {
1813
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1814
- return de_StartBatchJobCommandError(output, context);
1815
- }
1816
- const contents = (0, smithy_client_1.map)({
1817
- $metadata: deserializeMetadata(output),
1818
- });
1819
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1820
- const doc = (0, smithy_client_1.take)(data, {
1821
- executionId: smithy_client_1.expectString,
1822
- });
1823
- Object.assign(contents, doc);
1824
- return contents;
1825
- };
1826
- exports.de_StartBatchJobCommand = de_StartBatchJobCommand;
1827
- const de_StartBatchJobCommandError = async (output, context) => {
1828
- const parsedOutput = {
1829
- ...output,
1830
- body: await parseErrorBody(output.body, context),
1831
- };
1832
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1833
- switch (errorCode) {
1834
- case "AccessDeniedException":
1835
- case "com.amazonaws.m2#AccessDeniedException":
1836
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1837
- case "ConflictException":
1838
- case "com.amazonaws.m2#ConflictException":
1839
- throw await de_ConflictExceptionRes(parsedOutput, context);
1840
- case "InternalServerException":
1841
- case "com.amazonaws.m2#InternalServerException":
1842
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1843
- case "ResourceNotFoundException":
1844
- case "com.amazonaws.m2#ResourceNotFoundException":
1845
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1846
- case "ThrottlingException":
1847
- case "com.amazonaws.m2#ThrottlingException":
1848
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1849
- case "ValidationException":
1850
- case "com.amazonaws.m2#ValidationException":
1851
- throw await de_ValidationExceptionRes(parsedOutput, context);
1852
- default:
1853
- const parsedBody = parsedOutput.body;
1854
- return throwDefaultError({
1855
- output,
1856
- parsedBody,
1857
- errorCode,
1858
- });
1859
- }
1860
- };
1861
- const de_StopApplicationCommand = async (output, context) => {
1862
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1863
- return de_StopApplicationCommandError(output, context);
1864
- }
1865
- const contents = (0, smithy_client_1.map)({
1866
- $metadata: deserializeMetadata(output),
1867
- });
1868
- await (0, smithy_client_1.collectBody)(output.body, context);
1869
- return contents;
1870
- };
1871
- exports.de_StopApplicationCommand = de_StopApplicationCommand;
1872
- const de_StopApplicationCommandError = async (output, context) => {
1873
- const parsedOutput = {
1874
- ...output,
1875
- body: await parseErrorBody(output.body, context),
1876
- };
1877
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1878
- switch (errorCode) {
1879
- case "AccessDeniedException":
1880
- case "com.amazonaws.m2#AccessDeniedException":
1881
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1882
- case "ConflictException":
1883
- case "com.amazonaws.m2#ConflictException":
1884
- throw await de_ConflictExceptionRes(parsedOutput, context);
1885
- case "InternalServerException":
1886
- case "com.amazonaws.m2#InternalServerException":
1887
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1888
- case "ResourceNotFoundException":
1889
- case "com.amazonaws.m2#ResourceNotFoundException":
1890
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1891
- case "ThrottlingException":
1892
- case "com.amazonaws.m2#ThrottlingException":
1893
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1894
- case "ValidationException":
1895
- case "com.amazonaws.m2#ValidationException":
1896
- throw await de_ValidationExceptionRes(parsedOutput, context);
1897
- default:
1898
- const parsedBody = parsedOutput.body;
1899
- return throwDefaultError({
1900
- output,
1901
- parsedBody,
1902
- errorCode,
1903
- });
1904
- }
1905
- };
1906
- const de_TagResourceCommand = async (output, context) => {
1907
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1908
- return de_TagResourceCommandError(output, context);
1909
- }
1910
- const contents = (0, smithy_client_1.map)({
1911
- $metadata: deserializeMetadata(output),
1912
- });
1913
- await (0, smithy_client_1.collectBody)(output.body, context);
1914
- return contents;
1915
- };
1916
- exports.de_TagResourceCommand = de_TagResourceCommand;
1917
- const de_TagResourceCommandError = async (output, context) => {
1918
- const parsedOutput = {
1919
- ...output,
1920
- body: await parseErrorBody(output.body, context),
1921
- };
1922
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1923
- switch (errorCode) {
1924
- case "AccessDeniedException":
1925
- case "com.amazonaws.m2#AccessDeniedException":
1926
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1927
- case "InternalServerException":
1928
- case "com.amazonaws.m2#InternalServerException":
1929
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1930
- case "ResourceNotFoundException":
1931
- case "com.amazonaws.m2#ResourceNotFoundException":
1932
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1933
- case "ServiceQuotaExceededException":
1934
- case "com.amazonaws.m2#ServiceQuotaExceededException":
1935
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1936
- case "ThrottlingException":
1937
- case "com.amazonaws.m2#ThrottlingException":
1938
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1939
- case "ValidationException":
1940
- case "com.amazonaws.m2#ValidationException":
1941
- throw await de_ValidationExceptionRes(parsedOutput, context);
1942
- default:
1943
- const parsedBody = parsedOutput.body;
1944
- return throwDefaultError({
1945
- output,
1946
- parsedBody,
1947
- errorCode,
1948
- });
1949
- }
1950
- };
1951
- const de_UntagResourceCommand = async (output, context) => {
1952
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1953
- return de_UntagResourceCommandError(output, context);
1954
- }
1955
- const contents = (0, smithy_client_1.map)({
1956
- $metadata: deserializeMetadata(output),
1957
- });
1958
- await (0, smithy_client_1.collectBody)(output.body, context);
1959
- return contents;
1960
- };
1961
- exports.de_UntagResourceCommand = de_UntagResourceCommand;
1962
- const de_UntagResourceCommandError = async (output, context) => {
1963
- const parsedOutput = {
1964
- ...output,
1965
- body: await parseErrorBody(output.body, context),
1966
- };
1967
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1968
- switch (errorCode) {
1969
- case "AccessDeniedException":
1970
- case "com.amazonaws.m2#AccessDeniedException":
1971
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1972
- case "InternalServerException":
1973
- case "com.amazonaws.m2#InternalServerException":
1974
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1975
- case "ResourceNotFoundException":
1976
- case "com.amazonaws.m2#ResourceNotFoundException":
1977
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1978
- case "ThrottlingException":
1979
- case "com.amazonaws.m2#ThrottlingException":
1980
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1981
- case "ValidationException":
1982
- case "com.amazonaws.m2#ValidationException":
1983
- throw await de_ValidationExceptionRes(parsedOutput, context);
1984
- default:
1985
- const parsedBody = parsedOutput.body;
1986
- return throwDefaultError({
1987
- output,
1988
- parsedBody,
1989
- errorCode,
1990
- });
1991
- }
1992
- };
1993
- const de_UpdateApplicationCommand = async (output, context) => {
1994
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1995
- return de_UpdateApplicationCommandError(output, context);
1996
- }
1997
- const contents = (0, smithy_client_1.map)({
1998
- $metadata: deserializeMetadata(output),
1999
- });
2000
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2001
- const doc = (0, smithy_client_1.take)(data, {
2002
- applicationVersion: smithy_client_1.expectInt32,
2003
- });
2004
- Object.assign(contents, doc);
2005
- return contents;
2006
- };
2007
- exports.de_UpdateApplicationCommand = de_UpdateApplicationCommand;
2008
- const de_UpdateApplicationCommandError = async (output, context) => {
2009
- const parsedOutput = {
2010
- ...output,
2011
- body: await parseErrorBody(output.body, context),
2012
- };
2013
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2014
- switch (errorCode) {
2015
- case "AccessDeniedException":
2016
- case "com.amazonaws.m2#AccessDeniedException":
2017
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2018
- case "ConflictException":
2019
- case "com.amazonaws.m2#ConflictException":
2020
- throw await de_ConflictExceptionRes(parsedOutput, context);
2021
- case "InternalServerException":
2022
- case "com.amazonaws.m2#InternalServerException":
2023
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2024
- case "ResourceNotFoundException":
2025
- case "com.amazonaws.m2#ResourceNotFoundException":
2026
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2027
- case "ThrottlingException":
2028
- case "com.amazonaws.m2#ThrottlingException":
2029
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2030
- case "ValidationException":
2031
- case "com.amazonaws.m2#ValidationException":
2032
- throw await de_ValidationExceptionRes(parsedOutput, context);
2033
- default:
2034
- const parsedBody = parsedOutput.body;
2035
- return throwDefaultError({
2036
- output,
2037
- parsedBody,
2038
- errorCode,
2039
- });
2040
- }
2041
- };
2042
- const de_UpdateEnvironmentCommand = async (output, context) => {
2043
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2044
- return de_UpdateEnvironmentCommandError(output, context);
2045
- }
2046
- const contents = (0, smithy_client_1.map)({
2047
- $metadata: deserializeMetadata(output),
2048
- });
2049
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2050
- const doc = (0, smithy_client_1.take)(data, {
2051
- environmentId: smithy_client_1.expectString,
2052
- });
2053
- Object.assign(contents, doc);
2054
- return contents;
2055
- };
2056
- exports.de_UpdateEnvironmentCommand = de_UpdateEnvironmentCommand;
2057
- const de_UpdateEnvironmentCommandError = async (output, context) => {
2058
- const parsedOutput = {
2059
- ...output,
2060
- body: await parseErrorBody(output.body, context),
2061
- };
2062
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2063
- switch (errorCode) {
2064
- case "AccessDeniedException":
2065
- case "com.amazonaws.m2#AccessDeniedException":
2066
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2067
- case "ConflictException":
2068
- case "com.amazonaws.m2#ConflictException":
2069
- throw await de_ConflictExceptionRes(parsedOutput, context);
2070
- case "InternalServerException":
2071
- case "com.amazonaws.m2#InternalServerException":
2072
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2073
- case "ResourceNotFoundException":
2074
- case "com.amazonaws.m2#ResourceNotFoundException":
2075
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2076
- case "ServiceQuotaExceededException":
2077
- case "com.amazonaws.m2#ServiceQuotaExceededException":
2078
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2079
- case "ThrottlingException":
2080
- case "com.amazonaws.m2#ThrottlingException":
2081
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2082
- case "ValidationException":
2083
- case "com.amazonaws.m2#ValidationException":
2084
- throw await de_ValidationExceptionRes(parsedOutput, context);
2085
- default:
2086
- const parsedBody = parsedOutput.body;
2087
- return throwDefaultError({
2088
- output,
2089
- parsedBody,
2090
- errorCode,
2091
- });
2092
- }
2093
- };
2094
- const throwDefaultError = (0, smithy_client_1.withBaseException)(M2ServiceException_1.M2ServiceException);
2095
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
2096
- const contents = (0, smithy_client_1.map)({});
2097
- const data = parsedOutput.body;
2098
- const doc = (0, smithy_client_1.take)(data, {
2099
- message: smithy_client_1.expectString,
2100
- });
2101
- Object.assign(contents, doc);
2102
- const exception = new models_0_1.AccessDeniedException({
2103
- $metadata: deserializeMetadata(parsedOutput),
2104
- ...contents,
2105
- });
2106
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2107
- };
2108
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
2109
- const contents = (0, smithy_client_1.map)({});
2110
- const data = parsedOutput.body;
2111
- const doc = (0, smithy_client_1.take)(data, {
2112
- message: smithy_client_1.expectString,
2113
- resourceId: smithy_client_1.expectString,
2114
- resourceType: smithy_client_1.expectString,
2115
- });
2116
- Object.assign(contents, doc);
2117
- const exception = new models_0_1.ConflictException({
2118
- $metadata: deserializeMetadata(parsedOutput),
2119
- ...contents,
2120
- });
2121
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2122
- };
2123
- const de_ExecutionTimeoutExceptionRes = async (parsedOutput, context) => {
2124
- const contents = (0, smithy_client_1.map)({});
2125
- const data = parsedOutput.body;
2126
- const doc = (0, smithy_client_1.take)(data, {
2127
- message: smithy_client_1.expectString,
2128
- });
2129
- Object.assign(contents, doc);
2130
- const exception = new models_0_1.ExecutionTimeoutException({
2131
- $metadata: deserializeMetadata(parsedOutput),
2132
- ...contents,
2133
- });
2134
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2135
- };
2136
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
2137
- const contents = (0, smithy_client_1.map)({
2138
- [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
2139
- });
2140
- const data = parsedOutput.body;
2141
- const doc = (0, smithy_client_1.take)(data, {
2142
- message: smithy_client_1.expectString,
2143
- });
2144
- Object.assign(contents, doc);
2145
- const exception = new models_0_1.InternalServerException({
2146
- $metadata: deserializeMetadata(parsedOutput),
2147
- ...contents,
2148
- });
2149
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2150
- };
2151
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
2152
- const contents = (0, smithy_client_1.map)({});
2153
- const data = parsedOutput.body;
2154
- const doc = (0, smithy_client_1.take)(data, {
2155
- message: smithy_client_1.expectString,
2156
- resourceId: smithy_client_1.expectString,
2157
- resourceType: smithy_client_1.expectString,
2158
- });
2159
- Object.assign(contents, doc);
2160
- const exception = new models_0_1.ResourceNotFoundException({
2161
- $metadata: deserializeMetadata(parsedOutput),
2162
- ...contents,
2163
- });
2164
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2165
- };
2166
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
2167
- const contents = (0, smithy_client_1.map)({});
2168
- const data = parsedOutput.body;
2169
- const doc = (0, smithy_client_1.take)(data, {
2170
- message: smithy_client_1.expectString,
2171
- quotaCode: smithy_client_1.expectString,
2172
- resourceId: smithy_client_1.expectString,
2173
- resourceType: smithy_client_1.expectString,
2174
- serviceCode: smithy_client_1.expectString,
2175
- });
2176
- Object.assign(contents, doc);
2177
- const exception = new models_0_1.ServiceQuotaExceededException({
2178
- $metadata: deserializeMetadata(parsedOutput),
2179
- ...contents,
2180
- });
2181
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2182
- };
2183
- const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
2184
- const contents = (0, smithy_client_1.map)({});
2185
- const data = parsedOutput.body;
2186
- const doc = (0, smithy_client_1.take)(data, {
2187
- message: smithy_client_1.expectString,
2188
- });
2189
- Object.assign(contents, doc);
2190
- const exception = new models_0_1.ServiceUnavailableException({
2191
- $metadata: deserializeMetadata(parsedOutput),
2192
- ...contents,
2193
- });
2194
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2195
- };
2196
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
2197
- const contents = (0, smithy_client_1.map)({
2198
- [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
2199
- });
2200
- const data = parsedOutput.body;
2201
- const doc = (0, smithy_client_1.take)(data, {
2202
- message: smithy_client_1.expectString,
2203
- quotaCode: smithy_client_1.expectString,
2204
- serviceCode: smithy_client_1.expectString,
2205
- });
2206
- Object.assign(contents, doc);
2207
- const exception = new models_0_1.ThrottlingException({
2208
- $metadata: deserializeMetadata(parsedOutput),
2209
- ...contents,
2210
- });
2211
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2212
- };
2213
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
2214
- const contents = (0, smithy_client_1.map)({});
2215
- const data = parsedOutput.body;
2216
- const doc = (0, smithy_client_1.take)(data, {
2217
- fieldList: smithy_client_1._json,
2218
- message: smithy_client_1.expectString,
2219
- reason: smithy_client_1.expectString,
2220
- });
2221
- Object.assign(contents, doc);
2222
- const exception = new models_0_1.ValidationException({
2223
- $metadata: deserializeMetadata(parsedOutput),
2224
- ...contents,
2225
- });
2226
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2227
- };
2228
- const se_EfsStorageConfiguration = (input, context) => {
2229
- return (0, smithy_client_1.take)(input, {
2230
- "file-system-id": [, , `fileSystemId`],
2231
- "mount-point": [, , `mountPoint`],
2232
- });
2233
- };
2234
- const se_FsxStorageConfiguration = (input, context) => {
2235
- return (0, smithy_client_1.take)(input, {
2236
- "file-system-id": [, , `fileSystemId`],
2237
- "mount-point": [, , `mountPoint`],
2238
- });
2239
- };
2240
- const se_StorageConfiguration = (input, context) => {
2241
- return models_0_1.StorageConfiguration.visit(input, {
2242
- efs: (value) => ({ efs: se_EfsStorageConfiguration(value, context) }),
2243
- fsx: (value) => ({ fsx: se_FsxStorageConfiguration(value, context) }),
2244
- _: (name, value) => ({ name: value }),
2245
- });
2246
- };
2247
- const se_StorageConfigurationList = (input, context) => {
2248
- return input
2249
- .filter((e) => e != null)
2250
- .map((entry) => {
2251
- return se_StorageConfiguration(entry, context);
2252
- });
2253
- };
2254
- const de_ApplicationSummary = (output, context) => {
2255
- return (0, smithy_client_1.take)(output, {
2256
- applicationArn: smithy_client_1.expectString,
2257
- applicationId: smithy_client_1.expectString,
2258
- applicationVersion: smithy_client_1.expectInt32,
2259
- creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2260
- deploymentStatus: smithy_client_1.expectString,
2261
- description: smithy_client_1.expectString,
2262
- engineType: smithy_client_1.expectString,
2263
- environmentId: smithy_client_1.expectString,
2264
- lastStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2265
- name: smithy_client_1.expectString,
2266
- roleArn: smithy_client_1.expectString,
2267
- status: smithy_client_1.expectString,
2268
- versionStatus: smithy_client_1.expectString,
2269
- });
2270
- };
2271
- const de_ApplicationSummaryList = (output, context) => {
2272
- const retVal = (output || [])
2273
- .filter((e) => e != null)
2274
- .map((entry) => {
2275
- return de_ApplicationSummary(entry, context);
2276
- });
2277
- return retVal;
2278
- };
2279
- const de_ApplicationVersionSummary = (output, context) => {
2280
- return (0, smithy_client_1.take)(output, {
2281
- applicationVersion: smithy_client_1.expectInt32,
2282
- creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2283
- status: smithy_client_1.expectString,
2284
- statusReason: smithy_client_1.expectString,
2285
- });
2286
- };
2287
- const de_ApplicationVersionSummaryList = (output, context) => {
2288
- const retVal = (output || [])
2289
- .filter((e) => e != null)
2290
- .map((entry) => {
2291
- return de_ApplicationVersionSummary(entry, context);
2292
- });
2293
- return retVal;
2294
- };
2295
- const de_BatchJobExecutionSummary = (output, context) => {
2296
- return (0, smithy_client_1.take)(output, {
2297
- applicationId: smithy_client_1.expectString,
2298
- batchJobIdentifier: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
2299
- endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2300
- executionId: smithy_client_1.expectString,
2301
- jobId: smithy_client_1.expectString,
2302
- jobName: smithy_client_1.expectString,
2303
- jobType: smithy_client_1.expectString,
2304
- returnCode: smithy_client_1.expectString,
2305
- startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2306
- status: smithy_client_1.expectString,
2307
- });
2308
- };
2309
- const de_BatchJobExecutionSummaryList = (output, context) => {
2310
- const retVal = (output || [])
2311
- .filter((e) => e != null)
2312
- .map((entry) => {
2313
- return de_BatchJobExecutionSummary(entry, context);
2314
- });
2315
- return retVal;
2316
- };
2317
- const de_DataSetsSummaryList = (output, context) => {
2318
- const retVal = (output || [])
2319
- .filter((e) => e != null)
2320
- .map((entry) => {
2321
- return de_DataSetSummary(entry, context);
2322
- });
2323
- return retVal;
2324
- };
2325
- const de_DataSetSummary = (output, context) => {
2326
- return (0, smithy_client_1.take)(output, {
2327
- creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2328
- dataSetName: smithy_client_1.expectString,
2329
- dataSetOrg: smithy_client_1.expectString,
2330
- format: smithy_client_1.expectString,
2331
- lastReferencedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2332
- lastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2333
- });
2334
- };
2335
- const de_DeploymentList = (output, context) => {
2336
- const retVal = (output || [])
2337
- .filter((e) => e != null)
2338
- .map((entry) => {
2339
- return de_DeploymentSummary(entry, context);
2340
- });
2341
- return retVal;
2342
- };
2343
- const de_DeploymentSummary = (output, context) => {
2344
- return (0, smithy_client_1.take)(output, {
2345
- applicationId: smithy_client_1.expectString,
2346
- applicationVersion: smithy_client_1.expectInt32,
2347
- creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2348
- deploymentId: smithy_client_1.expectString,
2349
- environmentId: smithy_client_1.expectString,
2350
- status: smithy_client_1.expectString,
2351
- statusReason: smithy_client_1.expectString,
2352
- });
2353
- };
2354
- const de_EfsStorageConfiguration = (output, context) => {
2355
- return (0, smithy_client_1.take)(output, {
2356
- fileSystemId: [, smithy_client_1.expectString, `file-system-id`],
2357
- mountPoint: [, smithy_client_1.expectString, `mount-point`],
2358
- });
2359
- };
2360
- const de_EnvironmentSummary = (output, context) => {
2361
- return (0, smithy_client_1.take)(output, {
2362
- creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2363
- engineType: smithy_client_1.expectString,
2364
- engineVersion: smithy_client_1.expectString,
2365
- environmentArn: smithy_client_1.expectString,
2366
- environmentId: smithy_client_1.expectString,
2367
- instanceType: smithy_client_1.expectString,
2368
- name: smithy_client_1.expectString,
2369
- status: smithy_client_1.expectString,
2370
- });
2371
- };
2372
- const de_EnvironmentSummaryList = (output, context) => {
2373
- const retVal = (output || [])
2374
- .filter((e) => e != null)
2375
- .map((entry) => {
2376
- return de_EnvironmentSummary(entry, context);
2377
- });
2378
- return retVal;
2379
- };
2380
- const de_FsxStorageConfiguration = (output, context) => {
2381
- return (0, smithy_client_1.take)(output, {
2382
- fileSystemId: [, smithy_client_1.expectString, `file-system-id`],
2383
- mountPoint: [, smithy_client_1.expectString, `mount-point`],
2384
- });
2385
- };
2386
- const de_MaintenanceSchedule = (output, context) => {
2387
- return (0, smithy_client_1.take)(output, {
2388
- endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2389
- startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2390
- });
2391
- };
2392
- const de_PendingMaintenance = (output, context) => {
2393
- return (0, smithy_client_1.take)(output, {
2394
- engineVersion: smithy_client_1.expectString,
2395
- schedule: (_) => de_MaintenanceSchedule(_, context),
2396
- });
2397
- };
2398
- const de_StorageConfiguration = (output, context) => {
2399
- if (output.efs != null) {
2400
- return {
2401
- efs: de_EfsStorageConfiguration(output.efs, context),
2402
- };
2403
- }
2404
- if (output.fsx != null) {
2405
- return {
2406
- fsx: de_FsxStorageConfiguration(output.fsx, context),
2407
- };
2408
- }
2409
- return { $unknown: Object.entries(output)[0] };
2410
- };
2411
- const de_StorageConfigurationList = (output, context) => {
2412
- const retVal = (output || [])
2413
- .filter((e) => e != null)
2414
- .map((entry) => {
2415
- return de_StorageConfiguration((0, core_1.awsExpectUnion)(entry), context);
2416
- });
2417
- return retVal;
2418
- };
2419
- const deserializeMetadata = (output) => ({
2420
- httpStatusCode: output.statusCode,
2421
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2422
- extendedRequestId: output.headers["x-amz-id-2"],
2423
- cfId: output.headers["x-amz-cf-id"],
2424
- });
2425
- const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
2426
- const isSerializableHeaderValue = (value) => value !== undefined &&
2427
- value !== null &&
2428
- value !== "" &&
2429
- (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
2430
- (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
2431
- const _eI = "environmentId";
2432
- const _eIx = "executionIds";
2433
- const _eT = "engineType";
2434
- const _jN = "jobName";
2435
- const _mR = "maxResults";
2436
- const _n = "names";
2437
- const _nF = "nameFilter";
2438
- const _nT = "nextToken";
2439
- const _p = "prefix";
2440
- const _rAS = "retryAfterSeconds";
2441
- const _ra = "retry-after";
2442
- const _s = "status";
2443
- const _sA = "startedAfter";
2444
- const _sB = "startedBefore";
2445
- const _tK = "tagKeys";
2446
- const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2447
- if (encoded.length) {
2448
- return JSON.parse(encoded);
2449
- }
2450
- return {};
2451
- });
2452
- const parseErrorBody = async (errorBody, context) => {
2453
- const value = await parseBody(errorBody, context);
2454
- value.message = value.message ?? value.Message;
2455
- return value;
2456
- };
2457
- const loadRestJsonErrorCode = (output, data) => {
2458
- const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
2459
- const sanitizeErrorCode = (rawValue) => {
2460
- let cleanValue = rawValue;
2461
- if (typeof cleanValue === "number") {
2462
- cleanValue = cleanValue.toString();
2463
- }
2464
- if (cleanValue.indexOf(",") >= 0) {
2465
- cleanValue = cleanValue.split(",")[0];
2466
- }
2467
- if (cleanValue.indexOf(":") >= 0) {
2468
- cleanValue = cleanValue.split(":")[0];
2469
- }
2470
- if (cleanValue.indexOf("#") >= 0) {
2471
- cleanValue = cleanValue.split("#")[1];
2472
- }
2473
- return cleanValue;
2474
- };
2475
- const headerKey = findKey(output.headers, "x-amzn-errortype");
2476
- if (headerKey !== undefined) {
2477
- return sanitizeErrorCode(output.headers[headerKey]);
2478
- }
2479
- if (data.code !== undefined) {
2480
- return sanitizeErrorCode(data.code);
2481
- }
2482
- if (data["__type"] !== undefined) {
2483
- return sanitizeErrorCode(data["__type"]);
2484
- }
2485
- };
1
+ module.exports = require("../index.js");