@aws-sdk/client-glacier 3.1068.0 → 3.1070.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/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/dist-cjs/endpoint/bdd.js +2 -5
- package/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/dist-cjs/index.js +161 -181
- package/dist-cjs/models/GlacierServiceException.js +4 -8
- package/dist-cjs/models/errors.js +19 -31
- package/dist-cjs/runtimeConfig.browser.js +24 -28
- package/dist-cjs/runtimeConfig.js +32 -36
- package/dist-cjs/runtimeConfig.native.js +4 -7
- package/dist-cjs/runtimeConfig.shared.js +21 -25
- package/dist-cjs/schemas/schemas_0.js +239 -160
- package/package.json +11 -11
package/dist-cjs/index.js
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
var __exportStar = (m, e) => { Object.assign(e, m); };
|
|
2
|
+
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
|
+
const { getGlacierPlugin } = require("@aws-sdk/middleware-sdk-glacier");
|
|
4
|
+
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
5
|
+
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
|
|
6
|
+
exports.$Command = Command;
|
|
7
|
+
exports.__Client = Client;
|
|
8
|
+
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
9
|
+
const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
10
|
+
const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
11
|
+
const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
12
|
+
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
13
|
+
const { resolveHttpAuthSchemeConfig, defaultGlacierHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
|
|
14
|
+
const { getRuntimeConfig } = require("./runtimeConfig");
|
|
15
|
+
const { AbortMultipartUpload$, AbortVaultLock$, AddTagsToVault$, CompleteMultipartUpload$, CompleteVaultLock$, CreateVault$, DeleteArchive$, DeleteVaultAccessPolicy$, DeleteVault$, DeleteVaultNotifications$, DescribeJob$, DescribeVault$, GetDataRetrievalPolicy$, GetJobOutput$, GetVaultAccessPolicy$, GetVaultLock$, GetVaultNotifications$, InitiateJob$, InitiateMultipartUpload$, InitiateVaultLock$, ListJobs$, ListMultipartUploads$, ListParts$, ListProvisionedCapacity$, ListTagsForVault$, ListVaults$, PurchaseProvisionedCapacity$, RemoveTagsFromVault$, SetDataRetrievalPolicy$, SetVaultAccessPolicy$, SetVaultNotifications$, UploadArchive$, UploadMultipartPart$ } = require("./schemas/schemas_0");
|
|
16
|
+
__exportStar(require("./schemas/schemas_0"), exports);
|
|
17
|
+
__exportStar(require("./models/errors"), exports);
|
|
18
|
+
const { GlacierServiceException } = require("./models/GlacierServiceException");
|
|
19
|
+
exports.GlacierServiceException = GlacierServiceException;
|
|
17
20
|
|
|
18
21
|
const resolveClientEndpointParameters = (options) => {
|
|
19
22
|
return Object.assign(options, {
|
|
@@ -69,499 +72,499 @@ const resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
69
72
|
};
|
|
70
73
|
|
|
71
74
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
72
|
-
const extensionConfiguration = Object.assign(
|
|
75
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
73
76
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
74
|
-
return Object.assign(runtimeConfig,
|
|
77
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
75
78
|
};
|
|
76
79
|
|
|
77
|
-
class GlacierClient extends
|
|
80
|
+
class GlacierClient extends Client {
|
|
78
81
|
config;
|
|
79
82
|
constructor(...[configuration]) {
|
|
80
|
-
const _config_0 =
|
|
83
|
+
const _config_0 = getRuntimeConfig(configuration || {});
|
|
81
84
|
super(_config_0);
|
|
82
85
|
this.initConfig = _config_0;
|
|
83
86
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
84
|
-
const _config_2 =
|
|
85
|
-
const _config_3 =
|
|
86
|
-
const _config_4 =
|
|
87
|
-
const _config_5 =
|
|
88
|
-
const _config_6 =
|
|
89
|
-
const _config_7 =
|
|
87
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
88
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
89
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
90
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
91
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
92
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
90
93
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
91
94
|
this.config = _config_8;
|
|
92
|
-
this.middlewareStack.use(
|
|
93
|
-
this.middlewareStack.use(
|
|
94
|
-
this.middlewareStack.use(
|
|
95
|
-
this.middlewareStack.use(
|
|
96
|
-
this.middlewareStack.use(
|
|
97
|
-
this.middlewareStack.use(
|
|
98
|
-
this.middlewareStack.use(
|
|
99
|
-
this.middlewareStack.use(
|
|
100
|
-
this.middlewareStack.use(
|
|
101
|
-
httpAuthSchemeParametersProvider:
|
|
102
|
-
identityProviderConfigProvider: async (config) => new
|
|
95
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
101
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
102
|
+
this.middlewareStack.use(getGlacierPlugin(this.config));
|
|
103
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
104
|
+
httpAuthSchemeParametersProvider: defaultGlacierHttpAuthSchemeParametersProvider,
|
|
105
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
103
106
|
"aws.auth#sigv4": config.credentials,
|
|
104
107
|
}),
|
|
105
108
|
}));
|
|
106
|
-
this.middlewareStack.use(
|
|
109
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
107
110
|
}
|
|
108
111
|
destroy() {
|
|
109
112
|
super.destroy();
|
|
110
113
|
}
|
|
111
114
|
}
|
|
112
115
|
|
|
113
|
-
class AbortMultipartUploadCommand extends
|
|
116
|
+
class AbortMultipartUploadCommand extends Command
|
|
114
117
|
.classBuilder()
|
|
115
118
|
.ep(commonParams)
|
|
116
119
|
.m(function (Command, cs, config, o) {
|
|
117
|
-
return [
|
|
120
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
118
121
|
})
|
|
119
122
|
.s("Glacier", "AbortMultipartUpload", {})
|
|
120
123
|
.n("GlacierClient", "AbortMultipartUploadCommand")
|
|
121
|
-
.sc(
|
|
124
|
+
.sc(AbortMultipartUpload$)
|
|
122
125
|
.build() {
|
|
123
126
|
}
|
|
124
127
|
|
|
125
|
-
class AbortVaultLockCommand extends
|
|
128
|
+
class AbortVaultLockCommand extends Command
|
|
126
129
|
.classBuilder()
|
|
127
130
|
.ep(commonParams)
|
|
128
131
|
.m(function (Command, cs, config, o) {
|
|
129
|
-
return [
|
|
132
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
130
133
|
})
|
|
131
134
|
.s("Glacier", "AbortVaultLock", {})
|
|
132
135
|
.n("GlacierClient", "AbortVaultLockCommand")
|
|
133
|
-
.sc(
|
|
136
|
+
.sc(AbortVaultLock$)
|
|
134
137
|
.build() {
|
|
135
138
|
}
|
|
136
139
|
|
|
137
|
-
class AddTagsToVaultCommand extends
|
|
140
|
+
class AddTagsToVaultCommand extends Command
|
|
138
141
|
.classBuilder()
|
|
139
142
|
.ep(commonParams)
|
|
140
143
|
.m(function (Command, cs, config, o) {
|
|
141
|
-
return [
|
|
144
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
142
145
|
})
|
|
143
146
|
.s("Glacier", "AddTagsToVault", {})
|
|
144
147
|
.n("GlacierClient", "AddTagsToVaultCommand")
|
|
145
|
-
.sc(
|
|
148
|
+
.sc(AddTagsToVault$)
|
|
146
149
|
.build() {
|
|
147
150
|
}
|
|
148
151
|
|
|
149
|
-
class CompleteMultipartUploadCommand extends
|
|
152
|
+
class CompleteMultipartUploadCommand extends Command
|
|
150
153
|
.classBuilder()
|
|
151
154
|
.ep(commonParams)
|
|
152
155
|
.m(function (Command, cs, config, o) {
|
|
153
|
-
return [
|
|
156
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
154
157
|
})
|
|
155
158
|
.s("Glacier", "CompleteMultipartUpload", {})
|
|
156
159
|
.n("GlacierClient", "CompleteMultipartUploadCommand")
|
|
157
|
-
.sc(
|
|
160
|
+
.sc(CompleteMultipartUpload$)
|
|
158
161
|
.build() {
|
|
159
162
|
}
|
|
160
163
|
|
|
161
|
-
class CompleteVaultLockCommand extends
|
|
164
|
+
class CompleteVaultLockCommand extends Command
|
|
162
165
|
.classBuilder()
|
|
163
166
|
.ep(commonParams)
|
|
164
167
|
.m(function (Command, cs, config, o) {
|
|
165
|
-
return [
|
|
168
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
166
169
|
})
|
|
167
170
|
.s("Glacier", "CompleteVaultLock", {})
|
|
168
171
|
.n("GlacierClient", "CompleteVaultLockCommand")
|
|
169
|
-
.sc(
|
|
172
|
+
.sc(CompleteVaultLock$)
|
|
170
173
|
.build() {
|
|
171
174
|
}
|
|
172
175
|
|
|
173
|
-
class CreateVaultCommand extends
|
|
176
|
+
class CreateVaultCommand extends Command
|
|
174
177
|
.classBuilder()
|
|
175
178
|
.ep(commonParams)
|
|
176
179
|
.m(function (Command, cs, config, o) {
|
|
177
|
-
return [
|
|
180
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
178
181
|
})
|
|
179
182
|
.s("Glacier", "CreateVault", {})
|
|
180
183
|
.n("GlacierClient", "CreateVaultCommand")
|
|
181
|
-
.sc(
|
|
184
|
+
.sc(CreateVault$)
|
|
182
185
|
.build() {
|
|
183
186
|
}
|
|
184
187
|
|
|
185
|
-
class DeleteArchiveCommand extends
|
|
188
|
+
class DeleteArchiveCommand extends Command
|
|
186
189
|
.classBuilder()
|
|
187
190
|
.ep(commonParams)
|
|
188
191
|
.m(function (Command, cs, config, o) {
|
|
189
|
-
return [
|
|
192
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
190
193
|
})
|
|
191
194
|
.s("Glacier", "DeleteArchive", {})
|
|
192
195
|
.n("GlacierClient", "DeleteArchiveCommand")
|
|
193
|
-
.sc(
|
|
196
|
+
.sc(DeleteArchive$)
|
|
194
197
|
.build() {
|
|
195
198
|
}
|
|
196
199
|
|
|
197
|
-
class DeleteVaultAccessPolicyCommand extends
|
|
200
|
+
class DeleteVaultAccessPolicyCommand extends Command
|
|
198
201
|
.classBuilder()
|
|
199
202
|
.ep(commonParams)
|
|
200
203
|
.m(function (Command, cs, config, o) {
|
|
201
|
-
return [
|
|
204
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
202
205
|
})
|
|
203
206
|
.s("Glacier", "DeleteVaultAccessPolicy", {})
|
|
204
207
|
.n("GlacierClient", "DeleteVaultAccessPolicyCommand")
|
|
205
|
-
.sc(
|
|
208
|
+
.sc(DeleteVaultAccessPolicy$)
|
|
206
209
|
.build() {
|
|
207
210
|
}
|
|
208
211
|
|
|
209
|
-
class DeleteVaultCommand extends
|
|
212
|
+
class DeleteVaultCommand extends Command
|
|
210
213
|
.classBuilder()
|
|
211
214
|
.ep(commonParams)
|
|
212
215
|
.m(function (Command, cs, config, o) {
|
|
213
|
-
return [
|
|
216
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
214
217
|
})
|
|
215
218
|
.s("Glacier", "DeleteVault", {})
|
|
216
219
|
.n("GlacierClient", "DeleteVaultCommand")
|
|
217
|
-
.sc(
|
|
220
|
+
.sc(DeleteVault$)
|
|
218
221
|
.build() {
|
|
219
222
|
}
|
|
220
223
|
|
|
221
|
-
class DeleteVaultNotificationsCommand extends
|
|
224
|
+
class DeleteVaultNotificationsCommand extends Command
|
|
222
225
|
.classBuilder()
|
|
223
226
|
.ep(commonParams)
|
|
224
227
|
.m(function (Command, cs, config, o) {
|
|
225
|
-
return [
|
|
228
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
226
229
|
})
|
|
227
230
|
.s("Glacier", "DeleteVaultNotifications", {})
|
|
228
231
|
.n("GlacierClient", "DeleteVaultNotificationsCommand")
|
|
229
|
-
.sc(
|
|
232
|
+
.sc(DeleteVaultNotifications$)
|
|
230
233
|
.build() {
|
|
231
234
|
}
|
|
232
235
|
|
|
233
|
-
class DescribeJobCommand extends
|
|
236
|
+
class DescribeJobCommand extends Command
|
|
234
237
|
.classBuilder()
|
|
235
238
|
.ep(commonParams)
|
|
236
239
|
.m(function (Command, cs, config, o) {
|
|
237
|
-
return [
|
|
240
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
238
241
|
})
|
|
239
242
|
.s("Glacier", "DescribeJob", {})
|
|
240
243
|
.n("GlacierClient", "DescribeJobCommand")
|
|
241
|
-
.sc(
|
|
244
|
+
.sc(DescribeJob$)
|
|
242
245
|
.build() {
|
|
243
246
|
}
|
|
244
247
|
|
|
245
|
-
class DescribeVaultCommand extends
|
|
248
|
+
class DescribeVaultCommand extends Command
|
|
246
249
|
.classBuilder()
|
|
247
250
|
.ep(commonParams)
|
|
248
251
|
.m(function (Command, cs, config, o) {
|
|
249
|
-
return [
|
|
252
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
250
253
|
})
|
|
251
254
|
.s("Glacier", "DescribeVault", {})
|
|
252
255
|
.n("GlacierClient", "DescribeVaultCommand")
|
|
253
|
-
.sc(
|
|
256
|
+
.sc(DescribeVault$)
|
|
254
257
|
.build() {
|
|
255
258
|
}
|
|
256
259
|
|
|
257
|
-
class GetDataRetrievalPolicyCommand extends
|
|
260
|
+
class GetDataRetrievalPolicyCommand extends Command
|
|
258
261
|
.classBuilder()
|
|
259
262
|
.ep(commonParams)
|
|
260
263
|
.m(function (Command, cs, config, o) {
|
|
261
|
-
return [
|
|
264
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
262
265
|
})
|
|
263
266
|
.s("Glacier", "GetDataRetrievalPolicy", {})
|
|
264
267
|
.n("GlacierClient", "GetDataRetrievalPolicyCommand")
|
|
265
|
-
.sc(
|
|
268
|
+
.sc(GetDataRetrievalPolicy$)
|
|
266
269
|
.build() {
|
|
267
270
|
}
|
|
268
271
|
|
|
269
|
-
class GetJobOutputCommand extends
|
|
272
|
+
class GetJobOutputCommand extends Command
|
|
270
273
|
.classBuilder()
|
|
271
274
|
.ep(commonParams)
|
|
272
275
|
.m(function (Command, cs, config, o) {
|
|
273
|
-
return [
|
|
276
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
274
277
|
})
|
|
275
278
|
.s("Glacier", "GetJobOutput", {})
|
|
276
279
|
.n("GlacierClient", "GetJobOutputCommand")
|
|
277
|
-
.sc(
|
|
280
|
+
.sc(GetJobOutput$)
|
|
278
281
|
.build() {
|
|
279
282
|
}
|
|
280
283
|
|
|
281
|
-
class GetVaultAccessPolicyCommand extends
|
|
284
|
+
class GetVaultAccessPolicyCommand extends Command
|
|
282
285
|
.classBuilder()
|
|
283
286
|
.ep(commonParams)
|
|
284
287
|
.m(function (Command, cs, config, o) {
|
|
285
|
-
return [
|
|
288
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
286
289
|
})
|
|
287
290
|
.s("Glacier", "GetVaultAccessPolicy", {})
|
|
288
291
|
.n("GlacierClient", "GetVaultAccessPolicyCommand")
|
|
289
|
-
.sc(
|
|
292
|
+
.sc(GetVaultAccessPolicy$)
|
|
290
293
|
.build() {
|
|
291
294
|
}
|
|
292
295
|
|
|
293
|
-
class GetVaultLockCommand extends
|
|
296
|
+
class GetVaultLockCommand extends Command
|
|
294
297
|
.classBuilder()
|
|
295
298
|
.ep(commonParams)
|
|
296
299
|
.m(function (Command, cs, config, o) {
|
|
297
|
-
return [
|
|
300
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
298
301
|
})
|
|
299
302
|
.s("Glacier", "GetVaultLock", {})
|
|
300
303
|
.n("GlacierClient", "GetVaultLockCommand")
|
|
301
|
-
.sc(
|
|
304
|
+
.sc(GetVaultLock$)
|
|
302
305
|
.build() {
|
|
303
306
|
}
|
|
304
307
|
|
|
305
|
-
class GetVaultNotificationsCommand extends
|
|
308
|
+
class GetVaultNotificationsCommand extends Command
|
|
306
309
|
.classBuilder()
|
|
307
310
|
.ep(commonParams)
|
|
308
311
|
.m(function (Command, cs, config, o) {
|
|
309
|
-
return [
|
|
312
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
310
313
|
})
|
|
311
314
|
.s("Glacier", "GetVaultNotifications", {})
|
|
312
315
|
.n("GlacierClient", "GetVaultNotificationsCommand")
|
|
313
|
-
.sc(
|
|
316
|
+
.sc(GetVaultNotifications$)
|
|
314
317
|
.build() {
|
|
315
318
|
}
|
|
316
319
|
|
|
317
|
-
class InitiateJobCommand extends
|
|
320
|
+
class InitiateJobCommand extends Command
|
|
318
321
|
.classBuilder()
|
|
319
322
|
.ep(commonParams)
|
|
320
323
|
.m(function (Command, cs, config, o) {
|
|
321
|
-
return [
|
|
324
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
322
325
|
})
|
|
323
326
|
.s("Glacier", "InitiateJob", {})
|
|
324
327
|
.n("GlacierClient", "InitiateJobCommand")
|
|
325
|
-
.sc(
|
|
328
|
+
.sc(InitiateJob$)
|
|
326
329
|
.build() {
|
|
327
330
|
}
|
|
328
331
|
|
|
329
|
-
class InitiateMultipartUploadCommand extends
|
|
332
|
+
class InitiateMultipartUploadCommand extends Command
|
|
330
333
|
.classBuilder()
|
|
331
334
|
.ep(commonParams)
|
|
332
335
|
.m(function (Command, cs, config, o) {
|
|
333
|
-
return [
|
|
336
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
334
337
|
})
|
|
335
338
|
.s("Glacier", "InitiateMultipartUpload", {})
|
|
336
339
|
.n("GlacierClient", "InitiateMultipartUploadCommand")
|
|
337
|
-
.sc(
|
|
340
|
+
.sc(InitiateMultipartUpload$)
|
|
338
341
|
.build() {
|
|
339
342
|
}
|
|
340
343
|
|
|
341
|
-
class InitiateVaultLockCommand extends
|
|
344
|
+
class InitiateVaultLockCommand extends Command
|
|
342
345
|
.classBuilder()
|
|
343
346
|
.ep(commonParams)
|
|
344
347
|
.m(function (Command, cs, config, o) {
|
|
345
|
-
return [
|
|
348
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
346
349
|
})
|
|
347
350
|
.s("Glacier", "InitiateVaultLock", {})
|
|
348
351
|
.n("GlacierClient", "InitiateVaultLockCommand")
|
|
349
|
-
.sc(
|
|
352
|
+
.sc(InitiateVaultLock$)
|
|
350
353
|
.build() {
|
|
351
354
|
}
|
|
352
355
|
|
|
353
|
-
class ListJobsCommand extends
|
|
356
|
+
class ListJobsCommand extends Command
|
|
354
357
|
.classBuilder()
|
|
355
358
|
.ep(commonParams)
|
|
356
359
|
.m(function (Command, cs, config, o) {
|
|
357
|
-
return [
|
|
360
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
358
361
|
})
|
|
359
362
|
.s("Glacier", "ListJobs", {})
|
|
360
363
|
.n("GlacierClient", "ListJobsCommand")
|
|
361
|
-
.sc(
|
|
364
|
+
.sc(ListJobs$)
|
|
362
365
|
.build() {
|
|
363
366
|
}
|
|
364
367
|
|
|
365
|
-
class ListMultipartUploadsCommand extends
|
|
368
|
+
class ListMultipartUploadsCommand extends Command
|
|
366
369
|
.classBuilder()
|
|
367
370
|
.ep(commonParams)
|
|
368
371
|
.m(function (Command, cs, config, o) {
|
|
369
|
-
return [
|
|
372
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
370
373
|
})
|
|
371
374
|
.s("Glacier", "ListMultipartUploads", {})
|
|
372
375
|
.n("GlacierClient", "ListMultipartUploadsCommand")
|
|
373
|
-
.sc(
|
|
376
|
+
.sc(ListMultipartUploads$)
|
|
374
377
|
.build() {
|
|
375
378
|
}
|
|
376
379
|
|
|
377
|
-
class ListPartsCommand extends
|
|
380
|
+
class ListPartsCommand extends Command
|
|
378
381
|
.classBuilder()
|
|
379
382
|
.ep(commonParams)
|
|
380
383
|
.m(function (Command, cs, config, o) {
|
|
381
|
-
return [
|
|
384
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
382
385
|
})
|
|
383
386
|
.s("Glacier", "ListParts", {})
|
|
384
387
|
.n("GlacierClient", "ListPartsCommand")
|
|
385
|
-
.sc(
|
|
388
|
+
.sc(ListParts$)
|
|
386
389
|
.build() {
|
|
387
390
|
}
|
|
388
391
|
|
|
389
|
-
class ListProvisionedCapacityCommand extends
|
|
392
|
+
class ListProvisionedCapacityCommand extends Command
|
|
390
393
|
.classBuilder()
|
|
391
394
|
.ep(commonParams)
|
|
392
395
|
.m(function (Command, cs, config, o) {
|
|
393
|
-
return [
|
|
396
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
394
397
|
})
|
|
395
398
|
.s("Glacier", "ListProvisionedCapacity", {})
|
|
396
399
|
.n("GlacierClient", "ListProvisionedCapacityCommand")
|
|
397
|
-
.sc(
|
|
400
|
+
.sc(ListProvisionedCapacity$)
|
|
398
401
|
.build() {
|
|
399
402
|
}
|
|
400
403
|
|
|
401
|
-
class ListTagsForVaultCommand extends
|
|
404
|
+
class ListTagsForVaultCommand extends Command
|
|
402
405
|
.classBuilder()
|
|
403
406
|
.ep(commonParams)
|
|
404
407
|
.m(function (Command, cs, config, o) {
|
|
405
|
-
return [
|
|
408
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
406
409
|
})
|
|
407
410
|
.s("Glacier", "ListTagsForVault", {})
|
|
408
411
|
.n("GlacierClient", "ListTagsForVaultCommand")
|
|
409
|
-
.sc(
|
|
412
|
+
.sc(ListTagsForVault$)
|
|
410
413
|
.build() {
|
|
411
414
|
}
|
|
412
415
|
|
|
413
|
-
class ListVaultsCommand extends
|
|
416
|
+
class ListVaultsCommand extends Command
|
|
414
417
|
.classBuilder()
|
|
415
418
|
.ep(commonParams)
|
|
416
419
|
.m(function (Command, cs, config, o) {
|
|
417
|
-
return [
|
|
420
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
418
421
|
})
|
|
419
422
|
.s("Glacier", "ListVaults", {})
|
|
420
423
|
.n("GlacierClient", "ListVaultsCommand")
|
|
421
|
-
.sc(
|
|
424
|
+
.sc(ListVaults$)
|
|
422
425
|
.build() {
|
|
423
426
|
}
|
|
424
427
|
|
|
425
|
-
class PurchaseProvisionedCapacityCommand extends
|
|
428
|
+
class PurchaseProvisionedCapacityCommand extends Command
|
|
426
429
|
.classBuilder()
|
|
427
430
|
.ep(commonParams)
|
|
428
431
|
.m(function (Command, cs, config, o) {
|
|
429
|
-
return [
|
|
432
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
430
433
|
})
|
|
431
434
|
.s("Glacier", "PurchaseProvisionedCapacity", {})
|
|
432
435
|
.n("GlacierClient", "PurchaseProvisionedCapacityCommand")
|
|
433
|
-
.sc(
|
|
436
|
+
.sc(PurchaseProvisionedCapacity$)
|
|
434
437
|
.build() {
|
|
435
438
|
}
|
|
436
439
|
|
|
437
|
-
class RemoveTagsFromVaultCommand extends
|
|
440
|
+
class RemoveTagsFromVaultCommand extends Command
|
|
438
441
|
.classBuilder()
|
|
439
442
|
.ep(commonParams)
|
|
440
443
|
.m(function (Command, cs, config, o) {
|
|
441
|
-
return [
|
|
444
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
442
445
|
})
|
|
443
446
|
.s("Glacier", "RemoveTagsFromVault", {})
|
|
444
447
|
.n("GlacierClient", "RemoveTagsFromVaultCommand")
|
|
445
|
-
.sc(
|
|
448
|
+
.sc(RemoveTagsFromVault$)
|
|
446
449
|
.build() {
|
|
447
450
|
}
|
|
448
451
|
|
|
449
|
-
class SetDataRetrievalPolicyCommand extends
|
|
452
|
+
class SetDataRetrievalPolicyCommand extends Command
|
|
450
453
|
.classBuilder()
|
|
451
454
|
.ep(commonParams)
|
|
452
455
|
.m(function (Command, cs, config, o) {
|
|
453
|
-
return [
|
|
456
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
454
457
|
})
|
|
455
458
|
.s("Glacier", "SetDataRetrievalPolicy", {})
|
|
456
459
|
.n("GlacierClient", "SetDataRetrievalPolicyCommand")
|
|
457
|
-
.sc(
|
|
460
|
+
.sc(SetDataRetrievalPolicy$)
|
|
458
461
|
.build() {
|
|
459
462
|
}
|
|
460
463
|
|
|
461
|
-
class SetVaultAccessPolicyCommand extends
|
|
464
|
+
class SetVaultAccessPolicyCommand extends Command
|
|
462
465
|
.classBuilder()
|
|
463
466
|
.ep(commonParams)
|
|
464
467
|
.m(function (Command, cs, config, o) {
|
|
465
|
-
return [
|
|
468
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
466
469
|
})
|
|
467
470
|
.s("Glacier", "SetVaultAccessPolicy", {})
|
|
468
471
|
.n("GlacierClient", "SetVaultAccessPolicyCommand")
|
|
469
|
-
.sc(
|
|
472
|
+
.sc(SetVaultAccessPolicy$)
|
|
470
473
|
.build() {
|
|
471
474
|
}
|
|
472
475
|
|
|
473
|
-
class SetVaultNotificationsCommand extends
|
|
476
|
+
class SetVaultNotificationsCommand extends Command
|
|
474
477
|
.classBuilder()
|
|
475
478
|
.ep(commonParams)
|
|
476
479
|
.m(function (Command, cs, config, o) {
|
|
477
|
-
return [
|
|
480
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
478
481
|
})
|
|
479
482
|
.s("Glacier", "SetVaultNotifications", {})
|
|
480
483
|
.n("GlacierClient", "SetVaultNotificationsCommand")
|
|
481
|
-
.sc(
|
|
484
|
+
.sc(SetVaultNotifications$)
|
|
482
485
|
.build() {
|
|
483
486
|
}
|
|
484
487
|
|
|
485
|
-
class UploadArchiveCommand extends
|
|
488
|
+
class UploadArchiveCommand extends Command
|
|
486
489
|
.classBuilder()
|
|
487
490
|
.ep(commonParams)
|
|
488
491
|
.m(function (Command, cs, config, o) {
|
|
489
|
-
return [
|
|
492
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
490
493
|
})
|
|
491
494
|
.s("Glacier", "UploadArchive", {})
|
|
492
495
|
.n("GlacierClient", "UploadArchiveCommand")
|
|
493
|
-
.sc(
|
|
496
|
+
.sc(UploadArchive$)
|
|
494
497
|
.build() {
|
|
495
498
|
}
|
|
496
499
|
|
|
497
|
-
class UploadMultipartPartCommand extends
|
|
500
|
+
class UploadMultipartPartCommand extends Command
|
|
498
501
|
.classBuilder()
|
|
499
502
|
.ep(commonParams)
|
|
500
503
|
.m(function (Command, cs, config, o) {
|
|
501
|
-
return [
|
|
504
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
502
505
|
})
|
|
503
506
|
.s("Glacier", "UploadMultipartPart", {})
|
|
504
507
|
.n("GlacierClient", "UploadMultipartPartCommand")
|
|
505
|
-
.sc(
|
|
508
|
+
.sc(UploadMultipartPart$)
|
|
506
509
|
.build() {
|
|
507
510
|
}
|
|
508
511
|
|
|
509
|
-
const paginateListJobs =
|
|
512
|
+
const paginateListJobs = createPaginator(GlacierClient, ListJobsCommand, "marker", "Marker", "limit");
|
|
510
513
|
|
|
511
|
-
const paginateListMultipartUploads =
|
|
514
|
+
const paginateListMultipartUploads = createPaginator(GlacierClient, ListMultipartUploadsCommand, "marker", "Marker", "limit");
|
|
512
515
|
|
|
513
|
-
const paginateListParts =
|
|
516
|
+
const paginateListParts = createPaginator(GlacierClient, ListPartsCommand, "marker", "Marker", "limit");
|
|
514
517
|
|
|
515
|
-
const paginateListVaults =
|
|
518
|
+
const paginateListVaults = createPaginator(GlacierClient, ListVaultsCommand, "marker", "Marker", "limit");
|
|
516
519
|
|
|
517
|
-
const checkState$1 = async (client
|
|
520
|
+
const checkState$1 = async (client, input) => {
|
|
518
521
|
let reason;
|
|
519
522
|
try {
|
|
520
|
-
let result = await client
|
|
523
|
+
let result = await client.send(new DescribeVaultCommand(input));
|
|
521
524
|
reason = result;
|
|
522
|
-
return { state:
|
|
525
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
523
526
|
}
|
|
524
527
|
catch (exception) {
|
|
525
528
|
reason = exception;
|
|
526
529
|
if (exception.name === "ResourceNotFoundException") {
|
|
527
|
-
return { state:
|
|
530
|
+
return { state: WaiterState.RETRY, reason };
|
|
528
531
|
}
|
|
529
532
|
}
|
|
530
|
-
return { state:
|
|
533
|
+
return { state: WaiterState.RETRY, reason };
|
|
531
534
|
};
|
|
532
535
|
const waitForVaultExists = async (params, input) => {
|
|
533
536
|
const serviceDefaults = { minDelay: 3, maxDelay: 120 };
|
|
534
|
-
return
|
|
537
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
|
|
535
538
|
};
|
|
536
539
|
const waitUntilVaultExists = async (params, input) => {
|
|
537
540
|
const serviceDefaults = { minDelay: 3, maxDelay: 120 };
|
|
538
|
-
const result = await
|
|
539
|
-
return
|
|
541
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
|
|
542
|
+
return checkExceptions(result);
|
|
540
543
|
};
|
|
541
544
|
|
|
542
|
-
const checkState = async (client
|
|
545
|
+
const checkState = async (client, input) => {
|
|
543
546
|
let reason;
|
|
544
547
|
try {
|
|
545
|
-
let result = await client
|
|
548
|
+
let result = await client.send(new DescribeVaultCommand(input));
|
|
546
549
|
reason = result;
|
|
547
|
-
return { state:
|
|
550
|
+
return { state: WaiterState.RETRY, reason };
|
|
548
551
|
}
|
|
549
552
|
catch (exception) {
|
|
550
553
|
reason = exception;
|
|
551
554
|
if (exception.name === "ResourceNotFoundException") {
|
|
552
|
-
return { state:
|
|
555
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
553
556
|
}
|
|
554
557
|
}
|
|
555
|
-
return { state:
|
|
558
|
+
return { state: WaiterState.RETRY, reason };
|
|
556
559
|
};
|
|
557
560
|
const waitForVaultNotExists = async (params, input) => {
|
|
558
561
|
const serviceDefaults = { minDelay: 3, maxDelay: 120 };
|
|
559
|
-
return
|
|
562
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
560
563
|
};
|
|
561
564
|
const waitUntilVaultNotExists = async (params, input) => {
|
|
562
565
|
const serviceDefaults = { minDelay: 3, maxDelay: 120 };
|
|
563
|
-
const result = await
|
|
564
|
-
return
|
|
566
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
567
|
+
return checkExceptions(result);
|
|
565
568
|
};
|
|
566
569
|
|
|
567
570
|
const commands = {
|
|
@@ -611,7 +614,7 @@ const waiters = {
|
|
|
611
614
|
};
|
|
612
615
|
class Glacier extends GlacierClient {
|
|
613
616
|
}
|
|
614
|
-
|
|
617
|
+
createAggregatedClient(commands, Glacier, { paginators, waiters });
|
|
615
618
|
|
|
616
619
|
const Type = {
|
|
617
620
|
AmazonCustomerByEmail: "AmazonCustomerByEmail",
|
|
@@ -666,9 +669,6 @@ const StatusCode = {
|
|
|
666
669
|
Succeeded: "Succeeded",
|
|
667
670
|
};
|
|
668
671
|
|
|
669
|
-
exports.$Command = client.Command;
|
|
670
|
-
exports.__Client = client.Client;
|
|
671
|
-
exports.GlacierServiceException = GlacierServiceException.GlacierServiceException;
|
|
672
672
|
exports.AbortMultipartUploadCommand = AbortMultipartUploadCommand;
|
|
673
673
|
exports.AbortVaultLockCommand = AbortVaultLockCommand;
|
|
674
674
|
exports.ActionCode = ActionCode;
|
|
@@ -722,23 +722,3 @@ exports.waitForVaultExists = waitForVaultExists;
|
|
|
722
722
|
exports.waitForVaultNotExists = waitForVaultNotExists;
|
|
723
723
|
exports.waitUntilVaultExists = waitUntilVaultExists;
|
|
724
724
|
exports.waitUntilVaultNotExists = waitUntilVaultNotExists;
|
|
725
|
-
Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
|
|
726
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
727
|
-
Object.defineProperty(exports, '__proto__', {
|
|
728
|
-
enumerable: true,
|
|
729
|
-
value: schemas_0['__proto__']
|
|
730
|
-
});
|
|
731
|
-
|
|
732
|
-
Object.keys(schemas_0).forEach(function (k) {
|
|
733
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
|
|
734
|
-
});
|
|
735
|
-
Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
|
|
736
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
737
|
-
Object.defineProperty(exports, '__proto__', {
|
|
738
|
-
enumerable: true,
|
|
739
|
-
value: errors['__proto__']
|
|
740
|
-
});
|
|
741
|
-
|
|
742
|
-
Object.keys(errors).forEach(function (k) {
|
|
743
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
|
|
744
|
-
});
|