@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,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Snowball = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const CancelClusterCommand_1 = require("./commands/CancelClusterCommand");
5
6
  const CancelJobCommand_1 = require("./commands/CancelJobCommand");
6
7
  const CreateAddressCommand_1 = require("./commands/CreateAddressCommand");
@@ -28,370 +29,35 @@ const UpdateJobCommand_1 = require("./commands/UpdateJobCommand");
28
29
  const UpdateJobShipmentStateCommand_1 = require("./commands/UpdateJobShipmentStateCommand");
29
30
  const UpdateLongTermPricingCommand_1 = require("./commands/UpdateLongTermPricingCommand");
30
31
  const SnowballClient_1 = require("./SnowballClient");
32
+ const commands = {
33
+ CancelClusterCommand: CancelClusterCommand_1.CancelClusterCommand,
34
+ CancelJobCommand: CancelJobCommand_1.CancelJobCommand,
35
+ CreateAddressCommand: CreateAddressCommand_1.CreateAddressCommand,
36
+ CreateClusterCommand: CreateClusterCommand_1.CreateClusterCommand,
37
+ CreateJobCommand: CreateJobCommand_1.CreateJobCommand,
38
+ CreateLongTermPricingCommand: CreateLongTermPricingCommand_1.CreateLongTermPricingCommand,
39
+ CreateReturnShippingLabelCommand: CreateReturnShippingLabelCommand_1.CreateReturnShippingLabelCommand,
40
+ DescribeAddressCommand: DescribeAddressCommand_1.DescribeAddressCommand,
41
+ DescribeAddressesCommand: DescribeAddressesCommand_1.DescribeAddressesCommand,
42
+ DescribeClusterCommand: DescribeClusterCommand_1.DescribeClusterCommand,
43
+ DescribeJobCommand: DescribeJobCommand_1.DescribeJobCommand,
44
+ DescribeReturnShippingLabelCommand: DescribeReturnShippingLabelCommand_1.DescribeReturnShippingLabelCommand,
45
+ GetJobManifestCommand: GetJobManifestCommand_1.GetJobManifestCommand,
46
+ GetJobUnlockCodeCommand: GetJobUnlockCodeCommand_1.GetJobUnlockCodeCommand,
47
+ GetSnowballUsageCommand: GetSnowballUsageCommand_1.GetSnowballUsageCommand,
48
+ GetSoftwareUpdatesCommand: GetSoftwareUpdatesCommand_1.GetSoftwareUpdatesCommand,
49
+ ListClusterJobsCommand: ListClusterJobsCommand_1.ListClusterJobsCommand,
50
+ ListClustersCommand: ListClustersCommand_1.ListClustersCommand,
51
+ ListCompatibleImagesCommand: ListCompatibleImagesCommand_1.ListCompatibleImagesCommand,
52
+ ListJobsCommand: ListJobsCommand_1.ListJobsCommand,
53
+ ListLongTermPricingCommand: ListLongTermPricingCommand_1.ListLongTermPricingCommand,
54
+ ListServiceVersionsCommand: ListServiceVersionsCommand_1.ListServiceVersionsCommand,
55
+ UpdateClusterCommand: UpdateClusterCommand_1.UpdateClusterCommand,
56
+ UpdateJobCommand: UpdateJobCommand_1.UpdateJobCommand,
57
+ UpdateJobShipmentStateCommand: UpdateJobShipmentStateCommand_1.UpdateJobShipmentStateCommand,
58
+ UpdateLongTermPricingCommand: UpdateLongTermPricingCommand_1.UpdateLongTermPricingCommand,
59
+ };
31
60
  class Snowball extends SnowballClient_1.SnowballClient {
32
- cancelCluster(args, optionsOrCb, cb) {
33
- const command = new CancelClusterCommand_1.CancelClusterCommand(args);
34
- if (typeof optionsOrCb === "function") {
35
- this.send(command, optionsOrCb);
36
- }
37
- else if (typeof cb === "function") {
38
- if (typeof optionsOrCb !== "object")
39
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
40
- this.send(command, optionsOrCb || {}, cb);
41
- }
42
- else {
43
- return this.send(command, optionsOrCb);
44
- }
45
- }
46
- cancelJob(args, optionsOrCb, cb) {
47
- const command = new CancelJobCommand_1.CancelJobCommand(args);
48
- if (typeof optionsOrCb === "function") {
49
- this.send(command, optionsOrCb);
50
- }
51
- else if (typeof cb === "function") {
52
- if (typeof optionsOrCb !== "object")
53
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
54
- this.send(command, optionsOrCb || {}, cb);
55
- }
56
- else {
57
- return this.send(command, optionsOrCb);
58
- }
59
- }
60
- createAddress(args, optionsOrCb, cb) {
61
- const command = new CreateAddressCommand_1.CreateAddressCommand(args);
62
- if (typeof optionsOrCb === "function") {
63
- this.send(command, optionsOrCb);
64
- }
65
- else if (typeof cb === "function") {
66
- if (typeof optionsOrCb !== "object")
67
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
68
- this.send(command, optionsOrCb || {}, cb);
69
- }
70
- else {
71
- return this.send(command, optionsOrCb);
72
- }
73
- }
74
- createCluster(args, optionsOrCb, cb) {
75
- const command = new CreateClusterCommand_1.CreateClusterCommand(args);
76
- if (typeof optionsOrCb === "function") {
77
- this.send(command, optionsOrCb);
78
- }
79
- else if (typeof cb === "function") {
80
- if (typeof optionsOrCb !== "object")
81
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
82
- this.send(command, optionsOrCb || {}, cb);
83
- }
84
- else {
85
- return this.send(command, optionsOrCb);
86
- }
87
- }
88
- createJob(args, optionsOrCb, cb) {
89
- const command = new CreateJobCommand_1.CreateJobCommand(args);
90
- if (typeof optionsOrCb === "function") {
91
- this.send(command, optionsOrCb);
92
- }
93
- else if (typeof cb === "function") {
94
- if (typeof optionsOrCb !== "object")
95
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
96
- this.send(command, optionsOrCb || {}, cb);
97
- }
98
- else {
99
- return this.send(command, optionsOrCb);
100
- }
101
- }
102
- createLongTermPricing(args, optionsOrCb, cb) {
103
- const command = new CreateLongTermPricingCommand_1.CreateLongTermPricingCommand(args);
104
- if (typeof optionsOrCb === "function") {
105
- this.send(command, optionsOrCb);
106
- }
107
- else if (typeof cb === "function") {
108
- if (typeof optionsOrCb !== "object")
109
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
110
- this.send(command, optionsOrCb || {}, cb);
111
- }
112
- else {
113
- return this.send(command, optionsOrCb);
114
- }
115
- }
116
- createReturnShippingLabel(args, optionsOrCb, cb) {
117
- const command = new CreateReturnShippingLabelCommand_1.CreateReturnShippingLabelCommand(args);
118
- if (typeof optionsOrCb === "function") {
119
- this.send(command, optionsOrCb);
120
- }
121
- else if (typeof cb === "function") {
122
- if (typeof optionsOrCb !== "object")
123
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
124
- this.send(command, optionsOrCb || {}, cb);
125
- }
126
- else {
127
- return this.send(command, optionsOrCb);
128
- }
129
- }
130
- describeAddress(args, optionsOrCb, cb) {
131
- const command = new DescribeAddressCommand_1.DescribeAddressCommand(args);
132
- if (typeof optionsOrCb === "function") {
133
- this.send(command, optionsOrCb);
134
- }
135
- else if (typeof cb === "function") {
136
- if (typeof optionsOrCb !== "object")
137
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
138
- this.send(command, optionsOrCb || {}, cb);
139
- }
140
- else {
141
- return this.send(command, optionsOrCb);
142
- }
143
- }
144
- describeAddresses(args, optionsOrCb, cb) {
145
- const command = new DescribeAddressesCommand_1.DescribeAddressesCommand(args);
146
- if (typeof optionsOrCb === "function") {
147
- this.send(command, optionsOrCb);
148
- }
149
- else if (typeof cb === "function") {
150
- if (typeof optionsOrCb !== "object")
151
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
152
- this.send(command, optionsOrCb || {}, cb);
153
- }
154
- else {
155
- return this.send(command, optionsOrCb);
156
- }
157
- }
158
- describeCluster(args, optionsOrCb, cb) {
159
- const command = new DescribeClusterCommand_1.DescribeClusterCommand(args);
160
- if (typeof optionsOrCb === "function") {
161
- this.send(command, optionsOrCb);
162
- }
163
- else if (typeof cb === "function") {
164
- if (typeof optionsOrCb !== "object")
165
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
166
- this.send(command, optionsOrCb || {}, cb);
167
- }
168
- else {
169
- return this.send(command, optionsOrCb);
170
- }
171
- }
172
- describeJob(args, optionsOrCb, cb) {
173
- const command = new DescribeJobCommand_1.DescribeJobCommand(args);
174
- if (typeof optionsOrCb === "function") {
175
- this.send(command, optionsOrCb);
176
- }
177
- else if (typeof cb === "function") {
178
- if (typeof optionsOrCb !== "object")
179
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
180
- this.send(command, optionsOrCb || {}, cb);
181
- }
182
- else {
183
- return this.send(command, optionsOrCb);
184
- }
185
- }
186
- describeReturnShippingLabel(args, optionsOrCb, cb) {
187
- const command = new DescribeReturnShippingLabelCommand_1.DescribeReturnShippingLabelCommand(args);
188
- if (typeof optionsOrCb === "function") {
189
- this.send(command, optionsOrCb);
190
- }
191
- else if (typeof cb === "function") {
192
- if (typeof optionsOrCb !== "object")
193
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
194
- this.send(command, optionsOrCb || {}, cb);
195
- }
196
- else {
197
- return this.send(command, optionsOrCb);
198
- }
199
- }
200
- getJobManifest(args, optionsOrCb, cb) {
201
- const command = new GetJobManifestCommand_1.GetJobManifestCommand(args);
202
- if (typeof optionsOrCb === "function") {
203
- this.send(command, optionsOrCb);
204
- }
205
- else if (typeof cb === "function") {
206
- if (typeof optionsOrCb !== "object")
207
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
208
- this.send(command, optionsOrCb || {}, cb);
209
- }
210
- else {
211
- return this.send(command, optionsOrCb);
212
- }
213
- }
214
- getJobUnlockCode(args, optionsOrCb, cb) {
215
- const command = new GetJobUnlockCodeCommand_1.GetJobUnlockCodeCommand(args);
216
- if (typeof optionsOrCb === "function") {
217
- this.send(command, optionsOrCb);
218
- }
219
- else if (typeof cb === "function") {
220
- if (typeof optionsOrCb !== "object")
221
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
222
- this.send(command, optionsOrCb || {}, cb);
223
- }
224
- else {
225
- return this.send(command, optionsOrCb);
226
- }
227
- }
228
- getSnowballUsage(args, optionsOrCb, cb) {
229
- const command = new GetSnowballUsageCommand_1.GetSnowballUsageCommand(args);
230
- if (typeof optionsOrCb === "function") {
231
- this.send(command, optionsOrCb);
232
- }
233
- else if (typeof cb === "function") {
234
- if (typeof optionsOrCb !== "object")
235
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
236
- this.send(command, optionsOrCb || {}, cb);
237
- }
238
- else {
239
- return this.send(command, optionsOrCb);
240
- }
241
- }
242
- getSoftwareUpdates(args, optionsOrCb, cb) {
243
- const command = new GetSoftwareUpdatesCommand_1.GetSoftwareUpdatesCommand(args);
244
- if (typeof optionsOrCb === "function") {
245
- this.send(command, optionsOrCb);
246
- }
247
- else if (typeof cb === "function") {
248
- if (typeof optionsOrCb !== "object")
249
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
250
- this.send(command, optionsOrCb || {}, cb);
251
- }
252
- else {
253
- return this.send(command, optionsOrCb);
254
- }
255
- }
256
- listClusterJobs(args, optionsOrCb, cb) {
257
- const command = new ListClusterJobsCommand_1.ListClusterJobsCommand(args);
258
- if (typeof optionsOrCb === "function") {
259
- this.send(command, optionsOrCb);
260
- }
261
- else if (typeof cb === "function") {
262
- if (typeof optionsOrCb !== "object")
263
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
264
- this.send(command, optionsOrCb || {}, cb);
265
- }
266
- else {
267
- return this.send(command, optionsOrCb);
268
- }
269
- }
270
- listClusters(args, optionsOrCb, cb) {
271
- const command = new ListClustersCommand_1.ListClustersCommand(args);
272
- if (typeof optionsOrCb === "function") {
273
- this.send(command, optionsOrCb);
274
- }
275
- else if (typeof cb === "function") {
276
- if (typeof optionsOrCb !== "object")
277
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
278
- this.send(command, optionsOrCb || {}, cb);
279
- }
280
- else {
281
- return this.send(command, optionsOrCb);
282
- }
283
- }
284
- listCompatibleImages(args, optionsOrCb, cb) {
285
- const command = new ListCompatibleImagesCommand_1.ListCompatibleImagesCommand(args);
286
- if (typeof optionsOrCb === "function") {
287
- this.send(command, optionsOrCb);
288
- }
289
- else if (typeof cb === "function") {
290
- if (typeof optionsOrCb !== "object")
291
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
292
- this.send(command, optionsOrCb || {}, cb);
293
- }
294
- else {
295
- return this.send(command, optionsOrCb);
296
- }
297
- }
298
- listJobs(args, optionsOrCb, cb) {
299
- const command = new ListJobsCommand_1.ListJobsCommand(args);
300
- if (typeof optionsOrCb === "function") {
301
- this.send(command, optionsOrCb);
302
- }
303
- else if (typeof cb === "function") {
304
- if (typeof optionsOrCb !== "object")
305
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
306
- this.send(command, optionsOrCb || {}, cb);
307
- }
308
- else {
309
- return this.send(command, optionsOrCb);
310
- }
311
- }
312
- listLongTermPricing(args, optionsOrCb, cb) {
313
- const command = new ListLongTermPricingCommand_1.ListLongTermPricingCommand(args);
314
- if (typeof optionsOrCb === "function") {
315
- this.send(command, optionsOrCb);
316
- }
317
- else if (typeof cb === "function") {
318
- if (typeof optionsOrCb !== "object")
319
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
320
- this.send(command, optionsOrCb || {}, cb);
321
- }
322
- else {
323
- return this.send(command, optionsOrCb);
324
- }
325
- }
326
- listServiceVersions(args, optionsOrCb, cb) {
327
- const command = new ListServiceVersionsCommand_1.ListServiceVersionsCommand(args);
328
- if (typeof optionsOrCb === "function") {
329
- this.send(command, optionsOrCb);
330
- }
331
- else if (typeof cb === "function") {
332
- if (typeof optionsOrCb !== "object")
333
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
334
- this.send(command, optionsOrCb || {}, cb);
335
- }
336
- else {
337
- return this.send(command, optionsOrCb);
338
- }
339
- }
340
- updateCluster(args, optionsOrCb, cb) {
341
- const command = new UpdateClusterCommand_1.UpdateClusterCommand(args);
342
- if (typeof optionsOrCb === "function") {
343
- this.send(command, optionsOrCb);
344
- }
345
- else if (typeof cb === "function") {
346
- if (typeof optionsOrCb !== "object")
347
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
348
- this.send(command, optionsOrCb || {}, cb);
349
- }
350
- else {
351
- return this.send(command, optionsOrCb);
352
- }
353
- }
354
- updateJob(args, optionsOrCb, cb) {
355
- const command = new UpdateJobCommand_1.UpdateJobCommand(args);
356
- if (typeof optionsOrCb === "function") {
357
- this.send(command, optionsOrCb);
358
- }
359
- else if (typeof cb === "function") {
360
- if (typeof optionsOrCb !== "object")
361
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
362
- this.send(command, optionsOrCb || {}, cb);
363
- }
364
- else {
365
- return this.send(command, optionsOrCb);
366
- }
367
- }
368
- updateJobShipmentState(args, optionsOrCb, cb) {
369
- const command = new UpdateJobShipmentStateCommand_1.UpdateJobShipmentStateCommand(args);
370
- if (typeof optionsOrCb === "function") {
371
- this.send(command, optionsOrCb);
372
- }
373
- else if (typeof cb === "function") {
374
- if (typeof optionsOrCb !== "object")
375
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
376
- this.send(command, optionsOrCb || {}, cb);
377
- }
378
- else {
379
- return this.send(command, optionsOrCb);
380
- }
381
- }
382
- updateLongTermPricing(args, optionsOrCb, cb) {
383
- const command = new UpdateLongTermPricingCommand_1.UpdateLongTermPricingCommand(args);
384
- if (typeof optionsOrCb === "function") {
385
- this.send(command, optionsOrCb);
386
- }
387
- else if (typeof cb === "function") {
388
- if (typeof optionsOrCb !== "object")
389
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
390
- this.send(command, optionsOrCb || {}, cb);
391
- }
392
- else {
393
- return this.send(command, optionsOrCb);
394
- }
395
- }
396
61
  }
