@aws-sdk/client-snowball 3.310.0 → 3.315.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.
@@ -1,239 +1,161 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
3
3
  import { ClusterLimitExceededException, ConflictException, Ec2RequestFailedException, InvalidAddressException, InvalidInputCombinationException, InvalidJobStateException, InvalidNextTokenException, InvalidResourceException, KMSRequestFailedException, ReturnShippingLabelAlreadyExistsException, UnsupportedAddressException, } from "../models/models_0";
4
4
  import { SnowballServiceException as __BaseException } from "../models/SnowballServiceException";
5
5
  export const se_CancelClusterCommand = async (input, context) => {
6
- const headers = {
7
- "content-type": "application/x-amz-json-1.1",
8
- "x-amz-target": "AWSIESnowballJobManagementService.CancelCluster",
9
- };
6
+ const headers = sharedHeaders("CancelCluster");
10
7
  let body;
11
- body = JSON.stringify(se_CancelClusterRequest(input, context));
8
+ body = JSON.stringify(_json(input));
12
9
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
13
10
  };
14
11
  export const se_CancelJobCommand = async (input, context) => {
15
- const headers = {
16
- "content-type": "application/x-amz-json-1.1",
17
- "x-amz-target": "AWSIESnowballJobManagementService.CancelJob",
18
- };
12
+ const headers = sharedHeaders("CancelJob");
19
13
  let body;
20
- body = JSON.stringify(se_CancelJobRequest(input, context));
14
+ body = JSON.stringify(_json(input));
21
15
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
16
  };
23
17
  export const se_CreateAddressCommand = async (input, context) => {
24
- const headers = {
25
- "content-type": "application/x-amz-json-1.1",
26
- "x-amz-target": "AWSIESnowballJobManagementService.CreateAddress",
27
- };
18
+ const headers = sharedHeaders("CreateAddress");
28
19
  let body;
29
- body = JSON.stringify(se_CreateAddressRequest(input, context));
20
+ body = JSON.stringify(_json(input));
30
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
31
22
  };
32
23
  export const se_CreateClusterCommand = async (input, context) => {
33
- const headers = {
34
- "content-type": "application/x-amz-json-1.1",
35
- "x-amz-target": "AWSIESnowballJobManagementService.CreateCluster",
36
- };
24
+ const headers = sharedHeaders("CreateCluster");
37
25
  let body;
38
- body = JSON.stringify(se_CreateClusterRequest(input, context));
26
+ body = JSON.stringify(_json(input));
39
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
40
28
  };
41
29
  export const se_CreateJobCommand = async (input, context) => {
42
- const headers = {
43
- "content-type": "application/x-amz-json-1.1",
44
- "x-amz-target": "AWSIESnowballJobManagementService.CreateJob",
45
- };
30
+ const headers = sharedHeaders("CreateJob");
46
31
  let body;
47
- body = JSON.stringify(se_CreateJobRequest(input, context));
32
+ body = JSON.stringify(_json(input));
48
33
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
49
34
  };
50
35
  export const se_CreateLongTermPricingCommand = async (input, context) => {
51
- const headers = {
52
- "content-type": "application/x-amz-json-1.1",
53
- "x-amz-target": "AWSIESnowballJobManagementService.CreateLongTermPricing",
54
- };
36
+ const headers = sharedHeaders("CreateLongTermPricing");
55
37
  let body;
56
- body = JSON.stringify(se_CreateLongTermPricingRequest(input, context));
38
+ body = JSON.stringify(_json(input));
57
39
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
58
40
  };
59
41
  export const se_CreateReturnShippingLabelCommand = async (input, context) => {
60
- const headers = {
61
- "content-type": "application/x-amz-json-1.1",
62
- "x-amz-target": "AWSIESnowballJobManagementService.CreateReturnShippingLabel",
63
- };
42
+ const headers = sharedHeaders("CreateReturnShippingLabel");
64
43
  let body;
65
- body = JSON.stringify(se_CreateReturnShippingLabelRequest(input, context));
44
+ body = JSON.stringify(_json(input));
66
45
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
67
46
  };
68
47
  export const se_DescribeAddressCommand = async (input, context) => {
69
- const headers = {
70
- "content-type": "application/x-amz-json-1.1",
71
- "x-amz-target": "AWSIESnowballJobManagementService.DescribeAddress",
72
- };
48
+ const headers = sharedHeaders("DescribeAddress");
73
49
  let body;
74
- body = JSON.stringify(se_DescribeAddressRequest(input, context));
50
+ body = JSON.stringify(_json(input));
75
51
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
76
52
  };
77
53
  export const se_DescribeAddressesCommand = async (input, context) => {
78
- const headers = {
79
- "content-type": "application/x-amz-json-1.1",
80
- "x-amz-target": "AWSIESnowballJobManagementService.DescribeAddresses",
81
- };
54
+ const headers = sharedHeaders("DescribeAddresses");
82
55
  let body;
83
- body = JSON.stringify(se_DescribeAddressesRequest(input, context));
56
+ body = JSON.stringify(_json(input));
84
57
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
85
58
  };
86
59
  export const se_DescribeClusterCommand = async (input, context) => {
87
- const headers = {
88
- "content-type": "application/x-amz-json-1.1",
89
- "x-amz-target": "AWSIESnowballJobManagementService.DescribeCluster",
90
- };
60
+ const headers = sharedHeaders("DescribeCluster");
91
61
  let body;
92
- body = JSON.stringify(se_DescribeClusterRequest(input, context));
62
+ body = JSON.stringify(_json(input));
93
63
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
94
64
  };
95
65
  export const se_DescribeJobCommand = async (input, context) => {
96
- const headers = {
97
- "content-type": "application/x-amz-json-1.1",
98
- "x-amz-target": "AWSIESnowballJobManagementService.DescribeJob",
99
- };
66
+ const headers = sharedHeaders("DescribeJob");
100
67
  let body;
101
- body = JSON.stringify(se_DescribeJobRequest(input, context));
68
+ body = JSON.stringify(_json(input));
102
69
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
103
70
  };
104
71
  export const se_DescribeReturnShippingLabelCommand = async (input, context) => {
105
- const headers = {
106
- "content-type": "application/x-amz-json-1.1",
107
- "x-amz-target": "AWSIESnowballJobManagementService.DescribeReturnShippingLabel",
108
- };
72
+ const headers = sharedHeaders("DescribeReturnShippingLabel");
109
73
  let body;
110
- body = JSON.stringify(se_DescribeReturnShippingLabelRequest(input, context));
74
+ body = JSON.stringify(_json(input));
111
75
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
112
76
  };
113
77
  export const se_GetJobManifestCommand = async (input, context) => {
114
- const headers = {
115
- "content-type": "application/x-amz-json-1.1",
116
- "x-amz-target": "AWSIESnowballJobManagementService.GetJobManifest",
117
- };
78
+ const headers = sharedHeaders("GetJobManifest");
118
79
  let body;
119
- body = JSON.stringify(se_GetJobManifestRequest(input, context));
80
+ body = JSON.stringify(_json(input));
120
81
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
121
82
  };
122
83
  export const se_GetJobUnlockCodeCommand = async (input, context) => {
123
- const headers = {
124
- "content-type": "application/x-amz-json-1.1",
125
- "x-amz-target": "AWSIESnowballJobManagementService.GetJobUnlockCode",
126
- };
84
+ const headers = sharedHeaders("GetJobUnlockCode");
127
85
  let body;
128
- body = JSON.stringify(se_GetJobUnlockCodeRequest(input, context));
86
+ body = JSON.stringify(_json(input));
129
87
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
130
88
  };
131
89
  export const se_GetSnowballUsageCommand = async (input, context) => {
132
- const headers = {
133
- "content-type": "application/x-amz-json-1.1",
134
- "x-amz-target": "AWSIESnowballJobManagementService.GetSnowballUsage",
135
- };
90
+ const headers = sharedHeaders("GetSnowballUsage");
136
91
  let body;
137
- body = JSON.stringify(se_GetSnowballUsageRequest(input, context));
92
+ body = JSON.stringify(_json(input));
138
93
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
139
94
  };
140
95
  export const se_GetSoftwareUpdatesCommand = async (input, context) => {
141
- const headers = {
142
- "content-type": "application/x-amz-json-1.1",
143
- "x-amz-target": "AWSIESnowballJobManagementService.GetSoftwareUpdates",
144
- };
96
+ const headers = sharedHeaders("GetSoftwareUpdates");
145
97
  let body;
146
- body = JSON.stringify(se_GetSoftwareUpdatesRequest(input, context));
98
+ body = JSON.stringify(_json(input));
147
99
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
148
100
  };
149
101
  export const se_ListClusterJobsCommand = async (input, context) => {
150
- const headers = {
151
- "content-type": "application/x-amz-json-1.1",
152
- "x-amz-target": "AWSIESnowballJobManagementService.ListClusterJobs",
153
- };
102
+ const headers = sharedHeaders("ListClusterJobs");
154
103
  let body;
155
- body = JSON.stringify(se_ListClusterJobsRequest(input, context));
104
+ body = JSON.stringify(_json(input));
156
105
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
157
106
  };
158
107
  export const se_ListClustersCommand = async (input, context) => {
159
- const headers = {
160
- "content-type": "application/x-amz-json-1.1",
161
- "x-amz-target": "AWSIESnowballJobManagementService.ListClusters",
162
- };
108
+ const headers = sharedHeaders("ListClusters");
163
109
  let body;
164
- body = JSON.stringify(se_ListClustersRequest(input, context));
110
+ body = JSON.stringify(_json(input));
165
111
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
166
112
  };
167
113
  export const se_ListCompatibleImagesCommand = async (input, context) => {
168
- const headers = {
169
- "content-type": "application/x-amz-json-1.1",
170
- "x-amz-target": "AWSIESnowballJobManagementService.ListCompatibleImages",
171
- };
114
+ const headers = sharedHeaders("ListCompatibleImages");
172
115
  let body;
173
- body = JSON.stringify(se_ListCompatibleImagesRequest(input, context));
116
+ body = JSON.stringify(_json(input));
174
117
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
175
118
  };
176
119
  export const se_ListJobsCommand = async (input, context) => {
177
- const headers = {
178
- "content-type": "application/x-amz-json-1.1",
179
- "x-amz-target": "AWSIESnowballJobManagementService.ListJobs",
180
- };
120
+ const headers = sharedHeaders("ListJobs");
181
121
  let body;
182
- body = JSON.stringify(se_ListJobsRequest(input, context));
122
+ body = JSON.stringify(_json(input));
183
123
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
184
124
  };
185
125
  export const se_ListLongTermPricingCommand = async (input, context) => {
186
- const headers = {
187
- "content-type": "application/x-amz-json-1.1",
188
- "x-amz-target": "AWSIESnowballJobManagementService.ListLongTermPricing",
189
- };
126
+ const headers = sharedHeaders("ListLongTermPricing");
190
127
  let body;
191
- body = JSON.stringify(se_ListLongTermPricingRequest(input, context));
128
+ body = JSON.stringify(_json(input));
192
129
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
193
130
  };
194
131
  export const se_ListServiceVersionsCommand = async (input, context) => {
195
- const headers = {
196
- "content-type": "application/x-amz-json-1.1",
197
- "x-amz-target": "AWSIESnowballJobManagementService.ListServiceVersions",
198
- };
132
+ const headers = sharedHeaders("ListServiceVersions");
199
133
  let body;
200
- body = JSON.stringify(se_ListServiceVersionsRequest(input, context));
134
+ body = JSON.stringify(_json(input));
201
135
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
202
136
  };
203
137
  export const se_UpdateClusterCommand = async (input, context) => {
204
- const headers = {
205
- "content-type": "application/x-amz-json-1.1",
206
- "x-amz-target": "AWSIESnowballJobManagementService.UpdateCluster",
207
- };
138
+ const headers = sharedHeaders("UpdateCluster");
208
139
  let body;
209
- body = JSON.stringify(se_UpdateClusterRequest(input, context));
140
+ body = JSON.stringify(_json(input));
210
141
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
211
142
  };
