@aws-sdk/client-snowball 3.315.0 → 3.317.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { CancelClusterCommand, } from "./commands/CancelClusterCommand";
2
3
  import { CancelJobCommand } from "./commands/CancelJobCommand";
3
4
  import { CreateAddressCommand, } from "./commands/CreateAddressCommand";
@@ -25,369 +26,34 @@ import { UpdateJobCommand } from "./commands/UpdateJobCommand";
25
26
  import { UpdateJobShipmentStateCommand, } from "./commands/UpdateJobShipmentStateCommand";
26
27
  import { UpdateLongTermPricingCommand, } from "./commands/UpdateLongTermPricingCommand";
27
28
  import { SnowballClient } from "./SnowballClient";
29
+ const commands = {
30
+ CancelClusterCommand,
31
+ CancelJobCommand,
32
+ CreateAddressCommand,
33
+ CreateClusterCommand,
34
+ CreateJobCommand,
35
+ CreateLongTermPricingCommand,
36
+ CreateReturnShippingLabelCommand,
37
+ DescribeAddressCommand,
38
+ DescribeAddressesCommand,
39
+ DescribeClusterCommand,
40
+ DescribeJobCommand,
41
+ DescribeReturnShippingLabelCommand,
42
+ GetJobManifestCommand,
43
+ GetJobUnlockCodeCommand,
44
+ GetSnowballUsageCommand,
45
+ GetSoftwareUpdatesCommand,
46
+ ListClusterJobsCommand,
47
+ ListClustersCommand,
48
+ ListCompatibleImagesCommand,
49
+ ListJobsCommand,
50
+ ListLongTermPricingCommand,
51
+ ListServiceVersionsCommand,
52
+ UpdateClusterCommand,
53
+ UpdateJobCommand,
54
+ UpdateJobShipmentStateCommand,
55
+ UpdateLongTermPricingCommand,
56
+ };
28
57
  export class Snowball extends SnowballClient {
29
- cancelCluster(args, optionsOrCb, cb) {
30
- const command = new CancelClusterCommand(args);
31
- if (typeof optionsOrCb === "function") {
32
- this.send(command, optionsOrCb);
33
- }
34
- else if (typeof cb === "function") {
35
- if (typeof optionsOrCb !== "object")
36
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
37
- this.send(command, optionsOrCb || {}, cb);
38
- }
39
- else {
40
- return this.send(command, optionsOrCb);
41
- }
42
- }
43
- cancelJob(args, optionsOrCb, cb) {
44
- const command = new CancelJobCommand(args);
45
- if (typeof optionsOrCb === "function") {
46
- this.send(command, optionsOrCb);
47
- }
48
- else if (typeof cb === "function") {
49
- if (typeof optionsOrCb !== "object")
50
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
51
- this.send(command, optionsOrCb || {}, cb);
52
- }
53
- else {
54
- return this.send(command, optionsOrCb);
55
- }
56
- }
57
- createAddress(args, optionsOrCb, cb) {
58
- const command = new CreateAddressCommand(args);
59
- if (typeof optionsOrCb === "function") {
60
- this.send(command, optionsOrCb);
61
- }
62
- else if (typeof cb === "function") {
63
- if (typeof optionsOrCb !== "object")
64
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
65
- this.send(command, optionsOrCb || {}, cb);
66
- }
67
- else {
68
- return this.send(command, optionsOrCb);
69
- }
70
- }
71
- createCluster(args, optionsOrCb, cb) {
72
- const command = new CreateClusterCommand(args);
73
- if (typeof optionsOrCb === "function") {
74
- this.send(command, optionsOrCb);
75
- }
76
- else if (typeof cb === "function") {
77
- if (typeof optionsOrCb !== "object")
78
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
79
- this.send(command, optionsOrCb || {}, cb);
80
- }
81
- else {
82
- return this.send(command, optionsOrCb);
83
- }
84
- }
85
- createJob(args, optionsOrCb, cb) {
86
- const command = new CreateJobCommand(args);
87
- if (typeof optionsOrCb === "function") {
88
- this.send(command, optionsOrCb);
89
- }
90
- else if (typeof cb === "function") {
91
- if (typeof optionsOrCb !== "object")
92
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
93
- this.send(command, optionsOrCb || {}, cb);
94
- }
95
- else {
96
- return this.send(command, optionsOrCb);
97
- }
98
- }
99
- createLongTermPricing(args, optionsOrCb, cb) {
100
- const command = new CreateLongTermPricingCommand(args);
101
- if (typeof optionsOrCb === "function") {
102
- this.send(command, optionsOrCb);
103
- }
104
- else if (typeof cb === "function") {
105
- if (typeof optionsOrCb !== "object")
106
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
107
- this.send(command, optionsOrCb || {}, cb);
108
- }
109
- else {
110
- return this.send(command, optionsOrCb);
111
- }
112
- }
113
- createReturnShippingLabel(args, optionsOrCb, cb) {
114
- const command = new CreateReturnShippingLabelCommand(args);
115
- if (typeof optionsOrCb === "function") {
116
- this.send(command, optionsOrCb);
117
- }
118
- else if (typeof cb === "function") {
119
- if (typeof optionsOrCb !== "object")
120
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
121
- this.send(command, optionsOrCb || {}, cb);
122
- }
123
- else {
124
- return this.send(command, optionsOrCb);
125
- }
126
- }
127
- describeAddress(args, optionsOrCb, cb) {
128
- const command = new DescribeAddressCommand(args);
129
- if (typeof optionsOrCb === "function") {
130
- this.send(command, optionsOrCb);
131
- }
132
- else if (typeof cb === "function") {
133
- if (typeof optionsOrCb !== "object")
134
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
135
- this.send(command, optionsOrCb || {}, cb);
136
- }
137
- else {
138
- return this.send(command, optionsOrCb);
139
- }
140
- }
141
- describeAddresses(args, optionsOrCb, cb) {
142
- const command = new DescribeAddressesCommand(args);
143
- if (typeof optionsOrCb === "function") {
144
- this.send(command, optionsOrCb);
145
- }
146
- else if (typeof cb === "function") {
147
- if (typeof optionsOrCb !== "object")
148
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
149
- this.send(command, optionsOrCb || {}, cb);
150
- }
151
- else {
152
- return this.send(command, optionsOrCb);
153
- }
154
- }
155
- describeCluster(args, optionsOrCb, cb) {
156
- const command = new DescribeClusterCommand(args);
157
- if (typeof optionsOrCb === "function") {
158
- this.send(command, optionsOrCb);
159
- }
160
- else if (typeof cb === "function") {
161
- if (typeof optionsOrCb !== "object")
162
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
163
- this.send(command, optionsOrCb || {}, cb);
164
- }
165
- else {
166
- return this.send(command, optionsOrCb);
167
- }
168
- }
169
- describeJob(args, optionsOrCb, cb) {
170
- const command = new DescribeJobCommand(args);
171
- if (typeof optionsOrCb === "function") {
172
- this.send(command, optionsOrCb);
173
- }
174
- else if (typeof cb === "function") {
175
- if (typeof optionsOrCb !== "object")
176
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
177
- this.send(command, optionsOrCb || {}, cb);
178
- }
179
- else {
180
- return this.send(command, optionsOrCb);
181
- }
182
- }
183
- describeReturnShippingLabel(args, optionsOrCb, cb) {
184
- const command = new DescribeReturnShippingLabelCommand(args);
185
- if (typeof optionsOrCb === "function") {
186
- this.send(command, optionsOrCb);
187
- }
188
- else if (typeof cb === "function") {
189
- if (typeof optionsOrCb !== "object")
190
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
191
- this.send(command, optionsOrCb || {}, cb);
192
- }
193
- else {
194
- return this.send(command, optionsOrCb);
195
- }
196
- }
197
- getJobManifest(args, optionsOrCb, cb) {
198
- const command = new GetJobManifestCommand(args);
199
- if (typeof optionsOrCb === "function") {
200
- this.send(command, optionsOrCb);
201
- }
202
- else if (typeof cb === "function") {
203
- if (typeof optionsOrCb !== "object")
204
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
205
- this.send(command, optionsOrCb || {}, cb);
206
- }
207
- else {
208
- return this.send(command, optionsOrCb);
209
- }
210
- }
211
- getJobUnlockCode(args, optionsOrCb, cb) {
212
- const command = new GetJobUnlockCodeCommand(args);
213
- if (typeof optionsOrCb === "function") {
214
- this.send(command, optionsOrCb);
215
- }
216
- else if (typeof cb === "function") {
217
- if (typeof optionsOrCb !== "object")
218
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
219
- this.send(command, optionsOrCb || {}, cb);
220
- }
221
- else {
222
- return this.send(command, optionsOrCb);
223
- }
224
- }
225
- getSnowballUsage(args, optionsOrCb, cb) {
226
- const command = new GetSnowballUsageCommand(args);
227
- if (typeof optionsOrCb === "function") {
228
- this.send(command, optionsOrCb);
229
- }
230
- else if (typeof cb === "function") {
231
- if (typeof optionsOrCb !== "object")
232
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
233
- this.send(command, optionsOrCb || {}, cb);
234
- }
235
- else {
236
- return this.send(command, optionsOrCb);
237
- }
238
- }
239
- getSoftwareUpdates(args, optionsOrCb, cb) {
240
- const command = new GetSoftwareUpdatesCommand(args);
241
- if (typeof optionsOrCb === "function") {
242
- this.send(command, optionsOrCb);
243
- }
244
- else if (typeof cb === "function") {
245
- if (typeof optionsOrCb !== "object")
246
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
247
- this.send(command, optionsOrCb || {}, cb);
248
- }
249
- else {
250
- return this.send(command, optionsOrCb);
251
- }
252
- }
253
- listClusterJobs(args, optionsOrCb, cb) {
254
- const command = new ListClusterJobsCommand(args);
255
- if (typeof optionsOrCb === "function") {
256
- this.send(command, optionsOrCb);
257
- }
258
- else if (typeof cb === "function") {
259
- if (typeof optionsOrCb !== "object")
260
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
261
- this.send(command, optionsOrCb || {}, cb);
262
- }
263
- else {
264
- return this.send(command, optionsOrCb);
265
- }
266
- }
267
- listClusters(args, optionsOrCb, cb) {
268
- const command = new ListClustersCommand(args);
269
- if (typeof optionsOrCb === "function") {
270
- this.send(command, optionsOrCb);
271
- }
272
- else if (typeof cb === "function") {
273
- if (typeof optionsOrCb !== "object")
274
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
275
- this.send(command, optionsOrCb || {}, cb);
276
- }
277
- else {
278
- return this.send(command, optionsOrCb);
279
- }
280
- }
281
- listCompatibleImages(args, optionsOrCb, cb) {
282
- const command = new ListCompatibleImagesCommand(args);
283
- if (typeof optionsOrCb === "function") {
284
- this.send(command, optionsOrCb);
285
- }
286
- else if (typeof cb === "function") {
287
- if (typeof optionsOrCb !== "object")
288
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
289
- this.send(command, optionsOrCb || {}, cb);
290
- }
291
- else {
292
- return this.send(command, optionsOrCb);
293
- }
294
- }
295
- listJobs(args, optionsOrCb, cb) {
296
- const command = new ListJobsCommand(args);
297
- if (typeof optionsOrCb === "function") {
298
- this.send(command, optionsOrCb);
299
- }
300
- else if (typeof cb === "function") {
301
- if (typeof optionsOrCb !== "object")
302
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
303
- this.send(command, optionsOrCb || {}, cb);
304
- }
305
- else {
306
- return this.send(command, optionsOrCb);
307
- }
308
- }
309
- listLongTermPricing(args, optionsOrCb, cb) {
310
- const command = new ListLongTermPricingCommand(args);
311
- if (typeof optionsOrCb === "function") {
312
- this.send(command, optionsOrCb);
313
- }
314
- else if (typeof cb === "function") {
315
- if (typeof optionsOrCb !== "object")
316
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
317
- this.send(command, optionsOrCb || {}, cb);
318
- }
319
- else {
320
- return this.send(command, optionsOrCb);
321
- }
322
- }
323
- listServiceVersions(args, optionsOrCb, cb) {
324
- const command = new ListServiceVersionsCommand(args);
325
- if (typeof optionsOrCb === "function") {
326
- this.send(command, optionsOrCb);
327
- }
328
- else if (typeof cb === "function") {
329
- if (typeof optionsOrCb !== "object")
330
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
331
- this.send(command, optionsOrCb || {}, cb);
332
- }
333
- else {
334
- return this.send(command, optionsOrCb);
335
- }
336
- }
337
- updateCluster(args, optionsOrCb, cb) {
338
- const command = new UpdateClusterCommand(args);
339
- if (typeof optionsOrCb === "function") {
340
- this.send(command, optionsOrCb);
341
- }
342
- else if (typeof cb === "function") {
343
- if (typeof optionsOrCb !== "object")
344
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
345
- this.send(command, optionsOrCb || {}, cb);
346
- }
347
- else {
348
- return this.send(command, optionsOrCb);
349
- }
350
- }
351
- updateJob(args, optionsOrCb, cb) {
352
- const command = new UpdateJobCommand(args);
353
- if (typeof optionsOrCb === "function") {
354
- this.send(command, optionsOrCb);
355
- }
356
- else if (typeof cb === "function") {
357
- if (typeof optionsOrCb !== "object")
358
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
359
- this.send(command, optionsOrCb || {}, cb);
360
- }
361
- else {
362
- return this.send(command, optionsOrCb);
363
- }
364
- }
365
- updateJobShipmentState(args, optionsOrCb, cb) {
366
- const command = new UpdateJobShipmentStateCommand(args);
367
- if (typeof optionsOrCb === "function") {
368
- this.send(command, optionsOrCb);
369
- }
370
- else if (typeof cb === "function") {
371
- if (typeof optionsOrCb !== "object")
372
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
373
- this.send(command, optionsOrCb || {}, cb);
374
- }
375
- else {
376
- return this.send(command, optionsOrCb);
377
- }
378
- }
379
- updateLongTermPricing(args, optionsOrCb, cb) {
380
- const command = new UpdateLongTermPricingCommand(args);
381
- if (typeof optionsOrCb === "function") {
382
- this.send(command, optionsOrCb);
383
- }
384
- else if (typeof cb === "function") {
385
- if (typeof optionsOrCb !== "object")
386
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
387
- this.send(command, optionsOrCb || {}, cb);
388
- }
389
- else {
390
- return this.send(command, optionsOrCb);
391
- }
392
- }
393
58
  }
