@aws-sdk/client-glacier 3.899.0 → 3.906.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist-cjs/index.js +2056 -2252
  2. package/package.json +42 -42
package/dist-cjs/index.js CHANGED
@@ -1,2304 +1,2108 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/index.ts
22
- var index_exports = {};
23
- __export(index_exports, {
24
- AbortMultipartUploadCommand: () => AbortMultipartUploadCommand,
25
- AbortVaultLockCommand: () => AbortVaultLockCommand,
26
- ActionCode: () => ActionCode,
27
- AddTagsToVaultCommand: () => AddTagsToVaultCommand,
28
- CannedACL: () => CannedACL,
29
- CompleteMultipartUploadCommand: () => CompleteMultipartUploadCommand,
30
- CompleteVaultLockCommand: () => CompleteVaultLockCommand,
31
- CreateVaultCommand: () => CreateVaultCommand,
32
- DeleteArchiveCommand: () => DeleteArchiveCommand,
33
- DeleteVaultAccessPolicyCommand: () => DeleteVaultAccessPolicyCommand,
34
- DeleteVaultCommand: () => DeleteVaultCommand,
35
- DeleteVaultNotificationsCommand: () => DeleteVaultNotificationsCommand,
36
- DescribeJobCommand: () => DescribeJobCommand,
37
- DescribeVaultCommand: () => DescribeVaultCommand,
38
- EncryptionType: () => EncryptionType,
39
- ExpressionType: () => ExpressionType,
40
- FileHeaderInfo: () => FileHeaderInfo,
41
- GetDataRetrievalPolicyCommand: () => GetDataRetrievalPolicyCommand,
42
- GetJobOutputCommand: () => GetJobOutputCommand,
43
- GetJobOutputOutputFilterSensitiveLog: () => GetJobOutputOutputFilterSensitiveLog,
44
- GetVaultAccessPolicyCommand: () => GetVaultAccessPolicyCommand,
45
- GetVaultLockCommand: () => GetVaultLockCommand,
46
- GetVaultNotificationsCommand: () => GetVaultNotificationsCommand,
47
- Glacier: () => Glacier,
48
- GlacierClient: () => GlacierClient,
49
- GlacierServiceException: () => GlacierServiceException,
50
- InitiateJobCommand: () => InitiateJobCommand,
51
- InitiateMultipartUploadCommand: () => InitiateMultipartUploadCommand,
52
- InitiateVaultLockCommand: () => InitiateVaultLockCommand,
53
- InsufficientCapacityException: () => InsufficientCapacityException,
54
- InvalidParameterValueException: () => InvalidParameterValueException,
55
- LimitExceededException: () => LimitExceededException,
56
- ListJobsCommand: () => ListJobsCommand,
57
- ListMultipartUploadsCommand: () => ListMultipartUploadsCommand,
58
- ListPartsCommand: () => ListPartsCommand,
59
- ListProvisionedCapacityCommand: () => ListProvisionedCapacityCommand,
60
- ListTagsForVaultCommand: () => ListTagsForVaultCommand,
61
- ListVaultsCommand: () => ListVaultsCommand,
62
- MissingParameterValueException: () => MissingParameterValueException,
63
- Permission: () => Permission,
64
- PolicyEnforcedException: () => PolicyEnforcedException,
65
- PurchaseProvisionedCapacityCommand: () => PurchaseProvisionedCapacityCommand,
66
- QuoteFields: () => QuoteFields,
67
- RemoveTagsFromVaultCommand: () => RemoveTagsFromVaultCommand,
68
- RequestTimeoutException: () => RequestTimeoutException,
69
- ResourceNotFoundException: () => ResourceNotFoundException,
70
- ServiceUnavailableException: () => ServiceUnavailableException,
71
- SetDataRetrievalPolicyCommand: () => SetDataRetrievalPolicyCommand,
72
- SetVaultAccessPolicyCommand: () => SetVaultAccessPolicyCommand,
73
- SetVaultNotificationsCommand: () => SetVaultNotificationsCommand,
74
- StatusCode: () => StatusCode,
75
- StorageClass: () => StorageClass,
76
- Type: () => Type,
77
- UploadArchiveCommand: () => UploadArchiveCommand,
78
- UploadArchiveInputFilterSensitiveLog: () => UploadArchiveInputFilterSensitiveLog,
79
- UploadMultipartPartCommand: () => UploadMultipartPartCommand,
80
- UploadMultipartPartInputFilterSensitiveLog: () => UploadMultipartPartInputFilterSensitiveLog,
81
- __Client: () => import_smithy_client.Client,
82
- paginateListJobs: () => paginateListJobs,
83
- paginateListMultipartUploads: () => paginateListMultipartUploads,
84
- paginateListParts: () => paginateListParts,
85
- paginateListVaults: () => paginateListVaults,
86
- waitForVaultExists: () => waitForVaultExists,
87
- waitForVaultNotExists: () => waitForVaultNotExists,
88
- waitUntilVaultExists: () => waitUntilVaultExists,
89
- waitUntilVaultNotExists: () => waitUntilVaultNotExists
90
- });
91
- module.exports = __toCommonJS(index_exports);
92
-
93
- // src/GlacierClient.ts
94
- var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
95
- var import_middleware_logger = require("@aws-sdk/middleware-logger");
96
- var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
97
- var import_middleware_sdk_glacier = require("@aws-sdk/middleware-sdk-glacier");
98
- var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
99
- var import_config_resolver = require("@smithy/config-resolver");
100
- var import_core = require("@smithy/core");
101
- var import_middleware_content_length = require("@smithy/middleware-content-length");
102
- var import_middleware_endpoint = require("@smithy/middleware-endpoint");
103
- var import_middleware_retry = require("@smithy/middleware-retry");
104
-
105
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
106
-
107
- // src/endpoint/EndpointParameters.ts
108
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
109
- return Object.assign(options, {
110
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
111
- useFipsEndpoint: options.useFipsEndpoint ?? false,
112
- defaultSigningName: "glacier"
113
- });
114
- }, "resolveClientEndpointParameters");
115
- var commonParams = {
116
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
117
- Endpoint: { type: "builtInParams", name: "endpoint" },
118
- Region: { type: "builtInParams", name: "region" },
119
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
1
+ 'use strict';
2
+
3
+ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
4
+ var middlewareLogger = require('@aws-sdk/middleware-logger');
5
+ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
6
+ var middlewareSdkGlacier = require('@aws-sdk/middleware-sdk-glacier');
7
+ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
8
+ var configResolver = require('@smithy/config-resolver');
9
+ var core = require('@smithy/core');
10
+ var middlewareContentLength = require('@smithy/middleware-content-length');
11
+ var middlewareEndpoint = require('@smithy/middleware-endpoint');
12
+ var middlewareRetry = require('@smithy/middleware-retry');
13
+ var smithyClient = require('@smithy/smithy-client');
14
+ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
15
+ var runtimeConfig = require('./runtimeConfig');
16
+ var regionConfigResolver = require('@aws-sdk/region-config-resolver');
17
+ var protocolHttp = require('@smithy/protocol-http');
18
+ var middlewareSerde = require('@smithy/middleware-serde');
19
+ var core$1 = require('@aws-sdk/core');
20
+ var utilWaiter = require('@smithy/util-waiter');
21
+
22
+ const resolveClientEndpointParameters = (options) => {
23
+ return Object.assign(options, {
24
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
25
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
26
+ defaultSigningName: "glacier",
27
+ });
28
+ };
29
+ const commonParams = {
30
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
31
+ Endpoint: { type: "builtInParams", name: "endpoint" },
32
+ Region: { type: "builtInParams", name: "region" },
33
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
120
34
  };
121
35
 
122
- // src/GlacierClient.ts
123
- var import_runtimeConfig = require("././runtimeConfig");
36
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
37
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
38
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
39
+ let _credentials = runtimeConfig.credentials;
40
+ return {
41
+ setHttpAuthScheme(httpAuthScheme) {
42
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
43
+ if (index === -1) {
44
+ _httpAuthSchemes.push(httpAuthScheme);
45
+ }
46
+ else {
47
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
48
+ }
49
+ },
50
+ httpAuthSchemes() {
51
+ return _httpAuthSchemes;
52
+ },
53
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
54
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
55
+ },
56
+ httpAuthSchemeProvider() {
57
+ return _httpAuthSchemeProvider;
58
+ },
59
+ setCredentials(credentials) {
60
+ _credentials = credentials;
61
+ },
62
+ credentials() {
63
+ return _credentials;
64
+ },
65
+ };
66
+ };
67
+ const resolveHttpAuthRuntimeConfig = (config) => {
68
+ return {
69
+ httpAuthSchemes: config.httpAuthSchemes(),
70
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
71
+ credentials: config.credentials(),
72
+ };
73
+ };
124
74
 
125
- // src/runtimeExtensions.ts
126
- var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
127
- var import_protocol_http = require("@smithy/protocol-http");
128
- var import_smithy_client = require("@smithy/smithy-client");
75
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
76
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
77
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
78
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
79
+ };
129
80
 
130
- // src/auth/httpAuthExtensionConfiguration.ts
131
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
132
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
133
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
134
- let _credentials = runtimeConfig.credentials;
135
- return {
136
- setHttpAuthScheme(httpAuthScheme) {
137
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
138
- if (index === -1) {
139
- _httpAuthSchemes.push(httpAuthScheme);
140
- } else {
141
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
142
- }
143
- },
144
- httpAuthSchemes() {
145
- return _httpAuthSchemes;
146
- },
147
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
148
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
149
- },
150
- httpAuthSchemeProvider() {
151
- return _httpAuthSchemeProvider;
152
- },
153
- setCredentials(credentials) {
154
- _credentials = credentials;
155
- },
156
- credentials() {
157
- return _credentials;
81
+ class GlacierClient extends smithyClient.Client {
82
+ config;
83
+ constructor(...[configuration]) {
84
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
85
+ super(_config_0);
86
+ this.initConfig = _config_0;
87
+ const _config_1 = resolveClientEndpointParameters(_config_0);
88
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
89
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
90
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
91
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
92
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
93
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
94
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
95
+ this.config = _config_8;
96
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
97
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
98
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
99
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
100
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
101
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
102
+ this.middlewareStack.use(middlewareSdkGlacier.getGlacierPlugin(this.config));
103
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
104
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultGlacierHttpAuthSchemeParametersProvider,
105
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
106
+ "aws.auth#sigv4": config.credentials,
107
+ }),
108
+ }));
109
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
158
110
  }
159
- };
160
- }, "getHttpAuthExtensionConfiguration");
161
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
162
- return {
163
- httpAuthSchemes: config.httpAuthSchemes(),
164
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
165
- credentials: config.credentials()
166
- };
167
- }, "resolveHttpAuthRuntimeConfig");
168
-
169
- // src/runtimeExtensions.ts
170
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
171
- const extensionConfiguration = Object.assign(
172
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
173
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
174
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
175
- getHttpAuthExtensionConfiguration(runtimeConfig)
176
- );
177
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
178
- return Object.assign(
179
- runtimeConfig,
180
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
181
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
182
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
183
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
184
- );
185
- }, "resolveRuntimeExtensions");
111
+ destroy() {
112
+ super.destroy();
113
+ }
114
+ }
186
115
 
187
- // src/GlacierClient.ts
188
- var GlacierClient = class extends import_smithy_client.Client {
189
- static {
190
- __name(this, "GlacierClient");
191
- }
192
- /**
193
- * The resolved configuration of GlacierClient class. This is resolved and normalized from the {@link GlacierClientConfig | constructor configuration interface}.
194
- */
195
- config;
196
- constructor(...[configuration]) {
197
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
198
- super(_config_0);
199
- this.initConfig = _config_0;
200
- const _config_1 = resolveClientEndpointParameters(_config_0);
201
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
202
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
203
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
204
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
205
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
206
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
207
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
208
- this.config = _config_8;
209
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
210
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
211
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
212
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
213
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
214
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
215
- this.middlewareStack.use((0, import_middleware_sdk_glacier.getGlacierPlugin)(this.config));
216
- this.middlewareStack.use(
217
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
218
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultGlacierHttpAuthSchemeParametersProvider,
219
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
220
- "aws.auth#sigv4": config.credentials
221
- }), "identityProviderConfigProvider")
222
- })
223
- );
224
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
225
- }
226
- /**
227
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
228
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
229
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
230
- */
231
- destroy() {
232
- super.destroy();
233
- }
116
+ class GlacierServiceException extends smithyClient.ServiceException {
117
+ constructor(options) {
118
+ super(options);
119
+ Object.setPrototypeOf(this, GlacierServiceException.prototype);
120
+ }
121
+ }
122
+
123
+ class InvalidParameterValueException extends GlacierServiceException {
124
+ name = "InvalidParameterValueException";
125
+ $fault = "client";
126
+ type;
127
+ code;
128
+ constructor(opts) {
129
+ super({
130
+ name: "InvalidParameterValueException",
131
+ $fault: "client",
132
+ ...opts,
133
+ });
134
+ Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
135
+ this.type = opts.type;
136
+ this.code = opts.code;
137
+ }
138
+ }
139
+ class MissingParameterValueException extends GlacierServiceException {
140
+ name = "MissingParameterValueException";
141
+ $fault = "client";
142
+ type;
143
+ code;
144
+ constructor(opts) {
145
+ super({
146
+ name: "MissingParameterValueException",
147
+ $fault: "client",
148
+ ...opts,
149
+ });
150
+ Object.setPrototypeOf(this, MissingParameterValueException.prototype);
151
+ this.type = opts.type;
152
+ this.code = opts.code;
153
+ }
154
+ }
155
+ class ResourceNotFoundException extends GlacierServiceException {
156
+ name = "ResourceNotFoundException";
157
+ $fault = "client";
158
+ type;
159
+ code;
160
+ constructor(opts) {
161
+ super({
162
+ name: "ResourceNotFoundException",
163
+ $fault: "client",
164
+ ...opts,
165
+ });
166
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
167
+ this.type = opts.type;
168
+ this.code = opts.code;
169
+ }
170
+ }
171
+ class ServiceUnavailableException extends GlacierServiceException {
172
+ name = "ServiceUnavailableException";
173
+ $fault = "server";
174
+ type;
175
+ code;
176
+ constructor(opts) {
177
+ super({
178
+ name: "ServiceUnavailableException",
179
+ $fault: "server",
180
+ ...opts,
181
+ });
182
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
183
+ this.type = opts.type;
184
+ this.code = opts.code;
185
+ }
186
+ }
187
+ const Type = {
188
+ AmazonCustomerByEmail: "AmazonCustomerByEmail",
189
+ CanonicalUser: "CanonicalUser",
190
+ Group: "Group",
234
191
  };