212
143
  export const se_UpdateJobCommand = async (input, context) => {
213
- const headers = {
214
- "content-type": "application/x-amz-json-1.1",
215
- "x-amz-target": "AWSIESnowballJobManagementService.UpdateJob",
216
- };
144
+ const headers = sharedHeaders("UpdateJob");
217
145
  let body;
218
- body = JSON.stringify(se_UpdateJobRequest(input, context));
146
+ body = JSON.stringify(_json(input));
219
147
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
220
148
  };
221
149
  export const se_UpdateJobShipmentStateCommand = async (input, context) => {
222
- const headers = {
223
- "content-type": "application/x-amz-json-1.1",
224
- "x-amz-target": "AWSIESnowballJobManagementService.UpdateJobShipmentState",
225
- };
150
+ const headers = sharedHeaders("UpdateJobShipmentState");
226
151
  let body;
227
- body = JSON.stringify(se_UpdateJobShipmentStateRequest(input, context));
152
+ body = JSON.stringify(_json(input));
228
153
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
229
154
  };
230
155
  export const se_UpdateLongTermPricingCommand = async (input, context) => {
231
- const headers = {
232
- "content-type": "application/x-amz-json-1.1",
233
- "x-amz-target": "AWSIESnowballJobManagementService.UpdateLongTermPricing",
234
- };
156
+ const headers = sharedHeaders("UpdateLongTermPricing");
235
157
  let body;
236
- body = JSON.stringify(se_UpdateLongTermPricingRequest(input, context));
158
+ body = JSON.stringify(_json(input));
237
159
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
238
160
  };
239
161
  export const de_CancelClusterCommand = async (output, context) => {
@@ -242,12 +164,12 @@ export const de_CancelClusterCommand = async (output, context) => {
242
164
  }
243
165
  const data = await parseBody(output.body, context);
244
166
  let contents = {};
245
- contents = de_CancelClusterResult(data, context);
167
+ contents = _json(data);
246
168
  const response = {
247
169
  $metadata: deserializeMetadata(output),
248
170
  ...contents,
249
171
  };
250
- return Promise.resolve(response);
172
+ return response;
251
173
  };