397
62
  exports.Snowball = Snowball;
63
+ (0, smithy_client_1.createAggregatedClient)(commands, Snowball);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ShipmentState = exports.ServiceName = exports.ClusterState = exports.InvalidNextTokenException = exports.ReturnShippingLabelAlreadyExistsException = exports.ShippingLabelStatus = exports.ConflictException = exports.LongTermPricingType = exports.SnowballCapacity = exports.ClusterLimitExceededException = exports.InvalidInputCombinationException = exports.Ec2RequestFailedException = exports.SnowballType = exports.ShippingOption = exports.TransferOption = exports.DeviceServiceName = exports.RemoteManagement = exports.StorageUnit = exports.JobState = exports.JobType = exports.UnsupportedAddressException = exports.InvalidAddressException = exports.KMSRequestFailedException = exports.InvalidResourceException = exports.InvalidJobStateException = void 0;
3
+ exports.ShipmentState = exports.ServiceName = exports.ClusterState = exports.InvalidNextTokenException = exports.ReturnShippingLabelAlreadyExistsException = exports.ShippingLabelStatus = exports.ConflictException = exports.LongTermPricingType = exports.ClusterLimitExceededException = exports.InvalidInputCombinationException = exports.Ec2RequestFailedException = exports.SnowballType = exports.SnowballCapacity = exports.ShippingOption = exports.TransferOption = exports.DeviceServiceName = exports.RemoteManagement = exports.StorageUnit = exports.JobState = exports.JobType = exports.UnsupportedAddressException = exports.InvalidAddressException = exports.KMSRequestFailedException = exports.InvalidResourceException = exports.InvalidJobStateException = void 0;
4
4
  const SnowballServiceException_1 = require("./SnowballServiceException");