235
-
236
- // src/Glacier.ts
237
-
238
-
239
- // src/commands/AbortMultipartUploadCommand.ts
240
-
241
- var import_middleware_serde = require("@smithy/middleware-serde");
242
-
243
-
244
- // src/protocols/Aws_restJson1.ts
245
- var import_core2 = require("@aws-sdk/core");
246
-
247
-
248
-
249
- // src/models/GlacierServiceException.ts
250
-
251
- var GlacierServiceException = class _GlacierServiceException extends import_smithy_client.ServiceException {
252
- static {
253
- __name(this, "GlacierServiceException");
254
- }
255
- /**
256
- * @internal
257
- */
258
- constructor(options) {
259
- super(options);
260
- Object.setPrototypeOf(this, _GlacierServiceException.prototype);
261
- }
192
+ const Permission = {
193
+ FULL_CONTROL: "FULL_CONTROL",
194
+ READ: "READ",
195
+ READ_ACP: "READ_ACP",
196
+ WRITE: "WRITE",
197
+ WRITE_ACP: "WRITE_ACP",
262
198
  };
263
-
264
- // src/models/models_0.ts
265
- var InvalidParameterValueException = class _InvalidParameterValueException extends GlacierServiceException {
266
- static {
267
- __name(this, "InvalidParameterValueException");
268
- }
269
- name = "InvalidParameterValueException";
270
- $fault = "client";
271
- /**
272
- * <p>Client</p>
273
- * @public
274
- */
275
- type;
276
- /**
277
- * <p>400 Bad Request</p>
278
- * @public
279
- */
280
- code;
281
- /**
282
- * @internal
283
- */
284
- constructor(opts) {
285
- super({
286
- name: "InvalidParameterValueException",
287
- $fault: "client",
288
- ...opts
289
- });
290
- Object.setPrototypeOf(this, _InvalidParameterValueException.prototype);
291
- this.type = opts.type;
292
- this.code = opts.code;
293
- }
294
- };
295
- var MissingParameterValueException = class _MissingParameterValueException extends GlacierServiceException {
296
- static {
297
- __name(this, "MissingParameterValueException");
298
- }
299
- name = "MissingParameterValueException";
300
- $fault = "client";
301
- /**
302
- * <p>Client.</p>
303
- * @public
304
- */
305
- type;
306
- /**
307
- * <p>400 Bad Request</p>
308
- * @public
309
- */
310
- code;
311
- /**
312
- * @internal
313
- */
314
- constructor(opts) {
315
- super({
316
- name: "MissingParameterValueException",
317
- $fault: "client",
318
- ...opts
319
- });
320
- Object.setPrototypeOf(this, _MissingParameterValueException.prototype);
321
- this.type = opts.type;
322
- this.code = opts.code;
323
- }
324
- };
325
- var ResourceNotFoundException = class _ResourceNotFoundException extends GlacierServiceException {
326
- static {
327
- __name(this, "ResourceNotFoundException");
328
- }
329
- name = "ResourceNotFoundException";
330
- $fault = "client";
331
- /**
332
- * <p>Client</p>
333
- * @public
334
- */
335
- type;
336
- /**
337
- * <p>404 Not Found</p>
338
- * @public
339
- */
340
- code;
341
- /**
342
- * @internal
343
- */
344
- constructor(opts) {
345
- super({
346
- name: "ResourceNotFoundException",
347
- $fault: "client",
348
- ...opts
349
- });
350
- Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
351
- this.type = opts.type;
352
- this.code = opts.code;
353
- }
354
- };
355
- var ServiceUnavailableException = class _ServiceUnavailableException extends GlacierServiceException {
356
- static {
357
- __name(this, "ServiceUnavailableException");
358
- }
359
- name = "ServiceUnavailableException";
360
- $fault = "server";
361
- /**
362
- * <p>Server</p>
363
- * @public
364
- */
365
- type;
366
- /**
367
- * <p>500 Internal Server Error</p>
368
- * @public
369
- */
370
- code;
371
- /**
372
- * @internal
373
- */
374
- constructor(opts) {
375
- super({
376
- name: "ServiceUnavailableException",
377
- $fault: "server",
378
- ...opts
379
- });
380
- Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);
381
- this.type = opts.type;
382
- this.code = opts.code;
383
- }
384
- };
385
- var Type = {
386
- AmazonCustomerByEmail: "AmazonCustomerByEmail",
387
- CanonicalUser: "CanonicalUser",
388
- Group: "Group"
389
- };
390
- var Permission = {
391
- FULL_CONTROL: "FULL_CONTROL",
392
- READ: "READ",
393
- READ_ACP: "READ_ACP",
394
- WRITE: "WRITE",
395
- WRITE_ACP: "WRITE_ACP"
396
- };
397
- var ActionCode = {
398
- ArchiveRetrieval: "ArchiveRetrieval",
399
- InventoryRetrieval: "InventoryRetrieval",
400
- Select: "Select"
401
- };
402
- var LimitExceededException = class _LimitExceededException extends GlacierServiceException {
403
- static {
404
- __name(this, "LimitExceededException");
405
- }
406
- name = "LimitExceededException";
407
- $fault = "client";
408
- /**
409
- * <p>Client</p>
410
- * @public
411
- */
412
- type;
413
- /**
414
- * <p>400 Bad Request</p>
415
- * @public
416
- */
417
- code;
418
- /**
419
- * @internal
420
- */
421
- constructor(opts) {
422
- super({
423
- name: "LimitExceededException",
424
- $fault: "client",
425
- ...opts
426
- });
427
- Object.setPrototypeOf(this, _LimitExceededException.prototype);
428
- this.type = opts.type;
429
- this.code = opts.code;
430
- }
431
- };
432
- var CannedACL = {
433
- AuthenticatedRead: "authenticated-read",
434
- AwsExecRead: "aws-exec-read",
435
- BucketOwnerFullControl: "bucket-owner-full-control",
436
- BucketOwnerRead: "bucket-owner-read",
437
- Private: "private",
438
- PublicRead: "public-read",
439
- PublicReadWrite: "public-read-write"
440
- };
441
- var FileHeaderInfo = {
442
- Ignore: "IGNORE",
443
- None: "NONE",
444
- Use: "USE"
445
- };
446
- var QuoteFields = {
447
- Always: "ALWAYS",
448
- AsNeeded: "ASNEEDED"
449
- };
450
- var EncryptionType = {
451
- KMS: "aws:kms",
452
- S3: "AES256"
453
- };
454
- var StorageClass = {
455
- ReducedRedundancy: "REDUCED_REDUNDANCY",
456
- Standard: "STANDARD",
457
- StandardInfrequentAccess: "STANDARD_IA"
458
- };
459
- var ExpressionType = {
460
- SQL: "SQL"
461
- };
462
- var StatusCode = {
463
- Failed: "Failed",
464
- InProgress: "InProgress",
465
- Succeeded: "Succeeded"
466
- };
467
- var InsufficientCapacityException = class _InsufficientCapacityException extends GlacierServiceException {
468
- static {
469
- __name(this, "InsufficientCapacityException");
470
- }
471
- name = "InsufficientCapacityException";
472
- $fault = "client";
473
- type;
474
- code;
475
- /**
476
- * @internal
477
- */
478
- constructor(opts) {
479
- super({
480
- name: "InsufficientCapacityException",
481
- $fault: "client",
482
- ...opts
483
- });
484
- Object.setPrototypeOf(this, _InsufficientCapacityException.prototype);
485
- this.type = opts.type;
486
- this.code = opts.code;
487
- }
488
- };
489
- var PolicyEnforcedException = class _PolicyEnforcedException extends GlacierServiceException {
490
- static {
491
- __name(this, "PolicyEnforcedException");
492
- }
493
- name = "PolicyEnforcedException";
494
- $fault = "client";
495
- /**
496
- * <p>Client</p>
497
- * @public
498
- */
499
- type;
500
- /**
501
- * <p>PolicyEnforcedException</p>
502
- * @public
503
- */
504
- code;
505
- /**
506
- * @internal
507
- */
508
- constructor(opts) {
509
- super({
510
- name: "PolicyEnforcedException",
511
- $fault: "client",
512
- ...opts
513
- });
514
- Object.setPrototypeOf(this, _PolicyEnforcedException.prototype);
515
- this.type = opts.type;
516
- this.code = opts.code;
517
- }
518
- };
519
- var RequestTimeoutException = class _RequestTimeoutException extends GlacierServiceException {
520
- static {
521
- __name(this, "RequestTimeoutException");
522
- }
523
- name = "RequestTimeoutException";
524
- $fault = "client";
525
- /**
526
- * <p>Client</p>
527
- * @public
528
- */
529
- type;
530
- /**
531
- * <p>408 Request Timeout</p>
532
- * @public
533
- */
534
- code;
535
- /**
536
- * @internal
537
- */
538
- constructor(opts) {
539
- super({
540
- name: "RequestTimeoutException",
541
- $fault: "client",
542
- ...opts
543
- });
544
- Object.setPrototypeOf(this, _RequestTimeoutException.prototype);
545
- this.type = opts.type;
546
- this.code = opts.code;
547
- }
548
- };
549
- var GetJobOutputOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
550
- ...obj
551
- }), "GetJobOutputOutputFilterSensitiveLog");
552
- var UploadArchiveInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
553
- ...obj
554
- }), "UploadArchiveInputFilterSensitiveLog");
555
- var UploadMultipartPartInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
556
- ...obj
557
- }), "UploadMultipartPartInputFilterSensitiveLog");
558
-
559
- // src/protocols/Aws_restJson1.ts
560
- var se_AbortMultipartUploadCommand = /* @__PURE__ */ __name(async (input, context) => {
561
- const b = (0, import_core.requestBuilder)(input, context);
562
- const headers = {};
563
- b.bp("/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}");
564
- b.p("accountId", () => input.accountId, "{accountId}", false);
565
- b.p("vaultName", () => input.vaultName, "{vaultName}", false);
566
- b.p("uploadId", () => input.uploadId, "{uploadId}", false);
567
- let body;
568
- b.m("DELETE").h(headers).b(body);
569
- return b.build();
570
- }, "se_AbortMultipartUploadCommand");
571
- var se_AbortVaultLockCommand = /* @__PURE__ */ __name(async (input, context) => {
572
- const b = (0, import_core.requestBuilder)(input, context);
573
- const headers = {};
574
- b.bp("/{accountId}/vaults/{vaultName}/lock-policy");
575
- b.p("accountId", () => input.accountId, "{accountId}", false);
576
- b.p("vaultName", () => input.vaultName, "{vaultName}", false);
577
- let body;
578
- b.m("DELETE").h(headers).b(body);
579
- return b.build();
580
- }, "se_AbortVaultLockCommand");
581
- var se_AddTagsToVaultCommand = /* @__PURE__ */ __name(async (input, context) => {
582
- const b = (0, import_core.requestBuilder)(input, context);
583
- const headers = {
584
- "content-type": "application/json"
585
- };
586
- b.bp("/{accountId}/vaults/{vaultName}/tags");
587
- b.p("accountId", () => input.accountId, "{accountId}", false);
588
- b.p("vaultName", () => input.vaultName, "{vaultName}", false);
589
- const query = (0, import_smithy_client.map)({
590
- [_o]: [, "add"]
591
- });
592
- let body;
593
- body = JSON.stringify(
594
- (0, import_smithy_client.take)(input, {
595
- Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
596
- })
597
- );
598
- b.m("POST").h(headers).q(query).b(body);
599
- return b.build();
600
- }, "se_AddTagsToVaultCommand");
601
- var se_CompleteMultipartUploadCommand = /* @__PURE__ */ __name(async (input, context) => {
602
- const b = (0, import_core.requestBuilder)(input, context);
603
- const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
604
- [_xaas]: input[_aS],
605
- [_xasth]: input[_c]
606
- });
607
- b.bp("/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}");
608
- b.p("accountId", () => input.accountId, "{accountId}", false);
609
- b.p("vaultName", () => input.vaultName, "{vaultName}", false);
610
- b.p("uploadId", () => input.uploadId, "{uploadId}", false);
611
- let body;
612
- b.m("POST").h(headers).b(body);
613
- return b.build();
614
- }, "se_CompleteMultipartUploadCommand");
615
- var se_CompleteVaultLockCommand = /* @__PURE__ */ __name(async (input, context) => {
616
- const b = (0, import_core.requestBuilder)(input, context);
617
- const headers = {};
618
- b.bp("/{accountId}/vaults/{vaultName}/lock-policy/{lockId}");
619
- b.p("accountId", () => input.accountId, "{accountId}", false);
620
- b.p("vaultName", () => input.vaultName, "{vaultName}", false);
621
- b.p("lockId", () => input.lockId, "{lockId}", false);
622
- let body;
623
- b.m("POST").h(headers).b(body);
624
- return b.build();
625
- }, "se_CompleteVaultLockCommand");
626
- var se_CreateVaultCommand = /* @__PURE__ */ __name(async (input, context) => {
627
- const b = (0, import_core.requestBuilder)(input, context);
628
- const headers = {};
629
- b.bp("/{accountId}/vaults/{vaultName}");
630
- b.p("accountId", () => input.accountId, "{accountId}", false);
631
- b.p("vaultName", () => input.vaultName, "{vaultName}", false);
632
- let body;
633
- b.m("PUT").h(headers).b(body);
634
- return b.build();
635
- }, "se_CreateVaultCommand");
636
- var se_DeleteArchiveCommand = /* @__PURE__ */ __name(async (input, context) => {
637
- const b = (0, import_core.requestBuilder)(input, context);
638
- const headers = {};
639
- b.bp("/{accountId}/vaults/{vaultName}/archives/{archiveId}");
640
- b.p("accountId", () => input.accountId, "{accountId}", false);
641
- b.p("vaultName", () => input.vaultName, "{vaultName}", false);
642
- b.p("archiveId", () => input.archiveId, "{archiveId}", false);
643
- let body;
644
- b.m("DELETE").h(headers).b(body);
645
- return b.build();
646
- }, "se_DeleteArchiveCommand");
647
- var se_DeleteVaultCommand = /* @__PURE__ */ __name(async (input, context) => {
648
- const b = (0, import_core.requestBuilder)(input, context);
649
- const headers = {};
650
- b.bp("/{accountId}/vaults/{vaultName}");
651
- b.p("accountId", () => input.accountId, "{accountId}", false);
652
- b.p("vaultName", () => input.vaultName, "{vaultName}", false);
653
- let body;
654
- b.m("DELETE").h(headers).b(body);
655
- return b.build();
656
- }, "se_DeleteVaultCommand");
657
- var se_DeleteVaultAccessPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
658
- const b = (0, import_core.requestBuilder)(input, context);
659
- const headers = {};
660
- b.bp("/{accountId}/vaults/{vaultName}/access-policy");
661
- b.p("accountId", () => input.accountId, "{accountId}", false);
662
- b.p("vaultName", () => input.vaultName, "{vaultName}", false);
663
- let body;
664
- b.m("DELETE").h(headers).b(body);
665
- return b.build();
666
- }, "se_DeleteVaultAccessPolicyCommand");
667
- var se_DeleteVaultNotificationsCommand = /* @__PURE__ */ __name(async (input, context) => {
668
- const b = (0, import_core.requestBuilder)(input, context);
669
- const headers = {};
670
- b.bp("/{accountId}/vaults/{vaultName}/notification-configuration");
671
- b.p("accountId", () => input.accountId, "{accountId}", false);
672
- b.p("vaultName", () => input.vaultName, "{vaultName}", false);
673
- let body;
674
- b.m("DELETE").h(headers).b(body);
675
- return b.build();
676
- }, "se_DeleteVaultNotificationsCommand");
677
- var se_DescribeJobCommand = /* @__PURE__ */ __name(async (input, context) => {
678
- const b = (0, import_core.requestBuilder)(input, context);
679
- const headers = {};
680
- b.bp("/{accountId}/vaults/{vaultName}/jobs/{jobId}");
681
- b.p("accountId", () => input.accountId, "{accountId}", false);
682
- b.p("vaultName", () => input.vaultName, "{vaultName}", false);
683
- b.p("jobId", () => input.jobId, "{jobId}", false);
684
- let body;
685
- b.m("GET").h(headers).b(body);
686
- return b.build();
687
- }, "se_DescribeJobCommand");
688
- var se_DescribeVaultCommand = /* @__PURE__ */ __name(async (input, context) => {
689
- const b = (0, import_core.requestBuilder)(input, context);
690
- const headers = {};
691
- b.bp("/{accountId}/vaults/{vaultName}");
692
- b.p("accountId", () => input.accountId, "{accountId}", false);
693
- b.p("vaultName", () => input.vaultName, "{vaultName}", false);
694
- let body;
695
- b.m("GET").h(headers).b(body);
696
- return b.build();
697
- }, "se_DescribeVaultCommand");
698
- var se_GetDataRetrievalPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
699
- const b = (0, import_core.requestBuilder)(input, context);
700
- const headers = {};
701
- b.bp("/{accountId}/policies/data-retrieval");
702
- b.p("accountId", () => input.accountId, "{accountId}", false);
703
- let body;
704
- b.m("GET").h(headers).b(body);
705
- return b.build();
706
- }, "se_GetDataRetrievalPolicyCommand");
707
- var se_GetJobOutputCommand = /* @__PURE__ */ __name(async (input, context) => {
708
- const b = (0, import_core.requestBuilder)(input, context);
709
- const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
710
- [_r]: input[_r]
711
- });
712
- b.bp("/{accountId}/vaults/{vaultName}/jobs/{jobId}/output");
713
- b.p("accountId", () => input.accountId, "{accountId}", false);
714
- b.p("vaultName", () => input.vaultName, "{vaultName}", false);
715
- b.p("jobId", () => input.jobId, "{jobId}", false);
716
- let body;
717
- b.m("GET").h(headers).b(body);
718
- return b.build();
719
- }, "se_GetJobOutputCommand");
720
- var se_GetVaultAccessPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
721
- const b = (0, import_core.requestBuilder)(input, context);
722
- const headers = {};
723
- b.bp("/{accountId}/vaults/{vaultName}/access-policy");
724
- b.p("accountId", () => input.accountId, "{accountId}", false);
725
- b.p("vaultName", () => input.vaultName, "{vaultName}", false);
726
- let body;
727
- b.m("GET").h(headers).b(body);
728
- return b.build();
729
- }, "se_GetVaultAccessPolicyCommand");
730
- var se_GetVaultLockCommand = /* @__PURE__ */ __name(async (input, context) => {
731
- const b = (0, import_core.requestBuilder)(input, context);
732
- const headers = {};
733
- b.bp("/{accountId}/vaults/{vaultName}/lock-policy");
734
- b.p("accountId", () => input.accountId, "{accountId}", false);
735
- b.p("vaultName", () => input.vaultName, "{vaultName}", false);
736
- let body;
737
- b.m("GET").h(headers).b(body);
738
- return b.build();
739
- }, "se_GetVaultLockCommand");
740
- var se_GetVaultNotificationsCommand = /* @__PURE__ */ __name(async (input, context) => {
741
- const b = (0, import_core.requestBuilder)(input, context);
742
- const headers = {};
743
- b.bp("/{accountId}/vaults/{vaultName}/notification-configuration");
744
- b.p("accountId", () => input.accountId, "{accountId}", false);
745
- b.p("vaultName", () => input.vaultName, "{vaultName}", false);
746
- let body;
747
- b.m("GET").h(headers).b(body);
748
- return b.build();
749
- }, "se_GetVaultNotificationsCommand");
750
- var se_InitiateJobCommand = /* @__PURE__ */ __name(async (input, context) => {
751
- const b = (0, import_core.requestBuilder)(input, context);
752
- const headers = {
753
- "content-type": "application/json"
754
- };
755
- b.bp("/{accountId}/vaults/{vaultName}/jobs");
756
- b.p("accountId", () => input.accountId, "{accountId}", false);
757
- b.p("vaultName", () => input.vaultName, "{vaultName}", false);
758
- let body;
759
- if (input.jobParameters !== void 0) {
760
- body = (0, import_smithy_client._json)(input.jobParameters);
761
- }
762
- if (body === void 0) {
763
- body = {};
764
- }
765
- body = JSON.stringify(body);
766
- b.m("POST").h(headers).b(body);
767
- return b.build();
768
- }, "se_InitiateJobCommand");
769
- var se_InitiateMultipartUploadCommand = /* @__PURE__ */ __name(async (input, context) => {
770
- const b = (0, import_core.requestBuilder)(input, context);
771
- const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
772
- [_xaad]: input[_aD],
773
- [_xaps]: input[_pS]
774
- });
775
- b.bp("/{accountId}/vaults/{vaultName}/multipart-uploads");
776
- b.p("accountId", () => input.accountId, "{accountId}", false);
777
- b.p("vaultName", () => input.vaultName, "{vaultName}", false);
778
- let body;
779
- b.m("POST").h(headers).b(body);
780
- return b.build();
781
- }, "se_InitiateMultipartUploadCommand");
782
- var se_InitiateVaultLockCommand = /* @__PURE__ */ __name(async (input, context) => {
783
- const b = (0, import_core.requestBuilder)(input, context);
784
- const headers = {
785
- "content-type": "application/json"
786
- };
787
- b.bp("/{accountId}/vaults/{vaultName}/lock-policy");
788
- b.p("accountId", () => input.accountId, "{accountId}", false);
789
- b.p("vaultName", () => input.vaultName, "{vaultName}", false);
790
- let body;
791
- if (input.policy !== void 0) {
792
- body = (0, import_smithy_client._json)(input.policy);
793
- }
794
- if (body === void 0) {
795
- body = {};
796
- }
797
- body = JSON.stringify(body);
798
- b.m("POST").h(headers).b(body);
799
- return b.build();
800
- }, "se_InitiateVaultLockCommand");
801
- var se_ListJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
802
- const b = (0, import_core.requestBuilder)(input, context);
803
- const headers = {};
804
- b.bp("/{accountId}/vaults/{vaultName}/jobs");
805
- b.p("accountId", () => input.accountId, "{accountId}", false);
806
- b.p("vaultName", () => input.vaultName, "{vaultName}", false);
807
- const query = (0, import_smithy_client.map)({
808
- [_l]: [() => input.limit !== void 0, () => input[_l].toString()],
809
- [_m]: [, input[_m]],
810
- [_s]: [, input[_s]],
811
- [_co]: [, input[_co]]
812
- });
813
- let body;
814
- b.m("GET").h(headers).q(query).b(body);
815
- return b.build();
816
- }, "se_ListJobsCommand");
817
- var se_ListMultipartUploadsCommand = /* @__PURE__ */ __name(async (input, context) => {
818
- const b = (0, import_core.requestBuilder)(input, context);
819
- const headers = {};
820
- b.bp("/{accountId}/vaults/{vaultName}/multipart-uploads");
821
- b.p("accountId", () => input.accountId, "{accountId}", false);
822
- b.p("vaultName", () => input.vaultName, "{vaultName}", false);
823
- const query = (0, import_smithy_client.map)({
824
- [_l]: [() => input.limit !== void 0, () => input[_l].toString()],
825
- [_m]: [, input[_m]]
826
- });
827
- let body;
828
- b.m("GET").h(headers).q(query).b(body);
829
- return b.build();
830
- }, "se_ListMultipartUploadsCommand");
831
- var se_ListPartsCommand = /* @__PURE__ */ __name(async (input, context) => {
832
- const b = (0, import_core.requestBuilder)(input, context);
833
- const headers = {};
834
- b.bp("/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}");
835
- b.p("accountId", () => input.accountId, "{accountId}", false);
836
- b.p("vaultName", () => input.vaultName, "{vaultName}", false);
837
- b.p("uploadId", () => input.uploadId, "{uploadId}", false);
838
- const query = (0, import_smithy_client.map)({
839
- [_m]: [, input[_m]],
840
- [_l]: [() => input.limit !== void 0, () => input[_l].toString()]
841
- });
842
- let body;
843
- b.m("GET").h(headers).q(query).b(body);
844
- return b.build();
845
- }, "se_ListPartsCommand");
846
- var se_ListProvisionedCapacityCommand = /* @__PURE__ */ __name(async (input, context) => {
847
- const b = (0, import_core.requestBuilder)(input, context);
848
- const headers = {};
849
- b.bp("/{accountId}/provisioned-capacity");
850
- b.p("accountId", () => input.accountId, "{accountId}", false);
851
- let body;
852
- b.m("GET").h(headers).b(body);
853
- return b.build();
854
- }, "se_ListProvisionedCapacityCommand");
855
- var se_ListTagsForVaultCommand = /* @__PURE__ */ __name(async (input, context) => {
856
- const b = (0, import_core.requestBuilder)(input, context);
857
- const headers = {};
858
- b.bp("/{accountId}/vaults/{vaultName}/tags");
859
- b.p("accountId", () => input.accountId, "{accountId}", false);
860
- b.p("vaultName", () => input.vaultName, "{vaultName}", false);
861
- let body;
862
- b.m("GET").h(headers).b(body);
863
- return b.build();
864
- }, "se_ListTagsForVaultCommand");
865
- var se_ListVaultsCommand = /* @__PURE__ */ __name(async (input, context) => {
866
- const b = (0, import_core.requestBuilder)(input, context);
867
- const headers = {};
868
- b.bp("/{accountId}/vaults");
869
- b.p("accountId", () => input.accountId, "{accountId}", false);
870
- const query = (0, import_smithy_client.map)({
871
- [_m]: [, input[_m]],
872
- [_l]: [() => input.limit !== void 0, () => input[_l].toString()]
873
- });
874
- let body;
875
- b.m("GET").h(headers).q(query).b(body);
876
- return b.build();
877
- }, "se_ListVaultsCommand");
878
- var se_PurchaseProvisionedCapacityCommand = /* @__PURE__ */ __name(async (input, context) => {
879
- const b = (0, import_core.requestBuilder)(input, context);
880
- const headers = {};
881
- b.bp("/{accountId}/provisioned-capacity");
882
- b.p("accountId", () => input.accountId, "{accountId}", false);
883
- let body;
884
- b.m("POST").h(headers).b(body);
885
- return b.build();
886
- }, "se_PurchaseProvisionedCapacityCommand");
887
- var se_RemoveTagsFromVaultCommand = /* @__PURE__ */ __name(async (input, context) => {
888
- const b = (0, import_core.requestBuilder)(input, context);
889
- const headers = {
890
- "content-type": "application/json"
891
- };
892
- b.bp("/{accountId}/vaults/{vaultName}/tags");
893
- b.p("accountId", () => input.accountId, "{accountId}", false);
894
- b.p("vaultName", () => input.vaultName, "{vaultName}", false);
895
- const query = (0, import_smithy_client.map)({
896
- [_o]: [, "remove"]
897
- });
898
- let body;
899
- body = JSON.stringify(
900
- (0, import_smithy_client.take)(input, {
901
- TagKeys: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "TagKeys")
902
- })
903
- );
904
- b.m("POST").h(headers).q(query).b(body);
905
- return b.build();
906
- }, "se_RemoveTagsFromVaultCommand");
907
- var se_SetDataRetrievalPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
908
- const b = (0, import_core.requestBuilder)(input, context);
909
- const headers = {
910
- "content-type": "application/json"
911
- };
912
- b.bp("/{accountId}/policies/data-retrieval");
913
- b.p("accountId", () => input.accountId, "{accountId}", false);
914
- let body;
915
- body = JSON.stringify(
916
- (0, import_smithy_client.take)(input, {
917
- Policy: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Policy")
918
- })
919
- );
920
- b.m("PUT").h(headers).b(body);
921
- return b.build();
922
- }, "se_SetDataRetrievalPolicyCommand");
923
- var se_SetVaultAccessPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
924
- const b = (0, import_core.requestBuilder)(input, context);
925
- const headers = {
926
- "content-type": "application/json"
927
- };
928
- b.bp("/{accountId}/vaults/{vaultName}/access-policy");
929
- b.p("accountId", () => input.accountId, "{accountId}", false);
930
- b.p("vaultName", () => input.vaultName, "{vaultName}", false);
931
- let body;
932
- if (input.policy !== void 0) {
933
- body = (0, import_smithy_client._json)(input.policy);
934
- }
935
- if (body === void 0) {
936
- body = {};
937
- }
938
- body = JSON.stringify(body);
939
- b.m("PUT").h(headers).b(body);
940
- return b.build();
941
- }, "se_SetVaultAccessPolicyCommand");
942
- var se_SetVaultNotificationsCommand = /* @__PURE__ */ __name(async (input, context) => {
943
- const b = (0, import_core.requestBuilder)(input, context);
944
- const headers = {
945
- "content-type": "application/json"
946
- };
947
- b.bp("/{accountId}/vaults/{vaultName}/notification-configuration");
948
- b.p("accountId", () => input.accountId, "{accountId}", false);
949
- b.p("vaultName", () => input.vaultName, "{vaultName}", false);
950
- let body;
951
- if (input.vaultNotificationConfig !== void 0) {
952
- body = (0, import_smithy_client._json)(input.vaultNotificationConfig);
953
- }
954
- if (body === void 0) {
955
- body = {};
956
- }
957
- body = JSON.stringify(body);
958
- b.m("PUT").h(headers).b(body);
959
- return b.build();
960
- }, "se_SetVaultNotificationsCommand");
961
- var se_UploadArchiveCommand = /* @__PURE__ */ __name(async (input, context) => {
962
- const b = (0, import_core.requestBuilder)(input, context);
963
- const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
964
- "content-type": "application/octet-stream",
965
- [_xaad]: input[_aD],
966
- [_xasth]: input[_c]
967
- });
968
- b.bp("/{accountId}/vaults/{vaultName}/archives");
969
- b.p("vaultName", () => input.vaultName, "{vaultName}", false);
970
- b.p("accountId", () => input.accountId, "{accountId}", false);
971
- let body;
972
- if (input.body !== void 0) {
973
- body = input.body;
974
- }
975
- b.m("POST").h(headers).b(body);
976
- return b.build();
977
- }, "se_UploadArchiveCommand");
978
- var se_UploadMultipartPartCommand = /* @__PURE__ */ __name(async (input, context) => {
979
- const b = (0, import_core.requestBuilder)(input, context);
980
- const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
981
- "content-type": "application/octet-stream",
982
- [_xasth]: input[_c],
983
- [_cr]: input[_r]
984
- });
985
- b.bp("/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}");
986
- b.p("accountId", () => input.accountId, "{accountId}", false);
987
- b.p("vaultName", () => input.vaultName, "{vaultName}", false);
988
- b.p("uploadId", () => input.uploadId, "{uploadId}", false);
989
- let body;
990
- if (input.body !== void 0) {
991
- body = input.body;
992
- }
993
- b.m("PUT").h(headers).b(body);
994
- return b.build();
995
- }, "se_UploadMultipartPartCommand");
996
- var de_AbortMultipartUploadCommand = /* @__PURE__ */ __name(async (output, context) => {
997
- if (output.statusCode !== 204 && output.statusCode >= 300) {
998
- return de_CommandError(output, context);
999
- }
1000
- const contents = (0, import_smithy_client.map)({
1001
- $metadata: deserializeMetadata(output)
1002
- });
1003
- await (0, import_smithy_client.collectBody)(output.body, context);
1004
- return contents;
1005
- }, "de_AbortMultipartUploadCommand");
1006
- var de_AbortVaultLockCommand = /* @__PURE__ */ __name(async (output, context) => {
1007
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1008
- return de_CommandError(output, context);
1009
- }
1010
- const contents = (0, import_smithy_client.map)({
1011
- $metadata: deserializeMetadata(output)
1012
- });
1013
- await (0, import_smithy_client.collectBody)(output.body, context);
1014
- return contents;
1015
- }, "de_AbortVaultLockCommand");
1016
- var de_AddTagsToVaultCommand = /* @__PURE__ */ __name(async (output, context) => {
1017
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1018
- return de_CommandError(output, context);
1019
- }
1020
- const contents = (0, import_smithy_client.map)({
1021
- $metadata: deserializeMetadata(output)
1022
- });
1023
- await (0, import_smithy_client.collectBody)(output.body, context);
1024
- return contents;
1025
- }, "de_AddTagsToVaultCommand");
1026
- var de_CompleteMultipartUploadCommand = /* @__PURE__ */ __name(async (output, context) => {
1027
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1028
- return de_CommandError(output, context);
1029
- }
1030
- const contents = (0, import_smithy_client.map)({
1031
- $metadata: deserializeMetadata(output),
1032
- [_lo]: [, output.headers[_lo]],
1033
- [_c]: [, output.headers[_xasth]],
1034
- [_aI]: [, output.headers[_xaai]]
1035
- });
1036
- await (0, import_smithy_client.collectBody)(output.body, context);
1037
- return contents;
1038
- }, "de_CompleteMultipartUploadCommand");
1039
- var de_CompleteVaultLockCommand = /* @__PURE__ */ __name(async (output, context) => {
1040
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1041
- return de_CommandError(output, context);
1042
- }
1043
- const contents = (0, import_smithy_client.map)({
1044
- $metadata: deserializeMetadata(output)
1045
- });
1046
- await (0, import_smithy_client.collectBody)(output.body, context);
1047
- return contents;
1048
- }, "de_CompleteVaultLockCommand");
1049
- var de_CreateVaultCommand = /* @__PURE__ */ __name(async (output, context) => {
1050
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1051
- return de_CommandError(output, context);
1052
- }
1053
- const contents = (0, import_smithy_client.map)({
1054
- $metadata: deserializeMetadata(output),
1055
- [_lo]: [, output.headers[_lo]]
1056
- });
1057
- await (0, import_smithy_client.collectBody)(output.body, context);
1058
- return contents;
1059
- }, "de_CreateVaultCommand");
1060
- var de_DeleteArchiveCommand = /* @__PURE__ */ __name(async (output, context) => {
1061
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1062
- return de_CommandError(output, context);
1063
- }
1064
- const contents = (0, import_smithy_client.map)({
1065
- $metadata: deserializeMetadata(output)
1066
- });
1067
- await (0, import_smithy_client.collectBody)(output.body, context);
1068
- return contents;
1069
- }, "de_DeleteArchiveCommand");
1070
- var de_DeleteVaultCommand = /* @__PURE__ */ __name(async (output, context) => {
1071
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1072
- return de_CommandError(output, context);
1073
- }
1074
- const contents = (0, import_smithy_client.map)({
1075
- $metadata: deserializeMetadata(output)
1076
- });
1077
- await (0, import_smithy_client.collectBody)(output.body, context);
1078
- return contents;
1079
- }, "de_DeleteVaultCommand");
1080
- var de_DeleteVaultAccessPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1081
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1082
- return de_CommandError(output, context);
1083
- }
1084
- const contents = (0, import_smithy_client.map)({
1085
- $metadata: deserializeMetadata(output)
1086
- });
1087
- await (0, import_smithy_client.collectBody)(output.body, context);
1088
- return contents;
1089
- }, "de_DeleteVaultAccessPolicyCommand");
1090
- var de_DeleteVaultNotificationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1091
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1092
- return de_CommandError(output, context);
1093
- }
1094
- const contents = (0, import_smithy_client.map)({
1095
- $metadata: deserializeMetadata(output)
1096
- });
1097
- await (0, import_smithy_client.collectBody)(output.body, context);
1098
- return contents;
1099
- }, "de_DeleteVaultNotificationsCommand");
1100
- var de_DescribeJobCommand = /* @__PURE__ */ __name(async (output, context) => {
1101
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1102
- return de_CommandError(output, context);
1103
- }
1104
- const contents = (0, import_smithy_client.map)({
1105
- $metadata: deserializeMetadata(output)
1106
- });
1107
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1108
- const doc = (0, import_smithy_client.take)(data, {
1109
- Action: import_smithy_client.expectString,
1110
- ArchiveId: import_smithy_client.expectString,
1111
- ArchiveSHA256TreeHash: import_smithy_client.expectString,
1112
- ArchiveSizeInBytes: import_smithy_client.expectLong,
1113
- Completed: import_smithy_client.expectBoolean,
1114
- CompletionDate: import_smithy_client.expectString,
1115
- CreationDate: import_smithy_client.expectString,
1116
- InventoryRetrievalParameters: import_smithy_client._json,
1117
- InventorySizeInBytes: import_smithy_client.expectLong,
1118
- JobDescription: import_smithy_client.expectString,
1119
- JobId: import_smithy_client.expectString,
1120
- JobOutputPath: import_smithy_client.expectString,
1121
- OutputLocation: import_smithy_client._json,
1122
- RetrievalByteRange: import_smithy_client.expectString,
1123
- SHA256TreeHash: import_smithy_client.expectString,
1124
- SNSTopic: import_smithy_client.expectString,
1125
- SelectParameters: import_smithy_client._json,
1126
- StatusCode: import_smithy_client.expectString,
1127
- StatusMessage: import_smithy_client.expectString,
1128
- Tier: import_smithy_client.expectString,
1129
- VaultARN: import_smithy_client.expectString
1130
- });
1131
- Object.assign(contents, doc);
1132
- return contents;
1133
- }, "de_DescribeJobCommand");
1134
- var de_DescribeVaultCommand = /* @__PURE__ */ __name(async (output, context) => {
1135
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1136
- return de_CommandError(output, context);
1137
- }
1138
- const contents = (0, import_smithy_client.map)({
1139
- $metadata: deserializeMetadata(output)
1140
- });
1141
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1142
- const doc = (0, import_smithy_client.take)(data, {
1143
- CreationDate: import_smithy_client.expectString,
1144
- LastInventoryDate: import_smithy_client.expectString,
1145
- NumberOfArchives: import_smithy_client.expectLong,
1146
- SizeInBytes: import_smithy_client.expectLong,
1147
- VaultARN: import_smithy_client.expectString,
1148
- VaultName: import_smithy_client.expectString
1149
- });
1150
- Object.assign(contents, doc);
1151
- return contents;
1152
- }, "de_DescribeVaultCommand");
1153
- var de_GetDataRetrievalPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1154
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1155
- return de_CommandError(output, context);
1156
- }
1157
- const contents = (0, import_smithy_client.map)({
1158
- $metadata: deserializeMetadata(output)
1159
- });
1160
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1161
- const doc = (0, import_smithy_client.take)(data, {
1162
- Policy: import_smithy_client._json
1163
- });
1164
- Object.assign(contents, doc);
1165
- return contents;
1166
- }, "de_GetDataRetrievalPolicyCommand");
1167
- var de_GetJobOutputCommand = /* @__PURE__ */ __name(async (output, context) => {
1168
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1169
- return de_CommandError(output, context);
1170
- }
1171
- const contents = (0, import_smithy_client.map)({
1172
- $metadata: deserializeMetadata(output),
1173
- [_c]: [, output.headers[_xasth]],
1174
- [_cR]: [, output.headers[_cr]],
1175
- [_aR]: [, output.headers[_ar]],
1176
- [_cT]: [, output.headers[_ct]],
1177
- [_aD]: [, output.headers[_xaad]]
1178
- });
1179
- const data = output.body;
1180
- context.sdkStreamMixin(data);
1181
- contents.body = data;
1182
- (0, import_smithy_client.map)(contents, {
1183
- status: [, output.statusCode]
1184
- });
1185
- return contents;
1186
- }, "de_GetJobOutputCommand");
1187
- var de_GetVaultAccessPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1188
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1189
- return de_CommandError(output, context);
1190
- }
1191
- const contents = (0, import_smithy_client.map)({
1192
- $metadata: deserializeMetadata(output)
1193
- });
1194
- const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
1195
- contents.policy = (0, import_smithy_client._json)(data);
1196
- return contents;
1197
- }, "de_GetVaultAccessPolicyCommand");
1198
- var de_GetVaultLockCommand = /* @__PURE__ */ __name(async (output, context) => {
1199
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1200
- return de_CommandError(output, context);
1201
- }
1202
- const contents = (0, import_smithy_client.map)({
1203
- $metadata: deserializeMetadata(output)
1204
- });
1205
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1206
- const doc = (0, import_smithy_client.take)(data, {
1207
- CreationDate: import_smithy_client.expectString,
1208
- ExpirationDate: import_smithy_client.expectString,
1209
- Policy: import_smithy_client.expectString,
1210
- State: import_smithy_client.expectString
1211
- });
1212
- Object.assign(contents, doc);
1213
- return contents;
1214
- }, "de_GetVaultLockCommand");
1215
- var de_GetVaultNotificationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1216
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1217
- return de_CommandError(output, context);
1218
- }
1219
- const contents = (0, import_smithy_client.map)({
1220
- $metadata: deserializeMetadata(output)
1221
- });
1222
- const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
1223
- contents.vaultNotificationConfig = (0, import_smithy_client._json)(data);
1224
- return contents;
1225
- }, "de_GetVaultNotificationsCommand");
1226
- var de_InitiateJobCommand = /* @__PURE__ */ __name(async (output, context) => {
1227
- if (output.statusCode !== 202 && output.statusCode >= 300) {
1228
- return de_CommandError(output, context);
1229
- }
1230
- const contents = (0, import_smithy_client.map)({
1231
- $metadata: deserializeMetadata(output),
1232
- [_lo]: [, output.headers[_lo]],
1233
- [_jI]: [, output.headers[_xaji]],
1234
- [_jOP]: [, output.headers[_xajop]]
1235
- });
1236
- await (0, import_smithy_client.collectBody)(output.body, context);
1237
- return contents;
1238
- }, "de_InitiateJobCommand");
1239
- var de_InitiateMultipartUploadCommand = /* @__PURE__ */ __name(async (output, context) => {
1240
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1241
- return de_CommandError(output, context);
1242
- }
1243
- const contents = (0, import_smithy_client.map)({
1244
- $metadata: deserializeMetadata(output),
1245
- [_lo]: [, output.headers[_lo]],
1246
- [_uI]: [, output.headers[_xamui]]
1247
- });
1248
- await (0, import_smithy_client.collectBody)(output.body, context);
1249
- return contents;
1250
- }, "de_InitiateMultipartUploadCommand");
1251
- var de_InitiateVaultLockCommand = /* @__PURE__ */ __name(async (output, context) => {
1252
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1253
- return de_CommandError(output, context);
1254
- }
1255
- const contents = (0, import_smithy_client.map)({
1256
- $metadata: deserializeMetadata(output),
1257
- [_lI]: [, output.headers[_xali]]
1258
- });
1259
- await (0, import_smithy_client.collectBody)(output.body, context);
1260
- return contents;
1261
- }, "de_InitiateVaultLockCommand");
1262
- var de_ListJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
1263
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1264
- return de_CommandError(output, context);
1265
- }
1266
- const contents = (0, import_smithy_client.map)({
1267
- $metadata: deserializeMetadata(output)
1268
- });
1269
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1270
- const doc = (0, import_smithy_client.take)(data, {
1271
- JobList: import_smithy_client._json,
1272
- Marker: import_smithy_client.expectString
1273
- });
1274
- Object.assign(contents, doc);
1275
- return contents;
1276
- }, "de_ListJobsCommand");
1277
- var de_ListMultipartUploadsCommand = /* @__PURE__ */ __name(async (output, context) => {
1278
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1279
- return de_CommandError(output, context);
1280
- }
1281
- const contents = (0, import_smithy_client.map)({
1282
- $metadata: deserializeMetadata(output)
1283
- });
1284
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1285
- const doc = (0, import_smithy_client.take)(data, {
1286
- Marker: import_smithy_client.expectString,
1287
- UploadsList: import_smithy_client._json
1288
- });
1289
- Object.assign(contents, doc);
1290
- return contents;
1291
- }, "de_ListMultipartUploadsCommand");
1292
- var de_ListPartsCommand = /* @__PURE__ */ __name(async (output, context) => {
1293
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1294
- return de_CommandError(output, context);
1295
- }
1296
- const contents = (0, import_smithy_client.map)({
1297
- $metadata: deserializeMetadata(output)
1298
- });
1299
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1300
- const doc = (0, import_smithy_client.take)(data, {
1301
- ArchiveDescription: import_smithy_client.expectString,
1302
- CreationDate: import_smithy_client.expectString,
1303
- Marker: import_smithy_client.expectString,
1304
- MultipartUploadId: import_smithy_client.expectString,
1305
- PartSizeInBytes: import_smithy_client.expectLong,
1306
- Parts: import_smithy_client._json,
1307
- VaultARN: import_smithy_client.expectString
1308
- });
1309
- Object.assign(contents, doc);
1310
- return contents;
1311
- }, "de_ListPartsCommand");
1312
- var de_ListProvisionedCapacityCommand = /* @__PURE__ */ __name(async (output, context) => {
1313
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1314
- return de_CommandError(output, context);
1315
- }
1316
- const contents = (0, import_smithy_client.map)({
1317
- $metadata: deserializeMetadata(output)
1318
- });
1319
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1320
- const doc = (0, import_smithy_client.take)(data, {
1321
- ProvisionedCapacityList: import_smithy_client._json
1322
- });
1323
- Object.assign(contents, doc);
1324
- return contents;
1325
- }, "de_ListProvisionedCapacityCommand");
1326
- var de_ListTagsForVaultCommand = /* @__PURE__ */ __name(async (output, context) => {
1327
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1328
- return de_CommandError(output, context);
1329
- }
1330
- const contents = (0, import_smithy_client.map)({
1331
- $metadata: deserializeMetadata(output)
1332
- });
1333
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1334
- const doc = (0, import_smithy_client.take)(data, {
1335
- Tags: import_smithy_client._json
1336
- });
1337
- Object.assign(contents, doc);
1338
- return contents;
1339
- }, "de_ListTagsForVaultCommand");
1340
- var de_ListVaultsCommand = /* @__PURE__ */ __name(async (output, context) => {
1341
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1342
- return de_CommandError(output, context);
1343
- }
1344
- const contents = (0, import_smithy_client.map)({
1345
- $metadata: deserializeMetadata(output)
1346
- });
1347
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1348
- const doc = (0, import_smithy_client.take)(data, {
1349
- Marker: import_smithy_client.expectString,
1350
- VaultList: import_smithy_client._json
1351
- });
1352
- Object.assign(contents, doc);
1353
- return contents;
1354
- }, "de_ListVaultsCommand");
1355
- var de_PurchaseProvisionedCapacityCommand = /* @__PURE__ */ __name(async (output, context) => {
1356
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1357
- return de_CommandError(output, context);
1358
- }
1359
- const contents = (0, import_smithy_client.map)({
1360
- $metadata: deserializeMetadata(output),
1361
- [_cI]: [, output.headers[_xaci]]
1362
- });
1363
- await (0, import_smithy_client.collectBody)(output.body, context);
1364
- return contents;
1365
- }, "de_PurchaseProvisionedCapacityCommand");
1366
- var de_RemoveTagsFromVaultCommand = /* @__PURE__ */ __name(async (output, context) => {
1367
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1368
- return de_CommandError(output, context);
1369
- }
1370
- const contents = (0, import_smithy_client.map)({
1371
- $metadata: deserializeMetadata(output)
1372
- });
1373
- await (0, import_smithy_client.collectBody)(output.body, context);
1374
- return contents;
1375
- }, "de_RemoveTagsFromVaultCommand");
1376
- var de_SetDataRetrievalPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1377
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1378
- return de_CommandError(output, context);
1379
- }
1380
- const contents = (0, import_smithy_client.map)({
1381
- $metadata: deserializeMetadata(output)
1382
- });
1383
- await (0, import_smithy_client.collectBody)(output.body, context);
1384
- return contents;
1385
- }, "de_SetDataRetrievalPolicyCommand");
1386
- var de_SetVaultAccessPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1387
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1388
- return de_CommandError(output, context);
1389
- }
1390
- const contents = (0, import_smithy_client.map)({
1391
- $metadata: deserializeMetadata(output)
1392
- });
1393
- await (0, import_smithy_client.collectBody)(output.body, context);
1394
- return contents;
1395
- }, "de_SetVaultAccessPolicyCommand");
1396
- var de_SetVaultNotificationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1397
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1398
- return de_CommandError(output, context);
1399
- }
1400
- const contents = (0, import_smithy_client.map)({
1401
- $metadata: deserializeMetadata(output)
1402
- });
1403
- await (0, import_smithy_client.collectBody)(output.body, context);
1404
- return contents;
1405
- }, "de_SetVaultNotificationsCommand");
1406
- var de_UploadArchiveCommand = /* @__PURE__ */ __name(async (output, context) => {
1407
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1408
- return de_CommandError(output, context);
1409
- }
1410
- const contents = (0, import_smithy_client.map)({
1411
- $metadata: deserializeMetadata(output),
1412
- [_lo]: [, output.headers[_lo]],
1413
- [_c]: [, output.headers[_xasth]],
1414
- [_aI]: [, output.headers[_xaai]]
1415
- });
1416
- await (0, import_smithy_client.collectBody)(output.body, context);
1417
- return contents;
1418
- }, "de_UploadArchiveCommand");
1419
- var de_UploadMultipartPartCommand = /* @__PURE__ */ __name(async (output, context) => {
1420
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1421
- return de_CommandError(output, context);
1422
- }
1423
- const contents = (0, import_smithy_client.map)({
1424
- $metadata: deserializeMetadata(output),
1425
- [_c]: [, output.headers[_xasth]]
1426
- });
1427
- await (0, import_smithy_client.collectBody)(output.body, context);
1428
- return contents;
1429
- }, "de_UploadMultipartPartCommand");
1430
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1431
- const parsedOutput = {
1432
- ...output,
1433
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
1434
- };
1435
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
1436
- switch (errorCode) {
1437
- case "InvalidParameterValueException":
1438
- case "com.amazonaws.glacier#InvalidParameterValueException":
1439
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1440
- case "MissingParameterValueException":
1441
- case "com.amazonaws.glacier#MissingParameterValueException":
1442
- throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
1443
- case "ResourceNotFoundException":
1444
- case "com.amazonaws.glacier#ResourceNotFoundException":
1445
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1446
- case "ServiceUnavailableException":
1447
- case "com.amazonaws.glacier#ServiceUnavailableException":
1448
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1449
- case "LimitExceededException":
1450
- case "com.amazonaws.glacier#LimitExceededException":
1451
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1452
- case "InsufficientCapacityException":
1453
- case "com.amazonaws.glacier#InsufficientCapacityException":
1454
- throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
1455
- case "PolicyEnforcedException":
1456
- case "com.amazonaws.glacier#PolicyEnforcedException":
1457
- throw await de_PolicyEnforcedExceptionRes(parsedOutput, context);
1458
- case "RequestTimeoutException":
1459
- case "com.amazonaws.glacier#RequestTimeoutException":
1460
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
1461
- default:
1462
- const parsedBody = parsedOutput.body;
1463
- return throwDefaultError({
1464
- output,
1465
- parsedBody,
1466
- errorCode
1467
- });
1468
- }
1469
- }, "de_CommandError");
1470
- var throwDefaultError = (0, import_smithy_client.withBaseException)(GlacierServiceException);
1471
- var de_InsufficientCapacityExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1472
- const contents = (0, import_smithy_client.map)({});
1473
- const data = parsedOutput.body;
1474
- const doc = (0, import_smithy_client.take)(data, {
1475
- code: import_smithy_client.expectString,
1476
- message: import_smithy_client.expectString,
1477
- type: import_smithy_client.expectString
1478
- });
1479
- Object.assign(contents, doc);
1480
- const exception = new InsufficientCapacityException({
1481
- $metadata: deserializeMetadata(parsedOutput),
1482
- ...contents
1483
- });
1484
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1485
- }, "de_InsufficientCapacityExceptionRes");
1486
- var de_InvalidParameterValueExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1487
- const contents = (0, import_smithy_client.map)({});
1488
- const data = parsedOutput.body;
1489
- const doc = (0, import_smithy_client.take)(data, {
1490
- code: import_smithy_client.expectString,
1491
- message: import_smithy_client.expectString,
1492
- type: import_smithy_client.expectString
1493
- });
1494
- Object.assign(contents, doc);
1495
- const exception = new InvalidParameterValueException({
1496
- $metadata: deserializeMetadata(parsedOutput),
1497
- ...contents
1498
- });
1499
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1500
- }, "de_InvalidParameterValueExceptionRes");
1501
- var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1502
- const contents = (0, import_smithy_client.map)({});
1503
- const data = parsedOutput.body;
1504
- const doc = (0, import_smithy_client.take)(data, {
1505
- code: import_smithy_client.expectString,
1506
- message: import_smithy_client.expectString,
1507
- type: import_smithy_client.expectString
1508
- });
1509
- Object.assign(contents, doc);
1510
- const exception = new LimitExceededException({
1511
- $metadata: deserializeMetadata(parsedOutput),
1512
- ...contents
1513
- });
1514
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1515
- }, "de_LimitExceededExceptionRes");
1516
- var de_MissingParameterValueExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1517
- const contents = (0, import_smithy_client.map)({});
1518
- const data = parsedOutput.body;
1519
- const doc = (0, import_smithy_client.take)(data, {
1520
- code: import_smithy_client.expectString,
1521
- message: import_smithy_client.expectString,
1522
- type: import_smithy_client.expectString
1523
- });
1524
- Object.assign(contents, doc);
1525
- const exception = new MissingParameterValueException({
1526
- $metadata: deserializeMetadata(parsedOutput),
1527
- ...contents
1528
- });
1529
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1530
- }, "de_MissingParameterValueExceptionRes");
1531
- var de_PolicyEnforcedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1532
- const contents = (0, import_smithy_client.map)({});
1533
- const data = parsedOutput.body;
1534
- const doc = (0, import_smithy_client.take)(data, {
1535
- code: import_smithy_client.expectString,
1536
- message: import_smithy_client.expectString,
1537
- type: import_smithy_client.expectString
1538
- });
1539
- Object.assign(contents, doc);
1540
- const exception = new PolicyEnforcedException({
1541
- $metadata: deserializeMetadata(parsedOutput),
1542
- ...contents
1543
- });
1544
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1545
- }, "de_PolicyEnforcedExceptionRes");
1546
- var de_RequestTimeoutExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1547
- const contents = (0, import_smithy_client.map)({});
1548
- const data = parsedOutput.body;
1549
- const doc = (0, import_smithy_client.take)(data, {
1550
- code: import_smithy_client.expectString,
1551
- message: import_smithy_client.expectString,
1552
- type: import_smithy_client.expectString
1553
- });
1554
- Object.assign(contents, doc);
1555
- const exception = new RequestTimeoutException({
1556
- $metadata: deserializeMetadata(parsedOutput),
1557
- ...contents
1558
- });
1559
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1560
- }, "de_RequestTimeoutExceptionRes");
1561
- var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1562
- const contents = (0, import_smithy_client.map)({});
1563
- const data = parsedOutput.body;
1564
- const doc = (0, import_smithy_client.take)(data, {
1565
- code: import_smithy_client.expectString,
1566
- message: import_smithy_client.expectString,
1567
- type: import_smithy_client.expectString
1568
- });
1569
- Object.assign(contents, doc);
1570
- const exception = new ResourceNotFoundException({
1571
- $metadata: deserializeMetadata(parsedOutput),
1572
- ...contents
1573
- });
1574
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1575
- }, "de_ResourceNotFoundExceptionRes");
1576
- var de_ServiceUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1577
- const contents = (0, import_smithy_client.map)({});
1578
- const data = parsedOutput.body;
1579
- const doc = (0, import_smithy_client.take)(data, {
1580
- code: import_smithy_client.expectString,
1581
- message: import_smithy_client.expectString,
1582
- type: import_smithy_client.expectString
1583
- });
1584
- Object.assign(contents, doc);
1585
- const exception = new ServiceUnavailableException({
1586
- $metadata: deserializeMetadata(parsedOutput),
1587
- ...contents
1588
- });
1589
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1590
- }, "de_ServiceUnavailableExceptionRes");
1591
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1592
- httpStatusCode: output.statusCode,
1593
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1594
- extendedRequestId: output.headers["x-amz-id-2"],
1595
- cfId: output.headers["x-amz-cf-id"]
1596
- }), "deserializeMetadata");
1597
- var _aD = "archiveDescription";
1598
- var _aI = "archiveId";
1599
- var _aR = "acceptRanges";
1600
- var _aS = "archiveSize";
1601
- var _ar = "accept-ranges";
1602
- var _c = "checksum";
1603
- var _cI = "capacityId";
1604
- var _cR = "contentRange";
1605
- var _cT = "contentType";
1606
- var _co = "completed";
1607
- var _cr = "content-range";
1608
- var _ct = "content-type";
1609
- var _jI = "jobId";
1610
- var _jOP = "jobOutputPath";
1611
- var _l = "limit";
1612
- var _lI = "lockId";
1613
- var _lo = "location";
1614
- var _m = "marker";
1615
- var _o = "operation";
1616
- var _pS = "partSize";
1617
- var _r = "range";
1618
- var _s = "statuscode";
1619
- var _uI = "uploadId";
1620
- var _xaad = "x-amz-archive-description";
1621
- var _xaai = "x-amz-archive-id";
1622
- var _xaas = "x-amz-archive-size";
1623
- var _xaci = "x-amz-capacity-id";
1624
- var _xaji = "x-amz-job-id";
1625
- var _xajop = "x-amz-job-output-path";
1626
- var _xali = "x-amz-lock-id";
1627
- var _xamui = "x-amz-multipart-upload-id";
1628
- var _xaps = "x-amz-part-size";
1629
- var _xasth = "x-amz-sha256-tree-hash";
1630
-
1631
- // src/commands/AbortMultipartUploadCommand.ts
1632
- var AbortMultipartUploadCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1633
- return [
1634
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1635
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1636
- ];
1637
- }).s("Glacier", "AbortMultipartUpload", {}).n("GlacierClient", "AbortMultipartUploadCommand").f(void 0, void 0).ser(se_AbortMultipartUploadCommand).de(de_AbortMultipartUploadCommand).build() {
1638
- static {
1639
- __name(this, "AbortMultipartUploadCommand");
1640
- }
199
+ const ActionCode = {
200
+ ArchiveRetrieval: "ArchiveRetrieval",
201
+ InventoryRetrieval: "InventoryRetrieval",
202
+ Select: "Select",
1641
203
  };
1642
-
1643
- // src/commands/AbortVaultLockCommand.ts
1644
-
1645
-
1646
-
1647
- var AbortVaultLockCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1648
- return [
1649
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1650
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1651
- ];
1652
- }).s("Glacier", "AbortVaultLock", {}).n("GlacierClient", "AbortVaultLockCommand").f(void 0, void 0).ser(se_AbortVaultLockCommand).de(de_AbortVaultLockCommand).build() {
1653
- static {
1654
- __name(this, "AbortVaultLockCommand");
1655
- }
204
+ class LimitExceededException extends GlacierServiceException {
205
+ name = "LimitExceededException";
206
+ $fault = "client";
207
+ type;
208
+ code;
209
+ constructor(opts) {
210
+ super({
211
+ name: "LimitExceededException",
212
+ $fault: "client",
213
+ ...opts,
214
+ });
215
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
216
+ this.type = opts.type;
217
+ this.code = opts.code;
218
+ }
219
+ }
220
+ const CannedACL = {
221
+ AuthenticatedRead: "authenticated-read",
222
+ AwsExecRead: "aws-exec-read",
223
+ BucketOwnerFullControl: "bucket-owner-full-control",
224
+ BucketOwnerRead: "bucket-owner-read",
225
+ Private: "private",
226
+ PublicRead: "public-read",
227
+ PublicReadWrite: "public-read-write",
1656
228
  };
1657
-
1658
- // src/commands/AddTagsToVaultCommand.ts
1659
-
1660
-
1661
-
1662
- var AddTagsToVaultCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1663
- return [
1664
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1665
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1666
- ];
1667
- }).s("Glacier", "AddTagsToVault", {}).n("GlacierClient", "AddTagsToVaultCommand").f(void 0, void 0).ser(se_AddTagsToVaultCommand).de(de_AddTagsToVaultCommand).build() {
1668
- static {
1669
- __name(this, "AddTagsToVaultCommand");
1670
- }
229
+ const FileHeaderInfo = {
230
+ Ignore: "IGNORE",
231
+ None: "NONE",
232
+ Use: "USE",
1671
233
  };
1672
-
1673
- // src/commands/CompleteMultipartUploadCommand.ts
1674
-
1675
-
1676
-
1677
- var CompleteMultipartUploadCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1678
- return [
1679
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1680
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1681
- ];
1682
- }).s("Glacier", "CompleteMultipartUpload", {}).n("GlacierClient", "CompleteMultipartUploadCommand").f(void 0, void 0).ser(se_CompleteMultipartUploadCommand).de(de_CompleteMultipartUploadCommand).build() {
1683
- static {
1684
- __name(this, "CompleteMultipartUploadCommand");
1685
- }
234
+ const QuoteFields = {
235
+ Always: "ALWAYS",
236
+ AsNeeded: "ASNEEDED",
1686
237
  };
1687
-
1688
- // src/commands/CompleteVaultLockCommand.ts
1689
-
1690
-
1691
-
1692
- var CompleteVaultLockCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1693
- return [
1694
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1695
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1696
- ];
1697
- }).s("Glacier", "CompleteVaultLock", {}).n("GlacierClient", "CompleteVaultLockCommand").f(void 0, void 0).ser(se_CompleteVaultLockCommand).de(de_CompleteVaultLockCommand).build() {
1698
- static {
1699
- __name(this, "CompleteVaultLockCommand");
1700
- }
238
+ const EncryptionType = {
239
+ KMS: "aws:kms",
240
+ S3: "AES256",
1701
241
  };
1702
-
1703
- // src/commands/CreateVaultCommand.ts
1704
-
1705
-
1706
-
1707
- var CreateVaultCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1708
- return [
1709
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1710
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1711
- ];
1712
- }).s("Glacier", "CreateVault", {}).n("GlacierClient", "CreateVaultCommand").f(void 0, void 0).ser(se_CreateVaultCommand).de(de_CreateVaultCommand).build() {
1713
- static {
1714
- __name(this, "CreateVaultCommand");
1715
- }
242
+ const StorageClass = {
243
+ ReducedRedundancy: "REDUCED_REDUNDANCY",
244
+ Standard: "STANDARD",
245
+ StandardInfrequentAccess: "STANDARD_IA",
1716
246
  };
1717
-
1718
- // src/commands/DeleteArchiveCommand.ts
1719
-
1720
-
1721
-
1722
- var DeleteArchiveCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1723
- return [
1724
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1725
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1726
- ];
1727
- }).s("Glacier", "DeleteArchive", {}).n("GlacierClient", "DeleteArchiveCommand").f(void 0, void 0).ser(se_DeleteArchiveCommand).de(de_DeleteArchiveCommand).build() {
1728
- static {
1729
- __name(this, "DeleteArchiveCommand");
1730
- }
247
+ const ExpressionType = {
248
+ SQL: "SQL",
1731
249
  };
1732
-
1733
- // src/commands/DeleteVaultAccessPolicyCommand.ts
1734
-
1735
-
1736
-
1737
- var DeleteVaultAccessPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1738
- return [
1739
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1740
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1741
- ];
1742
- }).s("Glacier", "DeleteVaultAccessPolicy", {}).n("GlacierClient", "DeleteVaultAccessPolicyCommand").f(void 0, void 0).ser(se_DeleteVaultAccessPolicyCommand).de(de_DeleteVaultAccessPolicyCommand).build() {
1743
- static {
1744
- __name(this, "DeleteVaultAccessPolicyCommand");
1745
- }
250
+ const StatusCode = {
251
+ Failed: "Failed",
252
+ InProgress: "InProgress",
253
+ Succeeded: "Succeeded",
1746
254
  };
255
+ class InsufficientCapacityException extends GlacierServiceException {
256
+ name = "InsufficientCapacityException";
257
+ $fault = "client";
258
+ type;
259
+ code;
260
+ constructor(opts) {
261
+ super({
262
+ name: "InsufficientCapacityException",
263
+ $fault: "client",
264
+ ...opts,
265
+ });
266
+ Object.setPrototypeOf(this, InsufficientCapacityException.prototype);
267
+ this.type = opts.type;
268
+ this.code = opts.code;
269
+ }
270
+ }
271
+ class PolicyEnforcedException extends GlacierServiceException {
272
+ name = "PolicyEnforcedException";
273
+ $fault = "client";
274
+ type;
275
+ code;
276
+ constructor(opts) {
277
+ super({
278
+ name: "PolicyEnforcedException",
279
+ $fault: "client",
280
+ ...opts,
281
+ });
282
+ Object.setPrototypeOf(this, PolicyEnforcedException.prototype);
283
+ this.type = opts.type;
284
+ this.code = opts.code;
285
+ }
286
+ }
287
+ class RequestTimeoutException extends GlacierServiceException {
288
+ name = "RequestTimeoutException";
289
+ $fault = "client";
290
+ type;
291
+ code;
292
+ constructor(opts) {
293
+ super({
294
+ name: "RequestTimeoutException",
295
+ $fault: "client",
296
+ ...opts,
297
+ });
298
+ Object.setPrototypeOf(this, RequestTimeoutException.prototype);
299
+ this.type = opts.type;
300
+ this.code = opts.code;
301
+ }
302
+ }
303
+ const GetJobOutputOutputFilterSensitiveLog = (obj) => ({
304
+ ...obj,
305
+ });
306
+ const UploadArchiveInputFilterSensitiveLog = (obj) => ({
307
+ ...obj,
308
+ });
309
+ const UploadMultipartPartInputFilterSensitiveLog = (obj) => ({
310
+ ...obj,
311
+ });
1747
312
 
1748
- // src/commands/DeleteVaultCommand.ts
1749
-
1750
-
1751
-
1752
- var DeleteVaultCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1753
- return [
1754
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1755
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1756
- ];
1757
- }).s("Glacier", "DeleteVault", {}).n("GlacierClient", "DeleteVaultCommand").f(void 0, void 0).ser(se_DeleteVaultCommand).de(de_DeleteVaultCommand).build() {
1758
- static {
1759
- __name(this, "DeleteVaultCommand");
1760
- }
313
+ const se_AbortMultipartUploadCommand = async (input, context) => {
314
+ const b = core.requestBuilder(input, context);
315
+ const headers = {};
316
+ b.bp("/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}");
317
+ b.p("accountId", () => input.accountId, "{accountId}", false);
318
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
319
+ b.p("uploadId", () => input.uploadId, "{uploadId}", false);
320
+ let body;
321
+ b.m("DELETE").h(headers).b(body);
322
+ return b.build();
1761
323
  };
1762
-
1763
- // src/commands/DeleteVaultNotificationsCommand.ts
1764
-
1765
-
1766
-
1767
- var DeleteVaultNotificationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1768
- return [
1769
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1770
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1771
- ];
1772
- }).s("Glacier", "DeleteVaultNotifications", {}).n("GlacierClient", "DeleteVaultNotificationsCommand").f(void 0, void 0).ser(se_DeleteVaultNotificationsCommand).de(de_DeleteVaultNotificationsCommand).build() {
1773
- static {
1774
- __name(this, "DeleteVaultNotificationsCommand");
1775
- }
324
+ const se_AbortVaultLockCommand = async (input, context) => {
325
+ const b = core.requestBuilder(input, context);
326
+ const headers = {};
327
+ b.bp("/{accountId}/vaults/{vaultName}/lock-policy");
328
+ b.p("accountId", () => input.accountId, "{accountId}", false);
329
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
330
+ let body;
331
+ b.m("DELETE").h(headers).b(body);
332
+ return b.build();
1776
333
  };
1777
-
1778
- // src/commands/DescribeJobCommand.ts
1779
-
1780
-
1781
-
1782
- var DescribeJobCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1783
- return [
1784
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1785
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1786
- ];
1787
- }).s("Glacier", "DescribeJob", {}).n("GlacierClient", "DescribeJobCommand").f(void 0, void 0).ser(se_DescribeJobCommand).de(de_DescribeJobCommand).build() {
1788
- static {
1789
- __name(this, "DescribeJobCommand");
1790
- }
334
+ const se_AddTagsToVaultCommand = async (input, context) => {
335
+ const b = core.requestBuilder(input, context);
336
+ const headers = {
337
+ "content-type": "application/json",
338
+ };
339
+ b.bp("/{accountId}/vaults/{vaultName}/tags");
340
+ b.p("accountId", () => input.accountId, "{accountId}", false);
341
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
342
+ const query = smithyClient.map({
343
+ [_o]: [, "add"],
344
+ });
345
+ let body;
346
+ body = JSON.stringify(smithyClient.take(input, {
347
+ Tags: (_) => smithyClient._json(_),
348
+ }));
349
+ b.m("POST").h(headers).q(query).b(body);
350
+ return b.build();
1791
351
  };
1792
-
1793
- // src/commands/DescribeVaultCommand.ts
1794
-
1795
-
1796
-
1797
- var DescribeVaultCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1798
- return [
1799
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1800
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1801
- ];
1802
- }).s("Glacier", "DescribeVault", {}).n("GlacierClient", "DescribeVaultCommand").f(void 0, void 0).ser(se_DescribeVaultCommand).de(de_DescribeVaultCommand).build() {
1803
- static {
1804
- __name(this, "DescribeVaultCommand");
1805
- }
352
+ const se_CompleteMultipartUploadCommand = async (input, context) => {
353
+ const b = core.requestBuilder(input, context);
354
+ const headers = smithyClient.map({}, smithyClient.isSerializableHeaderValue, {
355
+ [_xaas]: input[_aS],
356
+ [_xasth]: input[_c],
357
+ });
358
+ b.bp("/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}");
359
+ b.p("accountId", () => input.accountId, "{accountId}", false);
360
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
361
+ b.p("uploadId", () => input.uploadId, "{uploadId}", false);
362
+ let body;
363
+ b.m("POST").h(headers).b(body);
364
+ return b.build();
1806
365
  };
1807
-
1808
- // src/commands/GetDataRetrievalPolicyCommand.ts
1809
-
1810
-
1811
-
1812
- var GetDataRetrievalPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1813
- return [
1814
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1815
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1816
- ];
1817
- }).s("Glacier", "GetDataRetrievalPolicy", {}).n("GlacierClient", "GetDataRetrievalPolicyCommand").f(void 0, void 0).ser(se_GetDataRetrievalPolicyCommand).de(de_GetDataRetrievalPolicyCommand).build() {
1818
- static {
1819
- __name(this, "GetDataRetrievalPolicyCommand");
1820
- }
366
+ const se_CompleteVaultLockCommand = async (input, context) => {
367
+ const b = core.requestBuilder(input, context);
368
+ const headers = {};
369
+ b.bp("/{accountId}/vaults/{vaultName}/lock-policy/{lockId}");
370
+ b.p("accountId", () => input.accountId, "{accountId}", false);
371
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
372
+ b.p("lockId", () => input.lockId, "{lockId}", false);
373
+ let body;
374
+ b.m("POST").h(headers).b(body);
375
+ return b.build();
1821
376
  };
1822
-
1823
- // src/commands/GetJobOutputCommand.ts
1824
-
1825
-
1826
-
1827
- var GetJobOutputCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1828
- return [
1829
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1830
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1831
- ];
1832
- }).s("Glacier", "GetJobOutput", {}).n("GlacierClient", "GetJobOutputCommand").f(void 0, GetJobOutputOutputFilterSensitiveLog).ser(se_GetJobOutputCommand).de(de_GetJobOutputCommand).build() {
1833
- static {
1834
- __name(this, "GetJobOutputCommand");
1835
- }
377
+ const se_CreateVaultCommand = async (input, context) => {
378
+ const b = core.requestBuilder(input, context);
379
+ const headers = {};
380
+ b.bp("/{accountId}/vaults/{vaultName}");
381
+ b.p("accountId", () => input.accountId, "{accountId}", false);
382
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
383
+ let body;
384
+ b.m("PUT").h(headers).b(body);
385
+ return b.build();
1836
386
  };
1837
-
1838
- // src/commands/GetVaultAccessPolicyCommand.ts
1839
-
1840
-
1841
-
1842
- var GetVaultAccessPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1843
- return [
1844
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1845
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1846
- ];
1847
- }).s("Glacier", "GetVaultAccessPolicy", {}).n("GlacierClient", "GetVaultAccessPolicyCommand").f(void 0, void 0).ser(se_GetVaultAccessPolicyCommand).de(de_GetVaultAccessPolicyCommand).build() {
1848
- static {
1849
- __name(this, "GetVaultAccessPolicyCommand");
1850
- }
387
+ const se_DeleteArchiveCommand = async (input, context) => {
388
+ const b = core.requestBuilder(input, context);
389
+ const headers = {};
390
+ b.bp("/{accountId}/vaults/{vaultName}/archives/{archiveId}");
391
+ b.p("accountId", () => input.accountId, "{accountId}", false);
392
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
393
+ b.p("archiveId", () => input.archiveId, "{archiveId}", false);
394
+ let body;
395
+ b.m("DELETE").h(headers).b(body);
396
+ return b.build();
1851
397
  };
1852
-
1853
- // src/commands/GetVaultLockCommand.ts
1854
-
1855
-
1856
-
1857
- var GetVaultLockCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1858
- return [
1859
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1860
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1861
- ];
1862
- }).s("Glacier", "GetVaultLock", {}).n("GlacierClient", "GetVaultLockCommand").f(void 0, void 0).ser(se_GetVaultLockCommand).de(de_GetVaultLockCommand).build() {
1863
- static {
1864
- __name(this, "GetVaultLockCommand");
1865
- }
398
+ const se_DeleteVaultCommand = async (input, context) => {
399
+ const b = core.requestBuilder(input, context);
400
+ const headers = {};
401
+ b.bp("/{accountId}/vaults/{vaultName}");
402
+ b.p("accountId", () => input.accountId, "{accountId}", false);
403
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
404
+ let body;
405
+ b.m("DELETE").h(headers).b(body);
406
+ return b.build();
1866
407
  };
1867
-
1868
- // src/commands/GetVaultNotificationsCommand.ts
1869
-
1870
-
1871
-
1872
- var GetVaultNotificationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1873
- return [
1874
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1875
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1876
- ];
1877
- }).s("Glacier", "GetVaultNotifications", {}).n("GlacierClient", "GetVaultNotificationsCommand").f(void 0, void 0).ser(se_GetVaultNotificationsCommand).de(de_GetVaultNotificationsCommand).build() {
1878
- static {
1879
- __name(this, "GetVaultNotificationsCommand");
1880
- }
408
+ const se_DeleteVaultAccessPolicyCommand = async (input, context) => {
409
+ const b = core.requestBuilder(input, context);
410
+ const headers = {};
411
+ b.bp("/{accountId}/vaults/{vaultName}/access-policy");
412
+ b.p("accountId", () => input.accountId, "{accountId}", false);
413
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
414
+ let body;
415
+ b.m("DELETE").h(headers).b(body);
416
+ return b.build();
1881
417
  };
1882
-
1883
- // src/commands/InitiateJobCommand.ts
1884
-
1885
-
1886
-
1887
- var InitiateJobCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1888
- return [
1889
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1890
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1891
- ];
1892
- }).s("Glacier", "InitiateJob", {}).n("GlacierClient", "InitiateJobCommand").f(void 0, void 0).ser(se_InitiateJobCommand).de(de_InitiateJobCommand).build() {
1893
- static {
1894
- __name(this, "InitiateJobCommand");
1895
- }
418
+ const se_DeleteVaultNotificationsCommand = async (input, context) => {
419
+ const b = core.requestBuilder(input, context);
420
+ const headers = {};
421
+ b.bp("/{accountId}/vaults/{vaultName}/notification-configuration");
422
+ b.p("accountId", () => input.accountId, "{accountId}", false);
423
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
424
+ let body;
425
+ b.m("DELETE").h(headers).b(body);
426
+ return b.build();
1896
427
  };
1897
-
1898
- // src/commands/InitiateMultipartUploadCommand.ts
1899
-
1900
-
1901
-
1902
- var InitiateMultipartUploadCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1903
- return [
1904
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1905
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1906
- ];
1907
- }).s("Glacier", "InitiateMultipartUpload", {}).n("GlacierClient", "InitiateMultipartUploadCommand").f(void 0, void 0).ser(se_InitiateMultipartUploadCommand).de(de_InitiateMultipartUploadCommand).build() {
1908
- static {
1909
- __name(this, "InitiateMultipartUploadCommand");
1910
- }
428
+ const se_DescribeJobCommand = async (input, context) => {
429
+ const b = core.requestBuilder(input, context);
430
+ const headers = {};
431
+ b.bp("/{accountId}/vaults/{vaultName}/jobs/{jobId}");
432
+ b.p("accountId", () => input.accountId, "{accountId}", false);
433
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
434
+ b.p("jobId", () => input.jobId, "{jobId}", false);
435
+ let body;
436
+ b.m("GET").h(headers).b(body);
437
+ return b.build();
1911
438
  };
1912
-
1913
- // src/commands/InitiateVaultLockCommand.ts
1914
-
1915
-
1916
-
1917
- var InitiateVaultLockCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1918
- return [
1919
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1920
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1921
- ];
1922
- }).s("Glacier", "InitiateVaultLock", {}).n("GlacierClient", "InitiateVaultLockCommand").f(void 0, void 0).ser(se_InitiateVaultLockCommand).de(de_InitiateVaultLockCommand).build() {
1923
- static {
1924
- __name(this, "InitiateVaultLockCommand");
1925
- }
439
+ const se_DescribeVaultCommand = async (input, context) => {
440
+ const b = core.requestBuilder(input, context);
441
+ const headers = {};
442
+ b.bp("/{accountId}/vaults/{vaultName}");
443
+ b.p("accountId", () => input.accountId, "{accountId}", false);
444
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
445
+ let body;
446
+ b.m("GET").h(headers).b(body);
447
+ return b.build();
1926
448
  };
1927
-
1928
- // src/commands/ListJobsCommand.ts
1929
-
1930
-
1931
-
1932
- var ListJobsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1933
- return [
1934
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1935
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1936
- ];
1937
- }).s("Glacier", "ListJobs", {}).n("GlacierClient", "ListJobsCommand").f(void 0, void 0).ser(se_ListJobsCommand).de(de_ListJobsCommand).build() {
1938
- static {
1939
- __name(this, "ListJobsCommand");
1940
- }
449
+ const se_GetDataRetrievalPolicyCommand = async (input, context) => {
450
+ const b = core.requestBuilder(input, context);
451
+ const headers = {};
452
+ b.bp("/{accountId}/policies/data-retrieval");
453
+ b.p("accountId", () => input.accountId, "{accountId}", false);
454
+ let body;
455
+ b.m("GET").h(headers).b(body);
456
+ return b.build();
1941
457
  };
1942
-
1943
- // src/commands/ListMultipartUploadsCommand.ts
1944
-
1945
-
1946
-
1947
- var ListMultipartUploadsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1948
- return [
1949
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1950
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1951
- ];
1952
- }).s("Glacier", "ListMultipartUploads", {}).n("GlacierClient", "ListMultipartUploadsCommand").f(void 0, void 0).ser(se_ListMultipartUploadsCommand).de(de_ListMultipartUploadsCommand).build() {
1953
- static {
1954
- __name(this, "ListMultipartUploadsCommand");
1955
- }
458
+ const se_GetJobOutputCommand = async (input, context) => {
459
+ const b = core.requestBuilder(input, context);
460
+ const headers = smithyClient.map({}, smithyClient.isSerializableHeaderValue, {
461
+ [_r]: input[_r],
462
+ });
463
+ b.bp("/{accountId}/vaults/{vaultName}/jobs/{jobId}/output");
464
+ b.p("accountId", () => input.accountId, "{accountId}", false);
465
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
466
+ b.p("jobId", () => input.jobId, "{jobId}", false);
467
+ let body;
468
+ b.m("GET").h(headers).b(body);
469
+ return b.build();
1956
470
  };
1957
-
1958
- // src/commands/ListPartsCommand.ts
1959
-
1960
-
1961
-
1962
- var ListPartsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1963
- return [
1964
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1965
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1966
- ];
1967
- }).s("Glacier", "ListParts", {}).n("GlacierClient", "ListPartsCommand").f(void 0, void 0).ser(se_ListPartsCommand).de(de_ListPartsCommand).build() {
1968
- static {
1969
- __name(this, "ListPartsCommand");
1970
- }
471
+ const se_GetVaultAccessPolicyCommand = async (input, context) => {
472
+ const b = core.requestBuilder(input, context);
473
+ const headers = {};
474
+ b.bp("/{accountId}/vaults/{vaultName}/access-policy");
475
+ b.p("accountId", () => input.accountId, "{accountId}", false);
476
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
477
+ let body;
478
+ b.m("GET").h(headers).b(body);
479
+ return b.build();
1971
480
  };
1972
-
1973
- // src/commands/ListProvisionedCapacityCommand.ts
1974
-
1975
-
1976
-
1977
- var ListProvisionedCapacityCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1978
- return [
1979
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1980
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1981
- ];
1982
- }).s("Glacier", "ListProvisionedCapacity", {}).n("GlacierClient", "ListProvisionedCapacityCommand").f(void 0, void 0).ser(se_ListProvisionedCapacityCommand).de(de_ListProvisionedCapacityCommand).build() {
1983
- static {
1984
- __name(this, "ListProvisionedCapacityCommand");
1985
- }
481
+ const se_GetVaultLockCommand = async (input, context) => {
482
+ const b = core.requestBuilder(input, context);
483
+ const headers = {};
484
+ b.bp("/{accountId}/vaults/{vaultName}/lock-policy");
485
+ b.p("accountId", () => input.accountId, "{accountId}", false);
486
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
487
+ let body;
488
+ b.m("GET").h(headers).b(body);
489
+ return b.build();
1986
490
  };
1987
-
1988
- // src/commands/ListTagsForVaultCommand.ts
1989
-
1990
-
1991
-
1992
- var ListTagsForVaultCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1993
- return [
1994
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1995
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1996
- ];
1997
- }).s("Glacier", "ListTagsForVault", {}).n("GlacierClient", "ListTagsForVaultCommand").f(void 0, void 0).ser(se_ListTagsForVaultCommand).de(de_ListTagsForVaultCommand).build() {
1998
- static {
1999
- __name(this, "ListTagsForVaultCommand");
2000
- }
491
+ const se_GetVaultNotificationsCommand = async (input, context) => {
492
+ const b = core.requestBuilder(input, context);
493
+ const headers = {};
494
+ b.bp("/{accountId}/vaults/{vaultName}/notification-configuration");
495
+ b.p("accountId", () => input.accountId, "{accountId}", false);
496
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
497
+ let body;
498
+ b.m("GET").h(headers).b(body);
499
+ return b.build();
2001
500
  };
2002
-
2003
- // src/commands/ListVaultsCommand.ts
2004
-
2005
-
2006
-
2007
- var ListVaultsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2008
- return [
2009
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2010
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2011
- ];
2012
- }).s("Glacier", "ListVaults", {}).n("GlacierClient", "ListVaultsCommand").f(void 0, void 0).ser(se_ListVaultsCommand).de(de_ListVaultsCommand).build() {
2013
- static {
2014
- __name(this, "ListVaultsCommand");
2015
- }
501
+ const se_InitiateJobCommand = async (input, context) => {
502
+ const b = core.requestBuilder(input, context);
503
+ const headers = {
504
+ "content-type": "application/json",
505
+ };
506
+ b.bp("/{accountId}/vaults/{vaultName}/jobs");
507
+ b.p("accountId", () => input.accountId, "{accountId}", false);
508
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
509
+ let body;
510
+ if (input.jobParameters !== undefined) {
511
+ body = smithyClient._json(input.jobParameters);
512
+ }
513
+ if (body === undefined) {
514
+ body = {};
515
+ }
516
+ body = JSON.stringify(body);
517
+ b.m("POST").h(headers).b(body);
518
+ return b.build();
2016
519
  };
2017
-
2018
- // src/commands/PurchaseProvisionedCapacityCommand.ts
2019
-
2020
-
2021
-
2022
- var PurchaseProvisionedCapacityCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2023
- return [
2024
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2025
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2026
- ];
2027
- }).s("Glacier", "PurchaseProvisionedCapacity", {}).n("GlacierClient", "PurchaseProvisionedCapacityCommand").f(void 0, void 0).ser(se_PurchaseProvisionedCapacityCommand).de(de_PurchaseProvisionedCapacityCommand).build() {
2028
- static {
2029
- __name(this, "PurchaseProvisionedCapacityCommand");
2030
- }
520
+ const se_InitiateMultipartUploadCommand = async (input, context) => {
521
+ const b = core.requestBuilder(input, context);
522
+ const headers = smithyClient.map({}, smithyClient.isSerializableHeaderValue, {
523
+ [_xaad]: input[_aD],
524
+ [_xaps]: input[_pS],
525
+ });
526
+ b.bp("/{accountId}/vaults/{vaultName}/multipart-uploads");
527
+ b.p("accountId", () => input.accountId, "{accountId}", false);
528
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
529
+ let body;
530
+ b.m("POST").h(headers).b(body);
531
+ return b.build();
2031
532
  };
2032
-
2033
- // src/commands/RemoveTagsFromVaultCommand.ts
2034
-
2035
-
2036
-
2037
- var RemoveTagsFromVaultCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2038
- return [
2039
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2040
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2041
- ];
2042
- }).s("Glacier", "RemoveTagsFromVault", {}).n("GlacierClient", "RemoveTagsFromVaultCommand").f(void 0, void 0).ser(se_RemoveTagsFromVaultCommand).de(de_RemoveTagsFromVaultCommand).build() {
2043
- static {
2044
- __name(this, "RemoveTagsFromVaultCommand");
2045
- }
533
+ const se_InitiateVaultLockCommand = async (input, context) => {
534
+ const b = core.requestBuilder(input, context);
535
+ const headers = {
536
+ "content-type": "application/json",
537
+ };
538
+ b.bp("/{accountId}/vaults/{vaultName}/lock-policy");
539
+ b.p("accountId", () => input.accountId, "{accountId}", false);
540
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
541
+ let body;
542
+ if (input.policy !== undefined) {
543
+ body = smithyClient._json(input.policy);
544
+ }
545
+ if (body === undefined) {
546
+ body = {};
547
+ }
548
+ body = JSON.stringify(body);
549
+ b.m("POST").h(headers).b(body);
550
+ return b.build();
2046
551
  };
2047
-
2048
- // src/commands/SetDataRetrievalPolicyCommand.ts
2049
-
2050
-
2051
-
2052
- var SetDataRetrievalPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2053
- return [
2054
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2055
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2056
- ];
2057
- }).s("Glacier", "SetDataRetrievalPolicy", {}).n("GlacierClient", "SetDataRetrievalPolicyCommand").f(void 0, void 0).ser(se_SetDataRetrievalPolicyCommand).de(de_SetDataRetrievalPolicyCommand).build() {
2058
- static {
2059
- __name(this, "SetDataRetrievalPolicyCommand");
2060
- }
552
+ const se_ListJobsCommand = async (input, context) => {
553
+ const b = core.requestBuilder(input, context);
554
+ const headers = {};
555
+ b.bp("/{accountId}/vaults/{vaultName}/jobs");
556
+ b.p("accountId", () => input.accountId, "{accountId}", false);
557
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
558
+ const query = smithyClient.map({
559
+ [_l]: [() => input.limit !== void 0, () => input[_l].toString()],
560
+ [_m]: [, input[_m]],
561
+ [_s]: [, input[_s]],
562
+ [_co]: [, input[_co]],
563
+ });
564
+ let body;
565
+ b.m("GET").h(headers).q(query).b(body);
566
+ return b.build();
2061
567
  };
2062
-
2063
- // src/commands/SetVaultAccessPolicyCommand.ts
2064
-
2065
-
2066
-
2067
- var SetVaultAccessPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2068
- return [
2069
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2070
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2071
- ];
2072
- }).s("Glacier", "SetVaultAccessPolicy", {}).n("GlacierClient", "SetVaultAccessPolicyCommand").f(void 0, void 0).ser(se_SetVaultAccessPolicyCommand).de(de_SetVaultAccessPolicyCommand).build() {
2073
- static {
2074
- __name(this, "SetVaultAccessPolicyCommand");
2075
- }
568
+ const se_ListMultipartUploadsCommand = async (input, context) => {
569
+ const b = core.requestBuilder(input, context);
570
+ const headers = {};
571
+ b.bp("/{accountId}/vaults/{vaultName}/multipart-uploads");
572
+ b.p("accountId", () => input.accountId, "{accountId}", false);
573
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
574
+ const query = smithyClient.map({
575
+ [_l]: [() => input.limit !== void 0, () => input[_l].toString()],
576
+ [_m]: [, input[_m]],
577
+ });
578
+ let body;
579
+ b.m("GET").h(headers).q(query).b(body);
580
+ return b.build();
2076
581
  };
2077
-
2078
- // src/commands/SetVaultNotificationsCommand.ts
2079
-
2080
-
2081
-
2082
- var SetVaultNotificationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2083
- return [
2084
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2085
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2086
- ];
2087
- }).s("Glacier", "SetVaultNotifications", {}).n("GlacierClient", "SetVaultNotificationsCommand").f(void 0, void 0).ser(se_SetVaultNotificationsCommand).de(de_SetVaultNotificationsCommand).build() {
2088
- static {
2089
- __name(this, "SetVaultNotificationsCommand");
2090
- }
582
+ const se_ListPartsCommand = async (input, context) => {
583
+ const b = core.requestBuilder(input, context);
584
+ const headers = {};
585
+ b.bp("/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}");
586
+ b.p("accountId", () => input.accountId, "{accountId}", false);
587
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
588
+ b.p("uploadId", () => input.uploadId, "{uploadId}", false);
589
+ const query = smithyClient.map({
590
+ [_m]: [, input[_m]],
591
+ [_l]: [() => input.limit !== void 0, () => input[_l].toString()],
592
+ });
593
+ let body;
594
+ b.m("GET").h(headers).q(query).b(body);
595
+ return b.build();
2091
596
  };
2092
-
2093
- // src/commands/UploadArchiveCommand.ts
2094
-
2095
-
2096
-
2097
- var UploadArchiveCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2098
- return [
2099
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2100
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2101
- ];
2102
- }).s("Glacier", "UploadArchive", {}).n("GlacierClient", "UploadArchiveCommand").f(UploadArchiveInputFilterSensitiveLog, void 0).ser(se_UploadArchiveCommand).de(de_UploadArchiveCommand).build() {
2103
- static {
2104
- __name(this, "UploadArchiveCommand");
2105
- }
597
+ const se_ListProvisionedCapacityCommand = async (input, context) => {
598
+ const b = core.requestBuilder(input, context);
599
+ const headers = {};
600
+ b.bp("/{accountId}/provisioned-capacity");
601
+ b.p("accountId", () => input.accountId, "{accountId}", false);
602
+ let body;
603
+ b.m("GET").h(headers).b(body);
604
+ return b.build();
2106
605
  };
2107
-
2108
- // src/commands/UploadMultipartPartCommand.ts
2109
-
2110
-
2111
-
2112
- var UploadMultipartPartCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2113
- return [
2114
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2115
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2116
- ];
2117
- }).s("Glacier", "UploadMultipartPart", {}).n("GlacierClient", "UploadMultipartPartCommand").f(UploadMultipartPartInputFilterSensitiveLog, void 0).ser(se_UploadMultipartPartCommand).de(de_UploadMultipartPartCommand).build() {
2118
- static {
2119
- __name(this, "UploadMultipartPartCommand");
2120
- }
606
+ const se_ListTagsForVaultCommand = async (input, context) => {
607
+ const b = core.requestBuilder(input, context);
608
+ const headers = {};
609
+ b.bp("/{accountId}/vaults/{vaultName}/tags");
610
+ b.p("accountId", () => input.accountId, "{accountId}", false);
611
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
612
+ let body;
613
+ b.m("GET").h(headers).b(body);
614
+ return b.build();
2121
615
  };
616
+ const se_ListVaultsCommand = async (input, context) => {
617
+ const b = core.requestBuilder(input, context);
618
+ const headers = {};
619
+ b.bp("/{accountId}/vaults");
620
+ b.p("accountId", () => input.accountId, "{accountId}", false);
621
+ const query = smithyClient.map({
622
+ [_m]: [, input[_m]],
623
+ [_l]: [() => input.limit !== void 0, () => input[_l].toString()],
624
+ });
625
+ let body;
626
+ b.m("GET").h(headers).q(query).b(body);
627
+ return b.build();
628
+ };
629
+ const se_PurchaseProvisionedCapacityCommand = async (input, context) => {
630
+ const b = core.requestBuilder(input, context);
631
+ const headers = {};
632
+ b.bp("/{accountId}/provisioned-capacity");
633
+ b.p("accountId", () => input.accountId, "{accountId}", false);
634
+ let body;
635
+ b.m("POST").h(headers).b(body);
636
+ return b.build();
637
+ };
638
+ const se_RemoveTagsFromVaultCommand = async (input, context) => {
639
+ const b = core.requestBuilder(input, context);
640
+ const headers = {
641
+ "content-type": "application/json",
642
+ };
643
+ b.bp("/{accountId}/vaults/{vaultName}/tags");
644
+ b.p("accountId", () => input.accountId, "{accountId}", false);
645
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
646
+ const query = smithyClient.map({
647
+ [_o]: [, "remove"],
648
+ });
649
+ let body;
650
+ body = JSON.stringify(smithyClient.take(input, {
651
+ TagKeys: (_) => smithyClient._json(_),
652
+ }));
653
+ b.m("POST").h(headers).q(query).b(body);
654
+ return b.build();
655
+ };
656
+ const se_SetDataRetrievalPolicyCommand = async (input, context) => {
657
+ const b = core.requestBuilder(input, context);
658
+ const headers = {
659
+ "content-type": "application/json",
660
+ };
661
+ b.bp("/{accountId}/policies/data-retrieval");
662
+ b.p("accountId", () => input.accountId, "{accountId}", false);
663
+ let body;
664
+ body = JSON.stringify(smithyClient.take(input, {
665
+ Policy: (_) => smithyClient._json(_),
666
+ }));
667
+ b.m("PUT").h(headers).b(body);
668
+ return b.build();
669
+ };
670
+ const se_SetVaultAccessPolicyCommand = async (input, context) => {
671
+ const b = core.requestBuilder(input, context);
672
+ const headers = {
673
+ "content-type": "application/json",
674
+ };
675
+ b.bp("/{accountId}/vaults/{vaultName}/access-policy");
676
+ b.p("accountId", () => input.accountId, "{accountId}", false);
677
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
678
+ let body;
679
+ if (input.policy !== undefined) {
680
+ body = smithyClient._json(input.policy);
681
+ }
682
+ if (body === undefined) {
683
+ body = {};
684
+ }
685
+ body = JSON.stringify(body);
686
+ b.m("PUT").h(headers).b(body);
687
+ return b.build();
688
+ };
689
+ const se_SetVaultNotificationsCommand = async (input, context) => {
690
+ const b = core.requestBuilder(input, context);
691
+ const headers = {
692
+ "content-type": "application/json",
693
+ };
694
+ b.bp("/{accountId}/vaults/{vaultName}/notification-configuration");
695
+ b.p("accountId", () => input.accountId, "{accountId}", false);
696
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
697
+ let body;
698
+ if (input.vaultNotificationConfig !== undefined) {
699
+ body = smithyClient._json(input.vaultNotificationConfig);
700
+ }
701
+ if (body === undefined) {
702
+ body = {};
703
+ }
704
+ body = JSON.stringify(body);
705
+ b.m("PUT").h(headers).b(body);
706
+ return b.build();
707
+ };
708
+ const se_UploadArchiveCommand = async (input, context) => {
709
+ const b = core.requestBuilder(input, context);
710
+ const headers = smithyClient.map({}, smithyClient.isSerializableHeaderValue, {
711
+ "content-type": "application/octet-stream",
712
+ [_xaad]: input[_aD],
713
+ [_xasth]: input[_c],
714
+ });
715
+ b.bp("/{accountId}/vaults/{vaultName}/archives");
716
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
717
+ b.p("accountId", () => input.accountId, "{accountId}", false);
718
+ let body;
719
+ if (input.body !== undefined) {
720
+ body = input.body;
721
+ }
722
+ b.m("POST").h(headers).b(body);
723
+ return b.build();
724
+ };
725
+ const se_UploadMultipartPartCommand = async (input, context) => {
726
+ const b = core.requestBuilder(input, context);
727
+ const headers = smithyClient.map({}, smithyClient.isSerializableHeaderValue, {
728
+ "content-type": "application/octet-stream",
729
+ [_xasth]: input[_c],
730
+ [_cr]: input[_r],
731
+ });
732
+ b.bp("/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}");
733
+ b.p("accountId", () => input.accountId, "{accountId}", false);
734
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
735
+ b.p("uploadId", () => input.uploadId, "{uploadId}", false);
736
+ let body;
737
+ if (input.body !== undefined) {
738
+ body = input.body;
739
+ }
740
+ b.m("PUT").h(headers).b(body);
741
+ return b.build();
742
+ };
743
+ const de_AbortMultipartUploadCommand = async (output, context) => {
744
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
745
+ return de_CommandError(output, context);
746
+ }
747
+ const contents = smithyClient.map({
748
+ $metadata: deserializeMetadata(output),
749
+ });
750
+ await smithyClient.collectBody(output.body, context);
751
+ return contents;
752
+ };
753
+ const de_AbortVaultLockCommand = async (output, context) => {
754
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
755
+ return de_CommandError(output, context);
756
+ }
757
+ const contents = smithyClient.map({
758
+ $metadata: deserializeMetadata(output),
759
+ });
760
+ await smithyClient.collectBody(output.body, context);
761
+ return contents;
762
+ };
763
+ const de_AddTagsToVaultCommand = async (output, context) => {
764
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
765
+ return de_CommandError(output, context);
766
+ }
767
+ const contents = smithyClient.map({
768
+ $metadata: deserializeMetadata(output),
769
+ });
770
+ await smithyClient.collectBody(output.body, context);
771
+ return contents;
772
+ };
773
+ const de_CompleteMultipartUploadCommand = async (output, context) => {
774
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
775
+ return de_CommandError(output, context);
776
+ }
777
+ const contents = smithyClient.map({
778
+ $metadata: deserializeMetadata(output),
779
+ [_lo]: [, output.headers[_lo]],
780
+ [_c]: [, output.headers[_xasth]],
781
+ [_aI]: [, output.headers[_xaai]],
782
+ });
783
+ await smithyClient.collectBody(output.body, context);
784
+ return contents;
785
+ };
786
+ const de_CompleteVaultLockCommand = async (output, context) => {
787
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
788
+ return de_CommandError(output, context);
789
+ }
790
+ const contents = smithyClient.map({
791
+ $metadata: deserializeMetadata(output),
792
+ });
793
+ await smithyClient.collectBody(output.body, context);
794
+ return contents;
795
+ };
796
+ const de_CreateVaultCommand = async (output, context) => {
797
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
798
+ return de_CommandError(output, context);
799
+ }
800
+ const contents = smithyClient.map({
801
+ $metadata: deserializeMetadata(output),
802
+ [_lo]: [, output.headers[_lo]],
803
+ });
804
+ await smithyClient.collectBody(output.body, context);
805
+ return contents;
806
+ };
807
+ const de_DeleteArchiveCommand = async (output, context) => {
808
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
809
+ return de_CommandError(output, context);
810
+ }
811
+ const contents = smithyClient.map({
812
+ $metadata: deserializeMetadata(output),
813
+ });
814
+ await smithyClient.collectBody(output.body, context);
815
+ return contents;
816
+ };
817
+ const de_DeleteVaultCommand = async (output, context) => {
818
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
819
+ return de_CommandError(output, context);
820
+ }
821
+ const contents = smithyClient.map({
822
+ $metadata: deserializeMetadata(output),
823
+ });
824
+ await smithyClient.collectBody(output.body, context);
825
+ return contents;
826
+ };
827
+ const de_DeleteVaultAccessPolicyCommand = async (output, context) => {
828
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
829
+ return de_CommandError(output, context);
830
+ }
831
+ const contents = smithyClient.map({
832
+ $metadata: deserializeMetadata(output),
833
+ });
834
+ await smithyClient.collectBody(output.body, context);
835
+ return contents;
836
+ };
837
+ const de_DeleteVaultNotificationsCommand = async (output, context) => {
838
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
839
+ return de_CommandError(output, context);
840
+ }
841
+ const contents = smithyClient.map({
842
+ $metadata: deserializeMetadata(output),
843
+ });
844
+ await smithyClient.collectBody(output.body, context);
845
+ return contents;
846
+ };
847
+ const de_DescribeJobCommand = async (output, context) => {
848
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
849
+ return de_CommandError(output, context);
850
+ }
851
+ const contents = smithyClient.map({
852
+ $metadata: deserializeMetadata(output),
853
+ });
854
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
855
+ const doc = smithyClient.take(data, {
856
+ Action: smithyClient.expectString,
857
+ ArchiveId: smithyClient.expectString,
858
+ ArchiveSHA256TreeHash: smithyClient.expectString,
859
+ ArchiveSizeInBytes: smithyClient.expectLong,
860
+ Completed: smithyClient.expectBoolean,
861
+ CompletionDate: smithyClient.expectString,
862
+ CreationDate: smithyClient.expectString,
863
+ InventoryRetrievalParameters: smithyClient._json,
864
+ InventorySizeInBytes: smithyClient.expectLong,
865
+ JobDescription: smithyClient.expectString,
866
+ JobId: smithyClient.expectString,
867
+ JobOutputPath: smithyClient.expectString,
868
+ OutputLocation: smithyClient._json,
869
+ RetrievalByteRange: smithyClient.expectString,
870
+ SHA256TreeHash: smithyClient.expectString,
871
+ SNSTopic: smithyClient.expectString,
872
+ SelectParameters: smithyClient._json,
873
+ StatusCode: smithyClient.expectString,
874
+ StatusMessage: smithyClient.expectString,
875
+ Tier: smithyClient.expectString,
876
+ VaultARN: smithyClient.expectString,
877
+ });
878
+ Object.assign(contents, doc);
879
+ return contents;
880
+ };
881
+ const de_DescribeVaultCommand = async (output, context) => {
882
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
883
+ return de_CommandError(output, context);
884
+ }
885
+ const contents = smithyClient.map({
886
+ $metadata: deserializeMetadata(output),
887
+ });
888
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
889
+ const doc = smithyClient.take(data, {
890
+ CreationDate: smithyClient.expectString,
891
+ LastInventoryDate: smithyClient.expectString,
892
+ NumberOfArchives: smithyClient.expectLong,
893
+ SizeInBytes: smithyClient.expectLong,
894
+ VaultARN: smithyClient.expectString,
895
+ VaultName: smithyClient.expectString,
896
+ });
897
+ Object.assign(contents, doc);
898
+ return contents;
899
+ };
900
+ const de_GetDataRetrievalPolicyCommand = async (output, context) => {
901
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
902
+ return de_CommandError(output, context);
903
+ }
904
+ const contents = smithyClient.map({
905
+ $metadata: deserializeMetadata(output),
906
+ });
907
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
908
+ const doc = smithyClient.take(data, {
909
+ Policy: smithyClient._json,
910
+ });
911
+ Object.assign(contents, doc);
912
+ return contents;
913
+ };
914
+ const de_GetJobOutputCommand = async (output, context) => {
915
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
916
+ return de_CommandError(output, context);
917
+ }
918
+ const contents = smithyClient.map({
919
+ $metadata: deserializeMetadata(output),
920
+ [_c]: [, output.headers[_xasth]],
921
+ [_cR]: [, output.headers[_cr]],
922
+ [_aR]: [, output.headers[_ar]],
923
+ [_cT]: [, output.headers[_ct]],
924
+ [_aD]: [, output.headers[_xaad]],
925
+ });
926
+ const data = output.body;
927
+ context.sdkStreamMixin(data);
928
+ contents.body = data;
929
+ smithyClient.map(contents, {
930
+ status: [, output.statusCode],
931
+ });
932
+ return contents;
933
+ };
934
+ const de_GetVaultAccessPolicyCommand = async (output, context) => {
935
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
936
+ return de_CommandError(output, context);
937
+ }
938
+ const contents = smithyClient.map({
939
+ $metadata: deserializeMetadata(output),
940
+ });
941
+ const data = smithyClient.expectObject(await core$1.parseJsonBody(output.body, context));
942
+ contents.policy = smithyClient._json(data);
943
+ return contents;
944
+ };
945
+ const de_GetVaultLockCommand = async (output, context) => {
946
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
947
+ return de_CommandError(output, context);
948
+ }
949
+ const contents = smithyClient.map({
950
+ $metadata: deserializeMetadata(output),
951
+ });
952
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
953
+ const doc = smithyClient.take(data, {
954
+ CreationDate: smithyClient.expectString,
955
+ ExpirationDate: smithyClient.expectString,
956
+ Policy: smithyClient.expectString,
957
+ State: smithyClient.expectString,
958
+ });
959
+ Object.assign(contents, doc);
960
+ return contents;
961
+ };
962
+ const de_GetVaultNotificationsCommand = async (output, context) => {
963
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
964
+ return de_CommandError(output, context);
965
+ }
966
+ const contents = smithyClient.map({
967
+ $metadata: deserializeMetadata(output),
968
+ });
969
+ const data = smithyClient.expectObject(await core$1.parseJsonBody(output.body, context));
970
+ contents.vaultNotificationConfig = smithyClient._json(data);
971
+ return contents;
972
+ };
973
+ const de_InitiateJobCommand = async (output, context) => {
974
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
975
+ return de_CommandError(output, context);
976
+ }
977
+ const contents = smithyClient.map({
978
+ $metadata: deserializeMetadata(output),
979
+ [_lo]: [, output.headers[_lo]],
980
+ [_jI]: [, output.headers[_xaji]],
981
+ [_jOP]: [, output.headers[_xajop]],
982
+ });
983
+ await smithyClient.collectBody(output.body, context);
984
+ return contents;
985
+ };
986
+ const de_InitiateMultipartUploadCommand = async (output, context) => {
987
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
988
+ return de_CommandError(output, context);
989
+ }
990
+ const contents = smithyClient.map({
991
+ $metadata: deserializeMetadata(output),
992
+ [_lo]: [, output.headers[_lo]],
993
+ [_uI]: [, output.headers[_xamui]],
994
+ });
995
+ await smithyClient.collectBody(output.body, context);
996
+ return contents;
997
+ };
998
+ const de_InitiateVaultLockCommand = async (output, context) => {
999
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
1000
+ return de_CommandError(output, context);
1001
+ }
1002
+ const contents = smithyClient.map({
1003
+ $metadata: deserializeMetadata(output),
1004
+ [_lI]: [, output.headers[_xali]],
1005
+ });
1006
+ await smithyClient.collectBody(output.body, context);
1007
+ return contents;
1008
+ };
1009
+ const de_ListJobsCommand = async (output, context) => {
1010
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1011
+ return de_CommandError(output, context);
1012
+ }
1013
+ const contents = smithyClient.map({
1014
+ $metadata: deserializeMetadata(output),
1015
+ });
1016
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1017
+ const doc = smithyClient.take(data, {
1018
+ JobList: smithyClient._json,
1019
+ Marker: smithyClient.expectString,
1020
+ });
1021
+ Object.assign(contents, doc);
1022
+ return contents;
1023
+ };
1024
+ const de_ListMultipartUploadsCommand = async (output, context) => {
1025
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1026
+ return de_CommandError(output, context);
1027
+ }
1028
+ const contents = smithyClient.map({
1029
+ $metadata: deserializeMetadata(output),
1030
+ });
1031
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1032
+ const doc = smithyClient.take(data, {
1033
+ Marker: smithyClient.expectString,
1034
+ UploadsList: smithyClient._json,
1035
+ });
1036
+ Object.assign(contents, doc);
1037
+ return contents;
1038
+ };
1039
+ const de_ListPartsCommand = async (output, context) => {
1040
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1041
+ return de_CommandError(output, context);
1042
+ }
1043
+ const contents = smithyClient.map({
1044
+ $metadata: deserializeMetadata(output),
1045
+ });
1046
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1047
+ const doc = smithyClient.take(data, {
1048
+ ArchiveDescription: smithyClient.expectString,
1049
+ CreationDate: smithyClient.expectString,
1050
+ Marker: smithyClient.expectString,
1051
+ MultipartUploadId: smithyClient.expectString,
1052
+ PartSizeInBytes: smithyClient.expectLong,
1053
+ Parts: smithyClient._json,
1054
+ VaultARN: smithyClient.expectString,
1055
+ });
1056
+ Object.assign(contents, doc);
1057
+ return contents;
1058
+ };
1059
+ const de_ListProvisionedCapacityCommand = async (output, context) => {
1060
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1061
+ return de_CommandError(output, context);
1062
+ }
1063
+ const contents = smithyClient.map({
1064
+ $metadata: deserializeMetadata(output),
1065
+ });
1066
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1067
+ const doc = smithyClient.take(data, {
1068
+ ProvisionedCapacityList: smithyClient._json,
1069
+ });
1070
+ Object.assign(contents, doc);
1071
+ return contents;
1072
+ };
1073
+ const de_ListTagsForVaultCommand = async (output, context) => {
1074
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1075
+ return de_CommandError(output, context);
1076
+ }
1077
+ const contents = smithyClient.map({
1078
+ $metadata: deserializeMetadata(output),
1079
+ });
1080
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1081
+ const doc = smithyClient.take(data, {
1082
+ Tags: smithyClient._json,
1083
+ });
1084
+ Object.assign(contents, doc);
1085
+ return contents;
1086
+ };
1087
+ const de_ListVaultsCommand = async (output, context) => {
1088
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1089
+ return de_CommandError(output, context);
1090
+ }
1091
+ const contents = smithyClient.map({
1092
+ $metadata: deserializeMetadata(output),
1093
+ });
1094
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1095
+ const doc = smithyClient.take(data, {
1096
+ Marker: smithyClient.expectString,
1097
+ VaultList: smithyClient._json,
1098
+ });
1099
+ Object.assign(contents, doc);
1100
+ return contents;
1101
+ };
1102
+ const de_PurchaseProvisionedCapacityCommand = async (output, context) => {
1103
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
1104
+ return de_CommandError(output, context);
1105
+ }
1106
+ const contents = smithyClient.map({
1107
+ $metadata: deserializeMetadata(output),
1108
+ [_cI]: [, output.headers[_xaci]],
1109
+ });
1110
+ await smithyClient.collectBody(output.body, context);
1111
+ return contents;
1112
+ };
1113
+ const de_RemoveTagsFromVaultCommand = async (output, context) => {
1114
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1115
+ return de_CommandError(output, context);
1116
+ }
1117
+ const contents = smithyClient.map({
1118
+ $metadata: deserializeMetadata(output),
1119
+ });
1120
+ await smithyClient.collectBody(output.body, context);
1121
+ return contents;
1122
+ };
1123
+ const de_SetDataRetrievalPolicyCommand = async (output, context) => {
1124
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1125
+ return de_CommandError(output, context);
1126
+ }
1127
+ const contents = smithyClient.map({
1128
+ $metadata: deserializeMetadata(output),
1129
+ });
1130
+ await smithyClient.collectBody(output.body, context);
1131
+ return contents;
1132
+ };
1133
+ const de_SetVaultAccessPolicyCommand = async (output, context) => {
1134
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1135
+ return de_CommandError(output, context);
1136
+ }
1137
+ const contents = smithyClient.map({
1138
+ $metadata: deserializeMetadata(output),
1139
+ });
1140
+ await smithyClient.collectBody(output.body, context);
1141
+ return contents;
1142
+ };
1143
+ const de_SetVaultNotificationsCommand = async (output, context) => {
1144
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1145
+ return de_CommandError(output, context);
1146
+ }
1147
+ const contents = smithyClient.map({
1148
+ $metadata: deserializeMetadata(output),
1149
+ });
1150
+ await smithyClient.collectBody(output.body, context);
1151
+ return contents;
1152
+ };
1153
+ const de_UploadArchiveCommand = async (output, context) => {
1154
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
1155
+ return de_CommandError(output, context);
1156
+ }
1157
+ const contents = smithyClient.map({
1158
+ $metadata: deserializeMetadata(output),
1159
+ [_lo]: [, output.headers[_lo]],
1160
+ [_c]: [, output.headers[_xasth]],
1161
+ [_aI]: [, output.headers[_xaai]],
1162
+ });
1163
+ await smithyClient.collectBody(output.body, context);
1164
+ return contents;
1165
+ };
1166
+ const de_UploadMultipartPartCommand = async (output, context) => {
1167
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1168
+ return de_CommandError(output, context);
1169
+ }
1170
+ const contents = smithyClient.map({
1171
+ $metadata: deserializeMetadata(output),
1172
+ [_c]: [, output.headers[_xasth]],
1173
+ });
1174
+ await smithyClient.collectBody(output.body, context);
1175
+ return contents;
1176
+ };
1177
+ const de_CommandError = async (output, context) => {
1178
+ const parsedOutput = {
1179
+ ...output,
1180
+ body: await core$1.parseJsonErrorBody(output.body, context),
1181
+ };
1182
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
1183
+ switch (errorCode) {
1184
+ case "InvalidParameterValueException":
1185
+ case "com.amazonaws.glacier#InvalidParameterValueException":
1186
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput);
1187
+ case "MissingParameterValueException":
1188
+ case "com.amazonaws.glacier#MissingParameterValueException":
1189
+ throw await de_MissingParameterValueExceptionRes(parsedOutput);
1190
+ case "ResourceNotFoundException":
1191
+ case "com.amazonaws.glacier#ResourceNotFoundException":
1192
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput);
1193
+ case "ServiceUnavailableException":
1194
+ case "com.amazonaws.glacier#ServiceUnavailableException":
1195
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput);
1196
+ case "LimitExceededException":
1197
+ case "com.amazonaws.glacier#LimitExceededException":
1198
+ throw await de_LimitExceededExceptionRes(parsedOutput);
1199
+ case "InsufficientCapacityException":
1200
+ case "com.amazonaws.glacier#InsufficientCapacityException":
1201
+ throw await de_InsufficientCapacityExceptionRes(parsedOutput);
1202
+ case "PolicyEnforcedException":
1203
+ case "com.amazonaws.glacier#PolicyEnforcedException":
1204
+ throw await de_PolicyEnforcedExceptionRes(parsedOutput);
1205
+ case "RequestTimeoutException":
1206
+ case "com.amazonaws.glacier#RequestTimeoutException":
1207
+ throw await de_RequestTimeoutExceptionRes(parsedOutput);
1208
+ default:
1209
+ const parsedBody = parsedOutput.body;
1210
+ return throwDefaultError({
1211
+ output,
1212
+ parsedBody,
1213
+ errorCode,
1214
+ });
1215
+ }
1216
+ };
1217
+ const throwDefaultError = smithyClient.withBaseException(GlacierServiceException);
1218
+ const de_InsufficientCapacityExceptionRes = async (parsedOutput, context) => {
1219
+ const contents = smithyClient.map({});
1220
+ const data = parsedOutput.body;
1221
+ const doc = smithyClient.take(data, {
1222
+ code: smithyClient.expectString,
1223
+ message: smithyClient.expectString,
1224
+ type: smithyClient.expectString,
1225
+ });
1226
+ Object.assign(contents, doc);
1227
+ const exception = new InsufficientCapacityException({
1228
+ $metadata: deserializeMetadata(parsedOutput),
1229
+ ...contents,
1230
+ });
1231
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1232
+ };
1233
+ const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
1234
+ const contents = smithyClient.map({});
1235
+ const data = parsedOutput.body;
1236
+ const doc = smithyClient.take(data, {
1237
+ code: smithyClient.expectString,
1238
+ message: smithyClient.expectString,
1239
+ type: smithyClient.expectString,
1240
+ });
1241
+ Object.assign(contents, doc);
1242
+ const exception = new InvalidParameterValueException({
1243
+ $metadata: deserializeMetadata(parsedOutput),
1244
+ ...contents,
1245
+ });
1246
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1247
+ };
1248
+ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1249
+ const contents = smithyClient.map({});
1250
+ const data = parsedOutput.body;
1251
+ const doc = smithyClient.take(data, {
1252
+ code: smithyClient.expectString,
1253
+ message: smithyClient.expectString,
1254
+ type: smithyClient.expectString,
1255
+ });
1256
+ Object.assign(contents, doc);
1257
+ const exception = new LimitExceededException({
1258
+ $metadata: deserializeMetadata(parsedOutput),
1259
+ ...contents,
1260
+ });
1261
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1262
+ };
1263
+ const de_MissingParameterValueExceptionRes = async (parsedOutput, context) => {
1264
+ const contents = smithyClient.map({});
1265
+ const data = parsedOutput.body;
1266
+ const doc = smithyClient.take(data, {
1267
+ code: smithyClient.expectString,
1268
+ message: smithyClient.expectString,
1269
+ type: smithyClient.expectString,
1270
+ });
1271
+ Object.assign(contents, doc);
1272
+ const exception = new MissingParameterValueException({
1273
+ $metadata: deserializeMetadata(parsedOutput),
1274
+ ...contents,
1275
+ });
1276
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1277
+ };
1278
+ const de_PolicyEnforcedExceptionRes = async (parsedOutput, context) => {
1279
+ const contents = smithyClient.map({});
1280
+ const data = parsedOutput.body;
1281
+ const doc = smithyClient.take(data, {
1282
+ code: smithyClient.expectString,
1283
+ message: smithyClient.expectString,
1284
+ type: smithyClient.expectString,
1285
+ });
1286
+ Object.assign(contents, doc);
1287
+ const exception = new PolicyEnforcedException({
1288
+ $metadata: deserializeMetadata(parsedOutput),
1289
+ ...contents,
1290
+ });
1291
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1292
+ };
1293
+ const de_RequestTimeoutExceptionRes = async (parsedOutput, context) => {
1294
+ const contents = smithyClient.map({});
1295
+ const data = parsedOutput.body;
1296
+ const doc = smithyClient.take(data, {
1297
+ code: smithyClient.expectString,
1298
+ message: smithyClient.expectString,
1299
+ type: smithyClient.expectString,
1300
+ });
1301
+ Object.assign(contents, doc);
1302
+ const exception = new RequestTimeoutException({
1303
+ $metadata: deserializeMetadata(parsedOutput),
1304
+ ...contents,
1305
+ });
1306
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1307
+ };
1308
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1309
+ const contents = smithyClient.map({});
1310
+ const data = parsedOutput.body;
1311
+ const doc = smithyClient.take(data, {
1312
+ code: smithyClient.expectString,
1313
+ message: smithyClient.expectString,
1314
+ type: smithyClient.expectString,
1315
+ });
1316
+ Object.assign(contents, doc);
1317
+ const exception = new ResourceNotFoundException({
1318
+ $metadata: deserializeMetadata(parsedOutput),
1319
+ ...contents,
1320
+ });
1321
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1322
+ };
1323
+ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
1324
+ const contents = smithyClient.map({});
1325
+ const data = parsedOutput.body;
1326
+ const doc = smithyClient.take(data, {
1327
+ code: smithyClient.expectString,
1328
+ message: smithyClient.expectString,
1329
+ type: smithyClient.expectString,
1330
+ });
1331
+ Object.assign(contents, doc);
1332
+ const exception = new ServiceUnavailableException({
1333
+ $metadata: deserializeMetadata(parsedOutput),
1334
+ ...contents,
1335
+ });
1336
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1337
+ };
1338
+ const deserializeMetadata = (output) => ({
1339
+ httpStatusCode: output.statusCode,
1340
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1341
+ extendedRequestId: output.headers["x-amz-id-2"],
1342
+ cfId: output.headers["x-amz-cf-id"],
1343
+ });
1344
+ const _aD = "archiveDescription";
1345
+ const _aI = "archiveId";
1346
+ const _aR = "acceptRanges";
1347
+ const _aS = "archiveSize";
1348
+ const _ar = "accept-ranges";
1349
+ const _c = "checksum";
1350
+ const _cI = "capacityId";
1351
+ const _cR = "contentRange";
1352
+ const _cT = "contentType";
1353
+ const _co = "completed";
1354
+ const _cr = "content-range";
1355
+ const _ct = "content-type";
1356
+ const _jI = "jobId";
1357
+ const _jOP = "jobOutputPath";
1358
+ const _l = "limit";
1359
+ const _lI = "lockId";
1360
+ const _lo = "location";
1361
+ const _m = "marker";
1362
+ const _o = "operation";
1363
+ const _pS = "partSize";
1364
+ const _r = "range";
1365
+ const _s = "statuscode";
1366
+ const _uI = "uploadId";
1367
+ const _xaad = "x-amz-archive-description";
1368
+ const _xaai = "x-amz-archive-id";
1369
+ const _xaas = "x-amz-archive-size";
1370
+ const _xaci = "x-amz-capacity-id";
1371
+ const _xaji = "x-amz-job-id";
1372
+ const _xajop = "x-amz-job-output-path";
1373
+ const _xali = "x-amz-lock-id";
1374
+ const _xamui = "x-amz-multipart-upload-id";
1375
+ const _xaps = "x-amz-part-size";
1376
+ const _xasth = "x-amz-sha256-tree-hash";
1377
+
1378
+ class AbortMultipartUploadCommand extends smithyClient.Command
1379
+ .classBuilder()
1380
+ .ep(commonParams)
1381
+ .m(function (Command, cs, config, o) {
1382
+ return [
1383
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1384
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1385
+ ];
1386
+ })
1387
+ .s("Glacier", "AbortMultipartUpload", {})
1388
+ .n("GlacierClient", "AbortMultipartUploadCommand")
1389
+ .f(void 0, void 0)
1390
+ .ser(se_AbortMultipartUploadCommand)
1391
+ .de(de_AbortMultipartUploadCommand)
1392
+ .build() {
1393
+ }
1394
+
1395
+ class AbortVaultLockCommand extends smithyClient.Command
1396
+ .classBuilder()
1397
+ .ep(commonParams)
1398
+ .m(function (Command, cs, config, o) {
1399
+ return [
1400
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1401
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1402
+ ];
1403
+ })
1404
+ .s("Glacier", "AbortVaultLock", {})
1405
+ .n("GlacierClient", "AbortVaultLockCommand")
1406
+ .f(void 0, void 0)
1407
+ .ser(se_AbortVaultLockCommand)
1408
+ .de(de_AbortVaultLockCommand)
1409
+ .build() {
1410
+ }
1411
+
1412
+ class AddTagsToVaultCommand extends smithyClient.Command
1413
+ .classBuilder()
1414
+ .ep(commonParams)
1415
+ .m(function (Command, cs, config, o) {
1416
+ return [
1417
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1418
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1419
+ ];
1420
+ })
1421
+ .s("Glacier", "AddTagsToVault", {})
1422
+ .n("GlacierClient", "AddTagsToVaultCommand")
1423
+ .f(void 0, void 0)
1424
+ .ser(se_AddTagsToVaultCommand)
1425
+ .de(de_AddTagsToVaultCommand)
1426
+ .build() {
1427
+ }
1428
+
1429
+ class CompleteMultipartUploadCommand extends smithyClient.Command
1430
+ .classBuilder()
1431
+ .ep(commonParams)
1432
+ .m(function (Command, cs, config, o) {
1433
+ return [
1434
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1435
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1436
+ ];
1437
+ })
1438
+ .s("Glacier", "CompleteMultipartUpload", {})
1439
+ .n("GlacierClient", "CompleteMultipartUploadCommand")
1440
+ .f(void 0, void 0)
1441
+ .ser(se_CompleteMultipartUploadCommand)
1442
+ .de(de_CompleteMultipartUploadCommand)
1443
+ .build() {
1444
+ }
1445
+
1446
+ class CompleteVaultLockCommand extends smithyClient.Command
1447
+ .classBuilder()
1448
+ .ep(commonParams)
1449
+ .m(function (Command, cs, config, o) {
1450
+ return [
1451
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1452
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1453
+ ];
1454
+ })
1455
+ .s("Glacier", "CompleteVaultLock", {})
1456
+ .n("GlacierClient", "CompleteVaultLockCommand")
1457
+ .f(void 0, void 0)
1458
+ .ser(se_CompleteVaultLockCommand)
1459
+ .de(de_CompleteVaultLockCommand)
1460
+ .build() {
1461
+ }
1462
+
1463
+ class CreateVaultCommand extends smithyClient.Command
1464
+ .classBuilder()
1465
+ .ep(commonParams)
1466
+ .m(function (Command, cs, config, o) {
1467
+ return [
1468
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1469
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1470
+ ];
1471
+ })
1472
+ .s("Glacier", "CreateVault", {})
1473
+ .n("GlacierClient", "CreateVaultCommand")
1474
+ .f(void 0, void 0)
1475
+ .ser(se_CreateVaultCommand)
1476
+ .de(de_CreateVaultCommand)
1477
+ .build() {
1478
+ }
1479
+
1480
+ class DeleteArchiveCommand extends smithyClient.Command
1481
+ .classBuilder()
1482
+ .ep(commonParams)
1483
+ .m(function (Command, cs, config, o) {
1484
+ return [
1485
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1486
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1487
+ ];
1488
+ })
1489
+ .s("Glacier", "DeleteArchive", {})
1490
+ .n("GlacierClient", "DeleteArchiveCommand")
1491
+ .f(void 0, void 0)
1492
+ .ser(se_DeleteArchiveCommand)
1493
+ .de(de_DeleteArchiveCommand)
1494
+ .build() {
1495
+ }
1496
+
1497
+ class DeleteVaultAccessPolicyCommand extends smithyClient.Command
1498
+ .classBuilder()
1499
+ .ep(commonParams)
1500
+ .m(function (Command, cs, config, o) {
1501
+ return [
1502
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1503
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1504
+ ];
1505
+ })
1506
+ .s("Glacier", "DeleteVaultAccessPolicy", {})
1507
+ .n("GlacierClient", "DeleteVaultAccessPolicyCommand")
1508
+ .f(void 0, void 0)
1509
+ .ser(se_DeleteVaultAccessPolicyCommand)
1510
+ .de(de_DeleteVaultAccessPolicyCommand)
1511
+ .build() {
1512
+ }
1513
+
1514
+ class DeleteVaultCommand extends smithyClient.Command
1515
+ .classBuilder()
1516
+ .ep(commonParams)
1517
+ .m(function (Command, cs, config, o) {
1518
+ return [
1519
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1520
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1521
+ ];
1522
+ })
1523
+ .s("Glacier", "DeleteVault", {})
1524
+ .n("GlacierClient", "DeleteVaultCommand")
1525
+ .f(void 0, void 0)
1526
+ .ser(se_DeleteVaultCommand)
1527
+ .de(de_DeleteVaultCommand)
1528
+ .build() {
1529
+ }
1530
+
1531
+ class DeleteVaultNotificationsCommand extends smithyClient.Command
1532
+ .classBuilder()
1533
+ .ep(commonParams)
1534
+ .m(function (Command, cs, config, o) {
1535
+ return [
1536
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1537
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1538
+ ];
1539
+ })
1540
+ .s("Glacier", "DeleteVaultNotifications", {})
1541
+ .n("GlacierClient", "DeleteVaultNotificationsCommand")
1542
+ .f(void 0, void 0)
1543
+ .ser(se_DeleteVaultNotificationsCommand)
1544
+ .de(de_DeleteVaultNotificationsCommand)
1545
+ .build() {
1546
+ }
1547
+
1548
+ class DescribeJobCommand extends smithyClient.Command
1549
+ .classBuilder()
1550
+ .ep(commonParams)
1551
+ .m(function (Command, cs, config, o) {
1552
+ return [
1553
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1554
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1555
+ ];
1556
+ })
1557
+ .s("Glacier", "DescribeJob", {})
1558
+ .n("GlacierClient", "DescribeJobCommand")
1559
+ .f(void 0, void 0)
1560
+ .ser(se_DescribeJobCommand)
1561
+ .de(de_DescribeJobCommand)
1562
+ .build() {
1563
+ }
1564
+
1565
+ class DescribeVaultCommand extends smithyClient.Command
1566
+ .classBuilder()
1567
+ .ep(commonParams)
1568
+ .m(function (Command, cs, config, o) {
1569
+ return [
1570
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1571
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1572
+ ];
1573
+ })
1574
+ .s("Glacier", "DescribeVault", {})
1575
+ .n("GlacierClient", "DescribeVaultCommand")
1576
+ .f(void 0, void 0)
1577
+ .ser(se_DescribeVaultCommand)
1578
+ .de(de_DescribeVaultCommand)
1579
+ .build() {
1580
+ }
1581
+
1582
+ class GetDataRetrievalPolicyCommand extends smithyClient.Command
1583
+ .classBuilder()
1584
+ .ep(commonParams)
1585
+ .m(function (Command, cs, config, o) {
1586
+ return [
1587
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1588
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1589
+ ];
1590
+ })
1591
+ .s("Glacier", "GetDataRetrievalPolicy", {})
1592
+ .n("GlacierClient", "GetDataRetrievalPolicyCommand")
1593
+ .f(void 0, void 0)
1594
+ .ser(se_GetDataRetrievalPolicyCommand)
1595
+ .de(de_GetDataRetrievalPolicyCommand)
1596
+ .build() {
1597
+ }
1598
+
1599
+ class GetJobOutputCommand extends smithyClient.Command
1600
+ .classBuilder()
1601
+ .ep(commonParams)
1602
+ .m(function (Command, cs, config, o) {
1603
+ return [
1604
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1605
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1606
+ ];
1607
+ })
1608
+ .s("Glacier", "GetJobOutput", {})
1609
+ .n("GlacierClient", "GetJobOutputCommand")
1610
+ .f(void 0, GetJobOutputOutputFilterSensitiveLog)
1611
+ .ser(se_GetJobOutputCommand)
1612
+ .de(de_GetJobOutputCommand)
1613
+ .build() {
1614
+ }
1615
+
1616
+ class GetVaultAccessPolicyCommand extends smithyClient.Command
1617
+ .classBuilder()
1618
+ .ep(commonParams)
1619
+ .m(function (Command, cs, config, o) {
1620
+ return [
1621
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1622
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1623
+ ];
1624
+ })
1625
+ .s("Glacier", "GetVaultAccessPolicy", {})
1626
+ .n("GlacierClient", "GetVaultAccessPolicyCommand")
1627
+ .f(void 0, void 0)
1628
+ .ser(se_GetVaultAccessPolicyCommand)
1629
+ .de(de_GetVaultAccessPolicyCommand)
1630
+ .build() {
1631
+ }
1632
+
1633
+ class GetVaultLockCommand extends smithyClient.Command
1634
+ .classBuilder()
1635
+ .ep(commonParams)
1636
+ .m(function (Command, cs, config, o) {
1637
+ return [
1638
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1639
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1640
+ ];
1641
+ })
1642
+ .s("Glacier", "GetVaultLock", {})
1643
+ .n("GlacierClient", "GetVaultLockCommand")
1644
+ .f(void 0, void 0)
1645
+ .ser(se_GetVaultLockCommand)
1646
+ .de(de_GetVaultLockCommand)
1647
+ .build() {
1648
+ }
1649
+
1650
+ class GetVaultNotificationsCommand extends smithyClient.Command
1651
+ .classBuilder()
1652
+ .ep(commonParams)
1653
+ .m(function (Command, cs, config, o) {
1654
+ return [
1655
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1656
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1657
+ ];
1658
+ })
1659
+ .s("Glacier", "GetVaultNotifications", {})
1660
+ .n("GlacierClient", "GetVaultNotificationsCommand")
1661
+ .f(void 0, void 0)
1662
+ .ser(se_GetVaultNotificationsCommand)
1663
+ .de(de_GetVaultNotificationsCommand)
1664
+ .build() {
1665
+ }
1666
+
1667
+ class InitiateJobCommand extends smithyClient.Command
1668
+ .classBuilder()
1669
+ .ep(commonParams)
1670
+ .m(function (Command, cs, config, o) {
1671
+ return [
1672
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1673
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1674
+ ];
1675
+ })
1676
+ .s("Glacier", "InitiateJob", {})
1677
+ .n("GlacierClient", "InitiateJobCommand")
1678
+ .f(void 0, void 0)
1679
+ .ser(se_InitiateJobCommand)
1680
+ .de(de_InitiateJobCommand)
1681
+ .build() {
1682
+ }
1683
+
1684
+ class InitiateMultipartUploadCommand extends smithyClient.Command
1685
+ .classBuilder()
1686
+ .ep(commonParams)
1687
+ .m(function (Command, cs, config, o) {
1688
+ return [
1689
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1690
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1691
+ ];
1692
+ })
1693
+ .s("Glacier", "InitiateMultipartUpload", {})
1694
+ .n("GlacierClient", "InitiateMultipartUploadCommand")
1695
+ .f(void 0, void 0)
1696
+ .ser(se_InitiateMultipartUploadCommand)
1697
+ .de(de_InitiateMultipartUploadCommand)
1698
+ .build() {
1699
+ }
1700
+
1701
+ class InitiateVaultLockCommand extends smithyClient.Command
1702
+ .classBuilder()
1703
+ .ep(commonParams)
1704
+ .m(function (Command, cs, config, o) {
1705
+ return [
1706
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1707
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1708
+ ];
1709
+ })
1710
+ .s("Glacier", "InitiateVaultLock", {})
1711
+ .n("GlacierClient", "InitiateVaultLockCommand")
1712
+ .f(void 0, void 0)
1713
+ .ser(se_InitiateVaultLockCommand)
1714
+ .de(de_InitiateVaultLockCommand)
1715
+ .build() {
1716
+ }
1717
+
1718
+ class ListJobsCommand extends smithyClient.Command
1719
+ .classBuilder()
1720
+ .ep(commonParams)
1721
+ .m(function (Command, cs, config, o) {
1722
+ return [
1723
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1724
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1725
+ ];
1726
+ })
1727
+ .s("Glacier", "ListJobs", {})
1728
+ .n("GlacierClient", "ListJobsCommand")
1729
+ .f(void 0, void 0)
1730
+ .ser(se_ListJobsCommand)
1731
+ .de(de_ListJobsCommand)
1732
+ .build() {
1733
+ }
1734
+
1735
+ class ListMultipartUploadsCommand extends smithyClient.Command
1736
+ .classBuilder()
1737
+ .ep(commonParams)
1738
+ .m(function (Command, cs, config, o) {
1739
+ return [
1740
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1741
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1742
+ ];
1743
+ })
1744
+ .s("Glacier", "ListMultipartUploads", {})
1745
+ .n("GlacierClient", "ListMultipartUploadsCommand")
1746
+ .f(void 0, void 0)
1747
+ .ser(se_ListMultipartUploadsCommand)
1748
+ .de(de_ListMultipartUploadsCommand)
1749
+ .build() {
1750
+ }
1751
+
1752
+ class ListPartsCommand extends smithyClient.Command
1753
+ .classBuilder()
1754
+ .ep(commonParams)
1755
+ .m(function (Command, cs, config, o) {
1756
+ return [
1757
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1758
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1759
+ ];
1760
+ })
1761
+ .s("Glacier", "ListParts", {})
1762
+ .n("GlacierClient", "ListPartsCommand")
1763
+ .f(void 0, void 0)
1764
+ .ser(se_ListPartsCommand)
1765
+ .de(de_ListPartsCommand)
1766
+ .build() {
1767
+ }
1768
+
1769
+ class ListProvisionedCapacityCommand extends smithyClient.Command
1770
+ .classBuilder()
1771
+ .ep(commonParams)
1772
+ .m(function (Command, cs, config, o) {
1773
+ return [
1774
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1775
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1776
+ ];
1777
+ })
1778
+ .s("Glacier", "ListProvisionedCapacity", {})
1779
+ .n("GlacierClient", "ListProvisionedCapacityCommand")
1780
+ .f(void 0, void 0)
1781
+ .ser(se_ListProvisionedCapacityCommand)
1782
+ .de(de_ListProvisionedCapacityCommand)
1783
+ .build() {
1784
+ }
1785
+
1786
+ class ListTagsForVaultCommand extends smithyClient.Command
1787
+ .classBuilder()
1788
+ .ep(commonParams)
1789
+ .m(function (Command, cs, config, o) {
1790
+ return [
1791
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1792
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1793
+ ];
1794
+ })
1795
+ .s("Glacier", "ListTagsForVault", {})
1796
+ .n("GlacierClient", "ListTagsForVaultCommand")
1797
+ .f(void 0, void 0)
1798
+ .ser(se_ListTagsForVaultCommand)
1799
+ .de(de_ListTagsForVaultCommand)
1800
+ .build() {
1801
+ }
1802
+
1803
+ class ListVaultsCommand extends smithyClient.Command
1804
+ .classBuilder()
1805
+ .ep(commonParams)
1806
+ .m(function (Command, cs, config, o) {
1807
+ return [
1808
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1809
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1810
+ ];
1811
+ })
1812
+ .s("Glacier", "ListVaults", {})
1813
+ .n("GlacierClient", "ListVaultsCommand")
1814
+ .f(void 0, void 0)
1815
+ .ser(se_ListVaultsCommand)
1816
+ .de(de_ListVaultsCommand)
1817
+ .build() {
1818
+ }
1819
+
1820
+ class PurchaseProvisionedCapacityCommand extends smithyClient.Command
1821
+ .classBuilder()
1822
+ .ep(commonParams)
1823
+ .m(function (Command, cs, config, o) {
1824
+ return [
1825
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1826
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1827
+ ];
1828
+ })
1829
+ .s("Glacier", "PurchaseProvisionedCapacity", {})
1830
+ .n("GlacierClient", "PurchaseProvisionedCapacityCommand")
1831
+ .f(void 0, void 0)
1832
+ .ser(se_PurchaseProvisionedCapacityCommand)
1833
+ .de(de_PurchaseProvisionedCapacityCommand)
1834
+ .build() {
1835
+ }
1836
+
1837
+ class RemoveTagsFromVaultCommand extends smithyClient.Command
1838
+ .classBuilder()
1839
+ .ep(commonParams)
1840
+ .m(function (Command, cs, config, o) {
1841
+ return [
1842
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1843
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1844
+ ];
1845
+ })
1846
+ .s("Glacier", "RemoveTagsFromVault", {})
1847
+ .n("GlacierClient", "RemoveTagsFromVaultCommand")
1848
+ .f(void 0, void 0)
1849
+ .ser(se_RemoveTagsFromVaultCommand)
1850
+ .de(de_RemoveTagsFromVaultCommand)
1851
+ .build() {
1852
+ }
1853
+
1854
+ class SetDataRetrievalPolicyCommand extends smithyClient.Command
1855
+ .classBuilder()
1856
+ .ep(commonParams)
1857
+ .m(function (Command, cs, config, o) {
1858
+ return [
1859
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1860
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1861
+ ];
1862
+ })
1863
+ .s("Glacier", "SetDataRetrievalPolicy", {})
1864
+ .n("GlacierClient", "SetDataRetrievalPolicyCommand")
1865
+ .f(void 0, void 0)
1866
+ .ser(se_SetDataRetrievalPolicyCommand)
1867
+ .de(de_SetDataRetrievalPolicyCommand)
1868
+ .build() {
1869
+ }
1870
+
1871
+ class SetVaultAccessPolicyCommand extends smithyClient.Command
1872
+ .classBuilder()
1873
+ .ep(commonParams)
1874
+ .m(function (Command, cs, config, o) {
1875
+ return [
1876
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1877
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1878
+ ];
1879
+ })
1880
+ .s("Glacier", "SetVaultAccessPolicy", {})
1881
+ .n("GlacierClient", "SetVaultAccessPolicyCommand")
1882
+ .f(void 0, void 0)
1883
+ .ser(se_SetVaultAccessPolicyCommand)
1884
+ .de(de_SetVaultAccessPolicyCommand)
1885
+ .build() {
1886
+ }
1887
+
1888
+ class SetVaultNotificationsCommand extends smithyClient.Command
1889
+ .classBuilder()
1890
+ .ep(commonParams)
1891
+ .m(function (Command, cs, config, o) {
1892
+ return [
1893
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1894
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1895
+ ];
1896
+ })
1897
+ .s("Glacier", "SetVaultNotifications", {})
1898
+ .n("GlacierClient", "SetVaultNotificationsCommand")
1899
+ .f(void 0, void 0)
1900
+ .ser(se_SetVaultNotificationsCommand)
1901
+ .de(de_SetVaultNotificationsCommand)
1902
+ .build() {
1903
+ }
1904
+
1905
+ class UploadArchiveCommand extends smithyClient.Command
1906
+ .classBuilder()
1907
+ .ep(commonParams)
1908
+ .m(function (Command, cs, config, o) {
1909
+ return [
1910
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1911
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1912
+ ];
1913
+ })
1914
+ .s("Glacier", "UploadArchive", {})
1915
+ .n("GlacierClient", "UploadArchiveCommand")
1916
+ .f(UploadArchiveInputFilterSensitiveLog, void 0)
1917
+ .ser(se_UploadArchiveCommand)
1918
+ .de(de_UploadArchiveCommand)
1919
+ .build() {
1920
+ }
1921
+
1922
+ class UploadMultipartPartCommand extends smithyClient.Command
1923
+ .classBuilder()
1924
+ .ep(commonParams)
1925
+ .m(function (Command, cs, config, o) {
1926
+ return [
1927
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1928
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1929
+ ];
1930
+ })
1931
+ .s("Glacier", "UploadMultipartPart", {})
1932
+ .n("GlacierClient", "UploadMultipartPartCommand")
1933
+ .f(UploadMultipartPartInputFilterSensitiveLog, void 0)
1934
+ .ser(se_UploadMultipartPartCommand)
1935
+ .de(de_UploadMultipartPartCommand)
1936
+ .build() {
1937
+ }
1938
+
1939
+ const commands = {
1940
+ AbortMultipartUploadCommand,
1941
+ AbortVaultLockCommand,
1942
+ AddTagsToVaultCommand,
1943
+ CompleteMultipartUploadCommand,
1944
+ CompleteVaultLockCommand,
1945
+ CreateVaultCommand,
1946
+ DeleteArchiveCommand,
1947
+ DeleteVaultCommand,
1948
+ DeleteVaultAccessPolicyCommand,
1949
+ DeleteVaultNotificationsCommand,
1950
+ DescribeJobCommand,
1951
+ DescribeVaultCommand,
1952
+ GetDataRetrievalPolicyCommand,
1953
+ GetJobOutputCommand,
1954
+ GetVaultAccessPolicyCommand,
1955
+ GetVaultLockCommand,
1956
+ GetVaultNotificationsCommand,
1957
+ InitiateJobCommand,
1958
+ InitiateMultipartUploadCommand,
1959
+ InitiateVaultLockCommand,
1960
+ ListJobsCommand,
1961
+ ListMultipartUploadsCommand,
1962
+ ListPartsCommand,
1963
+ ListProvisionedCapacityCommand,
1964
+ ListTagsForVaultCommand,
1965
+ ListVaultsCommand,
1966
+ PurchaseProvisionedCapacityCommand,
1967
+ RemoveTagsFromVaultCommand,
1968
+ SetDataRetrievalPolicyCommand,
1969
+ SetVaultAccessPolicyCommand,
1970
+ SetVaultNotificationsCommand,
1971
+ UploadArchiveCommand,
1972
+ UploadMultipartPartCommand,
1973
+ };
1974
+ class Glacier extends GlacierClient {
1975
+ }
1976
+ smithyClient.createAggregatedClient(commands, Glacier);
2122
1977
 