252
174
  const de_CancelClusterCommandError = async (output, context) => {
253
175
  const parsedOutput = {
@@ -267,10 +189,9 @@ const de_CancelClusterCommandError = async (output, context) => {
267
189
  throw await de_KMSRequestFailedExceptionRes(parsedOutput, context);
268
190
  default:
269
191
  const parsedBody = parsedOutput.body;
270
- throwDefaultError({
192
+ return throwDefaultError({
271
193
  output,
272
194
  parsedBody,
273
- exceptionCtor: __BaseException,
274
195
  errorCode,
275
196
  });
276
197
  }
@@ -281,12 +202,12 @@ export const de_CancelJobCommand = async (output, context) => {
281
202
  }
282
203
  const data = await parseBody(output.body, context);
283
204
  let contents = {};
284
- contents = de_CancelJobResult(data, context);
205
+ contents = _json(data);
285
206
  const response = {
286
207
  $metadata: deserializeMetadata(output),
287
208
  ...contents,
288
209
  };
289
- return Promise.resolve(response);
210
+ return response;
290
211
  };
291
212
  const de_CancelJobCommandError = async (output, context) => {
292
213
  const parsedOutput = {
@@ -306,10 +227,9 @@ const de_CancelJobCommandError = async (output, context) => {
306
227
  throw await de_KMSRequestFailedExceptionRes(parsedOutput, context);
307
228
  default:
308
229
  const parsedBody = parsedOutput.body;
309
- throwDefaultError({
230
+ return throwDefaultError({
310
231
  output,
311
232
  parsedBody,
312
- exceptionCtor: __BaseException,
313
233
  errorCode,
314
234
  });
315
235
  }
@@ -320,12 +240,12 @@ export const de_CreateAddressCommand = async (output, context) => {
320
240
  }
321
241
  const data = await parseBody(output.body, context);
322
242
  let contents = {};
323
- contents = de_CreateAddressResult(data, context);
243
+ contents = _json(data);
324
244
  const response = {
325
245
  $metadata: deserializeMetadata(output),
326
246
  ...contents,
327
247
  };
328
- return Promise.resolve(response);
248
+ return response;
329
249
  };
330
250
  const de_CreateAddressCommandError = async (output, context) => {
331
251
  const parsedOutput = {
@@ -342,10 +262,9 @@ const de_CreateAddressCommandError = async (output, context) => {
342
262
  throw await de_UnsupportedAddressExceptionRes(parsedOutput, context);
343
263
  default:
344
264
  const parsedBody = parsedOutput.body;
345
- throwDefaultError({
265
+ return throwDefaultError({
346
266
  output,
347
267
  parsedBody,
348
- exceptionCtor: __BaseException,
349
268
  errorCode,
350
269
  });
351
270
  }
@@ -356,12 +275,12 @@ export const de_CreateClusterCommand = async (output, context) => {
356
275
  }
357
276
  const data = await parseBody(output.body, context);
358
277
  let contents = {};
359
- contents = de_CreateClusterResult(data, context);
278
+ contents = _json(data);
360
279
  const response = {
361
280
  $metadata: deserializeMetadata(output),
362
281
  ...contents,
363
282
  };
364
- return Promise.resolve(response);
283
+ return response;
365
284
  };
366
285
  const de_CreateClusterCommandError = async (output, context) => {
367
286
  const parsedOutput = {
@@ -384,10 +303,9 @@ const de_CreateClusterCommandError = async (output, context) => {
384
303
  throw await de_KMSRequestFailedExceptionRes(parsedOutput, context);
385
304
  default:
386
305
  const parsedBody = parsedOutput.body;
387
- throwDefaultError({
306
+ return throwDefaultError({
388
307
  output,
389
308
  parsedBody,
390
- exceptionCtor: __BaseException,
391
309
  errorCode,
392
310
  });
393
311
  }
@@ -398,12 +316,12 @@ export const de_CreateJobCommand = async (output, context) => {
398
316
  }
399
317
  const data = await parseBody(output.body, context);
400
318
  let contents = {};
401
- contents = de_CreateJobResult(data, context);
319
+ contents = _json(data);
402
320
  const response = {
403
321
  $metadata: deserializeMetadata(output),
404
322
  ...contents,
405
323
  };
406
- return Promise.resolve(response);
324
+ return response;
407
325
  };
408
326
  const de_CreateJobCommandError = async (output, context) => {
409
327
  const parsedOutput = {
@@ -429,10 +347,9 @@ const de_CreateJobCommandError = async (output, context) => {
429
347
  throw await de_KMSRequestFailedExceptionRes(parsedOutput, context);
430
348
  default:
431
349
  const parsedBody = parsedOutput.body;
432
- throwDefaultError({
350
+ return throwDefaultError({
433
351
  output,
434
352
  parsedBody,
435
- exceptionCtor: __BaseException,
436
353
  errorCode,
437
354
  });
438
355
  }
@@ -443,12 +360,12 @@ export const de_CreateLongTermPricingCommand = async (output, context) => {
443
360
  }
444
361
  const data = await parseBody(output.body, context);
445
362
  let contents = {};
446
- contents = de_CreateLongTermPricingResult(data, context);
363
+ contents = _json(data);
447
364
  const response = {
448
365
  $metadata: deserializeMetadata(output),
449
366
  ...contents,
450
367
  };
451
- return Promise.resolve(response);
368
+ return response;
452
369
  };
453
370
  const de_CreateLongTermPricingCommandError = async (output, context) => {
454
371
  const parsedOutput = {
@@ -462,10 +379,9 @@ const de_CreateLongTermPricingCommandError = async (output, context) => {
462
379
  throw await de_InvalidResourceExceptionRes(parsedOutput, context);
463
380
  default:
464
381
  const parsedBody = parsedOutput.body;
465
- throwDefaultError({
382
+ return throwDefaultError({
466
383
  output,
467
384
  parsedBody,
468
- exceptionCtor: __BaseException,
469
385
  errorCode,
470
386
  });
471
387
  }
@@ -476,12 +392,12 @@ export const de_CreateReturnShippingLabelCommand = async (output, context) => {
476
392
  }
477
393
  const data = await parseBody(output.body, context);
478
394
  let contents = {};
479
- contents = de_CreateReturnShippingLabelResult(data, context);
395
+ contents = _json(data);
480
396
  const response = {
481
397
  $metadata: deserializeMetadata(output),
482
398
  ...contents,
483
399
  };
484
- return Promise.resolve(response);
400
+ return response;
485
401
  };
486
402
  const de_CreateReturnShippingLabelCommandError = async (output, context) => {
487
403
  const parsedOutput = {
@@ -507,10 +423,9 @@ const de_CreateReturnShippingLabelCommandError = async (output, context) => {
507
423
  throw await de_ReturnShippingLabelAlreadyExistsExceptionRes(parsedOutput, context);
508
424
  default:
509
425
  const parsedBody = parsedOutput.body;
510
- throwDefaultError({
426
+ return throwDefaultError({
511
427
  output,
512
428
  parsedBody,
513
- exceptionCtor: __BaseException,
514
429
  errorCode,
515
430
  });
516
431
  }
@@ -521,12 +436,12 @@ export const de_DescribeAddressCommand = async (output, context) => {
521
436
  }
522
437
  const data = await parseBody(output.body, context);
523
438
  let contents = {};
524
- contents = de_DescribeAddressResult(data, context);
439
+ contents = _json(data);
525
440
  const response = {
526
441
  $metadata: deserializeMetadata(output),
527
442
  ...contents,
528
443
  };
529
- return Promise.resolve(response);
444
+ return response;
530
445
  };
531
446
  const de_DescribeAddressCommandError = async (output, context) => {
532
447
  const parsedOutput = {
@@ -540,10 +455,9 @@ const de_DescribeAddressCommandError = async (output, context) => {
540
455
  throw await de_InvalidResourceExceptionRes(parsedOutput, context);
541
456
  default:
542
457
  const parsedBody = parsedOutput.body;
543
- throwDefaultError({
458
+ return throwDefaultError({
544
459
  output,
545
460
  parsedBody,
546
- exceptionCtor: __BaseException,
547
461
  errorCode,
548
462
  });
549
463
  }
@@ -554,12 +468,12 @@ export const de_DescribeAddressesCommand = async (output, context) => {
554
468
  }
555
469
  const data = await parseBody(output.body, context);
556
470
  let contents = {};
557
- contents = de_DescribeAddressesResult(data, context);
471
+ contents = _json(data);
558
472
  const response = {
559
473
  $metadata: deserializeMetadata(output),
560
474
  ...contents,
561
475
  };
562
- return Promise.resolve(response);
476
+ return response;
563
477
  };
564
478
  const de_DescribeAddressesCommandError = async (output, context) => {
565
479
  const parsedOutput = {
@@ -576,10 +490,9 @@ const de_DescribeAddressesCommandError = async (output, context) => {
576
490
  throw await de_InvalidResourceExceptionRes(parsedOutput, context);
577
491
  default:
578
492
  const parsedBody = parsedOutput.body;
579
- throwDefaultError({
493
+ return throwDefaultError({
580
494
  output,
581
495
  parsedBody,
582
- exceptionCtor: __BaseException,
583
496
  errorCode,
584
497
  });
585
498
  }
@@ -595,7 +508,7 @@ export const de_DescribeClusterCommand = async (output, context) => {
595
508
  $metadata: deserializeMetadata(output),
596
509
  ...contents,
597
510
  };
598
- return Promise.resolve(response);
511
+ return response;
599
512
  };
600
513
  const de_DescribeClusterCommandError = async (output, context) => {
601
514
  const parsedOutput = {
@@ -609,10 +522,9 @@ const de_DescribeClusterCommandError = async (output, context) => {
609
522
  throw await de_InvalidResourceExceptionRes(parsedOutput, context);
610
523
  default:
611
524
  const parsedBody = parsedOutput.body;
612
- throwDefaultError({
525
+ return throwDefaultError({
613
526
  output,
614
527
  parsedBody,
615
- exceptionCtor: __BaseException,
616
528
  errorCode,
617
529
  });
618
530
  }
@@ -628,7 +540,7 @@ export const de_DescribeJobCommand = async (output, context) => {
628
540
  $metadata: deserializeMetadata(output),
629
541
  ...contents,
630
542
  };
631
- return Promise.resolve(response);
543
+ return response;
632
544
  };
633
545
  const de_DescribeJobCommandError = async (output, context) => {
634
546
  const parsedOutput = {
@@ -642,10 +554,9 @@ const de_DescribeJobCommandError = async (output, context) => {
642
554
  throw await de_InvalidResourceExceptionRes(parsedOutput, context);
643
555
  default:
644
556
  const parsedBody = parsedOutput.body;
645
- throwDefaultError({
557
+ return throwDefaultError({
646
558
  output,
647
559
  parsedBody,
648
- exceptionCtor: __BaseException,
649
560
  errorCode,
650
561
  });
651
562
  }
@@ -661,7 +572,7 @@ export const de_DescribeReturnShippingLabelCommand = async (output, context) =>
661
572
  $metadata: deserializeMetadata(output),
662
573
  ...contents,
663
574
  };
664
- return Promise.resolve(response);
575
+ return response;
665
576
  };
666
577
  const de_DescribeReturnShippingLabelCommandError = async (output, context) => {
667
578
  const parsedOutput = {
@@ -681,10 +592,9 @@ const de_DescribeReturnShippingLabelCommandError = async (output, context) => {
681
592
  throw await de_InvalidResourceExceptionRes(parsedOutput, context);
682
593
  default:
683
594
  const parsedBody = parsedOutput.body;
684
- throwDefaultError({
595
+ return throwDefaultError({
685
596
  output,
686
597
  parsedBody,
687
- exceptionCtor: __BaseException,
688
598
  errorCode,
689
599
  });
690
600
  }
@@ -695,12 +605,12 @@ export const de_GetJobManifestCommand = async (output, context) => {
695
605
  }
696
606
  const data = await parseBody(output.body, context);
697
607
  let contents = {};
698
- contents = de_GetJobManifestResult(data, context);
608
+ contents = _json(data);
699
609
  const response = {
700
610
  $metadata: deserializeMetadata(output),
701
611
  ...contents,
702
612
  };
703
- return Promise.resolve(response);
613
+ return response;
704
614
  };
705
615
  const de_GetJobManifestCommandError = async (output, context) => {
706
616
  const parsedOutput = {
@@ -717,10 +627,9 @@ const de_GetJobManifestCommandError = async (output, context) => {
717
627
  throw await de_InvalidResourceExceptionRes(parsedOutput, context);
718
628
  default:
719
629
  const parsedBody = parsedOutput.body;
720
- throwDefaultError({
630
+ return throwDefaultError({
721
631
  output,
722
632
  parsedBody,
723
- exceptionCtor: __BaseException,
724
633
  errorCode,
725
634
  });
726
635
  }
@@ -731,12 +640,12 @@ export const de_GetJobUnlockCodeCommand = async (output, context) => {
731
640
  }
732
641
  const data = await parseBody(output.body, context);
733
642
  let contents = {};
734
- contents = de_GetJobUnlockCodeResult(data, context);
643
+ contents = _json(data);
735
644
  const response = {
736
645
  $metadata: deserializeMetadata(output),
737
646
  ...contents,
738
647
  };
739
- return Promise.resolve(response);
648
+ return response;
740
649
  };
741
650
  const de_GetJobUnlockCodeCommandError = async (output, context) => {
742
651
  const parsedOutput = {
@@ -753,10 +662,9 @@ const de_GetJobUnlockCodeCommandError = async (output, context) => {
753
662
  throw await de_InvalidResourceExceptionRes(parsedOutput, context);
754
663
  default:
755
664
  const parsedBody = parsedOutput.body;
756
- throwDefaultError({
665
+ return throwDefaultError({
757
666
  output,
758
667
  parsedBody,
759
- exceptionCtor: __BaseException,
760
668
  errorCode,
761
669
  });
762
670
  }
@@ -767,12 +675,12 @@ export const de_GetSnowballUsageCommand = async (output, context) => {
767
675
  }
768
676
  const data = await parseBody(output.body, context);
769
677
  let contents = {};
770
- contents = de_GetSnowballUsageResult(data, context);
678
+ contents = _json(data);
771
679
  const response = {
772
680
  $metadata: deserializeMetadata(output),
773
681
  ...contents,
774
682
  };
775
- return Promise.resolve(response);
683
+ return response;
776
684
  };
777
685
  const de_GetSnowballUsageCommandError = async (output, context) => {
778
686
  const parsedOutput = {
@@ -781,10 +689,9 @@ const de_GetSnowballUsageCommandError = async (output, context) => {
781
689
  };
782
690
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
783
691
  const parsedBody = parsedOutput.body;
784
- throwDefaultError({
692
+ return throwDefaultError({
785
693
  output,
786
694
  parsedBody,
787
- exceptionCtor: __BaseException,
788
695
  errorCode,
789
696
  });
790
697
  };
@@ -794,12 +701,12 @@ export const de_GetSoftwareUpdatesCommand = async (output, context) => {
794
701
  }
795
702
  const data = await parseBody(output.body, context);
796
703
  let contents = {};
797
- contents = de_GetSoftwareUpdatesResult(data, context);
704
+ contents = _json(data);
798
705
  const response = {
799
706
  $metadata: deserializeMetadata(output),
800
707
  ...contents,
801
708
  };
802
- return Promise.resolve(response);
709
+ return response;
803
710
  };
804
711
  const de_GetSoftwareUpdatesCommandError = async (output, context) => {
805
712
  const parsedOutput = {
@@ -816,10 +723,9 @@ const de_GetSoftwareUpdatesCommandError = async (output, context) => {
816
723
  throw await de_InvalidResourceExceptionRes(parsedOutput, context);
817
724
  default:
818
725
  const parsedBody = parsedOutput.body;
819
- throwDefaultError({
726
+ return throwDefaultError({
820
727
  output,
821
728
  parsedBody,
822
- exceptionCtor: __BaseException,
823
729
  errorCode,
824
730
  });
825
731
  }
@@ -835,7 +741,7 @@ export const de_ListClusterJobsCommand = async (output, context) => {
835
741
  $metadata: deserializeMetadata(output),
836
742
  ...contents,
837
743
  };
838
- return Promise.resolve(response);
744
+ return response;
839
745
  };
840
746
  const de_ListClusterJobsCommandError = async (output, context) => {
841
747
  const parsedOutput = {
@@ -852,10 +758,9 @@ const de_ListClusterJobsCommandError = async (output, context) => {
852
758
  throw await de_InvalidResourceExceptionRes(parsedOutput, context);
853
759
  default:
854
760
  const parsedBody = parsedOutput.body;
855
- throwDefaultError({
761
+ return throwDefaultError({
856
762
  output,
857
763
  parsedBody,
858
- exceptionCtor: __BaseException,
859
764
  errorCode,
860
765
  });
861
766
  }
@@ -871,7 +776,7 @@ export const de_ListClustersCommand = async (output, context) => {
871
776
  $metadata: deserializeMetadata(output),
872
777
  ...contents,
873
778
  };
874
- return Promise.resolve(response);
779
+ return response;
875
780
  };
876
781
  const de_ListClustersCommandError = async (output, context) => {
877
782
  const parsedOutput = {
@@ -885,10 +790,9 @@ const de_ListClustersCommandError = async (output, context) => {
885
790
  throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
886
791
  default:
887
792
  const parsedBody = parsedOutput.body;
888
- throwDefaultError({
793
+ return throwDefaultError({
889
794
  output,
890
795
  parsedBody,
891
- exceptionCtor: __BaseException,
892
796
  errorCode,
893
797
  });
894
798
  }
@@ -899,12 +803,12 @@ export const de_ListCompatibleImagesCommand = async (output, context) => {
899
803
  }
900
804
  const data = await parseBody(output.body, context);
901
805
  let contents = {};
902
- contents = de_ListCompatibleImagesResult(data, context);
806
+ contents = _json(data);
903
807
  const response = {
904
808
  $metadata: deserializeMetadata(output),
905
809
  ...contents,
906
810
  };
907
- return Promise.resolve(response);
811
+ return response;
908
812
  };
909
813
  const de_ListCompatibleImagesCommandError = async (output, context) => {
910
814
  const parsedOutput = {
@@ -921,10 +825,9 @@ const de_ListCompatibleImagesCommandError = async (output, context) => {
921
825
  throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
922
826
  default:
923
827
  const parsedBody = parsedOutput.body;
924
- throwDefaultError({
828
+ return throwDefaultError({
925
829
  output,
926
830
  parsedBody,
927
- exceptionCtor: __BaseException,
928
831
  errorCode,
929
832
  });
930
833
  }
@@ -940,7 +843,7 @@ export const de_ListJobsCommand = async (output, context) => {
940
843
  $metadata: deserializeMetadata(output),
941
844
  ...contents,
942
845
  };
943
- return Promise.resolve(response);
846
+ return response;
944
847
  };
945
848
  const de_ListJobsCommandError = async (output, context) => {
946
849
  const parsedOutput = {
@@ -954,10 +857,9 @@ const de_ListJobsCommandError = async (output, context) => {
954
857
  throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
955
858
  default:
956
859
  const parsedBody = parsedOutput.body;
957
- throwDefaultError({
860
+ return throwDefaultError({
958
861
  output,
959
862
  parsedBody,
960
- exceptionCtor: __BaseException,
961
863
  errorCode,
962
864
  });
963
865
  }
@@ -973,7 +875,7 @@ export const de_ListLongTermPricingCommand = async (output, context) => {
973
875
  $metadata: deserializeMetadata(output),
974
876
  ...contents,
975
877
  };
976
- return Promise.resolve(response);
878
+ return response;
977
879
  };
978
880
  const de_ListLongTermPricingCommandError = async (output, context) => {
979
881
  const parsedOutput = {
@@ -990,10 +892,9 @@ const de_ListLongTermPricingCommandError = async (output, context) => {
990
892
  throw await de_InvalidResourceExceptionRes(parsedOutput, context);
991
893
  default:
992
894
  const parsedBody = parsedOutput.body;
993
- throwDefaultError({
895
+ return throwDefaultError({
994
896
  output,
995
897
  parsedBody,
996
- exceptionCtor: __BaseException,
997
898
  errorCode,
998
899
  });
999
900
  }
@@ -1004,12 +905,12 @@ export const de_ListServiceVersionsCommand = async (output, context) => {
1004
905
  }
1005
906
  const data = await parseBody(output.body, context);
1006
907
  let contents = {};
1007
- contents = de_ListServiceVersionsResult(data, context);
908
+ contents = _json(data);
1008
909
  const response = {
1009
910
  $metadata: deserializeMetadata(output),
1010
911
  ...contents,
1011
912
  };
1012
- return Promise.resolve(response);
913
+ return response;
1013
914
  };
1014
915
  const de_ListServiceVersionsCommandError = async (output, context) => {
1015
916
  const parsedOutput = {
@@ -1026,10 +927,9 @@ const de_ListServiceVersionsCommandError = async (output, context) => {
1026
927
  throw await de_InvalidResourceExceptionRes(parsedOutput, context);
1027
928
  default:
1028
929
  const parsedBody = parsedOutput.body;
1029
- throwDefaultError({
930
+ return throwDefaultError({
1030
931
  output,
1031
932
  parsedBody,
1032
- exceptionCtor: __BaseException,
1033
933
  errorCode,
1034
934
  });
1035
935
  }
@@ -1040,12 +940,12 @@ export const de_UpdateClusterCommand = async (output, context) => {
1040
940
  }
1041
941
  const data = await parseBody(output.body, context);
1042
942
  let contents = {};
1043
- contents = de_UpdateClusterResult(data, context);
943
+ contents = _json(data);
1044
944
  const response = {
1045
945
  $metadata: deserializeMetadata(output),
1046
946
  ...contents,
1047
947
  };
1048
- return Promise.resolve(response);
948
+ return response;
1049
949
  };
1050
950
  const de_UpdateClusterCommandError = async (output, context) => {
1051
951
  const parsedOutput = {
@@ -1071,10 +971,9 @@ const de_UpdateClusterCommandError = async (output, context) => {
1071
971
  throw await de_KMSRequestFailedExceptionRes(parsedOutput, context);
1072
972
  default:
1073
973
  const parsedBody = parsedOutput.body;
1074
- throwDefaultError({
974
+ return throwDefaultError({
1075
975
  output,
1076
976
  parsedBody,
1077
- exceptionCtor: __BaseException,
1078
977
  errorCode,
1079
978
  });
1080
979
  }
@@ -1085,12 +984,12 @@ export const de_UpdateJobCommand = async (output, context) => {
1085
984
  }
1086
985
  const data = await parseBody(output.body, context);
1087
986
  let contents = {};
1088
- contents = de_UpdateJobResult(data, context);
987
+ contents = _json(data);
1089
988
  const response = {
1090
989
  $metadata: deserializeMetadata(output),
1091
990
  ...contents,
1092
991
  };
1093
- return Promise.resolve(response);
992
+ return response;
1094
993
  };
1095
994
  const de_UpdateJobCommandError = async (output, context) => {
1096
995
  const parsedOutput = {
@@ -1119,10 +1018,9 @@ const de_UpdateJobCommandError = async (output, context) => {
1119
1018
  throw await de_KMSRequestFailedExceptionRes(parsedOutput, context);
1120
1019
  default:
1121
1020
  const parsedBody = parsedOutput.body;
1122
- throwDefaultError({
1021
+ return throwDefaultError({
1123
1022
  output,
1124
1023
  parsedBody,
1125
- exceptionCtor: __BaseException,
1126
1024
  errorCode,
1127
1025
  });
1128
1026
  }
@@ -1133,12 +1031,12 @@ export const de_UpdateJobShipmentStateCommand = async (output, context) => {
1133
1031
  }
1134
1032
  const data = await parseBody(output.body, context);
1135
1033
  let contents = {};
1136
- contents = de_UpdateJobShipmentStateResult(data, context);
1034
+ contents = _json(data);
1137
1035
  const response = {
1138
1036
  $metadata: deserializeMetadata(output),
1139
1037
  ...contents,
1140
1038
  };
1141
- return Promise.resolve(response);
1039
+ return response;
1142
1040
  };
1143
1041
  const de_UpdateJobShipmentStateCommandError = async (output, context) => {
1144
1042
  const parsedOutput = {
@@ -1155,10 +1053,9 @@ const de_UpdateJobShipmentStateCommandError = async (output, context) => {
1155
1053
  throw await de_InvalidResourceExceptionRes(parsedOutput, context);
1156
1054
  default:
1157
1055
  const parsedBody = parsedOutput.body;
1158
- throwDefaultError({
1056
+ return throwDefaultError({
1159
1057
  output,
1160
1058
  parsedBody,
1161
- exceptionCtor: __BaseException,
1162
1059
  errorCode,
1163
1060
  });
1164
1061
  }
@@ -1169,12 +1066,12 @@ export const de_UpdateLongTermPricingCommand = async (output, context) => {
1169
1066
  }
1170
1067
  const data = await parseBody(output.body, context);
1171
1068
  let contents = {};
1172
- contents = de_UpdateLongTermPricingResult(data, context);
1069
+ contents = _json(data);
1173
1070
  const response = {
1174
1071
  $metadata: deserializeMetadata(output),
1175
1072
  ...contents,
1176
1073
  };
1177
- return Promise.resolve(response);
1074
+ return response;
1178
1075
  };
1179
1076
  const de_UpdateLongTermPricingCommandError = async (output, context) => {
1180
1077
  const parsedOutput = {
@@ -1188,17 +1085,16 @@ const de_UpdateLongTermPricingCommandError = async (output, context) => {
1188
1085
  throw await de_InvalidResourceExceptionRes(parsedOutput, context);
1189
1086
  default:
1190
1087
  const parsedBody = parsedOutput.body;
1191
- throwDefaultError({
1088
+ return throwDefaultError({
1192
1089
  output,
1193
1090
  parsedBody,
1194
- exceptionCtor: __BaseException,
1195
1091
  errorCode,
1196
1092
  });
1197
1093
  }
1198
1094
  };
1199
1095
  const de_ClusterLimitExceededExceptionRes = async (parsedOutput, context) => {
1200
1096
  const body = parsedOutput.body;
1201
- const deserialized = de_ClusterLimitExceededException(body, context);
1097
+ const deserialized = _json(body);
1202
1098
  const exception = new ClusterLimitExceededException({
1203
1099
  $metadata: deserializeMetadata(parsedOutput),
1204
1100
  ...deserialized,
@@ -1207,7 +1103,7 @@ const de_ClusterLimitExceededExceptionRes = async (parsedOutput, context) => {
1207
1103
  };
1208
1104
  const de_ConflictExceptionRes = async (parsedOutput, context) => {
1209
1105
  const body = parsedOutput.body;
1210
- const deserialized = de_ConflictException(body, context);
1106
+ const deserialized = _json(body);
1211
1107
  const exception = new ConflictException({
1212
1108
  $metadata: deserializeMetadata(parsedOutput),
1213
1109
  ...deserialized,
@@ -1216,7 +1112,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
1216
1112
  };
1217
1113
  const de_Ec2RequestFailedExceptionRes = async (parsedOutput, context) => {
1218
1114
  const body = parsedOutput.body;
1219
- const deserialized = de_Ec2RequestFailedException(body, context);
1115
+ const deserialized = _json(body);
1220
1116
  const exception = new Ec2RequestFailedException({
1221
1117
  $metadata: deserializeMetadata(parsedOutput),
1222
1118
  ...deserialized,
@@ -1225,7 +1121,7 @@ const de_Ec2RequestFailedExceptionRes = async (parsedOutput, context) => {
1225
1121
  };
1226
1122
  const de_InvalidAddressExceptionRes = async (parsedOutput, context) => {
1227
1123
  const body = parsedOutput.body;
1228
- const deserialized = de_InvalidAddressException(body, context);
1124
+ const deserialized = _json(body);
1229
1125
  const exception = new InvalidAddressException({
1230
1126
  $metadata: deserializeMetadata(parsedOutput),
1231
1127
  ...deserialized,
@@ -1234,7 +1130,7 @@ const de_InvalidAddressExceptionRes = async (parsedOutput, context) => {
1234
1130
  };
1235
1131
  const de_InvalidInputCombinationExceptionRes = async (parsedOutput, context) => {
1236
1132
  const body = parsedOutput.body;
1237
- const deserialized = de_InvalidInputCombinationException(body, context);
1133
+ const deserialized = _json(body);
1238
1134
  const exception = new InvalidInputCombinationException({
1239
1135
  $metadata: deserializeMetadata(parsedOutput),
1240
1136
  ...deserialized,
@@ -1243,7 +1139,7 @@ const de_InvalidInputCombinationExceptionRes = async (parsedOutput, context) =>
1243
1139
  };
1244
1140
  const de_InvalidJobStateExceptionRes = async (parsedOutput, context) => {
1245
1141
  const body = parsedOutput.body;
1246
- const deserialized = de_InvalidJobStateException(body, context);
1142
+ const deserialized = _json(body);
1247
1143
  const exception = new InvalidJobStateException({
1248
1144
  $metadata: deserializeMetadata(parsedOutput),
1249
1145
  ...deserialized,
@@ -1252,7 +1148,7 @@ const de_InvalidJobStateExceptionRes = async (parsedOutput, context) => {
1252
1148
  };
1253
1149
  const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
1254
1150
  const body = parsedOutput.body;
1255
- const deserialized = de_InvalidNextTokenException(body, context);
1151
+ const deserialized = _json(body);
1256
1152
  const exception = new InvalidNextTokenException({
1257
1153
  $metadata: deserializeMetadata(parsedOutput),
1258
1154
  ...deserialized,
@@ -1261,7 +1157,7 @@ const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
1261
1157
  };
1262
1158
  const de_InvalidResourceExceptionRes = async (parsedOutput, context) => {
1263
1159
  const body = parsedOutput.body;
1264
- const deserialized = de_InvalidResourceException(body, context);
1160
+ const deserialized = _json(body);
1265
1161
  const exception = new InvalidResourceException({
1266
1162
  $metadata: deserializeMetadata(parsedOutput),
1267
1163
  ...deserialized,
@@ -1270,7 +1166,7 @@ const de_InvalidResourceExceptionRes = async (parsedOutput, context) => {
1270
1166
  };
1271
1167
  const de_KMSRequestFailedExceptionRes = async (parsedOutput, context) => {
1272
1168
  const body = parsedOutput.body;
1273
- const deserialized = de_KMSRequestFailedException(body, context);
1169
+ const deserialized = _json(body);
1274
1170
  const exception = new KMSRequestFailedException({
1275
1171
  $metadata: deserializeMetadata(parsedOutput),
1276
1172
  ...deserialized,
@@ -1279,7 +1175,7 @@ const de_KMSRequestFailedExceptionRes = async (parsedOutput, context) => {
1279
1175
  };
1280
1176
  const de_ReturnShippingLabelAlreadyExistsExceptionRes = async (parsedOutput, context) => {
1281
1177
  const body = parsedOutput.body;
1282
- const deserialized = de_ReturnShippingLabelAlreadyExistsException(body, context);
1178
+ const deserialized = _json(body);
1283
1179
  const exception = new ReturnShippingLabelAlreadyExistsException({
1284
1180
  $metadata: deserializeMetadata(parsedOutput),
1285
1181
  ...deserialized,
@@ -1288,1027 +1184,164 @@ const de_ReturnShippingLabelAlreadyExistsExceptionRes = async (parsedOutput, con
1288
1184
  };
1289
1185
  const de_UnsupportedAddressExceptionRes = async (parsedOutput, context) => {
1290
1186
  const body = parsedOutput.body;
1291
- const deserialized = de_UnsupportedAddressException(body, context);
1187
+ const deserialized = _json(body);
1292
1188
  const exception = new UnsupportedAddressException({
1293
1189
  $metadata: deserializeMetadata(parsedOutput),
1294
1190
  ...deserialized,
1295
1191
  });
1296
1192
  return __decorateServiceException(exception, body);
1297
1193
  };
1298
- const se_Address = (input, context) => {
1299
- return {
1300
- ...(input.AddressId != null && { AddressId: input.AddressId }),
1301
- ...(input.City != null && { City: input.City }),
1302
- ...(input.Company != null && { Company: input.Company }),
1303
- ...(input.Country != null && { Country: input.Country }),
1304
- ...(input.IsRestricted != null && { IsRestricted: input.IsRestricted }),
1305
- ...(input.Landmark != null && { Landmark: input.Landmark }),
1306
- ...(input.Name != null && { Name: input.Name }),
1307
- ...(input.PhoneNumber != null && { PhoneNumber: input.PhoneNumber }),
1308
- ...(input.PostalCode != null && { PostalCode: input.PostalCode }),
1309
- ...(input.PrefectureOrDistrict != null && { PrefectureOrDistrict: input.PrefectureOrDistrict }),
1310
- ...(input.StateOrProvince != null && { StateOrProvince: input.StateOrProvince }),
1311
- ...(input.Street1 != null && { Street1: input.Street1 }),
1312
- ...(input.Street2 != null && { Street2: input.Street2 }),
1313
- ...(input.Street3 != null && { Street3: input.Street3 }),
1314
- };
1315
- };
1316
- const se_CancelClusterRequest = (input, context) => {
1317
- return {
1318
- ...(input.ClusterId != null && { ClusterId: input.ClusterId }),
1319
- };
1320
- };
1321
- const se_CancelJobRequest = (input, context) => {
1322
- return {
1323
- ...(input.JobId != null && { JobId: input.JobId }),
1324
- };
1325
- };
1326
- const se_CreateAddressRequest = (input, context) => {
1327
- return {
1328
- ...(input.Address != null && { Address: se_Address(input.Address, context) }),
1329
- };
1330
- };
1331
- const se_CreateClusterRequest = (input, context) => {
1332
- return {
1333
- ...(input.AddressId != null && { AddressId: input.AddressId }),
1334
- ...(input.Description != null && { Description: input.Description }),
1335
- ...(input.ForwardingAddressId != null && { ForwardingAddressId: input.ForwardingAddressId }),
1336
- ...(input.JobType != null && { JobType: input.JobType }),
1337
- ...(input.KmsKeyARN != null && { KmsKeyARN: input.KmsKeyARN }),
1338
- ...(input.Notification != null && { Notification: se_Notification(input.Notification, context) }),
1339
- ...(input.OnDeviceServiceConfiguration != null && {
1340
- OnDeviceServiceConfiguration: se_OnDeviceServiceConfiguration(input.OnDeviceServiceConfiguration, context),
1341
- }),
1342
- ...(input.RemoteManagement != null && { RemoteManagement: input.RemoteManagement }),
1343
- ...(input.Resources != null && { Resources: se_JobResource(input.Resources, context) }),
1344
- ...(input.RoleARN != null && { RoleARN: input.RoleARN }),
1345
- ...(input.ShippingOption != null && { ShippingOption: input.ShippingOption }),
1346
- ...(input.SnowballType != null && { SnowballType: input.SnowballType }),
1347
- ...(input.TaxDocuments != null && { TaxDocuments: se_TaxDocuments(input.TaxDocuments, context) }),
1348
- };
1349
- };
1350
- const se_CreateJobRequest = (input, context) => {
1351
- return {
1352
- ...(input.AddressId != null && { AddressId: input.AddressId }),
1353
- ...(input.ClusterId != null && { ClusterId: input.ClusterId }),
1354
- ...(input.Description != null && { Description: input.Description }),
1355
- ...(input.DeviceConfiguration != null && {
1356
- DeviceConfiguration: se_DeviceConfiguration(input.DeviceConfiguration, context),
1357
- }),
1358
- ...(input.ForwardingAddressId != null && { ForwardingAddressId: input.ForwardingAddressId }),
1359
- ...(input.JobType != null && { JobType: input.JobType }),
1360
- ...(input.KmsKeyARN != null && { KmsKeyARN: input.KmsKeyARN }),
1361
- ...(input.LongTermPricingId != null && { LongTermPricingId: input.LongTermPricingId }),
1362
- ...(input.Notification != null && { Notification: se_Notification(input.Notification, context) }),
1363
- ...(input.OnDeviceServiceConfiguration != null && {
1364
- OnDeviceServiceConfiguration: se_OnDeviceServiceConfiguration(input.OnDeviceServiceConfiguration, context),
1365
- }),
1366
- ...(input.RemoteManagement != null && { RemoteManagement: input.RemoteManagement }),
1367
- ...(input.Resources != null && { Resources: se_JobResource(input.Resources, context) }),
1368
- ...(input.RoleARN != null && { RoleARN: input.RoleARN }),
1369
- ...(input.ShippingOption != null && { ShippingOption: input.ShippingOption }),
1370
- ...(input.SnowballCapacityPreference != null && { SnowballCapacityPreference: input.SnowballCapacityPreference }),
1371
- ...(input.SnowballType != null && { SnowballType: input.SnowballType }),
1372
- ...(input.TaxDocuments != null && { TaxDocuments: se_TaxDocuments(input.TaxDocuments, context) }),
1373
- };
1374
- };
1375
- const se_CreateLongTermPricingRequest = (input, context) => {
1376
- return {
1377
- ...(input.IsLongTermPricingAutoRenew != null && { IsLongTermPricingAutoRenew: input.IsLongTermPricingAutoRenew }),
1378
- ...(input.LongTermPricingType != null && { LongTermPricingType: input.LongTermPricingType }),
1379
- ...(input.SnowballType != null && { SnowballType: input.SnowballType }),
1380
- };
1381
- };
1382
- const se_CreateReturnShippingLabelRequest = (input, context) => {
1383
- return {
1384
- ...(input.JobId != null && { JobId: input.JobId }),
1385
- ...(input.ShippingOption != null && { ShippingOption: input.ShippingOption }),
1386
- };
1387
- };
1388
- const se_DependentService = (input, context) => {
1389
- return {
1390
- ...(input.ServiceName != null && { ServiceName: input.ServiceName }),
1391
- ...(input.ServiceVersion != null && { ServiceVersion: se_ServiceVersion(input.ServiceVersion, context) }),
1392
- };
1393
- };
1394
- const se_DependentServiceList = (input, context) => {
1395
- return input
1396
- .filter((e) => e != null)
1397
- .map((entry) => {
1398
- return se_DependentService(entry, context);
1399
- });
1400
- };
1401
- const se_DescribeAddressesRequest = (input, context) => {
1402
- return {
1403
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1404
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1405
- };
1406
- };
1407
- const se_DescribeAddressRequest = (input, context) => {
1408
- return {
1409
- ...(input.AddressId != null && { AddressId: input.AddressId }),
1410
- };
1411
- };
1412
- const se_DescribeClusterRequest = (input, context) => {
1413
- return {
1414
- ...(input.ClusterId != null && { ClusterId: input.ClusterId }),
1415
- };
1416
- };
1417
- const se_DescribeJobRequest = (input, context) => {
1418
- return {
1419
- ...(input.JobId != null && { JobId: input.JobId }),
1420
- };
1421
- };
1422
- const se_DescribeReturnShippingLabelRequest = (input, context) => {
1423
- return {
1424
- ...(input.JobId != null && { JobId: input.JobId }),
1425
- };
1426
- };
1427
- const se_DeviceConfiguration = (input, context) => {
1428
- return {
1429
- ...(input.SnowconeDeviceConfiguration != null && {
1430
- SnowconeDeviceConfiguration: se_SnowconeDeviceConfiguration(input.SnowconeDeviceConfiguration, context),
1431
- }),
1432
- };
1433
- };
1434
- const se_Ec2AmiResource = (input, context) => {
1435
- return {
1436
- ...(input.AmiId != null && { AmiId: input.AmiId }),
1437
- ...(input.SnowballAmiId != null && { SnowballAmiId: input.SnowballAmiId }),
1438
- };
1439
- };
1440
- const se_Ec2AmiResourceList = (input, context) => {
1441
- return input
1442
- .filter((e) => e != null)
1443
- .map((entry) => {
1444
- return se_Ec2AmiResource(entry, context);
1445
- });
1446
- };
1447
- const se_EKSOnDeviceServiceConfiguration = (input, context) => {
1448
- return {
1449
- ...(input.EKSAnywhereVersion != null && { EKSAnywhereVersion: input.EKSAnywhereVersion }),
1450
- ...(input.KubernetesVersion != null && { KubernetesVersion: input.KubernetesVersion }),
1451
- };
1452
- };
1453
- const se_EventTriggerDefinition = (input, context) => {
1454
- return {
1455
- ...(input.EventResourceARN != null && { EventResourceARN: input.EventResourceARN }),
1456
- };
1457
- };
1458
- const se_EventTriggerDefinitionList = (input, context) => {
1459
- return input
1460
- .filter((e) => e != null)
1461
- .map((entry) => {
1462
- return se_EventTriggerDefinition(entry, context);
1463
- });
1464
- };
1465
- const se_GetJobManifestRequest = (input, context) => {
1466
- return {
1467
- ...(input.JobId != null && { JobId: input.JobId }),
1468
- };
1469
- };
1470
- const se_GetJobUnlockCodeRequest = (input, context) => {
1471
- return {
1472
- ...(input.JobId != null && { JobId: input.JobId }),
1473
- };
1474
- };
1475
- const se_GetSnowballUsageRequest = (input, context) => {
1476
- return {};
1477
- };
1478
- const se_GetSoftwareUpdatesRequest = (input, context) => {
1479
- return {
1480
- ...(input.JobId != null && { JobId: input.JobId }),
1481
- };
1482
- };
1483
- const se_INDTaxDocuments = (input, context) => {
1484
- return {
1485
- ...(input.GSTIN != null && { GSTIN: input.GSTIN }),
1486
- };
1487
- };
1488
- const se_JobResource = (input, context) => {
1489
- return {
1490
- ...(input.Ec2AmiResources != null && { Ec2AmiResources: se_Ec2AmiResourceList(input.Ec2AmiResources, context) }),
1491
- ...(input.LambdaResources != null && { LambdaResources: se_LambdaResourceList(input.LambdaResources, context) }),
1492
- ...(input.S3Resources != null && { S3Resources: se_S3ResourceList(input.S3Resources, context) }),
1493
- };
1494
- };
1495
- const se_JobStateList = (input, context) => {
1496
- return input
1497
- .filter((e) => e != null)
1498
- .map((entry) => {
1499
- return entry;
1500
- });
1501
- };
1502
- const se_KeyRange = (input, context) => {
1503
- return {
1504
- ...(input.BeginMarker != null && { BeginMarker: input.BeginMarker }),
1505
- ...(input.EndMarker != null && { EndMarker: input.EndMarker }),
1506
- };
1507
- };
1508
- const se_LambdaResource = (input, context) => {
1509
- return {
1510
- ...(input.EventTriggers != null && { EventTriggers: se_EventTriggerDefinitionList(input.EventTriggers, context) }),
1511
- ...(input.LambdaArn != null && { LambdaArn: input.LambdaArn }),
1512
- };
1513
- };
1514
- const se_LambdaResourceList = (input, context) => {
1515
- return input
1516
- .filter((e) => e != null)
1517
- .map((entry) => {
1518
- return se_LambdaResource(entry, context);
1519
- });
1520
- };
1521
- const se_ListClusterJobsRequest = (input, context) => {
1522
- return {
1523
- ...(input.ClusterId != null && { ClusterId: input.ClusterId }),
1524
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1525
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1526
- };
1527
- };
1528
- const se_ListClustersRequest = (input, context) => {
1529
- return {
1530
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1531
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1532
- };
1533
- };
1534
- const se_ListCompatibleImagesRequest = (input, context) => {
1535
- return {
1536
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1537
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1538
- };
1539
- };
1540
- const se_ListJobsRequest = (input, context) => {
1541
- return {
1542
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1543
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1544
- };
1545
- };
1546
- const se_ListLongTermPricingRequest = (input, context) => {
1547
- return {
1548
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1549
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1550
- };
1551
- };
1552
- const se_ListServiceVersionsRequest = (input, context) => {
1553
- return {
1554
- ...(input.DependentServices != null && {
1555
- DependentServices: se_DependentServiceList(input.DependentServices, context),
1556
- }),
1557
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1558
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1559
- ...(input.ServiceName != null && { ServiceName: input.ServiceName }),
1560
- };
1561
- };
1562
- const se_NFSOnDeviceServiceConfiguration = (input, context) => {
1563
- return {
1564
- ...(input.StorageLimit != null && { StorageLimit: input.StorageLimit }),
1565
- ...(input.StorageUnit != null && { StorageUnit: input.StorageUnit }),
1566
- };
1567
- };
1568
- const se_Notification = (input, context) => {
1569
- return {
1570
- ...(input.JobStatesToNotify != null && { JobStatesToNotify: se_JobStateList(input.JobStatesToNotify, context) }),
1571
- ...(input.NotifyAll != null && { NotifyAll: input.NotifyAll }),
1572
- ...(input.SnsTopicARN != null && { SnsTopicARN: input.SnsTopicARN }),
1573
- };
1574
- };
1575
- const se_OnDeviceServiceConfiguration = (input, context) => {
1576
- return {
1577
- ...(input.EKSOnDeviceService != null && {
1578
- EKSOnDeviceService: se_EKSOnDeviceServiceConfiguration(input.EKSOnDeviceService, context),
1579
- }),
1580
- ...(input.NFSOnDeviceService != null && {
1581
- NFSOnDeviceService: se_NFSOnDeviceServiceConfiguration(input.NFSOnDeviceService, context),
1582
- }),
1583
- ...(input.TGWOnDeviceService != null && {
1584
- TGWOnDeviceService: se_TGWOnDeviceServiceConfiguration(input.TGWOnDeviceService, context),
1585
- }),
1586
- };
1587
- };
1588
- const se_S3Resource = (input, context) => {
1589
- return {
1590
- ...(input.BucketArn != null && { BucketArn: input.BucketArn }),
1591
- ...(input.KeyRange != null && { KeyRange: se_KeyRange(input.KeyRange, context) }),
1592
- ...(input.TargetOnDeviceServices != null && {
1593
- TargetOnDeviceServices: se_TargetOnDeviceServiceList(input.TargetOnDeviceServices, context),
1594
- }),
1595
- };
1596
- };
1597
- const se_S3ResourceList = (input, context) => {
1598
- return input
1599
- .filter((e) => e != null)
1600
- .map((entry) => {
1601
- return se_S3Resource(entry, context);
1602
- });
1603
- };
1604
- const se_ServiceVersion = (input, context) => {
1605
- return {
1606
- ...(input.Version != null && { Version: input.Version }),
1607
- };
1608
- };
1609
- const se_SnowconeDeviceConfiguration = (input, context) => {
1610
- return {
1611
- ...(input.WirelessConnection != null && {
1612
- WirelessConnection: se_WirelessConnection(input.WirelessConnection, context),
1613
- }),
1614
- };
1615
- };
1616
- const se_TargetOnDeviceService = (input, context) => {
1617
- return {
1618
- ...(input.ServiceName != null && { ServiceName: input.ServiceName }),
1619
- ...(input.TransferOption != null && { TransferOption: input.TransferOption }),
1620
- };
1621
- };
1622
- const se_TargetOnDeviceServiceList = (input, context) => {
1623
- return input
1624
- .filter((e) => e != null)
1625
- .map((entry) => {
1626
- return se_TargetOnDeviceService(entry, context);
1627
- });
1628
- };
1629
- const se_TaxDocuments = (input, context) => {
1630
- return {
1631
- ...(input.IND != null && { IND: se_INDTaxDocuments(input.IND, context) }),
1632
- };
1633
- };
1634
- const se_TGWOnDeviceServiceConfiguration = (input, context) => {
1635
- return {
1636
- ...(input.StorageLimit != null && { StorageLimit: input.StorageLimit }),
1637
- ...(input.StorageUnit != null && { StorageUnit: input.StorageUnit }),
1638
- };
1639
- };
1640
- const se_UpdateClusterRequest = (input, context) => {
1641
- return {
1642
- ...(input.AddressId != null && { AddressId: input.AddressId }),
1643
- ...(input.ClusterId != null && { ClusterId: input.ClusterId }),
1644
- ...(input.Description != null && { Description: input.Description }),
1645
- ...(input.ForwardingAddressId != null && { ForwardingAddressId: input.ForwardingAddressId }),
1646
- ...(input.Notification != null && { Notification: se_Notification(input.Notification, context) }),
1647
- ...(input.OnDeviceServiceConfiguration != null && {
1648
- OnDeviceServiceConfiguration: se_OnDeviceServiceConfiguration(input.OnDeviceServiceConfiguration, context),
1649
- }),
1650
- ...(input.Resources != null && { Resources: se_JobResource(input.Resources, context) }),
1651
- ...(input.RoleARN != null && { RoleARN: input.RoleARN }),
1652
- ...(input.ShippingOption != null && { ShippingOption: input.ShippingOption }),
1653
- };
1654
- };
1655
- const se_UpdateJobRequest = (input, context) => {
1656
- return {
1657
- ...(input.AddressId != null && { AddressId: input.AddressId }),
1658
- ...(input.Description != null && { Description: input.Description }),
1659
- ...(input.ForwardingAddressId != null && { ForwardingAddressId: input.ForwardingAddressId }),
1660
- ...(input.JobId != null && { JobId: input.JobId }),
1661
- ...(input.Notification != null && { Notification: se_Notification(input.Notification, context) }),
1662
- ...(input.OnDeviceServiceConfiguration != null && {
1663
- OnDeviceServiceConfiguration: se_OnDeviceServiceConfiguration(input.OnDeviceServiceConfiguration, context),
1664
- }),
1665
- ...(input.Resources != null && { Resources: se_JobResource(input.Resources, context) }),
1666
- ...(input.RoleARN != null && { RoleARN: input.RoleARN }),
1667
- ...(input.ShippingOption != null && { ShippingOption: input.ShippingOption }),
1668
- ...(input.SnowballCapacityPreference != null && { SnowballCapacityPreference: input.SnowballCapacityPreference }),
1669
- };
1670
- };
1671
- const se_UpdateJobShipmentStateRequest = (input, context) => {
1672
- return {
1673
- ...(input.JobId != null && { JobId: input.JobId }),
1674
- ...(input.ShipmentState != null && { ShipmentState: input.ShipmentState }),
1675
- };
1676
- };
1677
- const se_UpdateLongTermPricingRequest = (input, context) => {
1678
- return {
1679
- ...(input.IsLongTermPricingAutoRenew != null && { IsLongTermPricingAutoRenew: input.IsLongTermPricingAutoRenew }),
1680
- ...(input.LongTermPricingId != null && { LongTermPricingId: input.LongTermPricingId }),
1681
- ...(input.ReplacementJob != null && { ReplacementJob: input.ReplacementJob }),
1682
- };
1683
- };
1684
- const se_WirelessConnection = (input, context) => {
1685
- return {
1686
- ...(input.IsWifiEnabled != null && { IsWifiEnabled: input.IsWifiEnabled }),
1687
- };
1688
- };
1689
- const de_Address = (output, context) => {
1690
- return {
1691
- AddressId: __expectString(output.AddressId),
1692
- City: __expectString(output.City),
1693
- Company: __expectString(output.Company),
1694
- Country: __expectString(output.Country),
1695
- IsRestricted: __expectBoolean(output.IsRestricted),
1696
- Landmark: __expectString(output.Landmark),
1697
- Name: __expectString(output.Name),
1698
- PhoneNumber: __expectString(output.PhoneNumber),
1699
- PostalCode: __expectString(output.PostalCode),
1700
- PrefectureOrDistrict: __expectString(output.PrefectureOrDistrict),
1701
- StateOrProvince: __expectString(output.StateOrProvince),
1702
- Street1: __expectString(output.Street1),
1703
- Street2: __expectString(output.Street2),
1704
- Street3: __expectString(output.Street3),
1705
- };
1706
- };
1707
- const de_AddressList = (output, context) => {
1708
- const retVal = (output || [])
1709
- .filter((e) => e != null)
1710
- .map((entry) => {
1711
- if (entry === null) {
1712
- return null;
1713
- }
1714
- return de_Address(entry, context);
1715
- });
1716
- return retVal;
1717
- };
1718
- const de_CancelClusterResult = (output, context) => {
1719
- return {};
1720
- };
1721
- const de_CancelJobResult = (output, context) => {
1722
- return {};
1723
- };
1724
- const de_ClusterLimitExceededException = (output, context) => {
1725
- return {
1726
- Message: __expectString(output.Message),
1727
- };
1728
- };
1729
1194
  const de_ClusterListEntry = (output, context) => {
1730
- return {
1731
- ClusterId: __expectString(output.ClusterId),
1732
- ClusterState: __expectString(output.ClusterState),
1733
- CreationDate: output.CreationDate != null
1734
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
1735
- : undefined,
1736
- Description: __expectString(output.Description),
1737
- };
1195
+ return take(output, {
1196
+ ClusterId: __expectString,
1197
+ ClusterState: __expectString,
1198
+ CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1199
+ Description: __expectString,
1200
+ });
1738
1201
  };
1739
1202
  const de_ClusterListEntryList = (output, context) => {
1740
1203
  const retVal = (output || [])
1741
1204
  .filter((e) => e != null)
1742
1205
  .map((entry) => {
1743
- if (entry === null) {
1744
- return null;
1745
- }
1746
1206
  return de_ClusterListEntry(entry, context);
1747
1207
  });
1748
1208
  return retVal;
1749
1209
  };
1750
1210
  const de_ClusterMetadata = (output, context) => {
1751
- return {
1752
- AddressId: __expectString(output.AddressId),
1753
- ClusterId: __expectString(output.ClusterId),
1754
- ClusterState: __expectString(output.ClusterState),
1755
- CreationDate: output.CreationDate != null
1756
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
1757
- : undefined,
1758
- Description: __expectString(output.Description),
1759
- ForwardingAddressId: __expectString(output.ForwardingAddressId),
1760
- JobType: __expectString(output.JobType),
1761
- KmsKeyARN: __expectString(output.KmsKeyARN),
1762
- Notification: output.Notification != null ? de_Notification(output.Notification, context) : undefined,
1763
- OnDeviceServiceConfiguration: output.OnDeviceServiceConfiguration != null
1764
- ? de_OnDeviceServiceConfiguration(output.OnDeviceServiceConfiguration, context)
1765
- : undefined,
1766
- Resources: output.Resources != null ? de_JobResource(output.Resources, context) : undefined,
1767
- RoleARN: __expectString(output.RoleARN),
1768
- ShippingOption: __expectString(output.ShippingOption),
1769
- SnowballType: __expectString(output.SnowballType),
1770
- TaxDocuments: output.TaxDocuments != null ? de_TaxDocuments(output.TaxDocuments, context) : undefined,
1771
- };
1772
- };
1773
- const de_CompatibleImage = (output, context) => {
1774
- return {
1775
- AmiId: __expectString(output.AmiId),
1776
- Name: __expectString(output.Name),
1777
- };
1778
- };
1779
- const de_CompatibleImageList = (output, context) => {
1780
- const retVal = (output || [])
1781
- .filter((e) => e != null)
1782
- .map((entry) => {
1783
- if (entry === null) {
1784
- return null;
1785
- }
1786
- return de_CompatibleImage(entry, context);
1211
+ return take(output, {
1212
+ AddressId: __expectString,
1213
+ ClusterId: __expectString,
1214
+ ClusterState: __expectString,
1215
+ CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1216
+ Description: __expectString,
1217
+ ForwardingAddressId: __expectString,
1218
+ JobType: __expectString,
1219
+ KmsKeyARN: __expectString,
1220
+ Notification: _json,
1221
+ OnDeviceServiceConfiguration: _json,
1222
+ Resources: _json,
1223
+ RoleARN: __expectString,
1224
+ ShippingOption: __expectString,
1225
+ SnowballType: __expectString,
1226
+ TaxDocuments: _json,
1787
1227
  });
1788
- return retVal;
1789
- };
1790
- const de_ConflictException = (output, context) => {
1791
- return {
1792
- ConflictResource: __expectString(output.ConflictResource),
1793
- Message: __expectString(output.Message),
1794
- };
1795
- };
1796
- const de_CreateAddressResult = (output, context) => {
1797
- return {
1798
- AddressId: __expectString(output.AddressId),
1799
- };
1800
- };
1801
- const de_CreateClusterResult = (output, context) => {
1802
- return {
1803
- ClusterId: __expectString(output.ClusterId),
1804
- };
1805
- };
1806
- const de_CreateJobResult = (output, context) => {
1807
- return {
1808
- JobId: __expectString(output.JobId),
1809
- };
1810
- };
1811
- const de_CreateLongTermPricingResult = (output, context) => {
1812
- return {
1813
- LongTermPricingId: __expectString(output.LongTermPricingId),
1814
- };
1815
- };
1816
- const de_CreateReturnShippingLabelResult = (output, context) => {
1817
- return {
1818
- Status: __expectString(output.Status),
1819
- };
1820
- };
1821
- const de_DataTransfer = (output, context) => {
1822
- return {
1823
- BytesTransferred: __expectLong(output.BytesTransferred),
1824
- ObjectsTransferred: __expectLong(output.ObjectsTransferred),
1825
- TotalBytes: __expectLong(output.TotalBytes),
1826
- TotalObjects: __expectLong(output.TotalObjects),
1827
- };
1828
- };
1829
- const de_DependentService = (output, context) => {
1830
- return {
1831
- ServiceName: __expectString(output.ServiceName),
1832
- ServiceVersion: output.ServiceVersion != null ? de_ServiceVersion(output.ServiceVersion, context) : undefined,
1833
- };
1834
- };
1835
- const de_DependentServiceList = (output, context) => {
1836
- const retVal = (output || [])
1837
- .filter((e) => e != null)
1838
- .map((entry) => {
1839
- if (entry === null) {
1840
- return null;
1841
- }
1842
- return de_DependentService(entry, context);
1843
- });
1844
- return retVal;
1845
- };
1846
- const de_DescribeAddressesResult = (output, context) => {
1847
- return {
1848
- Addresses: output.Addresses != null ? de_AddressList(output.Addresses, context) : undefined,
1849
- NextToken: __expectString(output.NextToken),
1850
- };
1851
- };
1852
- const de_DescribeAddressResult = (output, context) => {
1853
- return {
1854
- Address: output.Address != null ? de_Address(output.Address, context) : undefined,
1855
- };
1856
1228
  };
1857
1229
  const de_DescribeClusterResult = (output, context) => {
1858
- return {
1859
- ClusterMetadata: output.ClusterMetadata != null ? de_ClusterMetadata(output.ClusterMetadata, context) : undefined,
1860
- };
1230
+ return take(output, {
1231
+ ClusterMetadata: (_) => de_ClusterMetadata(_, context),
1232
+ });
1861
1233
  };
1862
1234
  const de_DescribeJobResult = (output, context) => {
1863
- return {
1864
- JobMetadata: output.JobMetadata != null ? de_JobMetadata(output.JobMetadata, context) : undefined,
1865
- SubJobMetadata: output.SubJobMetadata != null ? de_JobMetadataList(output.SubJobMetadata, context) : undefined,
1866
- };
1867
- };
1868
- const de_DescribeReturnShippingLabelResult = (output, context) => {
1869
- return {
1870
- ExpirationDate: output.ExpirationDate != null
1871
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ExpirationDate)))
1872
- : undefined,
1873
- ReturnShippingLabelURI: __expectString(output.ReturnShippingLabelURI),
1874
- Status: __expectString(output.Status),
1875
- };
1876
- };
1877
- const de_DeviceConfiguration = (output, context) => {
1878
- return {
1879
- SnowconeDeviceConfiguration: output.SnowconeDeviceConfiguration != null
1880
- ? de_SnowconeDeviceConfiguration(output.SnowconeDeviceConfiguration, context)
1881
- : undefined,
1882
- };
1883
- };
1884
- const de_Ec2AmiResource = (output, context) => {
1885
- return {
1886
- AmiId: __expectString(output.AmiId),
1887
- SnowballAmiId: __expectString(output.SnowballAmiId),
1888
- };
1889
- };
1890
- const de_Ec2AmiResourceList = (output, context) => {
1891
- const retVal = (output || [])
1892
- .filter((e) => e != null)
1893
- .map((entry) => {
1894
- if (entry === null) {
1895
- return null;
1896
- }
1897
- return de_Ec2AmiResource(entry, context);
1235
+ return take(output, {
1236
+ JobMetadata: (_) => de_JobMetadata(_, context),
1237
+ SubJobMetadata: (_) => de_JobMetadataList(_, context),
1898
1238
  });
1899
- return retVal;
1900
- };
1901
- const de_Ec2RequestFailedException = (output, context) => {
1902
- return {
1903
- Message: __expectString(output.Message),
1904
- };
1905
- };
1906
- const de_EKSOnDeviceServiceConfiguration = (output, context) => {
1907
- return {
1908
- EKSAnywhereVersion: __expectString(output.EKSAnywhereVersion),
1909
- KubernetesVersion: __expectString(output.KubernetesVersion),
1910
- };
1911
1239
  };
1912
- const de_EventTriggerDefinition = (output, context) => {
1913
- return {
1914
- EventResourceARN: __expectString(output.EventResourceARN),
1915
- };
1916
- };
1917
- const de_EventTriggerDefinitionList = (output, context) => {
1918
- const retVal = (output || [])
1919
- .filter((e) => e != null)
1920
- .map((entry) => {
1921
- if (entry === null) {
1922
- return null;
1923
- }
1924
- return de_EventTriggerDefinition(entry, context);
1240
+ const de_DescribeReturnShippingLabelResult = (output, context) => {
1241
+ return take(output, {
1242
+ ExpirationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1243
+ ReturnShippingLabelURI: __expectString,
1244
+ Status: __expectString,
1925
1245
  });
1926
- return retVal;
1927
- };
1928
- const de_GetJobManifestResult = (output, context) => {
1929
- return {
1930
- ManifestURI: __expectString(output.ManifestURI),
1931
- };
1932
- };
1933
- const de_GetJobUnlockCodeResult = (output, context) => {
1934
- return {
1935
- UnlockCode: __expectString(output.UnlockCode),
1936
- };
1937
- };
1938
- const de_GetSnowballUsageResult = (output, context) => {
1939
- return {
1940
- SnowballLimit: __expectInt32(output.SnowballLimit),
1941
- SnowballsInUse: __expectInt32(output.SnowballsInUse),
1942
- };
1943
- };
1944
- const de_GetSoftwareUpdatesResult = (output, context) => {
1945
- return {
1946
- UpdatesURI: __expectString(output.UpdatesURI),
1947
- };
1948
- };
1949
- const de_INDTaxDocuments = (output, context) => {
1950
- return {
1951
- GSTIN: __expectString(output.GSTIN),
1952
- };
1953
- };
1954
- const de_InvalidAddressException = (output, context) => {
1955
- return {
1956
- Message: __expectString(output.Message),
1957
- };
1958
- };
1959
- const de_InvalidInputCombinationException = (output, context) => {
1960
- return {
1961
- Message: __expectString(output.Message),
1962
- };
1963
- };
1964
- const de_InvalidJobStateException = (output, context) => {
1965
- return {
1966
- Message: __expectString(output.Message),
1967
- };
1968
- };
1969
- const de_InvalidNextTokenException = (output, context) => {
1970
- return {
1971
- Message: __expectString(output.Message),
1972
- };
1973
- };
1974
- const de_InvalidResourceException = (output, context) => {
1975
- return {
1976
- Message: __expectString(output.Message),
1977
- ResourceType: __expectString(output.ResourceType),
1978
- };
1979
1246
  };
1980
1247
  const de_JobListEntry = (output, context) => {
1981
- return {
1982
- CreationDate: output.CreationDate != null
1983
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
1984
- : undefined,
1985
- Description: __expectString(output.Description),
1986
- IsMaster: __expectBoolean(output.IsMaster),
1987
- JobId: __expectString(output.JobId),
1988
- JobState: __expectString(output.JobState),
1989
- JobType: __expectString(output.JobType),
1990
- SnowballType: __expectString(output.SnowballType),
1991
- };
1248
+ return take(output, {
1249
+ CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1250
+ Description: __expectString,
1251
+ IsMaster: __expectBoolean,
1252
+ JobId: __expectString,
1253
+ JobState: __expectString,
1254
+ JobType: __expectString,
1255
+ SnowballType: __expectString,
1256
+ });
1992
1257
  };
1993
1258
  const de_JobListEntryList = (output, context) => {
1994
1259
  const retVal = (output || [])
1995
1260
  .filter((e) => e != null)
1996
1261
  .map((entry) => {
1997
- if (entry === null) {
1998
- return null;
1999
- }
2000
1262
  return de_JobListEntry(entry, context);
2001
1263
  });
2002
1264
  return retVal;
2003
1265
  };
2004
- const de_JobLogs = (output, context) => {
2005
- return {
2006
- JobCompletionReportURI: __expectString(output.JobCompletionReportURI),
2007
- JobFailureLogURI: __expectString(output.JobFailureLogURI),
2008
- JobSuccessLogURI: __expectString(output.JobSuccessLogURI),
2009
- };
2010
- };
2011
1266
  const de_JobMetadata = (output, context) => {
2012
- return {
2013
- AddressId: __expectString(output.AddressId),
2014
- ClusterId: __expectString(output.ClusterId),
2015
- CreationDate: output.CreationDate != null
2016
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
2017
- : undefined,
2018
- DataTransferProgress: output.DataTransferProgress != null ? de_DataTransfer(output.DataTransferProgress, context) : undefined,
2019
- Description: __expectString(output.Description),
2020
- DeviceConfiguration: output.DeviceConfiguration != null ? de_DeviceConfiguration(output.DeviceConfiguration, context) : undefined,
2021
- ForwardingAddressId: __expectString(output.ForwardingAddressId),
2022
- JobId: __expectString(output.JobId),
2023
- JobLogInfo: output.JobLogInfo != null ? de_JobLogs(output.JobLogInfo, context) : undefined,
2024
- JobState: __expectString(output.JobState),
2025
- JobType: __expectString(output.JobType),
2026
- KmsKeyARN: __expectString(output.KmsKeyARN),
2027
- LongTermPricingId: __expectString(output.LongTermPricingId),
2028
- Notification: output.Notification != null ? de_Notification(output.Notification, context) : undefined,
2029
- OnDeviceServiceConfiguration: output.OnDeviceServiceConfiguration != null
2030
- ? de_OnDeviceServiceConfiguration(output.OnDeviceServiceConfiguration, context)
2031
- : undefined,
2032
- RemoteManagement: __expectString(output.RemoteManagement),
2033
- Resources: output.Resources != null ? de_JobResource(output.Resources, context) : undefined,
2034
- RoleARN: __expectString(output.RoleARN),
2035
- ShippingDetails: output.ShippingDetails != null ? de_ShippingDetails(output.ShippingDetails, context) : undefined,
2036
- SnowballCapacityPreference: __expectString(output.SnowballCapacityPreference),
2037
- SnowballType: __expectString(output.SnowballType),
2038
- TaxDocuments: output.TaxDocuments != null ? de_TaxDocuments(output.TaxDocuments, context) : undefined,
2039
- };
1267
+ return take(output, {
1268
+ AddressId: __expectString,
1269
+ ClusterId: __expectString,
1270
+ CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1271
+ DataTransferProgress: _json,
1272
+ Description: __expectString,
1273
+ DeviceConfiguration: _json,
1274
+ ForwardingAddressId: __expectString,
1275
+ JobId: __expectString,
1276
+ JobLogInfo: _json,
1277
+ JobState: __expectString,
1278
+ JobType: __expectString,
1279
+ KmsKeyARN: __expectString,
1280
+ LongTermPricingId: __expectString,
1281
+ Notification: _json,
1282
+ OnDeviceServiceConfiguration: _json,
1283
+ RemoteManagement: __expectString,
1284
+ Resources: _json,
1285
+ RoleARN: __expectString,
1286
+ ShippingDetails: _json,
1287
+ SnowballCapacityPreference: __expectString,
1288
+ SnowballType: __expectString,
1289
+ TaxDocuments: _json,
1290
+ });
2040
1291
  };
2041
1292
  const de_JobMetadataList = (output, context) => {
2042
1293
  const retVal = (output || [])
2043
1294
  .filter((e) => e != null)
2044
1295
  .map((entry) => {
2045
- if (entry === null) {
2046
- return null;
2047
- }
2048
1296
  return de_JobMetadata(entry, context);
2049
1297
  });
2050
1298
  return retVal;
2051
1299
  };
2052
- const de_JobResource = (output, context) => {
2053
- return {
2054
- Ec2AmiResources: output.Ec2AmiResources != null ? de_Ec2AmiResourceList(output.Ec2AmiResources, context) : undefined,
2055
- LambdaResources: output.LambdaResources != null ? de_LambdaResourceList(output.LambdaResources, context) : undefined,
2056
- S3Resources: output.S3Resources != null ? de_S3ResourceList(output.S3Resources, context) : undefined,
2057
- };
2058
- };
2059
- const de_JobStateList = (output, context) => {
2060
- const retVal = (output || [])
2061
- .filter((e) => e != null)
2062
- .map((entry) => {
2063
- if (entry === null) {
2064
- return null;
2065
- }
2066
- return __expectString(entry);
2067
- });
2068
- return retVal;
2069
- };
2070
- const de_KeyRange = (output, context) => {
2071
- return {
2072
- BeginMarker: __expectString(output.BeginMarker),
2073
- EndMarker: __expectString(output.EndMarker),
2074
- };
2075
- };
2076
- const de_KMSRequestFailedException = (output, context) => {
2077
- return {
2078
- Message: __expectString(output.Message),
2079
- };
2080
- };
2081
- const de_LambdaResource = (output, context) => {
2082
- return {
2083
- EventTriggers: output.EventTriggers != null ? de_EventTriggerDefinitionList(output.EventTriggers, context) : undefined,
2084
- LambdaArn: __expectString(output.LambdaArn),
2085
- };
2086
- };
2087
- const de_LambdaResourceList = (output, context) => {
2088
- const retVal = (output || [])
2089
- .filter((e) => e != null)
2090
- .map((entry) => {
2091
- if (entry === null) {
2092
- return null;
2093
- }
2094
- return de_LambdaResource(entry, context);
2095
- });
2096
- return retVal;
2097
- };
2098
1300
  const de_ListClusterJobsResult = (output, context) => {
2099
- return {
2100
- JobListEntries: output.JobListEntries != null ? de_JobListEntryList(output.JobListEntries, context) : undefined,
2101
- NextToken: __expectString(output.NextToken),
2102
- };
1301
+ return take(output, {
1302
+ JobListEntries: (_) => de_JobListEntryList(_, context),
1303
+ NextToken: __expectString,
1304
+ });
2103
1305
  };
2104
1306
  const de_ListClustersResult = (output, context) => {
2105
- return {
2106
- ClusterListEntries: output.ClusterListEntries != null ? de_ClusterListEntryList(output.ClusterListEntries, context) : undefined,
2107
- NextToken: __expectString(output.NextToken),
2108
- };
2109
- };
2110
- const de_ListCompatibleImagesResult = (output, context) => {
2111
- return {
2112
- CompatibleImages: output.CompatibleImages != null ? de_CompatibleImageList(output.CompatibleImages, context) : undefined,
2113
- NextToken: __expectString(output.NextToken),
2114
- };
1307
+ return take(output, {
1308
+ ClusterListEntries: (_) => de_ClusterListEntryList(_, context),
1309
+ NextToken: __expectString,
1310
+ });
2115
1311
  };
2116
1312
  const de_ListJobsResult = (output, context) => {
2117
- return {
2118
- JobListEntries: output.JobListEntries != null ? de_JobListEntryList(output.JobListEntries, context) : undefined,
2119
- NextToken: __expectString(output.NextToken),
2120
- };
1313
+ return take(output, {
1314
+ JobListEntries: (_) => de_JobListEntryList(_, context),
1315
+ NextToken: __expectString,
1316
+ });
2121
1317
  };
2122
1318
  const de_ListLongTermPricingResult = (output, context) => {
2123
- return {
2124
- LongTermPricingEntries: output.LongTermPricingEntries != null
2125
- ? de_LongTermPricingEntryList(output.LongTermPricingEntries, context)
2126
- : undefined,
2127
- NextToken: __expectString(output.NextToken),
2128
- };
2129
- };
2130
- const de_ListServiceVersionsResult = (output, context) => {
2131
- return {
2132
- DependentServices: output.DependentServices != null ? de_DependentServiceList(output.DependentServices, context) : undefined,
2133
- NextToken: __expectString(output.NextToken),
2134
- ServiceName: __expectString(output.ServiceName),
2135
- ServiceVersions: output.ServiceVersions != null ? de_ServiceVersionList(output.ServiceVersions, context) : undefined,
2136
- };
2137
- };
2138
- const de_LongTermPricingAssociatedJobIdList = (output, context) => {
2139
- const retVal = (output || [])
2140
- .filter((e) => e != null)
2141
- .map((entry) => {
2142
- if (entry === null) {
2143
- return null;
2144
- }
2145
- return __expectString(entry);
1319
+ return take(output, {
1320
+ LongTermPricingEntries: (_) => de_LongTermPricingEntryList(_, context),
1321
+ NextToken: __expectString,
2146
1322
  });
2147
- return retVal;
2148
1323
  };
2149
1324
  const de_LongTermPricingEntryList = (output, context) => {
2150
1325
  const retVal = (output || [])
2151
1326
  .filter((e) => e != null)
2152
1327
  .map((entry) => {
2153
- if (entry === null) {
2154
- return null;
2155
- }
2156
1328
  return de_LongTermPricingListEntry(entry, context);
2157
1329
  });
2158
1330
  return retVal;
2159
1331
  };
2160
1332
  const de_LongTermPricingListEntry = (output, context) => {
2161
- return {
2162
- CurrentActiveJob: __expectString(output.CurrentActiveJob),
2163
- IsLongTermPricingAutoRenew: __expectBoolean(output.IsLongTermPricingAutoRenew),
2164
- JobIds: output.JobIds != null ? de_LongTermPricingAssociatedJobIdList(output.JobIds, context) : undefined,
2165
- LongTermPricingEndDate: output.LongTermPricingEndDate != null
2166
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LongTermPricingEndDate)))
2167
- : undefined,
2168
- LongTermPricingId: __expectString(output.LongTermPricingId),
2169
- LongTermPricingStartDate: output.LongTermPricingStartDate != null
2170
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LongTermPricingStartDate)))
2171
- : undefined,
2172
- LongTermPricingStatus: __expectString(output.LongTermPricingStatus),
2173
- LongTermPricingType: __expectString(output.LongTermPricingType),
2174
- ReplacementJob: __expectString(output.ReplacementJob),
2175
- SnowballType: __expectString(output.SnowballType),
2176
- };
2177
- };
2178
- const de_NFSOnDeviceServiceConfiguration = (output, context) => {
2179
- return {
2180
- StorageLimit: __expectInt32(output.StorageLimit),
2181
- StorageUnit: __expectString(output.StorageUnit),
2182
- };
2183
- };
2184
- const de_Notification = (output, context) => {
2185
- return {
2186
- JobStatesToNotify: output.JobStatesToNotify != null ? de_JobStateList(output.JobStatesToNotify, context) : undefined,
2187
- NotifyAll: __expectBoolean(output.NotifyAll),
2188
- SnsTopicARN: __expectString(output.SnsTopicARN),
2189
- };
2190
- };
2191
- const de_OnDeviceServiceConfiguration = (output, context) => {
2192
- return {
2193
- EKSOnDeviceService: output.EKSOnDeviceService != null
2194
- ? de_EKSOnDeviceServiceConfiguration(output.EKSOnDeviceService, context)
2195
- : undefined,
2196
- NFSOnDeviceService: output.NFSOnDeviceService != null
2197
- ? de_NFSOnDeviceServiceConfiguration(output.NFSOnDeviceService, context)
2198
- : undefined,
2199
- TGWOnDeviceService: output.TGWOnDeviceService != null
2200
- ? de_TGWOnDeviceServiceConfiguration(output.TGWOnDeviceService, context)
2201
- : undefined,
2202
- };
2203
- };
2204
- const de_ReturnShippingLabelAlreadyExistsException = (output, context) => {
2205
- return {
2206
- Message: __expectString(output.Message),
2207
- };
2208
- };
2209
- const de_S3Resource = (output, context) => {
2210
- return {
2211
- BucketArn: __expectString(output.BucketArn),
2212
- KeyRange: output.KeyRange != null ? de_KeyRange(output.KeyRange, context) : undefined,
2213
- TargetOnDeviceServices: output.TargetOnDeviceServices != null
2214
- ? de_TargetOnDeviceServiceList(output.TargetOnDeviceServices, context)
2215
- : undefined,
2216
- };
2217
- };
2218
- const de_S3ResourceList = (output, context) => {
2219
- const retVal = (output || [])
2220
- .filter((e) => e != null)
2221
- .map((entry) => {
2222
- if (entry === null) {
2223
- return null;
2224
- }
2225
- return de_S3Resource(entry, context);
1333
+ return take(output, {
1334
+ CurrentActiveJob: __expectString,
1335
+ IsLongTermPricingAutoRenew: __expectBoolean,
1336
+ JobIds: _json,
1337
+ LongTermPricingEndDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1338
+ LongTermPricingId: __expectString,
1339
+ LongTermPricingStartDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1340
+ LongTermPricingStatus: __expectString,
1341
+ LongTermPricingType: __expectString,
1342
+ ReplacementJob: __expectString,
1343
+ SnowballType: __expectString,
2226
1344
  });
2227
- return retVal;
2228
- };
2229
- const de_ServiceVersion = (output, context) => {
2230
- return {
2231
- Version: __expectString(output.Version),
2232
- };
2233
- };
2234
- const de_ServiceVersionList = (output, context) => {
2235
- const retVal = (output || [])
2236
- .filter((e) => e != null)
2237
- .map((entry) => {
2238
- if (entry === null) {
2239
- return null;
2240
- }
2241
- return de_ServiceVersion(entry, context);
2242
- });
2243
- return retVal;
2244
- };
2245
- const de_Shipment = (output, context) => {
2246
- return {
2247
- Status: __expectString(output.Status),
2248
- TrackingNumber: __expectString(output.TrackingNumber),
2249
- };
2250
- };
2251
- const de_ShippingDetails = (output, context) => {
2252
- return {
2253
- InboundShipment: output.InboundShipment != null ? de_Shipment(output.InboundShipment, context) : undefined,
2254
- OutboundShipment: output.OutboundShipment != null ? de_Shipment(output.OutboundShipment, context) : undefined,
2255
- ShippingOption: __expectString(output.ShippingOption),
2256
- };
2257
- };
2258
- const de_SnowconeDeviceConfiguration = (output, context) => {
2259
- return {
2260
- WirelessConnection: output.WirelessConnection != null ? de_WirelessConnection(output.WirelessConnection, context) : undefined,
2261
- };
2262
- };
2263
- const de_TargetOnDeviceService = (output, context) => {
2264
- return {
2265
- ServiceName: __expectString(output.ServiceName),
2266
- TransferOption: __expectString(output.TransferOption),
2267
- };
2268
- };
2269
- const de_TargetOnDeviceServiceList = (output, context) => {
2270
- const retVal = (output || [])
2271
- .filter((e) => e != null)
2272
- .map((entry) => {
2273
- if (entry === null) {
2274
- return null;
2275
- }
2276
- return de_TargetOnDeviceService(entry, context);
2277
- });
2278
- return retVal;
2279
- };
2280
- const de_TaxDocuments = (output, context) => {
2281
- return {
2282
- IND: output.IND != null ? de_INDTaxDocuments(output.IND, context) : undefined,
2283
- };
2284
- };
2285
- const de_TGWOnDeviceServiceConfiguration = (output, context) => {
2286
- return {
2287
- StorageLimit: __expectInt32(output.StorageLimit),
2288
- StorageUnit: __expectString(output.StorageUnit),
2289
- };
2290
- };
2291
- const de_UnsupportedAddressException = (output, context) => {
2292
- return {
2293
- Message: __expectString(output.Message),
2294
- };
2295
- };
2296
- const de_UpdateClusterResult = (output, context) => {
2297
- return {};
2298
- };
2299
- const de_UpdateJobResult = (output, context) => {
2300
- return {};
2301
- };
2302
- const de_UpdateJobShipmentStateResult = (output, context) => {
2303
- return {};
2304
- };
2305
- const de_UpdateLongTermPricingResult = (output, context) => {
2306
- return {};
2307
- };
2308
- const de_WirelessConnection = (output, context) => {
2309
- return {
2310
- IsWifiEnabled: __expectBoolean(output.IsWifiEnabled),
2311
- };
2312
1345
  };
2313
1346
  const deserializeMetadata = (output) => ({
2314
1347
  httpStatusCode: output.statusCode,
@@ -2323,6 +1356,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
2323
1356
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
2324
1357
  };
2325
1358
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1359
+ const throwDefaultError = withBaseException(__BaseException);
2326
1360
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
2327
1361
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2328
1362
  const contents = {
@@ -2341,6 +1375,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
2341
1375
  }
2342
1376
  return new __HttpRequest(contents);
2343
1377
  };
1378
+ function sharedHeaders(operation) {
1379
+ return {
1380
+ "content-type": "application/x-amz-json-1.1",
1381
+ "x-amz-target": `AWSIESnowballJobManagementService.${operation}`,
1382
+ };
1383
+ }
2344
1384
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2345
1385
  if (encoded.length) {
2346
1386
  return JSON.parse(encoded);