5
5
  class InvalidJobStateException extends SnowballServiceException_1.SnowballServiceException {
6
6
  constructor(opts) {
@@ -115,6 +115,18 @@ exports.ShippingOption = {
115
115
  SECOND_DAY: "SECOND_DAY",
116
116
  STANDARD: "STANDARD",
117
117
  };
118
+ exports.SnowballCapacity = {
119
+ NO_PREFERENCE: "NoPreference",
120
+ T100: "T100",
121
+ T14: "T14",
122
+ T240: "T240",
123
+ T32: "T32",
124
+ T42: "T42",
125
+ T50: "T50",
126
+ T8: "T8",
127
+ T80: "T80",
128
+ T98: "T98",
129
+ };
118
130
  exports.SnowballType = {
119
131
  EDGE: "EDGE",
120
132
  EDGE_C: "EDGE_C",
@@ -124,6 +136,7 @@ exports.SnowballType = {
124
136
  SNC1_SSD: "SNC1_SSD",
125
137
  STANDARD: "STANDARD",
126
138
  V3_5C: "V3_5C",
139
+ V3_5S: "V3_5S",
127
140
  };
128
141
  class Ec2RequestFailedException extends SnowballServiceException_1.SnowballServiceException {
129
142
  constructor(opts) {
@@ -167,18 +180,8 @@ class ClusterLimitExceededException extends SnowballServiceException_1.SnowballS
167
180
  }
168
181
  }
169
182
  exports.ClusterLimitExceededException = ClusterLimitExceededException;
170
- exports.SnowballCapacity = {
171
- NO_PREFERENCE: "NoPreference",
172
- T100: "T100",
173
- T14: "T14",
174
- T32: "T32",
175
- T42: "T42",
176
- T50: "T50",
177
- T8: "T8",
178
- T80: "T80",
179
- T98: "T98",
180
- };
181
183
  exports.LongTermPricingType = {
184
+ ONE_MONTH: "OneMonth",
182
185
  ONE_YEAR: "OneYear",
183
186
  THREE_YEAR: "ThreeYear",
184
187
  };
@@ -30,14 +30,14 @@ exports.se_CreateAddressCommand = se_CreateAddressCommand;
30
30
  const se_CreateClusterCommand = async (input, context) => {
31
31
  const headers = sharedHeaders("CreateCluster");
32
32
  let body;
33
- body = JSON.stringify((0, smithy_client_1._json)(input));
33
+ body = JSON.stringify(se_CreateClusterRequest(input, context));
34
34
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
35
35
  };
36
36
  exports.se_CreateClusterCommand = se_CreateClusterCommand;
37
37
  const se_CreateJobCommand = async (input, context) => {
38
38
  const headers = sharedHeaders("CreateJob");
39
39
  let body;
40
- body = JSON.stringify((0, smithy_client_1._json)(input));
40
+ body = JSON.stringify(se_CreateJobRequest(input, context));
41
41
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
42
42
  };
43
43
  exports.se_CreateJobCommand = se_CreateJobCommand;
@@ -163,14 +163,14 @@ exports.se_ListServiceVersionsCommand = se_ListServiceVersionsCommand;
163
163
  const se_UpdateClusterCommand = async (input, context) => {
164
164
  const headers = sharedHeaders("UpdateCluster");
165
165
  let body;
166
- body = JSON.stringify((0, smithy_client_1._json)(input));
166
+ body = JSON.stringify(se_UpdateClusterRequest(input, context));
167
167
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
168
168
  };
169
169
  exports.se_UpdateClusterCommand = se_UpdateClusterCommand;
170
170
  const se_UpdateJobCommand = async (input, context) => {
171
171
  const headers = sharedHeaders("UpdateJob");
172
172
  let body;
173
- body = JSON.stringify((0, smithy_client_1._json)(input));
173
+ body = JSON.stringify(se_UpdateJobRequest(input, context));
174
174
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
175
175
  };
176
176
  exports.se_UpdateJobCommand = se_UpdateJobCommand;
@@ -308,7 +308,7 @@ const de_CreateClusterCommand = async (output, context) => {
308
308
  }
309
309
  const data = await parseBody(output.body, context);
310
310
  let contents = {};
311
- contents = (0, smithy_client_1._json)(data);
311
+ contents = de_CreateClusterResult(data, context);
312
312
  const response = {
313
313
  $metadata: deserializeMetadata(output),
314
314
  ...contents,
@@ -1247,6 +1247,91 @@ const de_UnsupportedAddressExceptionRes = async (parsedOutput, context) => {
1247
1247
  });
1248
1248
  return (0, smithy_client_1.decorateServiceException)(exception, body);
1249
1249
  };
1250
+ const se_CreateClusterRequest = (input, context) => {
1251
+ return (0, smithy_client_1.take)(input, {
1252
+ AddressId: [],
1253
+ Description: [],
1254
+ ForceCreateJobs: [],
1255
+ ForwardingAddressId: [],
1256
+ InitialClusterSize: [],
1257
+ JobType: [],
1258
+ KmsKeyARN: [],
1259
+ LongTermPricingIds: smithy_client_1._json,
1260
+ Notification: smithy_client_1._json,
1261
+ OnDeviceServiceConfiguration: (_) => se_OnDeviceServiceConfiguration(_, context),
1262
+ RemoteManagement: [],
1263
+ Resources: smithy_client_1._json,
1264
+ RoleARN: [],
1265
+ ShippingOption: [],
1266
+ SnowballCapacityPreference: [],
1267
+ SnowballType: [],
1268
+ TaxDocuments: smithy_client_1._json,
1269
+ });
1270
+ };
1271
+ const se_CreateJobRequest = (input, context) => {
1272
+ return (0, smithy_client_1.take)(input, {
1273
+ AddressId: [],
1274
+ ClusterId: [],
1275
+ Description: [],
1276
+ DeviceConfiguration: smithy_client_1._json,
1277
+ ForwardingAddressId: [],
1278
+ JobType: [],
1279
+ KmsKeyARN: [],
1280
+ LongTermPricingId: [],
1281
+ Notification: smithy_client_1._json,
1282
+ OnDeviceServiceConfiguration: (_) => se_OnDeviceServiceConfiguration(_, context),
1283
+ RemoteManagement: [],
1284
+ Resources: smithy_client_1._json,
1285
+ RoleARN: [],
1286
+ ShippingOption: [],
1287
+ SnowballCapacityPreference: [],
1288
+ SnowballType: [],
1289
+ TaxDocuments: smithy_client_1._json,
1290
+ });
1291
+ };
1292
+ const se_OnDeviceServiceConfiguration = (input, context) => {
1293
+ return (0, smithy_client_1.take)(input, {
1294
+ EKSOnDeviceService: smithy_client_1._json,
1295
+ NFSOnDeviceService: smithy_client_1._json,
1296
+ S3OnDeviceService: (_) => se_S3OnDeviceServiceConfiguration(_, context),
1297
+ TGWOnDeviceService: smithy_client_1._json,
1298
+ });
1299
+ };
1300
+ const se_S3OnDeviceServiceConfiguration = (input, context) => {
1301
+ return (0, smithy_client_1.take)(input, {
1302
+ FaultTolerance: [],
1303
+ ServiceSize: [],
1304
+ StorageLimit: smithy_client_1.serializeFloat,
1305
+ StorageUnit: [],
1306
+ });
1307
+ };
1308
+ const se_UpdateClusterRequest = (input, context) => {
1309
+ return (0, smithy_client_1.take)(input, {
1310
+ AddressId: [],
1311
+ ClusterId: [],
1312
+ Description: [],
1313
+ ForwardingAddressId: [],
1314
+ Notification: smithy_client_1._json,
1315
+ OnDeviceServiceConfiguration: (_) => se_OnDeviceServiceConfiguration(_, context),
1316
+ Resources: smithy_client_1._json,
1317
+ RoleARN: [],
1318
+ ShippingOption: [],
1319
+ });
1320
+ };
1321
+ const se_UpdateJobRequest = (input, context) => {
1322
+ return (0, smithy_client_1.take)(input, {
1323
+ AddressId: [],
1324
+ Description: [],
1325
+ ForwardingAddressId: [],
1326
+ JobId: [],
1327
+ Notification: smithy_client_1._json,
1328
+ OnDeviceServiceConfiguration: (_) => se_OnDeviceServiceConfiguration(_, context),
1329
+ Resources: smithy_client_1._json,
1330
+ RoleARN: [],
1331
+ ShippingOption: [],
1332
+ SnowballCapacityPreference: [],
1333
+ });
1334
+ };
1250
1335
  const de_ClusterListEntry = (output, context) => {
1251
1336
  return (0, smithy_client_1.take)(output, {
1252
1337
  ClusterId: smithy_client_1.expectString,
@@ -1274,7 +1359,7 @@ const de_ClusterMetadata = (output, context) => {
1274
1359
  JobType: smithy_client_1.expectString,
1275
1360
  KmsKeyARN: smithy_client_1.expectString,
1276
1361
  Notification: smithy_client_1._json,
1277
- OnDeviceServiceConfiguration: smithy_client_1._json,
1362
+ OnDeviceServiceConfiguration: (_) => de_OnDeviceServiceConfiguration(_, context),
1278
1363
  Resources: smithy_client_1._json,
1279
1364
  RoleARN: smithy_client_1.expectString,
1280
1365
  ShippingOption: smithy_client_1.expectString,
@@ -1282,6 +1367,12 @@ const de_ClusterMetadata = (output, context) => {
1282
1367
  TaxDocuments: smithy_client_1._json,
1283
1368
  });
1284
1369
  };
1370
+ const de_CreateClusterResult = (output, context) => {
1371
+ return (0, smithy_client_1.take)(output, {
1372
+ ClusterId: smithy_client_1.expectString,
1373
+ JobListEntries: (_) => de_JobListEntryList(_, context),
1374
+ });
1375
+ };
1285
1376
  const de_DescribeClusterResult = (output, context) => {
1286
1377
  return (0, smithy_client_1.take)(output, {
1287
1378
  ClusterMetadata: (_) => de_ClusterMetadata(_, context),
@@ -1335,7 +1426,7 @@ const de_JobMetadata = (output, context) => {
1335
1426
  KmsKeyARN: smithy_client_1.expectString,
1336
1427
  LongTermPricingId: smithy_client_1.expectString,
1337
1428
  Notification: smithy_client_1._json,
1338
- OnDeviceServiceConfiguration: smithy_client_1._json,
1429
+ OnDeviceServiceConfiguration: (_) => de_OnDeviceServiceConfiguration(_, context),
1339
1430
  RemoteManagement: smithy_client_1.expectString,
1340
1431
  Resources: smithy_client_1._json,
1341
1432
  RoleARN: smithy_client_1.expectString,
@@ -1399,6 +1490,22 @@ const de_LongTermPricingListEntry = (output, context) => {
1399
1490
  SnowballType: smithy_client_1.expectString,
1400
1491
  });
1401
1492
  };
1493
+ const de_OnDeviceServiceConfiguration = (output, context) => {
1494
+ return (0, smithy_client_1.take)(output, {
1495
+ EKSOnDeviceService: smithy_client_1._json,
1496
+ NFSOnDeviceService: smithy_client_1._json,
1497
+ S3OnDeviceService: (_) => de_S3OnDeviceServiceConfiguration(_, context),
1498
+ TGWOnDeviceService: smithy_client_1._json,
1499
+ });
1500
+ };
1501
+ const de_S3OnDeviceServiceConfiguration = (output, context) => {
1502
+ return (0, smithy_client_1.take)(output, {
1503
+ FaultTolerance: smithy_client_1.expectInt32,
1504
+ ServiceSize: smithy_client_1.expectInt32,
1505
+ StorageLimit: smithy_client_1.limitedParseDouble,
1506
+ StorageUnit: smithy_client_1.expectString,
1507
+ });
1508
+ };
1402
1509
  const deserializeMetadata = (output) => ({
1403
1510
  httpStatusCode: output.statusCode,
1404
1511
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],