2123
- // src/Glacier.ts
2124
- var commands = {
2125
- AbortMultipartUploadCommand,
2126
- AbortVaultLockCommand,
2127
- AddTagsToVaultCommand,
2128
- CompleteMultipartUploadCommand,
2129
- CompleteVaultLockCommand,
2130
- CreateVaultCommand,
2131
- DeleteArchiveCommand,
2132
- DeleteVaultCommand,
2133
- DeleteVaultAccessPolicyCommand,
2134
- DeleteVaultNotificationsCommand,
2135
- DescribeJobCommand,
2136
- DescribeVaultCommand,
2137
- GetDataRetrievalPolicyCommand,
2138
- GetJobOutputCommand,
2139
- GetVaultAccessPolicyCommand,
2140
- GetVaultLockCommand,
2141
- GetVaultNotificationsCommand,
2142
- InitiateJobCommand,
2143
- InitiateMultipartUploadCommand,
2144
- InitiateVaultLockCommand,
2145
- ListJobsCommand,
2146
- ListMultipartUploadsCommand,
2147
- ListPartsCommand,
2148
- ListProvisionedCapacityCommand,
2149
- ListTagsForVaultCommand,
2150
- ListVaultsCommand,
2151
- PurchaseProvisionedCapacityCommand,
2152
- RemoveTagsFromVaultCommand,
2153
- SetDataRetrievalPolicyCommand,
2154
- SetVaultAccessPolicyCommand,
2155
- SetVaultNotificationsCommand,
2156
- UploadArchiveCommand,
2157
- UploadMultipartPartCommand
2158
- };
2159
- var Glacier = class extends GlacierClient {
2160
- static {
2161
- __name(this, "Glacier");
2162
- }
2163
- };
2164
- (0, import_smithy_client.createAggregatedClient)(commands, Glacier);
2165
-
2166
- // src/pagination/ListJobsPaginator.ts
2167
-
2168
- var paginateListJobs = (0, import_core.createPaginator)(GlacierClient, ListJobsCommand, "marker", "Marker", "limit");
2169
-
2170
- // src/pagination/ListMultipartUploadsPaginator.ts
2171
-
2172
- var paginateListMultipartUploads = (0, import_core.createPaginator)(GlacierClient, ListMultipartUploadsCommand, "marker", "Marker", "limit");
2173
-
2174
- // src/pagination/ListPartsPaginator.ts
1978
+ const paginateListJobs = core.createPaginator(GlacierClient, ListJobsCommand, "marker", "Marker", "limit");
2175
1979
 
