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