@aws-sdk/client-snowball 3.183.0 → 3.185.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.
Files changed (44) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +2 -2
  3. package/dist-es/Snowball.js +109 -102
  4. package/dist-es/SnowballClient.js +28 -22
  5. package/dist-es/commands/CancelClusterCommand.js +28 -21
  6. package/dist-es/commands/CancelJobCommand.js +28 -21
  7. package/dist-es/commands/CreateAddressCommand.js +28 -21
  8. package/dist-es/commands/CreateClusterCommand.js +28 -21
  9. package/dist-es/commands/CreateJobCommand.js +28 -21
  10. package/dist-es/commands/CreateLongTermPricingCommand.js +28 -21
  11. package/dist-es/commands/CreateReturnShippingLabelCommand.js +28 -21
  12. package/dist-es/commands/DescribeAddressCommand.js +28 -21
  13. package/dist-es/commands/DescribeAddressesCommand.js +28 -21
  14. package/dist-es/commands/DescribeClusterCommand.js +28 -21
  15. package/dist-es/commands/DescribeJobCommand.js +28 -21
  16. package/dist-es/commands/DescribeReturnShippingLabelCommand.js +28 -21
  17. package/dist-es/commands/GetJobManifestCommand.js +28 -21
  18. package/dist-es/commands/GetJobUnlockCodeCommand.js +28 -21
  19. package/dist-es/commands/GetSnowballUsageCommand.js +28 -21
  20. package/dist-es/commands/GetSoftwareUpdatesCommand.js +28 -21
  21. package/dist-es/commands/ListClusterJobsCommand.js +28 -21
  22. package/dist-es/commands/ListClustersCommand.js +28 -21
  23. package/dist-es/commands/ListCompatibleImagesCommand.js +28 -21
  24. package/dist-es/commands/ListJobsCommand.js +28 -21
  25. package/dist-es/commands/ListLongTermPricingCommand.js +28 -21
  26. package/dist-es/commands/UpdateClusterCommand.js +28 -21
  27. package/dist-es/commands/UpdateJobCommand.js +28 -21
  28. package/dist-es/commands/UpdateJobShipmentStateCommand.js +28 -21
  29. package/dist-es/commands/UpdateLongTermPricingCommand.js +28 -21
  30. package/dist-es/endpoints.js +8 -8
  31. package/dist-es/models/SnowballServiceException.js +10 -5
  32. package/dist-es/models/models_0.js +212 -365
  33. package/dist-es/pagination/DescribeAddressesPaginator.js +68 -25
  34. package/dist-es/pagination/ListClusterJobsPaginator.js +68 -25
  35. package/dist-es/pagination/ListClustersPaginator.js +68 -25
  36. package/dist-es/pagination/ListCompatibleImagesPaginator.js +68 -25
  37. package/dist-es/pagination/ListJobsPaginator.js +68 -25
  38. package/dist-es/pagination/ListLongTermPricingPaginator.js +68 -25
  39. package/dist-es/protocols/Aws_json1_1.js +2088 -1699
  40. package/dist-es/runtimeConfig.browser.js +12 -26
  41. package/dist-es/runtimeConfig.js +12 -30
  42. package/dist-es/runtimeConfig.native.js +5 -8
  43. package/dist-es/runtimeConfig.shared.js +11 -8
  44. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
18
 
8
19
 
@@ -2268,10 +2268,10 @@ const deserializeAws_json1_1WirelessConnection = (output, context) => {
2268
2268
  };
2269
2269
  };
