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