59
+ createAggregatedClient(commands, Snowball);
@@ -107,6 +107,18 @@ export const ShippingOption = {
107
107
  SECOND_DAY: "SECOND_DAY",
108
108
  STANDARD: "STANDARD",
109
109
  };
110
+ export const SnowballCapacity = {
111
+ NO_PREFERENCE: "NoPreference",
112
+ T100: "T100",
113
+ T14: "T14",
114
+ T240: "T240",
115
+ T32: "T32",
116
+ T42: "T42",
117
+ T50: "T50",
118
+ T8: "T8",
119
+ T80: "T80",
120
+ T98: "T98",
121
+ };
110
122
  export const SnowballType = {
111
123
  EDGE: "EDGE",
112
124
  EDGE_C: "EDGE_C",
@@ -116,6 +128,7 @@ export const SnowballType = {
116
128
  SNC1_SSD: "SNC1_SSD",
117
129
  STANDARD: "STANDARD",
118
130
  V3_5C: "V3_5C",
131
+ V3_5S: "V3_5S",
119
132
  };
120
133
  export class Ec2RequestFailedException extends __BaseException {
121
134
  constructor(opts) {
@@ -156,18 +169,8 @@ export class ClusterLimitExceededException extends __BaseException {
156
169
  this.Message = opts.Message;
157
170
  }
158
171
  }
159
- export const SnowballCapacity = {
160
- NO_PREFERENCE: "NoPreference",
161
- T100: "T100",
162
- T14: "T14",
163
- T32: "T32",
164
- T42: "T42",
165
- T50: "T50",
166
- T8: "T8",
167
- T80: "T80",
168
- T98: "T98",
169
- };
170
172
  export const LongTermPricingType = {
173
+ ONE_MONTH: "OneMonth",
171
174
  ONE_YEAR: "OneYear",
172
175
  THREE_YEAR: "ThreeYear",
173
176
  };
@@ -1,5 +1,5 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
2
+ import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@aws-sdk/smithy-client";
3
3
  import { ClusterLimitExceededException, ConflictException, Ec2RequestFailedException, InvalidAddressException, InvalidInputCombinationException, InvalidJobStateException, InvalidNextTokenException, InvalidResourceException, KMSRequestFailedException, ReturnShippingLabelAlreadyExistsException, UnsupportedAddressException, } from "../models/models_0";
4
4
  import { SnowballServiceException as __BaseException } from "../models/SnowballServiceException";
5
5
  export const se_CancelClusterCommand = async (input, context) => {
@@ -23,13 +23,13 @@ export const se_CreateAddressCommand = async (input, context) => {
23
23
  export const se_CreateClusterCommand = async (input, context) => {
24
24
  const headers = sharedHeaders("CreateCluster");
25
25
  let body;
26
- body = JSON.stringify(_json(input));
26
+ body = JSON.stringify(se_CreateClusterRequest(input, context));
27
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
28
28
  };
29
29
  export const se_CreateJobCommand = async (input, context) => {
30
30
  const headers = sharedHeaders("CreateJob");
31
31
  let body;
32
- body = JSON.stringify(_json(input));
32
+ body = JSON.stringify(se_CreateJobRequest(input, context));
33
33
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
34
34
  };
35
35
  export const se_CreateLongTermPricingCommand = async (input, context) => {
@@ -137,13 +137,13 @@ export const se_ListServiceVersionsCommand = async (input, context) => {
137
137
  export const se_UpdateClusterCommand = async (input, context) => {
138
138
  const headers = sharedHeaders("UpdateCluster");
139
139
  let body;
140
- body = JSON.stringify(_json(input));
140
+ body = JSON.stringify(se_UpdateClusterRequest(input, context));
141
141
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
142
142
  };
143
143
  export const se_UpdateJobCommand = async (input, context) => {
144
144
  const headers = sharedHeaders("UpdateJob");
145
145
  let body;
146
- body = JSON.stringify(_json(input));
146
+ body = JSON.stringify(se_UpdateJobRequest(input, context));
147
147
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
148
148
  };
149
149
  export const se_UpdateJobShipmentStateCommand = async (input, context) => {
@@ -275,7 +275,7 @@ export const de_CreateClusterCommand = async (output, context) => {
275
275
  }
276
276
  const data = await parseBody(output.body, context);
277
277
  let contents = {};
278
- contents = _json(data);
278
+ contents = de_CreateClusterResult(data, context);
279
279
  const response = {
280
280
  $metadata: deserializeMetadata(output),
281
281
  ...contents,
@@ -1191,6 +1191,91 @@ const de_UnsupportedAddressExceptionRes = async (parsedOutput, context) => {
1191
1191
  });
1192
1192
  return __decorateServiceException(exception, body);
1193
1193
  };
1194
+ const se_CreateClusterRequest = (input, context) => {
1195
+ return take(input, {
1196
+ AddressId: [],
1197
+ Description: [],
1198
+ ForceCreateJobs: [],
1199
+ ForwardingAddressId: [],
1200
+ InitialClusterSize: [],
1201
+ JobType: [],
1202
+ KmsKeyARN: [],
1203
+ LongTermPricingIds: _json,
1204
+ Notification: _json,
1205
+ OnDeviceServiceConfiguration: (_) => se_OnDeviceServiceConfiguration(_, context),
1206
+ RemoteManagement: [],
1207
+ Resources: _json,
1208
+ RoleARN: [],
1209
+ ShippingOption: [],
1210
+ SnowballCapacityPreference: [],
1211
+ SnowballType: [],
1212
+ TaxDocuments: _json,
1213
+ });
1214
+ };
1215
+ const se_CreateJobRequest = (input, context) => {
1216
+ return take(input, {
1217
+ AddressId: [],
1218
+ ClusterId: [],
1219
+ Description: [],
1220
+ DeviceConfiguration: _json,
1221
+ ForwardingAddressId: [],
1222
+ JobType: [],
1223
+ KmsKeyARN: [],
1224
+ LongTermPricingId: [],
1225
+ Notification: _json,
1226
+ OnDeviceServiceConfiguration: (_) => se_OnDeviceServiceConfiguration(_, context),
1227
+ RemoteManagement: [],
1228
+ Resources: _json,
1229
+ RoleARN: [],
1230
+ ShippingOption: [],
1231
+ SnowballCapacityPreference: [],
1232
+ SnowballType: [],
1233
+ TaxDocuments: _json,
1234
+ });
1235
+ };
1236
+ const se_OnDeviceServiceConfiguration = (input, context) => {
1237
+ return take(input, {
1238
+ EKSOnDeviceService: _json,
1239
+ NFSOnDeviceService: _json,
1240
+ S3OnDeviceService: (_) => se_S3OnDeviceServiceConfiguration(_, context),
1241
+ TGWOnDeviceService: _json,
1242
+ });
1243
+ };
1244
+ const se_S3OnDeviceServiceConfiguration = (input, context) => {
1245
+ return take(input, {
1246
+ FaultTolerance: [],
1247
+ ServiceSize: [],
1248
+ StorageLimit: __serializeFloat,
1249
+ StorageUnit: [],
1250
+ });
1251
+ };
1252
+ const se_UpdateClusterRequest = (input, context) => {
1253
+ return take(input, {
1254
+ AddressId: [],
1255
+ ClusterId: [],
1256
+ Description: [],
1257
+ ForwardingAddressId: [],
1258
+ Notification: _json,
1259
+ OnDeviceServiceConfiguration: (_) => se_OnDeviceServiceConfiguration(_, context),
1260
+ Resources: _json,
1261
+ RoleARN: [],
1262
+ ShippingOption: [],
1263
+ });
1264
+ };
1265
+ const se_UpdateJobRequest = (input, context) => {
1266
+ return take(input, {
1267
+ AddressId: [],
1268
+ Description: [],
1269
+ ForwardingAddressId: [],
1270
+ JobId: [],
1271
+ Notification: _json,
1272
+ OnDeviceServiceConfiguration: (_) => se_OnDeviceServiceConfiguration(_, context),
1273
+ Resources: _json,
1274
+ RoleARN: [],
1275
+ ShippingOption: [],
1276
+ SnowballCapacityPreference: [],
1277
+ });
1278
+ };
1194
1279
  const de_ClusterListEntry = (output, context) => {
1195
1280
  return take(output, {
1196
1281
  ClusterId: __expectString,
@@ -1218,7 +1303,7 @@ const de_ClusterMetadata = (output, context) => {
1218
1303
  JobType: __expectString,
1219
1304
  KmsKeyARN: __expectString,
1220
1305
  Notification: _json,
1221
- OnDeviceServiceConfiguration: _json,
1306
+ OnDeviceServiceConfiguration: (_) => de_OnDeviceServiceConfiguration(_, context),
1222
1307
  Resources: _json,
1223
1308
  RoleARN: __expectString,
1224
1309
  ShippingOption: __expectString,
@@ -1226,6 +1311,12 @@ const de_ClusterMetadata = (output, context) => {
1226
1311
  TaxDocuments: _json,
1227
1312
  });
1228
1313
  };
1314
+ const de_CreateClusterResult = (output, context) => {
1315
+ return take(output, {
1316
+ ClusterId: __expectString,
1317
+ JobListEntries: (_) => de_JobListEntryList(_, context),
1318
+ });
1319
+ };
1229
1320
  const de_DescribeClusterResult = (output, context) => {
1230
1321
  return take(output, {
1231
1322
  ClusterMetadata: (_) => de_ClusterMetadata(_, context),
@@ -1279,7 +1370,7 @@ const de_JobMetadata = (output, context) => {
1279
1370
  KmsKeyARN: __expectString,
1280
1371
  LongTermPricingId: __expectString,
1281
1372
  Notification: _json,
1282
- OnDeviceServiceConfiguration: _json,
1373
+ OnDeviceServiceConfiguration: (_) => de_OnDeviceServiceConfiguration(_, context),
1283
1374
  RemoteManagement: __expectString,
1284
1375
  Resources: _json,
1285
1376
  RoleARN: __expectString,
@@ -1343,6 +1434,22 @@ const de_LongTermPricingListEntry = (output, context) => {
1343
1434
  SnowballType: __expectString,
1344
1435
  });
1345
1436
  };
1437
+ const de_OnDeviceServiceConfiguration = (output, context) => {
1438
+ return take(output, {
1439
+ EKSOnDeviceService: _json,
1440
+ NFSOnDeviceService: _json,
1441
+ S3OnDeviceService: (_) => de_S3OnDeviceServiceConfiguration(_, context),
1442
+ TGWOnDeviceService: _json,
1443
+ });
1444
+ };
1445
+ const de_S3OnDeviceServiceConfiguration = (output, context) => {
1446
+ return take(output, {
1447
+ FaultTolerance: __expectInt32,
1448
+ ServiceSize: __expectInt32,
1449
+ StorageLimit: __limitedParseDouble,
1450
+ StorageUnit: __expectString,
1451
+ });
1452
+ };
1346
1453
  const deserializeMetadata = (output) => ({
1347
1454
  httpStatusCode: output.statusCode,
1348
1455
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],