@aws-sdk/client-glacier 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 +8 -0
- package/dist-es/Glacier.js +134 -141
- package/dist-es/GlacierClient.js +23 -29
- package/dist-es/commands/AbortMultipartUploadCommand.js +22 -29
- package/dist-es/commands/AbortVaultLockCommand.js +22 -29
- package/dist-es/commands/AddTagsToVaultCommand.js +22 -29
- package/dist-es/commands/CompleteMultipartUploadCommand.js +21 -28
- package/dist-es/commands/CompleteVaultLockCommand.js +22 -29
- package/dist-es/commands/CreateVaultCommand.js +21 -28
- package/dist-es/commands/DeleteArchiveCommand.js +22 -29
- package/dist-es/commands/DeleteVaultAccessPolicyCommand.js +22 -29
- package/dist-es/commands/DeleteVaultCommand.js +22 -29
- package/dist-es/commands/DeleteVaultNotificationsCommand.js +22 -29
- package/dist-es/commands/DescribeJobCommand.js +21 -28
- package/dist-es/commands/DescribeVaultCommand.js +21 -28
- package/dist-es/commands/GetDataRetrievalPolicyCommand.js +21 -28
- package/dist-es/commands/GetJobOutputCommand.js +21 -28
- package/dist-es/commands/GetVaultAccessPolicyCommand.js +21 -28
- package/dist-es/commands/GetVaultLockCommand.js +21 -28
- package/dist-es/commands/GetVaultNotificationsCommand.js +21 -28
- package/dist-es/commands/InitiateJobCommand.js +21 -28
- package/dist-es/commands/InitiateMultipartUploadCommand.js +21 -28
- package/dist-es/commands/InitiateVaultLockCommand.js +21 -28
- package/dist-es/commands/ListJobsCommand.js +21 -28
- package/dist-es/commands/ListMultipartUploadsCommand.js +21 -28
- package/dist-es/commands/ListPartsCommand.js +21 -28
- package/dist-es/commands/ListProvisionedCapacityCommand.js +21 -28
- package/dist-es/commands/ListTagsForVaultCommand.js +21 -28
- package/dist-es/commands/ListVaultsCommand.js +21 -28
- package/dist-es/commands/PurchaseProvisionedCapacityCommand.js +21 -28
- package/dist-es/commands/RemoveTagsFromVaultCommand.js +22 -29
- package/dist-es/commands/SetDataRetrievalPolicyCommand.js +22 -29
- package/dist-es/commands/SetVaultAccessPolicyCommand.js +22 -29
- package/dist-es/commands/SetVaultNotificationsCommand.js +22 -29
- package/dist-es/commands/UploadArchiveCommand.js +21 -28
- package/dist-es/commands/UploadMultipartPartCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/GlacierServiceException.js +5 -10
- package/dist-es/models/models_0.js +326 -179
- package/dist-es/pagination/ListJobsPaginator.js +25 -68
- package/dist-es/pagination/ListMultipartUploadsPaginator.js +25 -68
- package/dist-es/pagination/ListPartsPaginator.js +25 -68
- package/dist-es/pagination/ListVaultsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +2457 -3401
- package/dist-es/runtimeConfig.browser.js +27 -12
- package/dist-es/runtimeConfig.js +31 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/dist-es/waiters/waitForVaultExists.js +23 -42
- package/dist-es/waiters/waitForVaultNotExists.js +23 -42
- package/package.json +37 -37
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-glacier
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
7
15
|
|
|
8
16
|
|
package/dist-es/Glacier.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { AbortMultipartUploadCommand, } from "./commands/AbortMultipartUploadCommand";
|
|
3
2
|
import { AbortVaultLockCommand, } from "./commands/AbortVaultLockCommand";
|
|
4
3
|
import { AddTagsToVaultCommand, } from "./commands/AddTagsToVaultCommand";
|
|
@@ -33,473 +32,467 @@ import { SetVaultNotificationsCommand, } from "./commands/SetVaultNotificationsC
|
|
|
33
32
|
import { UploadArchiveCommand, } from "./commands/UploadArchiveCommand";
|
|
34
33
|
import { UploadMultipartPartCommand, } from "./commands/UploadMultipartPartCommand";
|
|
35
34
|
import { GlacierClient } from "./GlacierClient";
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
40
|
-
}
|
|
41
|
-
Glacier.prototype.abortMultipartUpload = function (args, optionsOrCb, cb) {
|
|
42
|
-
var command = new AbortMultipartUploadCommand(args);
|
|
35
|
+
export class Glacier extends GlacierClient {
|
|
36
|
+
abortMultipartUpload(args, optionsOrCb, cb) {
|
|
37
|
+
const command = new AbortMultipartUploadCommand(args);
|
|
43
38
|
if (typeof optionsOrCb === "function") {
|
|
44
39
|
this.send(command, optionsOrCb);
|
|
45
40
|
}
|
|
46
41
|
else if (typeof cb === "function") {
|
|
47
42
|
if (typeof optionsOrCb !== "object")
|
|
48
|
-
throw new Error(
|
|
43
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
49
44
|
this.send(command, optionsOrCb || {}, cb);
|
|
50
45
|
}
|
|
51
46
|
else {
|
|
52
47
|
return this.send(command, optionsOrCb);
|
|
53
48
|
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
49
|
+
}
|
|
50
|
+
abortVaultLock(args, optionsOrCb, cb) {
|
|
51
|
+
const command = new AbortVaultLockCommand(args);
|
|
57
52
|
if (typeof optionsOrCb === "function") {
|
|
58
53
|
this.send(command, optionsOrCb);
|
|
59
54
|
}
|
|
60
55
|
else if (typeof cb === "function") {
|
|
61
56
|
if (typeof optionsOrCb !== "object")
|
|
62
|
-
throw new Error(
|
|
57
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
63
58
|
this.send(command, optionsOrCb || {}, cb);
|
|
64
59
|
}
|
|
65
60
|
else {
|
|
66
61
|
return this.send(command, optionsOrCb);
|
|
67
62
|
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
63
|
+
}
|
|
64
|
+
addTagsToVault(args, optionsOrCb, cb) {
|
|
65
|
+
const command = new AddTagsToVaultCommand(args);
|
|
71
66
|
if (typeof optionsOrCb === "function") {
|
|
72
67
|
this.send(command, optionsOrCb);
|
|
73
68
|
}
|
|
74
69
|
else if (typeof cb === "function") {
|
|
75
70
|
if (typeof optionsOrCb !== "object")
|
|
76
|
-
throw new Error(
|
|
71
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
77
72
|
this.send(command, optionsOrCb || {}, cb);
|
|
78
73
|
}
|
|
79
74
|
else {
|
|
80
75
|
return this.send(command, optionsOrCb);
|
|
81
76
|
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
77
|
+
}
|
|
78
|
+
completeMultipartUpload(args, optionsOrCb, cb) {
|
|
79
|
+
const command = new CompleteMultipartUploadCommand(args);
|
|
85
80
|
if (typeof optionsOrCb === "function") {
|
|
86
81
|
this.send(command, optionsOrCb);
|
|
87
82
|
}
|
|
88
83
|
else if (typeof cb === "function") {
|
|
89
84
|
if (typeof optionsOrCb !== "object")
|
|
90
|
-
throw new Error(
|
|
85
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
91
86
|
this.send(command, optionsOrCb || {}, cb);
|
|
92
87
|
}
|
|
93
88
|
else {
|
|
94
89
|
return this.send(command, optionsOrCb);
|
|
95
90
|
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
|
|
91
|
+
}
|
|
92
|
+
completeVaultLock(args, optionsOrCb, cb) {
|
|
93
|
+
const command = new CompleteVaultLockCommand(args);
|
|
99
94
|
if (typeof optionsOrCb === "function") {
|
|
100
95
|
this.send(command, optionsOrCb);
|
|
101
96
|
}
|
|
102
97
|
else if (typeof cb === "function") {
|
|
103
98
|
if (typeof optionsOrCb !== "object")
|
|
104
|
-
throw new Error(
|
|
99
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
105
100
|
this.send(command, optionsOrCb || {}, cb);
|
|
106
101
|
}
|
|
107
102
|
else {
|
|
108
103
|
return this.send(command, optionsOrCb);
|
|
109
104
|
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
|
|
105
|
+
}
|
|
106
|
+
createVault(args, optionsOrCb, cb) {
|
|
107
|
+
const command = new CreateVaultCommand(args);
|
|
113
108
|
if (typeof optionsOrCb === "function") {
|
|
114
109
|
this.send(command, optionsOrCb);
|
|
115
110
|
}
|
|
116
111
|
else if (typeof cb === "function") {
|
|
117
112
|
if (typeof optionsOrCb !== "object")
|
|
118
|
-
throw new Error(
|
|
113
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
119
114
|
this.send(command, optionsOrCb || {}, cb);
|
|
120
115
|
}
|
|
121
116
|
else {
|
|
122
117
|
return this.send(command, optionsOrCb);
|
|
123
118
|
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
|
|
119
|
+
}
|
|
120
|
+
deleteArchive(args, optionsOrCb, cb) {
|
|
121
|
+
const command = new DeleteArchiveCommand(args);
|
|
127
122
|
if (typeof optionsOrCb === "function") {
|
|
128
123
|
this.send(command, optionsOrCb);
|
|
129
124
|
}
|
|
130
125
|
else if (typeof cb === "function") {
|
|
131
126
|
if (typeof optionsOrCb !== "object")
|
|
132
|
-
throw new Error(
|
|
127
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
133
128
|
this.send(command, optionsOrCb || {}, cb);
|
|
134
129
|
}
|
|
135
130
|
else {
|
|
136
131
|
return this.send(command, optionsOrCb);
|
|
137
132
|
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
|
|
133
|
+
}
|
|
134
|
+
deleteVault(args, optionsOrCb, cb) {
|
|
135
|
+
const command = new DeleteVaultCommand(args);
|
|
141
136
|
if (typeof optionsOrCb === "function") {
|
|
142
137
|
this.send(command, optionsOrCb);
|
|
143
138
|
}
|
|
144
139
|
else if (typeof cb === "function") {
|
|
145
140
|
if (typeof optionsOrCb !== "object")
|
|
146
|
-
throw new Error(
|
|
141
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
147
142
|
this.send(command, optionsOrCb || {}, cb);
|
|
148
143
|
}
|
|
149
144
|
else {
|
|
150
145
|
return this.send(command, optionsOrCb);
|
|
151
146
|
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
|
|
147
|
+
}
|
|
148
|
+
deleteVaultAccessPolicy(args, optionsOrCb, cb) {
|
|
149
|
+
const command = new DeleteVaultAccessPolicyCommand(args);
|
|
155
150
|
if (typeof optionsOrCb === "function") {
|
|
156
151
|
this.send(command, optionsOrCb);
|
|
157
152
|
}
|
|
158
153
|
else if (typeof cb === "function") {
|
|
159
154
|
if (typeof optionsOrCb !== "object")
|
|
160
|
-
throw new Error(
|
|
155
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
161
156
|
this.send(command, optionsOrCb || {}, cb);
|
|
162
157
|
}
|
|
163
158
|
else {
|
|
164
159
|
return this.send(command, optionsOrCb);
|
|
165
160
|
}
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
|
|
161
|
+
}
|
|
162
|
+
deleteVaultNotifications(args, optionsOrCb, cb) {
|
|
163
|
+
const command = new DeleteVaultNotificationsCommand(args);
|
|
169
164
|
if (typeof optionsOrCb === "function") {
|
|
170
165
|
this.send(command, optionsOrCb);
|
|
171
166
|
}
|
|
172
167
|
else if (typeof cb === "function") {
|
|
173
168
|
if (typeof optionsOrCb !== "object")
|
|
174
|
-
throw new Error(
|
|
169
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
175
170
|
this.send(command, optionsOrCb || {}, cb);
|
|
176
171
|
}
|
|
177
172
|
else {
|
|
178
173
|
return this.send(command, optionsOrCb);
|
|
179
174
|
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
|
|
175
|
+
}
|
|
176
|
+
describeJob(args, optionsOrCb, cb) {
|
|
177
|
+
const command = new DescribeJobCommand(args);
|
|
183
178
|
if (typeof optionsOrCb === "function") {
|
|
184
179
|
this.send(command, optionsOrCb);
|
|
185
180
|
}
|
|
186
181
|
else if (typeof cb === "function") {
|
|
187
182
|
if (typeof optionsOrCb !== "object")
|
|
188
|
-
throw new Error(
|
|
183
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
189
184
|
this.send(command, optionsOrCb || {}, cb);
|
|
190
185
|
}
|
|
191
186
|
else {
|
|
192
187
|
return this.send(command, optionsOrCb);
|
|
193
188
|
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
|
|
189
|
+
}
|
|
190
|
+
describeVault(args, optionsOrCb, cb) {
|
|
191
|
+
const command = new DescribeVaultCommand(args);
|
|
197
192
|
if (typeof optionsOrCb === "function") {
|
|
198
193
|
this.send(command, optionsOrCb);
|
|
199
194
|
}
|
|
200
195
|
else if (typeof cb === "function") {
|
|
201
196
|
if (typeof optionsOrCb !== "object")
|
|
202
|
-
throw new Error(
|
|
197
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
203
198
|
this.send(command, optionsOrCb || {}, cb);
|
|
204
199
|
}
|
|
205
200
|
else {
|
|
206
201
|
return this.send(command, optionsOrCb);
|
|
207
202
|
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
|
|
203
|
+
}
|
|
204
|
+
getDataRetrievalPolicy(args, optionsOrCb, cb) {
|
|
205
|
+
const command = new GetDataRetrievalPolicyCommand(args);
|
|
211
206
|
if (typeof optionsOrCb === "function") {
|
|
212
207
|
this.send(command, optionsOrCb);
|
|
213
208
|
}
|
|
214
209
|
else if (typeof cb === "function") {
|
|
215
210
|
if (typeof optionsOrCb !== "object")
|
|
216
|
-
throw new Error(
|
|
211
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
217
212
|
this.send(command, optionsOrCb || {}, cb);
|
|
218
213
|
}
|
|
219
214
|
else {
|
|
220
215
|
return this.send(command, optionsOrCb);
|
|
221
216
|
}
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
|
|
217
|
+
}
|
|
218
|
+
getJobOutput(args, optionsOrCb, cb) {
|
|
219
|
+
const command = new GetJobOutputCommand(args);
|
|
225
220
|
if (typeof optionsOrCb === "function") {
|
|
226
221
|
this.send(command, optionsOrCb);
|
|
227
222
|
}
|
|
228
223
|
else if (typeof cb === "function") {
|
|
229
224
|
if (typeof optionsOrCb !== "object")
|
|
230
|
-
throw new Error(
|
|
225
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
231
226
|
this.send(command, optionsOrCb || {}, cb);
|
|
232
227
|
}
|
|
233
228
|
else {
|
|
234
229
|
return this.send(command, optionsOrCb);
|
|
235
230
|
}
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
|
|
231
|
+
}
|
|
232
|
+
getVaultAccessPolicy(args, optionsOrCb, cb) {
|
|
233
|
+
const command = new GetVaultAccessPolicyCommand(args);
|
|
239
234
|
if (typeof optionsOrCb === "function") {
|
|
240
235
|
this.send(command, optionsOrCb);
|
|
241
236
|
}
|
|
242
237
|
else if (typeof cb === "function") {
|
|
243
238
|
if (typeof optionsOrCb !== "object")
|
|
244
|
-
throw new Error(
|
|
239
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
245
240
|
this.send(command, optionsOrCb || {}, cb);
|
|
246
241
|
}
|
|
247
242
|
else {
|
|
248
243
|
return this.send(command, optionsOrCb);
|
|
249
244
|
}
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
|
|
245
|
+
}
|
|
246
|
+
getVaultLock(args, optionsOrCb, cb) {
|
|
247
|
+
const command = new GetVaultLockCommand(args);
|
|
253
248
|
if (typeof optionsOrCb === "function") {
|
|
254
249
|
this.send(command, optionsOrCb);
|
|
255
250
|
}
|
|
256
251
|
else if (typeof cb === "function") {
|
|
257
252
|
if (typeof optionsOrCb !== "object")
|
|
258
|
-
throw new Error(
|
|
253
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
259
254
|
this.send(command, optionsOrCb || {}, cb);
|
|
260
255
|
}
|
|
261
256
|
else {
|
|
262
257
|
return this.send(command, optionsOrCb);
|
|
263
258
|
}
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
|
|
259
|
+
}
|
|
260
|
+
getVaultNotifications(args, optionsOrCb, cb) {
|
|
261
|
+
const command = new GetVaultNotificationsCommand(args);
|
|
267
262
|
if (typeof optionsOrCb === "function") {
|
|
268
263
|
this.send(command, optionsOrCb);
|
|
269
264
|
}
|
|
270
265
|
else if (typeof cb === "function") {
|
|
271
266
|
if (typeof optionsOrCb !== "object")
|
|
272
|
-
throw new Error(
|
|
267
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
273
268
|
this.send(command, optionsOrCb || {}, cb);
|
|
274
269
|
}
|
|
275
270
|
else {
|
|
276
271
|
return this.send(command, optionsOrCb);
|
|
277
272
|
}
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
|
|
273
|
+
}
|
|
274
|
+
initiateJob(args, optionsOrCb, cb) {
|
|
275
|
+
const command = new InitiateJobCommand(args);
|
|
281
276
|
if (typeof optionsOrCb === "function") {
|
|
282
277
|
this.send(command, optionsOrCb);
|
|
283
278
|
}
|
|
284
279
|
else if (typeof cb === "function") {
|
|
285
280
|
if (typeof optionsOrCb !== "object")
|
|
286
|
-
throw new Error(
|
|
281
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
287
282
|
this.send(command, optionsOrCb || {}, cb);
|
|
288
283
|
}
|
|
289
284
|
else {
|
|
290
285
|
return this.send(command, optionsOrCb);
|
|
291
286
|
}
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
|
|
287
|
+
}
|
|
288
|
+
initiateMultipartUpload(args, optionsOrCb, cb) {
|
|
289
|
+
const command = new InitiateMultipartUploadCommand(args);
|
|
295
290
|
if (typeof optionsOrCb === "function") {
|
|
296
291
|
this.send(command, optionsOrCb);
|
|
297
292
|
}
|
|
298
293
|
else if (typeof cb === "function") {
|
|
299
294
|
if (typeof optionsOrCb !== "object")
|
|
300
|
-
throw new Error(
|
|
295
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
301
296
|
this.send(command, optionsOrCb || {}, cb);
|
|
302
297
|
}
|
|
303
298
|
else {
|
|
304
299
|
return this.send(command, optionsOrCb);
|
|
305
300
|
}
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
|
|
301
|
+
}
|
|
302
|
+
initiateVaultLock(args, optionsOrCb, cb) {
|
|
303
|
+
const command = new InitiateVaultLockCommand(args);
|
|
309
304
|
if (typeof optionsOrCb === "function") {
|
|
310
305
|
this.send(command, optionsOrCb);
|
|
311
306
|
}
|
|
312
307
|
else if (typeof cb === "function") {
|
|
313
308
|
if (typeof optionsOrCb !== "object")
|
|
314
|
-
throw new Error(
|
|
309
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
315
310
|
this.send(command, optionsOrCb || {}, cb);
|
|
316
311
|
}
|
|
317
312
|
else {
|
|
318
313
|
return this.send(command, optionsOrCb);
|
|
319
314
|
}
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
|
|
315
|
+
}
|
|
316
|
+
listJobs(args, optionsOrCb, cb) {
|
|
317
|
+
const command = new ListJobsCommand(args);
|
|
323
318
|
if (typeof optionsOrCb === "function") {
|
|
324
319
|
this.send(command, optionsOrCb);
|
|
325
320
|
}
|
|
326
321
|
else if (typeof cb === "function") {
|
|
327
322
|
if (typeof optionsOrCb !== "object")
|
|
328
|
-
throw new Error(
|
|
323
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
329
324
|
this.send(command, optionsOrCb || {}, cb);
|
|
330
325
|
}
|
|
331
326
|
else {
|
|
332
327
|
return this.send(command, optionsOrCb);
|
|
333
328
|
}
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
|
|
329
|
+
}
|
|
330
|
+
listMultipartUploads(args, optionsOrCb, cb) {
|
|
331
|
+
const command = new ListMultipartUploadsCommand(args);
|
|
337
332
|
if (typeof optionsOrCb === "function") {
|
|
338
333
|
this.send(command, optionsOrCb);
|
|
339
334
|
}
|
|
340
335
|
else if (typeof cb === "function") {
|
|
341
336
|
if (typeof optionsOrCb !== "object")
|
|
342
|
-
throw new Error(
|
|
337
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
343
338
|
this.send(command, optionsOrCb || {}, cb);
|
|
344
339
|
}
|
|
345
340
|
else {
|
|
346
341
|
return this.send(command, optionsOrCb);
|
|
347
342
|
}
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
|
|
343
|
+
}
|
|
344
|
+
listParts(args, optionsOrCb, cb) {
|
|
345
|
+
const command = new ListPartsCommand(args);
|
|
351
346
|
if (typeof optionsOrCb === "function") {
|
|
352
347
|
this.send(command, optionsOrCb);
|
|
353
348
|
}
|
|
354
349
|
else if (typeof cb === "function") {
|
|
355
350
|
if (typeof optionsOrCb !== "object")
|
|
356
|
-
throw new Error(
|
|
351
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
357
352
|
this.send(command, optionsOrCb || {}, cb);
|
|
358
353
|
}
|
|
359
354
|
else {
|
|
360
355
|
return this.send(command, optionsOrCb);
|
|
361
356
|
}
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
|
|
357
|
+
}
|
|
358
|
+
listProvisionedCapacity(args, optionsOrCb, cb) {
|
|
359
|
+
const command = new ListProvisionedCapacityCommand(args);
|
|
365
360
|
if (typeof optionsOrCb === "function") {
|
|
366
361
|
this.send(command, optionsOrCb);
|
|
367
362
|
}
|
|
368
363
|
else if (typeof cb === "function") {
|
|
369
364
|
if (typeof optionsOrCb !== "object")
|
|
370
|
-
throw new Error(
|
|
365
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
371
366
|
this.send(command, optionsOrCb || {}, cb);
|
|
372
367
|
}
|
|
373
368
|
else {
|
|
374
369
|
return this.send(command, optionsOrCb);
|
|
375
370
|
}
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
|
|
371
|
+
}
|
|
372
|
+
listTagsForVault(args, optionsOrCb, cb) {
|
|
373
|
+
const command = new ListTagsForVaultCommand(args);
|
|
379
374
|
if (typeof optionsOrCb === "function") {
|
|
380
375
|
this.send(command, optionsOrCb);
|
|
381
376
|
}
|
|
382
377
|
else if (typeof cb === "function") {
|
|
383
378
|
if (typeof optionsOrCb !== "object")
|
|
384
|
-
throw new Error(
|
|
379
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
385
380
|
this.send(command, optionsOrCb || {}, cb);
|
|
386
381
|
}
|
|
387
382
|
else {
|
|
388
383
|
return this.send(command, optionsOrCb);
|
|
389
384
|
}
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
|
|
385
|
+
}
|
|
386
|
+
listVaults(args, optionsOrCb, cb) {
|
|
387
|
+
const command = new ListVaultsCommand(args);
|
|
393
388
|
if (typeof optionsOrCb === "function") {
|
|
394
389
|
this.send(command, optionsOrCb);
|
|
395
390
|
}
|
|
396
391
|
else if (typeof cb === "function") {
|
|
397
392
|
if (typeof optionsOrCb !== "object")
|
|
398
|
-
throw new Error(
|
|
393
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
399
394
|
this.send(command, optionsOrCb || {}, cb);
|
|
400
395
|
}
|
|
401
396
|
else {
|
|
402
397
|
return this.send(command, optionsOrCb);
|
|
403
398
|
}
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
|
|
399
|
+
}
|
|
400
|
+
purchaseProvisionedCapacity(args, optionsOrCb, cb) {
|
|
401
|
+
const command = new PurchaseProvisionedCapacityCommand(args);
|
|
407
402
|
if (typeof optionsOrCb === "function") {
|
|
408
403
|
this.send(command, optionsOrCb);
|
|
409
404
|
}
|
|
410
405
|
else if (typeof cb === "function") {
|
|
411
406
|
if (typeof optionsOrCb !== "object")
|
|
412
|
-
throw new Error(
|
|
407
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
413
408
|
this.send(command, optionsOrCb || {}, cb);
|
|
414
409
|
}
|
|
415
410
|
else {
|
|
416
411
|
return this.send(command, optionsOrCb);
|
|
417
412
|
}
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
|
|
413
|
+
}
|
|
414
|
+
removeTagsFromVault(args, optionsOrCb, cb) {
|
|
415
|
+
const command = new RemoveTagsFromVaultCommand(args);
|
|
421
416
|
if (typeof optionsOrCb === "function") {
|
|
422
417
|
this.send(command, optionsOrCb);
|
|
423
418
|
}
|
|
424
419
|
else if (typeof cb === "function") {
|
|
425
420
|
if (typeof optionsOrCb !== "object")
|
|
426
|
-
throw new Error(
|
|
421
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
427
422
|
this.send(command, optionsOrCb || {}, cb);
|
|
428
423
|
}
|
|
429
424
|
else {
|
|
430
425
|
return this.send(command, optionsOrCb);
|
|
431
426
|
}
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
|
|
427
|
+
}
|
|
428
|
+
setDataRetrievalPolicy(args, optionsOrCb, cb) {
|
|
429
|
+
const command = new SetDataRetrievalPolicyCommand(args);
|
|
435
430
|
if (typeof optionsOrCb === "function") {
|
|
436
431
|
this.send(command, optionsOrCb);
|
|
437
432
|
}
|
|
438
433
|
else if (typeof cb === "function") {
|
|
439
434
|
if (typeof optionsOrCb !== "object")
|
|
440
|
-
throw new Error(
|
|
435
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
441
436
|
this.send(command, optionsOrCb || {}, cb);
|
|
442
437
|
}
|
|
443
438
|
else {
|
|
444
439
|
return this.send(command, optionsOrCb);
|
|
445
440
|
}
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
|
|
441
|
+
}
|
|
442
|
+
setVaultAccessPolicy(args, optionsOrCb, cb) {
|
|
443
|
+
const command = new SetVaultAccessPolicyCommand(args);
|
|
449
444
|
if (typeof optionsOrCb === "function") {
|
|
450
445
|
this.send(command, optionsOrCb);
|
|
451
446
|
}
|
|
452
447
|
else if (typeof cb === "function") {
|
|
453
448
|
if (typeof optionsOrCb !== "object")
|
|
454
|
-
throw new Error(
|
|
449
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
455
450
|
this.send(command, optionsOrCb || {}, cb);
|
|
456
451
|
}
|
|
457
452
|
else {
|
|
458
453
|
return this.send(command, optionsOrCb);
|
|
459
454
|
}
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
|
|
455
|
+
}
|
|
456
|
+
setVaultNotifications(args, optionsOrCb, cb) {
|
|
457
|
+
const command = new SetVaultNotificationsCommand(args);
|
|
463
458
|
if (typeof optionsOrCb === "function") {
|
|
464
459
|
this.send(command, optionsOrCb);
|
|
465
460
|
}
|
|
466
461
|
else if (typeof cb === "function") {
|
|
467
462
|
if (typeof optionsOrCb !== "object")
|
|
468
|
-
throw new Error(
|
|
463
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
469
464
|
this.send(command, optionsOrCb || {}, cb);
|
|
470
465
|
}
|
|
471
466
|
else {
|
|
472
467
|
return this.send(command, optionsOrCb);
|
|
473
468
|
}
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
|
|
469
|
+
}
|
|
470
|
+
uploadArchive(args, optionsOrCb, cb) {
|
|
471
|
+
const command = new UploadArchiveCommand(args);
|
|
477
472
|
if (typeof optionsOrCb === "function") {
|
|
478
473
|
this.send(command, optionsOrCb);
|
|
479
474
|
}
|
|
480
475
|
else if (typeof cb === "function") {
|
|
481
476
|
if (typeof optionsOrCb !== "object")
|
|
482
|
-
throw new Error(
|
|
477
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
483
478
|
this.send(command, optionsOrCb || {}, cb);
|
|
484
479
|
}
|
|
485
480
|
else {
|
|
486
481
|
return this.send(command, optionsOrCb);
|
|
487
482
|
}
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
|
|
483
|
+
}
|
|
484
|
+
uploadMultipartPart(args, optionsOrCb, cb) {
|
|
485
|
+
const command = new UploadMultipartPartCommand(args);
|
|
491
486
|
if (typeof optionsOrCb === "function") {
|
|
492
487
|
this.send(command, optionsOrCb);
|
|
493
488
|
}
|
|
494
489
|
else if (typeof cb === "function") {
|
|
495
490
|
if (typeof optionsOrCb !== "object")
|
|
496
|
-
throw new Error(
|
|
491
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
497
492
|
this.send(command, optionsOrCb || {}, cb);
|
|
498
493
|
}
|
|
499
494
|
else {
|
|
500
495
|
return this.send(command, optionsOrCb);
|
|
501
496
|
}
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
}(GlacierClient));
|
|
505
|
-
export { Glacier };
|
|
497
|
+
}
|
|
498
|
+
}
|