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