2176
- var paginateListParts = (0, import_core.createPaginator)(GlacierClient, ListPartsCommand, "marker", "Marker", "limit");
1980
+ const paginateListMultipartUploads = core.createPaginator(GlacierClient, ListMultipartUploadsCommand, "marker", "Marker", "limit");
2177
1981
 
2178
- // src/pagination/ListVaultsPaginator.ts
1982
+ const paginateListParts = core.createPaginator(GlacierClient, ListPartsCommand, "marker", "Marker", "limit");
2179
1983
 
2180
- var paginateListVaults = (0, import_core.createPaginator)(GlacierClient, ListVaultsCommand, "marker", "Marker", "limit");
1984
+ const paginateListVaults = core.createPaginator(GlacierClient, ListVaultsCommand, "marker", "Marker", "limit");
2181
1985
 
2182
- // src/waiters/waitForVaultExists.ts
2183
- var import_util_waiter = require("@smithy/util-waiter");
2184
- var checkState = /* @__PURE__ */ __name(async (client, input) => {
2185
- let reason;
2186
- try {
2187
- const result = await client.send(new DescribeVaultCommand(input));
2188
- reason = result;
2189
- return { state: import_util_waiter.WaiterState.SUCCESS, reason };
2190
- } catch (exception) {
2191
- reason = exception;
2192
- if (exception.name && exception.name == "ResourceNotFoundException") {
2193
- return { state: import_util_waiter.WaiterState.RETRY, reason };
1986
+ const checkState$1 = async (client, input) => {
1987
+ let reason;
1988
+ try {
1989
+ const result = await client.send(new DescribeVaultCommand(input));
1990
+ reason = result;
1991
+ return { state: utilWaiter.WaiterState.SUCCESS, reason };
2194
1992
  }
2195
- }
2196
- return { state: import_util_waiter.WaiterState.RETRY, reason };
2197
- }, "checkState");
2198
- var waitForVaultExists = /* @__PURE__ */ __name(async (params, input) => {
2199
- const serviceDefaults = { minDelay: 3, maxDelay: 120 };
2200
- return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
2201
- }, "waitForVaultExists");
2202
- var waitUntilVaultExists = /* @__PURE__ */ __name(async (params, input) => {
2203
- const serviceDefaults = { minDelay: 3, maxDelay: 120 };
2204
- const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
2205
- return (0, import_util_waiter.checkExceptions)(result);
2206
- }, "waitUntilVaultExists");
2207
-
2208
- // src/waiters/waitForVaultNotExists.ts
1993
+ catch (exception) {
1994
+ reason = exception;
1995
+ if (exception.name && exception.name == "ResourceNotFoundException") {
1996
+ return { state: utilWaiter.WaiterState.RETRY, reason };
1997
+ }
1998
+ }
1999
+ return { state: utilWaiter.WaiterState.RETRY, reason };
2000
+ };
2001
+ const waitForVaultExists = async (params, input) => {
2002
+ const serviceDefaults = { minDelay: 3, maxDelay: 120 };
2003
+ return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
2004
+ };
2005
+ const waitUntilVaultExists = async (params, input) => {
2006
+ const serviceDefaults = { minDelay: 3, maxDelay: 120 };
2007
+ const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
2008
+ return utilWaiter.checkExceptions(result);
2009
+ };
2209
2010
 
2210
- var checkState2 = /* @__PURE__ */ __name(async (client, input) => {
2211
- let reason;
2212
- try {
2213
- const result = await client.send(new DescribeVaultCommand(input));
2214
- reason = result;
2215
- return { state: import_util_waiter.WaiterState.RETRY, reason };
2216
- } catch (exception) {
2217
- reason = exception;
2218
- if (exception.name && exception.name == "ResourceNotFoundException") {
2219
- return { state: import_util_waiter.WaiterState.SUCCESS, reason };
2011
+ const checkState = async (client, input) => {
2012
+ let reason;
2013
+ try {
2014
+ const result = await client.send(new DescribeVaultCommand(input));
2015
+ reason = result;
2016
+ return { state: utilWaiter.WaiterState.RETRY, reason };
2017
+ }
2018
+ catch (exception) {
2019
+ reason = exception;
2020
+ if (exception.name && exception.name == "ResourceNotFoundException") {
2021
+ return { state: utilWaiter.WaiterState.SUCCESS, reason };
2022
+ }
2220
2023
  }
2221
- }
2222
- return { state: import_util_waiter.WaiterState.RETRY, reason };
2223
- }, "checkState");
2224
- var waitForVaultNotExists = /* @__PURE__ */ __name(async (params, input) => {
2225
- const serviceDefaults = { minDelay: 3, maxDelay: 120 };
2226
- return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
2227
- }, "waitForVaultNotExists");
2228
- var waitUntilVaultNotExists = /* @__PURE__ */ __name(async (params, input) => {
2229
- const serviceDefaults = { minDelay: 3, maxDelay: 120 };
2230
- const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
2231
- return (0, import_util_waiter.checkExceptions)(result);
2232
- }, "waitUntilVaultNotExists");
2233
- // Annotate the CommonJS export names for ESM import in node:
2024
+ return { state: utilWaiter.WaiterState.RETRY, reason };
2025
+ };
2026
+ const waitForVaultNotExists = async (params, input) => {
2027
+ const serviceDefaults = { minDelay: 3, maxDelay: 120 };
2028
+ return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
2029
+ };
2030
+ const waitUntilVaultNotExists = async (params, input) => {
2031
+ const serviceDefaults = { minDelay: 3, maxDelay: 120 };
2032
+ const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
2033
+ return utilWaiter.checkExceptions(result);
2034
+ };
2234
2035
 
2235
- 0 && (module.exports = {
2236
- GlacierServiceException,
2237
- __Client,
2238
- GlacierClient,
2239
- Glacier,
2240
- $Command,
2241
- AbortMultipartUploadCommand,
2242
- AbortVaultLockCommand,
2243
- AddTagsToVaultCommand,
2244
- CompleteMultipartUploadCommand,
2245
- CompleteVaultLockCommand,
2246
- CreateVaultCommand,
2247
- DeleteArchiveCommand,
2248
- DeleteVaultAccessPolicyCommand,
2249
- DeleteVaultCommand,
2250
- DeleteVaultNotificationsCommand,
2251
- DescribeJobCommand,
2252
- DescribeVaultCommand,
2253
- GetDataRetrievalPolicyCommand,
2254
- GetJobOutputCommand,
2255
- GetVaultAccessPolicyCommand,
2256
- GetVaultLockCommand,
2257
- GetVaultNotificationsCommand,
2258
- InitiateJobCommand,
2259
- InitiateMultipartUploadCommand,
2260
- InitiateVaultLockCommand,
2261
- ListJobsCommand,
2262
- ListMultipartUploadsCommand,
2263
- ListPartsCommand,
2264
- ListProvisionedCapacityCommand,
2265
- ListTagsForVaultCommand,
2266
- ListVaultsCommand,
2267
- PurchaseProvisionedCapacityCommand,
2268
- RemoveTagsFromVaultCommand,
2269
- SetDataRetrievalPolicyCommand,
2270
- SetVaultAccessPolicyCommand,
2271
- SetVaultNotificationsCommand,
2272
- UploadArchiveCommand,
2273
- UploadMultipartPartCommand,
2274
- paginateListJobs,
2275
- paginateListMultipartUploads,
2276
- paginateListParts,
2277
- paginateListVaults,
2278
- waitForVaultExists,
2279
- waitUntilVaultExists,
2280
- waitForVaultNotExists,
2281
- waitUntilVaultNotExists,
2282
- InvalidParameterValueException,
2283
- MissingParameterValueException,
2284
- ResourceNotFoundException,
2285
- ServiceUnavailableException,
2286
- Type,
2287
- Permission,
2288
- ActionCode,
2289
- LimitExceededException,
2290
- CannedACL,
2291
- FileHeaderInfo,
2292
- QuoteFields,
2293
- EncryptionType,
2294
- StorageClass,
2295
- ExpressionType,
2296
- StatusCode,
2297
- InsufficientCapacityException,
2298
- PolicyEnforcedException,
2299
- RequestTimeoutException,
2300
- GetJobOutputOutputFilterSensitiveLog,
2301
- UploadArchiveInputFilterSensitiveLog,
2302
- UploadMultipartPartInputFilterSensitiveLog
2036
+ Object.defineProperty(exports, "$Command", {
2037
+ enumerable: true,
2038
+ get: function () { return smithyClient.Command; }
2303
2039
  });
2304
-
2040
+ Object.defineProperty(exports, "__Client", {
2041
+ enumerable: true,
2042
+ get: function () { return smithyClient.Client; }
2043
+ });
2044
+ exports.AbortMultipartUploadCommand = AbortMultipartUploadCommand;
2045
+ exports.AbortVaultLockCommand = AbortVaultLockCommand;
2046
+ exports.ActionCode = ActionCode;
2047
+ exports.AddTagsToVaultCommand = AddTagsToVaultCommand;
2048
+ exports.CannedACL = CannedACL;
2049
+ exports.CompleteMultipartUploadCommand = CompleteMultipartUploadCommand;
2050
+ exports.CompleteVaultLockCommand = CompleteVaultLockCommand;
2051
+ exports.CreateVaultCommand = CreateVaultCommand;
2052
+ exports.DeleteArchiveCommand = DeleteArchiveCommand;
2053
+ exports.DeleteVaultAccessPolicyCommand = DeleteVaultAccessPolicyCommand;
2054
+ exports.DeleteVaultCommand = DeleteVaultCommand;
2055
+ exports.DeleteVaultNotificationsCommand = DeleteVaultNotificationsCommand;
2056
+ exports.DescribeJobCommand = DescribeJobCommand;
2057
+ exports.DescribeVaultCommand = DescribeVaultCommand;
2058
+ exports.EncryptionType = EncryptionType;
2059
+ exports.ExpressionType = ExpressionType;
2060
+ exports.FileHeaderInfo = FileHeaderInfo;
2061
+ exports.GetDataRetrievalPolicyCommand = GetDataRetrievalPolicyCommand;
2062
+ exports.GetJobOutputCommand = GetJobOutputCommand;
2063
+ exports.GetJobOutputOutputFilterSensitiveLog = GetJobOutputOutputFilterSensitiveLog;
2064
+ exports.GetVaultAccessPolicyCommand = GetVaultAccessPolicyCommand;
2065
+ exports.GetVaultLockCommand = GetVaultLockCommand;
2066
+ exports.GetVaultNotificationsCommand = GetVaultNotificationsCommand;
2067
+ exports.Glacier = Glacier;
2068
+ exports.GlacierClient = GlacierClient;
2069
+ exports.GlacierServiceException = GlacierServiceException;
2070
+ exports.InitiateJobCommand = InitiateJobCommand;
2071
+ exports.InitiateMultipartUploadCommand = InitiateMultipartUploadCommand;
2072
+ exports.InitiateVaultLockCommand = InitiateVaultLockCommand;
2073
+ exports.InsufficientCapacityException = InsufficientCapacityException;
2074
+ exports.InvalidParameterValueException = InvalidParameterValueException;
2075
+ exports.LimitExceededException = LimitExceededException;
2076
+ exports.ListJobsCommand = ListJobsCommand;
2077
+ exports.ListMultipartUploadsCommand = ListMultipartUploadsCommand;
2078
+ exports.ListPartsCommand = ListPartsCommand;
2079
+ exports.ListProvisionedCapacityCommand = ListProvisionedCapacityCommand;
2080
+ exports.ListTagsForVaultCommand = ListTagsForVaultCommand;
2081
+ exports.ListVaultsCommand = ListVaultsCommand;
2082
+ exports.MissingParameterValueException = MissingParameterValueException;
2083
+ exports.Permission = Permission;
2084
+ exports.PolicyEnforcedException = PolicyEnforcedException;
2085
+ exports.PurchaseProvisionedCapacityCommand = PurchaseProvisionedCapacityCommand;
2086
+ exports.QuoteFields = QuoteFields;
2087
+ exports.RemoveTagsFromVaultCommand = RemoveTagsFromVaultCommand;
2088
+ exports.RequestTimeoutException = RequestTimeoutException;
2089
+ exports.ResourceNotFoundException = ResourceNotFoundException;
2090
+ exports.ServiceUnavailableException = ServiceUnavailableException;
2091
+ exports.SetDataRetrievalPolicyCommand = SetDataRetrievalPolicyCommand;
2092
+ exports.SetVaultAccessPolicyCommand = SetVaultAccessPolicyCommand;
2093
+ exports.SetVaultNotificationsCommand = SetVaultNotificationsCommand;
2094
+ exports.StatusCode = StatusCode;
2095
+ exports.StorageClass = StorageClass;
2096
+ exports.Type = Type;
2097
+ exports.UploadArchiveCommand = UploadArchiveCommand;
2098
+ exports.UploadArchiveInputFilterSensitiveLog = UploadArchiveInputFilterSensitiveLog;
2099
+ exports.UploadMultipartPartCommand = UploadMultipartPartCommand;
2100
+ exports.UploadMultipartPartInputFilterSensitiveLog = UploadMultipartPartInputFilterSensitiveLog;
2101
+ exports.paginateListJobs = paginateListJobs;
2102
+ exports.paginateListMultipartUploads = paginateListMultipartUploads;
2103
+ exports.paginateListParts = paginateListParts;
2104
+ exports.paginateListVaults = paginateListVaults;
2105
+ exports.waitForVaultExists = waitForVaultExists;
2106
+ exports.waitForVaultNotExists = waitForVaultNotExists;
2107
+ exports.waitUntilVaultExists = waitUntilVaultExists;
2108
+ exports.waitUntilVaultNotExists = waitUntilVaultNotExists;