2270
2270
  const deserializeMetadata = (output) => {
2271
- var _a;
2271
+ var _a, _b;
2272
2272
  return ({
2273
2273
  httpStatusCode: output.statusCode,
2274
- requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
2274
+ requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
2275
2275
  extendedRequestId: output.headers["x-amz-id-2"],
2276
2276
  cfId: output.headers["x-amz-cf-id"],
2277
2277
  });
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { CancelClusterCommand, } from "./commands/CancelClusterCommand";
2
3
  import { CancelJobCommand } from "./commands/CancelJobCommand";
3
4
  import { CreateAddressCommand, } from "./commands/CreateAddressCommand";
@@ -24,355 +25,361 @@ import { UpdateJobCommand } from "./commands/UpdateJobCommand";
24
25
  import { UpdateJobShipmentStateCommand, } from "./commands/UpdateJobShipmentStateCommand";
25
26
  import { UpdateLongTermPricingCommand, } from "./commands/UpdateLongTermPricingCommand";
26
27
  import { SnowballClient } from "./SnowballClient";
27
- export class Snowball extends SnowballClient {
28
- cancelCluster(args, optionsOrCb, cb) {
29
- const command = new CancelClusterCommand(args);
28
+ var Snowball = (function (_super) {
29
+ __extends(Snowball, _super);
30
+ function Snowball() {
31
+ return _super !== null && _super.apply(this, arguments) || this;
32
+ }
33
+ Snowball.prototype.cancelCluster = function (args, optionsOrCb, cb) {
34
+ var command = new CancelClusterCommand(args);
30
35
  if (typeof optionsOrCb === "function") {
31
36
  this.send(command, optionsOrCb);
32
37
  }
33
38
  else if (typeof cb === "function") {
34
39
  if (typeof optionsOrCb !== "object")
35
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
40
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
36
41
  this.send(command, optionsOrCb || {}, cb);
37
42
  }
38
43
  else {
39
44
  return this.send(command, optionsOrCb);
40
45
  }
41
- }
42
- cancelJob(args, optionsOrCb, cb) {
43
- const command = new CancelJobCommand(args);
46
+ };
47
+ Snowball.prototype.cancelJob = function (args, optionsOrCb, cb) {
48
+ var command = new CancelJobCommand(args);
44
49
  if (typeof optionsOrCb === "function") {
45
50
  this.send(command, optionsOrCb);
46
51
  }
47
52
  else if (typeof cb === "function") {
48
53
  if (typeof optionsOrCb !== "object")
49
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
54
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
50
55
  this.send(command, optionsOrCb || {}, cb);
51
56
  }
52
57
  else {
53
58
  return this.send(command, optionsOrCb);
54
59
  }
55
- }
56
- createAddress(args, optionsOrCb, cb) {
57
- const command = new CreateAddressCommand(args);
60
+ };
61
+ Snowball.prototype.createAddress = function (args, optionsOrCb, cb) {
62
+ var command = new CreateAddressCommand(args);
58
63
  if (typeof optionsOrCb === "function") {
59
64
  this.send(command, optionsOrCb);
60
65
  }
61
66
  else if (typeof cb === "function") {
62
67
  if (typeof optionsOrCb !== "object")
63
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
68
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
64
69
  this.send(command, optionsOrCb || {}, cb);
65
70
  }
66
71
  else {
67
72
  return this.send(command, optionsOrCb);
68
73
  }
69
- }
70
- createCluster(args, optionsOrCb, cb) {
71
- const command = new CreateClusterCommand(args);
74
+ };
75
+ Snowball.prototype.createCluster = function (args, optionsOrCb, cb) {
76
+ var command = new CreateClusterCommand(args);
72
77
  if (typeof optionsOrCb === "function") {
73
78
  this.send(command, optionsOrCb);
74
79
  }
75
80
  else if (typeof cb === "function") {
76
81
  if (typeof optionsOrCb !== "object")
77
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
82
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
78
83
  this.send(command, optionsOrCb || {}, cb);
79
84
  }
80
85
  else {
81
86
  return this.send(command, optionsOrCb);
82
87
  }
83
- }
84
- createJob(args, optionsOrCb, cb) {
85
- const command = new CreateJobCommand(args);
88
+ };
89
+ Snowball.prototype.createJob = function (args, optionsOrCb, cb) {
90
+ var command = new CreateJobCommand(args);
86
91
  if (typeof optionsOrCb === "function") {
87
92
  this.send(command, optionsOrCb);
88
93
  }
89
94
  else if (typeof cb === "function") {
90
95
  if (typeof optionsOrCb !== "object")
91
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
96
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
92
97
  this.send(command, optionsOrCb || {}, cb);
93
98
  }
94
99
  else {
95
100
  return this.send(command, optionsOrCb);
96
101
  }
97
- }
98
- createLongTermPricing(args, optionsOrCb, cb) {
99
- const command = new CreateLongTermPricingCommand(args);
102
+ };
103
+ Snowball.prototype.createLongTermPricing = function (args, optionsOrCb, cb) {
104
+ var command = new CreateLongTermPricingCommand(args);
100
105
  if (typeof optionsOrCb === "function") {
101
106
  this.send(command, optionsOrCb);
102
107
  }
103
108
  else if (typeof cb === "function") {
104
109
  if (typeof optionsOrCb !== "object")
105
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
110
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
106
111
  this.send(command, optionsOrCb || {}, cb);
107
112
  }
108
113
  else {
109
114
  return this.send(command, optionsOrCb);
110
115
  }
111
- }
112
- createReturnShippingLabel(args, optionsOrCb, cb) {
113
- const command = new CreateReturnShippingLabelCommand(args);
116
+ };
117
+ Snowball.prototype.createReturnShippingLabel = function (args, optionsOrCb, cb) {
118
+ var command = new CreateReturnShippingLabelCommand(args);
114
119
  if (typeof optionsOrCb === "function") {
115
120
  this.send(command, optionsOrCb);
116
121
  }
117
122
  else if (typeof cb === "function") {
118
123
  if (typeof optionsOrCb !== "object")
119
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
124
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
120
125
  this.send(command, optionsOrCb || {}, cb);
121
126
  }
122
127
  else {
123
128
  return this.send(command, optionsOrCb);
124
129
  }
125
- }
126
- describeAddress(args, optionsOrCb, cb) {
127
- const command = new DescribeAddressCommand(args);
130
+ };
131
+ Snowball.prototype.describeAddress = function (args, optionsOrCb, cb) {
132
+ var command = new DescribeAddressCommand(args);
128
133
  if (typeof optionsOrCb === "function") {
129
134
  this.send(command, optionsOrCb);
130
135
  }
131
136
  else if (typeof cb === "function") {
132
137
  if (typeof optionsOrCb !== "object")
133
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
138
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
134
139
  this.send(command, optionsOrCb || {}, cb);
135
140
  }
136
141
  else {
137
142
  return this.send(command, optionsOrCb);
138
143
  }
139
- }
140
- describeAddresses(args, optionsOrCb, cb) {
141
- const command = new DescribeAddressesCommand(args);
144
+ };
145
+ Snowball.prototype.describeAddresses = function (args, optionsOrCb, cb) {
146
+ var command = new DescribeAddressesCommand(args);
142
147
  if (typeof optionsOrCb === "function") {
143
148
  this.send(command, optionsOrCb);
144
149
  }
145
150
  else if (typeof cb === "function") {
146
151
  if (typeof optionsOrCb !== "object")
147
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
152
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
148
153
  this.send(command, optionsOrCb || {}, cb);
149
154
  }
150
155
  else {
151
156
  return this.send(command, optionsOrCb);
152
157
  }
153
- }
154
- describeCluster(args, optionsOrCb, cb) {
155
- const command = new DescribeClusterCommand(args);
158
+ };
159
+ Snowball.prototype.describeCluster = function (args, optionsOrCb, cb) {
160
+ var command = new DescribeClusterCommand(args);
156
161
  if (typeof optionsOrCb === "function") {
157
162
  this.send(command, optionsOrCb);
158
163
  }
159
164
  else if (typeof cb === "function") {
160
165
  if (typeof optionsOrCb !== "object")
161
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
166
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
162
167
  this.send(command, optionsOrCb || {}, cb);
163
168
  }
164
169
  else {
165
170
  return this.send(command, optionsOrCb);
166
171
  }
167
- }
168
- describeJob(args, optionsOrCb, cb) {
169
- const command = new DescribeJobCommand(args);
172
+ };
173
+ Snowball.prototype.describeJob = function (args, optionsOrCb, cb) {
174
+ var command = new DescribeJobCommand(args);
170
175
  if (typeof optionsOrCb === "function") {
171
176
  this.send(command, optionsOrCb);
172
177
  }
173
178
  else if (typeof cb === "function") {
174
179
  if (typeof optionsOrCb !== "object")
175
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
180
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
176
181
  this.send(command, optionsOrCb || {}, cb);
177
182
  }
178
183
  else {
179
184
  return this.send(command, optionsOrCb);
180
185
  }
181
- }
182
- describeReturnShippingLabel(args, optionsOrCb, cb) {
183
- const command = new DescribeReturnShippingLabelCommand(args);
186
+ };
187
+ Snowball.prototype.describeReturnShippingLabel = function (args, optionsOrCb, cb) {
188
+ var command = new DescribeReturnShippingLabelCommand(args);
184
189
  if (typeof optionsOrCb === "function") {
185
190
  this.send(command, optionsOrCb);
186
191
  }
187
192
  else if (typeof cb === "function") {
188
193
  if (typeof optionsOrCb !== "object")
189
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
194
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
190
195
  this.send(command, optionsOrCb || {}, cb);
191
196
  }
192
197
  else {
193
198
  return this.send(command, optionsOrCb);
194
199
  }
195
- }
196
- getJobManifest(args, optionsOrCb, cb) {
197
- const command = new GetJobManifestCommand(args);
200
+ };
201
+ Snowball.prototype.getJobManifest = function (args, optionsOrCb, cb) {
202
+ var command = new GetJobManifestCommand(args);
198
203
  if (typeof optionsOrCb === "function") {
199
204
  this.send(command, optionsOrCb);
200
205
  }
201
206
  else if (typeof cb === "function") {
202
207
  if (typeof optionsOrCb !== "object")
203
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
208
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
204
209
  this.send(command, optionsOrCb || {}, cb);
205
210
  }
206
211
  else {
207
212
  return this.send(command, optionsOrCb);
208
213
  }
209
- }
210
- getJobUnlockCode(args, optionsOrCb, cb) {
211
- const command = new GetJobUnlockCodeCommand(args);
214
+ };
215
+ Snowball.prototype.getJobUnlockCode = function (args, optionsOrCb, cb) {
216
+ var command = new GetJobUnlockCodeCommand(args);
212
217
  if (typeof optionsOrCb === "function") {
213
218
  this.send(command, optionsOrCb);
214
219
  }
215
220
  else if (typeof cb === "function") {
216
221
  if (typeof optionsOrCb !== "object")
217
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
222
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
218
223
  this.send(command, optionsOrCb || {}, cb);
219
224
  }
220
225
  else {
221
226
  return this.send(command, optionsOrCb);
222
227
  }
223
- }
224
- getSnowballUsage(args, optionsOrCb, cb) {
225
- const command = new GetSnowballUsageCommand(args);
228
+ };
229
+ Snowball.prototype.getSnowballUsage = function (args, optionsOrCb, cb) {
230
+ var command = new GetSnowballUsageCommand(args);
226
231
  if (typeof optionsOrCb === "function") {
227
232
  this.send(command, optionsOrCb);
228
233
  }
229
234
  else if (typeof cb === "function") {
230
235
  if (typeof optionsOrCb !== "object")
231
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
236
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
232
237
  this.send(command, optionsOrCb || {}, cb);
233
238
  }
234
239
  else {
235
240
  return this.send(command, optionsOrCb);
236
241
  }
237
- }
238
- getSoftwareUpdates(args, optionsOrCb, cb) {
239
- const command = new GetSoftwareUpdatesCommand(args);
242
+ };
243
+ Snowball.prototype.getSoftwareUpdates = function (args, optionsOrCb, cb) {
244
+ var command = new GetSoftwareUpdatesCommand(args);
240
245
  if (typeof optionsOrCb === "function") {
241
246
  this.send(command, optionsOrCb);
242
247
  }
243
248
  else if (typeof cb === "function") {
244
249
  if (typeof optionsOrCb !== "object")
245
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
250
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
246
251
  this.send(command, optionsOrCb || {}, cb);
247
252
  }
248
253
  else {
249
254
  return this.send(command, optionsOrCb);
250
255
  }
251
- }
252
- listClusterJobs(args, optionsOrCb, cb) {
253
- const command = new ListClusterJobsCommand(args);
256
+ };
257
+ Snowball.prototype.listClusterJobs = function (args, optionsOrCb, cb) {
258
+ var command = new ListClusterJobsCommand(args);
254
259
  if (typeof optionsOrCb === "function") {
255
260
  this.send(command, optionsOrCb);
256
261
  }
257
262
  else if (typeof cb === "function") {
258
263
  if (typeof optionsOrCb !== "object")
259
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
264
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
260
265
  this.send(command, optionsOrCb || {}, cb);
261
266
  }
262
267
  else {
263
268
  return this.send(command, optionsOrCb);
264
269
  }
265
- }
266
- listClusters(args, optionsOrCb, cb) {
267
- const command = new ListClustersCommand(args);
270
+ };
271
+ Snowball.prototype.listClusters = function (args, optionsOrCb, cb) {
272
+ var command = new ListClustersCommand(args);
268
273
  if (typeof optionsOrCb === "function") {
269
274
  this.send(command, optionsOrCb);
270
275
  }
271
276
  else if (typeof cb === "function") {
272
277
  if (typeof optionsOrCb !== "object")
273
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
278
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
274
279
  this.send(command, optionsOrCb || {}, cb);
275
280
  }
276
281
  else {
277
282
  return this.send(command, optionsOrCb);
278
283
  }
279
- }
280
- listCompatibleImages(args, optionsOrCb, cb) {
281
- const command = new ListCompatibleImagesCommand(args);
284
+ };
285
+ Snowball.prototype.listCompatibleImages = function (args, optionsOrCb, cb) {
286
+ var command = new ListCompatibleImagesCommand(args);
282
287
  if (typeof optionsOrCb === "function") {
283
288
  this.send(command, optionsOrCb);
284
289
  }
285
290
  else if (typeof cb === "function") {
286
291
  if (typeof optionsOrCb !== "object")
287
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
292
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
288
293
  this.send(command, optionsOrCb || {}, cb);
289
294
  }
290
295
  else {
291
296
  return this.send(command, optionsOrCb);
292
297
  }
293
- }
294
- listJobs(args, optionsOrCb, cb) {
295
- const command = new ListJobsCommand(args);
298
+ };
299
+ Snowball.prototype.listJobs = function (args, optionsOrCb, cb) {
300
+ var command = new ListJobsCommand(args);
296
301
  if (typeof optionsOrCb === "function") {
297
302
  this.send(command, optionsOrCb);
298
303
  }
299
304
  else if (typeof cb === "function") {
300
305
  if (typeof optionsOrCb !== "object")
301
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
306
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
302
307
  this.send(command, optionsOrCb || {}, cb);
303
308
  }
304
309
  else {
305
310
  return this.send(command, optionsOrCb);
306
311
  }
307
- }
308
- listLongTermPricing(args, optionsOrCb, cb) {
309
- const command = new ListLongTermPricingCommand(args);
312
+ };
313
+ Snowball.prototype.listLongTermPricing = function (args, optionsOrCb, cb) {
314
+ var command = new ListLongTermPricingCommand(args);
310
315
  if (typeof optionsOrCb === "function") {
311
316
  this.send(command, optionsOrCb);
312
317
  }
313
318
  else if (typeof cb === "function") {
314
319
  if (typeof optionsOrCb !== "object")
315
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
320
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
316
321
  this.send(command, optionsOrCb || {}, cb);
317
322
  }
318
323
  else {
319
324
  return this.send(command, optionsOrCb);
320
325
  }
321
- }
322
- updateCluster(args, optionsOrCb, cb) {
323
- const command = new UpdateClusterCommand(args);
326
+ };
327
+ Snowball.prototype.updateCluster = function (args, optionsOrCb, cb) {
328
+ var command = new UpdateClusterCommand(args);
324
329
  if (typeof optionsOrCb === "function") {
325
330
  this.send(command, optionsOrCb);
326
331
  }
327
332
  else if (typeof cb === "function") {
328
333
  if (typeof optionsOrCb !== "object")
329
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
334
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
330
335
  this.send(command, optionsOrCb || {}, cb);
331
336
  }
332
337
  else {
333
338
  return this.send(command, optionsOrCb);
334
339
  }
335
- }
336
- updateJob(args, optionsOrCb, cb) {
337
- const command = new UpdateJobCommand(args);
340
+ };
341
+ Snowball.prototype.updateJob = function (args, optionsOrCb, cb) {
342
+ var command = new UpdateJobCommand(args);
338
343
  if (typeof optionsOrCb === "function") {
339
344
  this.send(command, optionsOrCb);
340
345
  }
341
346
  else if (typeof cb === "function") {
342
347
  if (typeof optionsOrCb !== "object")
343
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
348
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
344
349
  this.send(command, optionsOrCb || {}, cb);
345
350
  }
346
351
  else {
347
352
  return this.send(command, optionsOrCb);
348
353
  }
349
- }
350
- updateJobShipmentState(args, optionsOrCb, cb) {
351
- const command = new UpdateJobShipmentStateCommand(args);
354
+ };
355
+ Snowball.prototype.updateJobShipmentState = function (args, optionsOrCb, cb) {
356
+ var command = new UpdateJobShipmentStateCommand(args);
352
357
  if (typeof optionsOrCb === "function") {
353
358
  this.send(command, optionsOrCb);
354
359
  }
355
360
  else if (typeof cb === "function") {
356
361
  if (typeof optionsOrCb !== "object")
357
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
362
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
358
363
  this.send(command, optionsOrCb || {}, cb);
359
364
  }
360
365
  else {
361
366
  return this.send(command, optionsOrCb);
362
367
  }
363
- }
364
- updateLongTermPricing(args, optionsOrCb, cb) {
365
- const command = new UpdateLongTermPricingCommand(args);
368
+ };
369
+ Snowball.prototype.updateLongTermPricing = function (args, optionsOrCb, cb) {
370
+ var command = new UpdateLongTermPricingCommand(args);
366
371
  if (typeof optionsOrCb === "function") {
367
372
  this.send(command, optionsOrCb);
368
373
  }
369
374
  else if (typeof cb === "function") {
370
375
  if (typeof optionsOrCb !== "object")
371
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
376
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
372
377
  this.send(command, optionsOrCb || {}, cb);
373
378
  }
374
379
  else {
375
380
  return this.send(command, optionsOrCb);
376
381
  }
377
- }
378
- }
382
+ };
383
+ return Snowball;
384
+ }(SnowballClient));
385
+ export { Snowball };
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
2
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
3
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
9
10
  import { Client as __Client, } from "@aws-sdk/smithy-client";
10
11
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
11
- export class SnowballClient extends __Client {
12
- constructor(configuration) {
13
- const _config_0 = __getRuntimeConfig(configuration);
14
- const _config_1 = resolveRegionConfig(_config_0);
15
- const _config_2 = resolveEndpointsConfig(_config_1);
16
- const _config_3 = resolveRetryConfig(_config_2);
17
- const _config_4 = resolveHostHeaderConfig(_config_3);
18
- const _config_5 = resolveAwsAuthConfig(_config_4);
19
- const _config_6 = resolveUserAgentConfig(_config_5);
20
- super(_config_6);
21
- this.config = _config_6;
22
- this.middlewareStack.use(getRetryPlugin(this.config));
23
- this.middlewareStack.use(getContentLengthPlugin(this.config));
24
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
- this.middlewareStack.use(getLoggerPlugin(this.config));
26
- this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
- this.middlewareStack.use(getUserAgentPlugin(this.config));
12
+ var SnowballClient = (function (_super) {
13
+ __extends(SnowballClient, _super);
14
+ function SnowballClient(configuration) {
15
+ var _this = this;
16
+ var _config_0 = __getRuntimeConfig(configuration);
17
+ var _config_1 = resolveRegionConfig(_config_0);
18
+ var _config_2 = resolveEndpointsConfig(_config_1);
19
+ var _config_3 = resolveRetryConfig(_config_2);
20
+ var _config_4 = resolveHostHeaderConfig(_config_3);
21
+ var _config_5 = resolveAwsAuthConfig(_config_4);
22
+ var _config_6 = resolveUserAgentConfig(_config_5);
23
+ _this = _super.call(this, _config_6) || this;
24
+ _this.config = _config_6;
25
+ _this.middlewareStack.use(getRetryPlugin(_this.config));
26
+ _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
+ _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
+ _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
+ _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
+ _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
+ return _this;
29
33
  }
30
- destroy() {
31
- super.destroy();
32
- }
33
- }
34
+ SnowballClient.prototype.destroy = function () {
35
+ _super.prototype.destroy.call(this);
36
+ };
37
+ return SnowballClient;
38
+ }(__Client));
39
+ export { SnowballClient };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CancelClusterRequestFilterSensitiveLog, CancelClusterResultFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1CancelClusterCommand, serializeAws_json1_1CancelClusterCommand, } from "../protocols/Aws_json1_1";
5
- export class CancelClusterCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CancelClusterCommand = (function (_super) {
7
+ __extends(CancelClusterCommand, _super);
8
+ function CancelClusterCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CancelClusterCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "SnowballClient";
15
- const commandName = "CancelClusterCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "SnowballClient";
18
+ var commandName = "CancelClusterCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CancelClusterRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CancelClusterResultFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CancelClusterCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1CancelClusterCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CancelClusterCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1CancelClusterCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CancelClusterCommand;
38
+ }($Command));
39
+ export { CancelClusterCommand };