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