@aws-sdk/client-glacier 3.489.0 → 3.495.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/Glacier.js +1 -77
- package/dist-cjs/GlacierClient.js +1 -45
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +1 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/commands/AbortMultipartUploadCommand.js +1 -28
- package/dist-cjs/commands/AbortVaultLockCommand.js +1 -28
- package/dist-cjs/commands/AddTagsToVaultCommand.js +1 -28
- package/dist-cjs/commands/CompleteMultipartUploadCommand.js +1 -28
- package/dist-cjs/commands/CompleteVaultLockCommand.js +1 -28
- package/dist-cjs/commands/CreateVaultCommand.js +1 -28
- package/dist-cjs/commands/DeleteArchiveCommand.js +1 -28
- package/dist-cjs/commands/DeleteVaultAccessPolicyCommand.js +1 -28
- package/dist-cjs/commands/DeleteVaultCommand.js +1 -28
- package/dist-cjs/commands/DeleteVaultNotificationsCommand.js +1 -28
- package/dist-cjs/commands/DescribeJobCommand.js +1 -28
- package/dist-cjs/commands/DescribeVaultCommand.js +1 -28
- package/dist-cjs/commands/GetDataRetrievalPolicyCommand.js +1 -28
- package/dist-cjs/commands/GetJobOutputCommand.js +1 -29
- package/dist-cjs/commands/GetVaultAccessPolicyCommand.js +1 -28
- package/dist-cjs/commands/GetVaultLockCommand.js +1 -28
- package/dist-cjs/commands/GetVaultNotificationsCommand.js +1 -28
- package/dist-cjs/commands/InitiateJobCommand.js +1 -28
- package/dist-cjs/commands/InitiateMultipartUploadCommand.js +1 -28
- package/dist-cjs/commands/InitiateVaultLockCommand.js +1 -28
- package/dist-cjs/commands/ListJobsCommand.js +1 -28
- package/dist-cjs/commands/ListMultipartUploadsCommand.js +1 -28
- package/dist-cjs/commands/ListPartsCommand.js +1 -28
- package/dist-cjs/commands/ListProvisionedCapacityCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForVaultCommand.js +1 -28
- package/dist-cjs/commands/ListVaultsCommand.js +1 -28
- package/dist-cjs/commands/PurchaseProvisionedCapacityCommand.js +1 -28
- package/dist-cjs/commands/RemoveTagsFromVaultCommand.js +1 -28
- package/dist-cjs/commands/SetDataRetrievalPolicyCommand.js +1 -28
- package/dist-cjs/commands/SetVaultAccessPolicyCommand.js +1 -28
- package/dist-cjs/commands/SetVaultNotificationsCommand.js +1 -28
- package/dist-cjs/commands/UploadArchiveCommand.js +1 -29
- package/dist-cjs/commands/UploadMultipartPartCommand.js +1 -29
- package/dist-cjs/commands/index.js +1 -36
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +3220 -12
- package/dist-cjs/models/GlacierServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -188
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListJobsPaginator.js +1 -7
- package/dist-cjs/pagination/ListMultipartUploadsPaginator.js +1 -7
- package/dist-cjs/pagination/ListPartsPaginator.js +1 -7
- package/dist-cjs/pagination/ListVaultsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -8
- package/dist-cjs/protocols/Aws_restJson1.js +1 -2074
- package/dist-cjs/runtimeConfig.shared.js +10 -0
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/dist-cjs/waiters/index.js +1 -5
- package/dist-cjs/waiters/waitForVaultExists.js +1 -31
- package/dist-cjs/waiters/waitForVaultNotExists.js +1 -31
- package/dist-es/GlacierClient.js +17 -4
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/runtimeConfig.shared.js +10 -0
- package/dist-es/runtimeExtensions.js +3 -0
- package/dist-types/GlacierClient.d.ts +16 -14
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/dist-types/extensionConfiguration.d.ts +2 -1
- package/dist-types/runtimeConfig.browser.d.ts +5 -3
- package/dist-types/runtimeConfig.d.ts +5 -3
- package/dist-types/runtimeConfig.native.d.ts +6 -4
- package/dist-types/runtimeConfig.shared.d.ts +2 -0
- package/dist-types/ts3.4/GlacierClient.d.ts +11 -9
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +3 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -5
- package/dist-types/ts3.4/runtimeConfig.d.ts +5 -5
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -8
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -0
- package/package.json +45 -45
package/dist-cjs/index.js
CHANGED
|
@@ -1,13 +1,3221 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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 src_exports = {};
|
|
23
|
+
__export(src_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(src_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 {
|
|
110
|
+
...options,
|
|
111
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
112
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
113
|
+
defaultSigningName: "glacier"
|
|
114
|
+
};
|
|
115
|
+
}, "resolveClientEndpointParameters");
|
|
116
|
+
var commonParams = {
|
|
117
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
118
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
119
|
+
Region: { type: "builtInParams", name: "region" },
|
|
120
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
// src/GlacierClient.ts
|
|
124
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
125
|
+
|
|
126
|
+
// src/runtimeExtensions.ts
|
|
127
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
128
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
129
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
130
|
+
|
|
131
|
+
// src/auth/httpAuthExtensionConfiguration.ts
|
|
132
|
+
var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
|
|
133
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
134
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
135
|
+
let _credentials = runtimeConfig.credentials;
|
|
136
|
+
return {
|
|
137
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
138
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
139
|
+
if (index === -1) {
|
|
140
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
141
|
+
} else {
|
|
142
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
httpAuthSchemes() {
|
|
146
|
+
return _httpAuthSchemes;
|
|
147
|
+
},
|
|
148
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
149
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
150
|
+
},
|
|
151
|
+
httpAuthSchemeProvider() {
|
|
152
|
+
return _httpAuthSchemeProvider;
|
|
153
|
+
},
|
|
154
|
+
setCredentials(credentials) {
|
|
155
|
+
_credentials = credentials;
|
|
156
|
+
},
|
|
157
|
+
credentials() {
|
|
158
|
+
return _credentials;
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
}, "getHttpAuthExtensionConfiguration");
|
|
162
|
+
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
163
|
+
return {
|
|
164
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
165
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
166
|
+
credentials: config.credentials()
|
|
167
|
+
};
|
|
168
|
+
}, "resolveHttpAuthRuntimeConfig");
|
|
169
|
+
|
|
170
|
+
// src/runtimeExtensions.ts
|
|
171
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
172
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
173
|
+
const extensionConfiguration = {
|
|
174
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
175
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
176
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
|
177
|
+
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig))
|
|
178
|
+
};
|
|
179
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
180
|
+
return {
|
|
181
|
+
...runtimeConfig,
|
|
182
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
183
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
184
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
185
|
+
...resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
186
|
+
};
|
|
187
|
+
}, "resolveRuntimeExtensions");
|
|
188
|
+
|
|
189
|
+
// src/GlacierClient.ts
|
|
190
|
+
var _GlacierClient = class _GlacierClient extends import_smithy_client.Client {
|
|
191
|
+
constructor(...[configuration]) {
|
|
192
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
193
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
194
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
195
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
196
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
197
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
198
|
+
const _config_6 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_5);
|
|
199
|
+
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
200
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
201
|
+
super(_config_8);
|
|
202
|
+
this.config = _config_8;
|
|
203
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
204
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
205
|
+
this.middlewareStack.use((0, import_middleware_sdk_glacier.getGlacierPlugin)(this.config));
|
|
206
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
207
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
208
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
209
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
210
|
+
this.middlewareStack.use(
|
|
211
|
+
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
212
|
+
httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
|
|
213
|
+
identityProviderConfigProvider: this.getIdentityProviderConfigProvider()
|
|
214
|
+
})
|
|
215
|
+
);
|
|
216
|
+
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
220
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
221
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
222
|
+
*/
|
|
223
|
+
destroy() {
|
|
224
|
+
super.destroy();
|
|
225
|
+
}
|
|
226
|
+
getDefaultHttpAuthSchemeParametersProvider() {
|
|
227
|
+
return import_httpAuthSchemeProvider.defaultGlacierHttpAuthSchemeParametersProvider;
|
|
228
|
+
}
|
|
229
|
+
getIdentityProviderConfigProvider() {
|
|
230
|
+
return async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
231
|
+
"aws.auth#sigv4": config.credentials
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
__name(_GlacierClient, "GlacierClient");
|
|
236
|
+
var GlacierClient = _GlacierClient;
|
|
237
|
+
|
|
238
|
+
// src/Glacier.ts
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
// src/commands/AbortMultipartUploadCommand.ts
|
|
242
|
+
|
|
243
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
244
|
+
|
|
245
|
+
var import_types = require("@smithy/types");
|
|
246
|
+
|
|
247
|
+
// src/protocols/Aws_restJson1.ts
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
// src/models/GlacierServiceException.ts
|
|
252
|
+
|
|
253
|
+
var _GlacierServiceException = class _GlacierServiceException extends import_smithy_client.ServiceException {
|
|
254
|
+
/**
|
|
255
|
+
* @internal
|
|
256
|
+
*/
|
|
257
|
+
constructor(options) {
|
|
258
|
+
super(options);
|
|
259
|
+
Object.setPrototypeOf(this, _GlacierServiceException.prototype);
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
__name(_GlacierServiceException, "GlacierServiceException");
|
|
263
|
+
var GlacierServiceException = _GlacierServiceException;
|
|
264
|
+
|
|
265
|
+
// src/models/models_0.ts
|
|
266
|
+
var _InvalidParameterValueException = class _InvalidParameterValueException extends GlacierServiceException {
|
|
267
|
+
/**
|
|
268
|
+
* @internal
|
|
269
|
+
*/
|
|
270
|
+
constructor(opts) {
|
|
271
|
+
super({
|
|
272
|
+
name: "InvalidParameterValueException",
|
|
273
|
+
$fault: "client",
|
|
274
|
+
...opts
|
|
275
|
+
});
|
|
276
|
+
this.name = "InvalidParameterValueException";
|
|
277
|
+
this.$fault = "client";
|
|
278
|
+
Object.setPrototypeOf(this, _InvalidParameterValueException.prototype);
|
|
279
|
+
this.type = opts.type;
|
|
280
|
+
this.code = opts.code;
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
__name(_InvalidParameterValueException, "InvalidParameterValueException");
|
|
284
|
+
var InvalidParameterValueException = _InvalidParameterValueException;
|
|
285
|
+
var _MissingParameterValueException = class _MissingParameterValueException extends GlacierServiceException {
|
|
286
|
+
/**
|
|
287
|
+
* @internal
|
|
288
|
+
*/
|
|
289
|
+
constructor(opts) {
|
|
290
|
+
super({
|
|
291
|
+
name: "MissingParameterValueException",
|
|
292
|
+
$fault: "client",
|
|
293
|
+
...opts
|
|
294
|
+
});
|
|
295
|
+
this.name = "MissingParameterValueException";
|
|
296
|
+
this.$fault = "client";
|
|
297
|
+
Object.setPrototypeOf(this, _MissingParameterValueException.prototype);
|
|
298
|
+
this.type = opts.type;
|
|
299
|
+
this.code = opts.code;
|
|
300
|
+
}
|
|
301
|
+
};
|
|
302
|
+
__name(_MissingParameterValueException, "MissingParameterValueException");
|
|
303
|
+
var MissingParameterValueException = _MissingParameterValueException;
|
|
304
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends GlacierServiceException {
|
|
305
|
+
/**
|
|
306
|
+
* @internal
|
|
307
|
+
*/
|
|
308
|
+
constructor(opts) {
|
|
309
|
+
super({
|
|
310
|
+
name: "ResourceNotFoundException",
|
|
311
|
+
$fault: "client",
|
|
312
|
+
...opts
|
|
313
|
+
});
|
|
314
|
+
this.name = "ResourceNotFoundException";
|
|
315
|
+
this.$fault = "client";
|
|
316
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
317
|
+
this.type = opts.type;
|
|
318
|
+
this.code = opts.code;
|
|
319
|
+
}
|
|
320
|
+
};
|
|
321
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
322
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
323
|
+
var _ServiceUnavailableException = class _ServiceUnavailableException extends GlacierServiceException {
|
|
324
|
+
/**
|
|
325
|
+
* @internal
|
|
326
|
+
*/
|
|
327
|
+
constructor(opts) {
|
|
328
|
+
super({
|
|
329
|
+
name: "ServiceUnavailableException",
|
|
330
|
+
$fault: "server",
|
|
331
|
+
...opts
|
|
332
|
+
});
|
|
333
|
+
this.name = "ServiceUnavailableException";
|
|
334
|
+
this.$fault = "server";
|
|
335
|
+
Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);
|
|
336
|
+
this.type = opts.type;
|
|
337
|
+
this.code = opts.code;
|
|
338
|
+
}
|
|
339
|
+
};
|
|
340
|
+
__name(_ServiceUnavailableException, "ServiceUnavailableException");
|
|
341
|
+
var ServiceUnavailableException = _ServiceUnavailableException;
|
|
342
|
+
var Type = {
|
|
343
|
+
AmazonCustomerByEmail: "AmazonCustomerByEmail",
|
|
344
|
+
CanonicalUser: "CanonicalUser",
|
|
345
|
+
Group: "Group"
|
|
346
|
+
};
|
|
347
|
+
var Permission = {
|
|
348
|
+
FULL_CONTROL: "FULL_CONTROL",
|
|
349
|
+
READ: "READ",
|
|
350
|
+
READ_ACP: "READ_ACP",
|
|
351
|
+
WRITE: "WRITE",
|
|
352
|
+
WRITE_ACP: "WRITE_ACP"
|
|
353
|
+
};
|
|
354
|
+
var ActionCode = {
|
|
355
|
+
ArchiveRetrieval: "ArchiveRetrieval",
|
|
356
|
+
InventoryRetrieval: "InventoryRetrieval",
|
|
357
|
+
Select: "Select"
|
|
358
|
+
};
|
|
359
|
+
var _LimitExceededException = class _LimitExceededException extends GlacierServiceException {
|
|
360
|
+
/**
|
|
361
|
+
* @internal
|
|
362
|
+
*/
|
|
363
|
+
constructor(opts) {
|
|
364
|
+
super({
|
|
365
|
+
name: "LimitExceededException",
|
|
366
|
+
$fault: "client",
|
|
367
|
+
...opts
|
|
368
|
+
});
|
|
369
|
+
this.name = "LimitExceededException";
|
|
370
|
+
this.$fault = "client";
|
|
371
|
+
Object.setPrototypeOf(this, _LimitExceededException.prototype);
|
|
372
|
+
this.type = opts.type;
|
|
373
|
+
this.code = opts.code;
|
|
374
|
+
}
|
|
375
|
+
};
|
|
376
|
+
__name(_LimitExceededException, "LimitExceededException");
|
|
377
|
+
var LimitExceededException = _LimitExceededException;
|
|
378
|
+
var CannedACL = {
|
|
379
|
+
AuthenticatedRead: "authenticated-read",
|
|
380
|
+
AwsExecRead: "aws-exec-read",
|
|
381
|
+
BucketOwnerFullControl: "bucket-owner-full-control",
|
|
382
|
+
BucketOwnerRead: "bucket-owner-read",
|
|
383
|
+
Private: "private",
|
|
384
|
+
PublicRead: "public-read",
|
|
385
|
+
PublicReadWrite: "public-read-write"
|
|
386
|
+
};
|
|
387
|
+
var FileHeaderInfo = {
|
|
388
|
+
Ignore: "IGNORE",
|
|
389
|
+
None: "NONE",
|
|
390
|
+
Use: "USE"
|
|
391
|
+
};
|
|
392
|
+
var QuoteFields = {
|
|
393
|
+
Always: "ALWAYS",
|
|
394
|
+
AsNeeded: "ASNEEDED"
|
|
395
|
+
};
|
|
396
|
+
var EncryptionType = {
|
|
397
|
+
KMS: "aws:kms",
|
|
398
|
+
S3: "AES256"
|
|
399
|
+
};
|
|
400
|
+
var StorageClass = {
|
|
401
|
+
ReducedRedundancy: "REDUCED_REDUNDANCY",
|
|
402
|
+
Standard: "STANDARD",
|
|
403
|
+
StandardInfrequentAccess: "STANDARD_IA"
|
|
404
|
+
};
|
|
405
|
+
var ExpressionType = {
|
|
406
|
+
SQL: "SQL"
|
|
407
|
+
};
|
|
408
|
+
var StatusCode = {
|
|
409
|
+
Failed: "Failed",
|
|
410
|
+
InProgress: "InProgress",
|
|
411
|
+
Succeeded: "Succeeded"
|
|
412
|
+
};
|
|
413
|
+
var _InsufficientCapacityException = class _InsufficientCapacityException extends GlacierServiceException {
|
|
414
|
+
/**
|
|
415
|
+
* @internal
|
|
416
|
+
*/
|
|
417
|
+
constructor(opts) {
|
|
418
|
+
super({
|
|
419
|
+
name: "InsufficientCapacityException",
|
|
420
|
+
$fault: "client",
|
|
421
|
+
...opts
|
|
422
|
+
});
|
|
423
|
+
this.name = "InsufficientCapacityException";
|
|
424
|
+
this.$fault = "client";
|
|
425
|
+
Object.setPrototypeOf(this, _InsufficientCapacityException.prototype);
|
|
426
|
+
this.type = opts.type;
|
|
427
|
+
this.code = opts.code;
|
|
428
|
+
}
|
|
429
|
+
};
|
|
430
|
+
__name(_InsufficientCapacityException, "InsufficientCapacityException");
|
|
431
|
+
var InsufficientCapacityException = _InsufficientCapacityException;
|
|
432
|
+
var _PolicyEnforcedException = class _PolicyEnforcedException extends GlacierServiceException {
|
|
433
|
+
/**
|
|
434
|
+
* @internal
|
|
435
|
+
*/
|
|
436
|
+
constructor(opts) {
|
|
437
|
+
super({
|
|
438
|
+
name: "PolicyEnforcedException",
|
|
439
|
+
$fault: "client",
|
|
440
|
+
...opts
|
|
441
|
+
});
|
|
442
|
+
this.name = "PolicyEnforcedException";
|
|
443
|
+
this.$fault = "client";
|
|
444
|
+
Object.setPrototypeOf(this, _PolicyEnforcedException.prototype);
|
|
445
|
+
this.type = opts.type;
|
|
446
|
+
this.code = opts.code;
|
|
447
|
+
}
|
|
448
|
+
};
|
|
449
|
+
__name(_PolicyEnforcedException, "PolicyEnforcedException");
|
|
450
|
+
var PolicyEnforcedException = _PolicyEnforcedException;
|
|
451
|
+
var _RequestTimeoutException = class _RequestTimeoutException extends GlacierServiceException {
|
|
452
|
+
/**
|
|
453
|
+
* @internal
|
|
454
|
+
*/
|
|
455
|
+
constructor(opts) {
|
|
456
|
+
super({
|
|
457
|
+
name: "RequestTimeoutException",
|
|
458
|
+
$fault: "client",
|
|
459
|
+
...opts
|
|
460
|
+
});
|
|
461
|
+
this.name = "RequestTimeoutException";
|
|
462
|
+
this.$fault = "client";
|
|
463
|
+
Object.setPrototypeOf(this, _RequestTimeoutException.prototype);
|
|
464
|
+
this.type = opts.type;
|
|
465
|
+
this.code = opts.code;
|
|
466
|
+
}
|
|
467
|
+
};
|
|
468
|
+
__name(_RequestTimeoutException, "RequestTimeoutException");
|
|
469
|
+
var RequestTimeoutException = _RequestTimeoutException;
|
|
470
|
+
var GetJobOutputOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
471
|
+
...obj
|
|
472
|
+
}), "GetJobOutputOutputFilterSensitiveLog");
|
|
473
|
+
var UploadArchiveInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
474
|
+
...obj
|
|
475
|
+
}), "UploadArchiveInputFilterSensitiveLog");
|
|
476
|
+
var UploadMultipartPartInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
477
|
+
...obj
|
|
478
|
+
}), "UploadMultipartPartInputFilterSensitiveLog");
|
|
479
|
+
|
|
480
|
+
// src/protocols/Aws_restJson1.ts
|
|
481
|
+
var se_AbortMultipartUploadCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
482
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
483
|
+
const headers = {};
|
|
484
|
+
b.bp("/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}");
|
|
485
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
486
|
+
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
487
|
+
b.p("uploadId", () => input.uploadId, "{uploadId}", false);
|
|
488
|
+
let body;
|
|
489
|
+
b.m("DELETE").h(headers).b(body);
|
|
490
|
+
return b.build();
|
|
491
|
+
}, "se_AbortMultipartUploadCommand");
|
|
492
|
+
var se_AbortVaultLockCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
493
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
494
|
+
const headers = {};
|
|
495
|
+
b.bp("/{accountId}/vaults/{vaultName}/lock-policy");
|
|
496
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
497
|
+
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
498
|
+
let body;
|
|
499
|
+
b.m("DELETE").h(headers).b(body);
|
|
500
|
+
return b.build();
|
|
501
|
+
}, "se_AbortVaultLockCommand");
|
|
502
|
+
var se_AddTagsToVaultCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
503
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
504
|
+
const headers = {
|
|
505
|
+
"content-type": "application/json"
|
|
506
|
+
};
|
|
507
|
+
b.bp("/{accountId}/vaults/{vaultName}/tags");
|
|
508
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
509
|
+
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
510
|
+
const query = (0, import_smithy_client.map)({
|
|
511
|
+
[_o]: [, "add"]
|
|
512
|
+
});
|
|
513
|
+
let body;
|
|
514
|
+
body = JSON.stringify(
|
|
515
|
+
(0, import_smithy_client.take)(input, {
|
|
516
|
+
Tags: (_) => (0, import_smithy_client._json)(_)
|
|
517
|
+
})
|
|
518
|
+
);
|
|
519
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
520
|
+
return b.build();
|
|
521
|
+
}, "se_AddTagsToVaultCommand");
|
|
522
|
+
var se_CompleteMultipartUploadCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
523
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
524
|
+
const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
|
|
525
|
+
[_xaas]: input[_aS],
|
|
526
|
+
[_xasth]: input[_c]
|
|
527
|
+
});
|
|
528
|
+
b.bp("/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}");
|
|
529
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
530
|
+
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
531
|
+
b.p("uploadId", () => input.uploadId, "{uploadId}", false);
|
|
532
|
+
let body;
|
|
533
|
+
b.m("POST").h(headers).b(body);
|
|
534
|
+
return b.build();
|
|
535
|
+
}, "se_CompleteMultipartUploadCommand");
|
|
536
|
+
var se_CompleteVaultLockCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
537
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
538
|
+
const headers = {};
|
|
539
|
+
b.bp("/{accountId}/vaults/{vaultName}/lock-policy/{lockId}");
|
|
540
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
541
|
+
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
542
|
+
b.p("lockId", () => input.lockId, "{lockId}", false);
|
|
543
|
+
let body;
|
|
544
|
+
b.m("POST").h(headers).b(body);
|
|
545
|
+
return b.build();
|
|
546
|
+
}, "se_CompleteVaultLockCommand");
|
|
547
|
+
var se_CreateVaultCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
548
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
549
|
+
const headers = {};
|
|
550
|
+
b.bp("/{accountId}/vaults/{vaultName}");
|
|
551
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
552
|
+
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
553
|
+
let body;
|
|
554
|
+
b.m("PUT").h(headers).b(body);
|
|
555
|
+
return b.build();
|
|
556
|
+
}, "se_CreateVaultCommand");
|
|
557
|
+
var se_DeleteArchiveCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
558
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
559
|
+
const headers = {};
|
|
560
|
+
b.bp("/{accountId}/vaults/{vaultName}/archives/{archiveId}");
|
|
561
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
562
|
+
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
563
|
+
b.p("archiveId", () => input.archiveId, "{archiveId}", false);
|
|
564
|
+
let body;
|
|
565
|
+
b.m("DELETE").h(headers).b(body);
|
|
566
|
+
return b.build();
|
|
567
|
+
}, "se_DeleteArchiveCommand");
|
|
568
|
+
var se_DeleteVaultCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
569
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
570
|
+
const headers = {};
|
|
571
|
+
b.bp("/{accountId}/vaults/{vaultName}");
|
|
572
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
573
|
+
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
574
|
+
let body;
|
|
575
|
+
b.m("DELETE").h(headers).b(body);
|
|
576
|
+
return b.build();
|
|
577
|
+
}, "se_DeleteVaultCommand");
|
|
578
|
+
var se_DeleteVaultAccessPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
579
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
580
|
+
const headers = {};
|
|
581
|
+
b.bp("/{accountId}/vaults/{vaultName}/access-policy");
|
|
582
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
583
|
+
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
584
|
+
let body;
|
|
585
|
+
b.m("DELETE").h(headers).b(body);
|
|
586
|
+
return b.build();
|
|
587
|
+
}, "se_DeleteVaultAccessPolicyCommand");
|
|
588
|
+
var se_DeleteVaultNotificationsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
589
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
590
|
+
const headers = {};
|
|
591
|
+
b.bp("/{accountId}/vaults/{vaultName}/notification-configuration");
|
|
592
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
593
|
+
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
594
|
+
let body;
|
|
595
|
+
b.m("DELETE").h(headers).b(body);
|
|
596
|
+
return b.build();
|
|
597
|
+
}, "se_DeleteVaultNotificationsCommand");
|
|
598
|
+
var se_DescribeJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
599
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
600
|
+
const headers = {};
|
|
601
|
+
b.bp("/{accountId}/vaults/{vaultName}/jobs/{jobId}");
|
|
602
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
603
|
+
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
604
|
+
b.p("jobId", () => input.jobId, "{jobId}", false);
|
|
605
|
+
let body;
|
|
606
|
+
b.m("GET").h(headers).b(body);
|
|
607
|
+
return b.build();
|
|
608
|
+
}, "se_DescribeJobCommand");
|
|
609
|
+
var se_DescribeVaultCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
610
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
611
|
+
const headers = {};
|
|
612
|
+
b.bp("/{accountId}/vaults/{vaultName}");
|
|
613
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
614
|
+
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
615
|
+
let body;
|
|
616
|
+
b.m("GET").h(headers).b(body);
|
|
617
|
+
return b.build();
|
|
618
|
+
}, "se_DescribeVaultCommand");
|
|
619
|
+
var se_GetDataRetrievalPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
620
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
621
|
+
const headers = {};
|
|
622
|
+
b.bp("/{accountId}/policies/data-retrieval");
|
|
623
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
624
|
+
let body;
|
|
625
|
+
b.m("GET").h(headers).b(body);
|
|
626
|
+
return b.build();
|
|
627
|
+
}, "se_GetDataRetrievalPolicyCommand");
|
|
628
|
+
var se_GetJobOutputCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
629
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
630
|
+
const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
|
|
631
|
+
[_r]: input[_r]
|
|
632
|
+
});
|
|
633
|
+
b.bp("/{accountId}/vaults/{vaultName}/jobs/{jobId}/output");
|
|
634
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
635
|
+
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
636
|
+
b.p("jobId", () => input.jobId, "{jobId}", false);
|
|
637
|
+
let body;
|
|
638
|
+
b.m("GET").h(headers).b(body);
|
|
639
|
+
return b.build();
|
|
640
|
+
}, "se_GetJobOutputCommand");
|
|
641
|
+
var se_GetVaultAccessPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
642
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
643
|
+
const headers = {};
|
|
644
|
+
b.bp("/{accountId}/vaults/{vaultName}/access-policy");
|
|
645
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
646
|
+
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
647
|
+
let body;
|
|
648
|
+
b.m("GET").h(headers).b(body);
|
|
649
|
+
return b.build();
|
|
650
|
+
}, "se_GetVaultAccessPolicyCommand");
|
|
651
|
+
var se_GetVaultLockCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
652
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
653
|
+
const headers = {};
|
|
654
|
+
b.bp("/{accountId}/vaults/{vaultName}/lock-policy");
|
|
655
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
656
|
+
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
657
|
+
let body;
|
|
658
|
+
b.m("GET").h(headers).b(body);
|
|
659
|
+
return b.build();
|
|
660
|
+
}, "se_GetVaultLockCommand");
|
|
661
|
+
var se_GetVaultNotificationsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
662
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
663
|
+
const headers = {};
|
|
664
|
+
b.bp("/{accountId}/vaults/{vaultName}/notification-configuration");
|
|
665
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
666
|
+
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
667
|
+
let body;
|
|
668
|
+
b.m("GET").h(headers).b(body);
|
|
669
|
+
return b.build();
|
|
670
|
+
}, "se_GetVaultNotificationsCommand");
|
|
671
|
+
var se_InitiateJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
672
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
673
|
+
const headers = {
|
|
674
|
+
"content-type": "application/json"
|
|
675
|
+
};
|
|
676
|
+
b.bp("/{accountId}/vaults/{vaultName}/jobs");
|
|
677
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
678
|
+
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
679
|
+
let body;
|
|
680
|
+
if (input.jobParameters !== void 0) {
|
|
681
|
+
body = (0, import_smithy_client._json)(input.jobParameters);
|
|
682
|
+
}
|
|
683
|
+
if (body === void 0) {
|
|
684
|
+
body = {};
|
|
685
|
+
}
|
|
686
|
+
body = JSON.stringify(body);
|
|
687
|
+
b.m("POST").h(headers).b(body);
|
|
688
|
+
return b.build();
|
|
689
|
+
}, "se_InitiateJobCommand");
|
|
690
|
+
var se_InitiateMultipartUploadCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
691
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
692
|
+
const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
|
|
693
|
+
[_xaad]: input[_aD],
|
|
694
|
+
[_xaps]: input[_pS]
|
|
695
|
+
});
|
|
696
|
+
b.bp("/{accountId}/vaults/{vaultName}/multipart-uploads");
|
|
697
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
698
|
+
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
699
|
+
let body;
|
|
700
|
+
b.m("POST").h(headers).b(body);
|
|
701
|
+
return b.build();
|
|
702
|
+
}, "se_InitiateMultipartUploadCommand");
|
|
703
|
+
var se_InitiateVaultLockCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
704
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
705
|
+
const headers = {
|
|
706
|
+
"content-type": "application/json"
|
|
707
|
+
};
|
|
708
|
+
b.bp("/{accountId}/vaults/{vaultName}/lock-policy");
|
|
709
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
710
|
+
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
711
|
+
let body;
|
|
712
|
+
if (input.policy !== void 0) {
|
|
713
|
+
body = (0, import_smithy_client._json)(input.policy);
|
|
714
|
+
}
|
|
715
|
+
if (body === void 0) {
|
|
716
|
+
body = {};
|
|
717
|
+
}
|
|
718
|
+
body = JSON.stringify(body);
|
|
719
|
+
b.m("POST").h(headers).b(body);
|
|
720
|
+
return b.build();
|
|
721
|
+
}, "se_InitiateVaultLockCommand");
|
|
722
|
+
var se_ListJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
723
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
724
|
+
const headers = {};
|
|
725
|
+
b.bp("/{accountId}/vaults/{vaultName}/jobs");
|
|
726
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
727
|
+
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
728
|
+
const query = (0, import_smithy_client.map)({
|
|
729
|
+
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
730
|
+
[_m]: [, input[_m]],
|
|
731
|
+
[_s]: [, input[_s]],
|
|
732
|
+
[_co]: [, input[_co]]
|
|
733
|
+
});
|
|
734
|
+
let body;
|
|
735
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
736
|
+
return b.build();
|
|
737
|
+
}, "se_ListJobsCommand");
|
|
738
|
+
var se_ListMultipartUploadsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
739
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
740
|
+
const headers = {};
|
|
741
|
+
b.bp("/{accountId}/vaults/{vaultName}/multipart-uploads");
|
|
742
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
743
|
+
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
744
|
+
const query = (0, import_smithy_client.map)({
|
|
745
|
+
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
746
|
+
[_m]: [, input[_m]]
|
|
747
|
+
});
|
|
748
|
+
let body;
|
|
749
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
750
|
+
return b.build();
|
|
751
|
+
}, "se_ListMultipartUploadsCommand");
|
|
752
|
+
var se_ListPartsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
753
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
754
|
+
const headers = {};
|
|
755
|
+
b.bp("/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}");
|
|
756
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
757
|
+
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
758
|
+
b.p("uploadId", () => input.uploadId, "{uploadId}", false);
|
|
759
|
+
const query = (0, import_smithy_client.map)({
|
|
760
|
+
[_m]: [, input[_m]],
|
|
761
|
+
[_l]: [() => input.limit !== void 0, () => input[_l].toString()]
|
|
762
|
+
});
|
|
763
|
+
let body;
|
|
764
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
765
|
+
return b.build();
|
|
766
|
+
}, "se_ListPartsCommand");
|
|
767
|
+
var se_ListProvisionedCapacityCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
768
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
769
|
+
const headers = {};
|
|
770
|
+
b.bp("/{accountId}/provisioned-capacity");
|
|
771
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
772
|
+
let body;
|
|
773
|
+
b.m("GET").h(headers).b(body);
|
|
774
|
+
return b.build();
|
|
775
|
+
}, "se_ListProvisionedCapacityCommand");
|
|
776
|
+
var se_ListTagsForVaultCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
777
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
778
|
+
const headers = {};
|
|
779
|
+
b.bp("/{accountId}/vaults/{vaultName}/tags");
|
|
780
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
781
|
+
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
782
|
+
let body;
|
|
783
|
+
b.m("GET").h(headers).b(body);
|
|
784
|
+
return b.build();
|
|
785
|
+
}, "se_ListTagsForVaultCommand");
|
|
786
|
+
var se_ListVaultsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
787
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
788
|
+
const headers = {};
|
|
789
|
+
b.bp("/{accountId}/vaults");
|
|
790
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
791
|
+
const query = (0, import_smithy_client.map)({
|
|
792
|
+
[_m]: [, input[_m]],
|
|
793
|
+
[_l]: [() => input.limit !== void 0, () => input[_l].toString()]
|
|
794
|
+
});
|
|
795
|
+
let body;
|
|
796
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
797
|
+
return b.build();
|
|
798
|
+
}, "se_ListVaultsCommand");
|
|
799
|
+
var se_PurchaseProvisionedCapacityCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
800
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
801
|
+
const headers = {};
|
|
802
|
+
b.bp("/{accountId}/provisioned-capacity");
|
|
803
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
804
|
+
let body;
|
|
805
|
+
b.m("POST").h(headers).b(body);
|
|
806
|
+
return b.build();
|
|
807
|
+
}, "se_PurchaseProvisionedCapacityCommand");
|
|
808
|
+
var se_RemoveTagsFromVaultCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
809
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
810
|
+
const headers = {
|
|
811
|
+
"content-type": "application/json"
|
|
812
|
+
};
|
|
813
|
+
b.bp("/{accountId}/vaults/{vaultName}/tags");
|
|
814
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
815
|
+
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
816
|
+
const query = (0, import_smithy_client.map)({
|
|
817
|
+
[_o]: [, "remove"]
|
|
818
|
+
});
|
|
819
|
+
let body;
|
|
820
|
+
body = JSON.stringify(
|
|
821
|
+
(0, import_smithy_client.take)(input, {
|
|
822
|
+
TagKeys: (_) => (0, import_smithy_client._json)(_)
|
|
823
|
+
})
|
|
824
|
+
);
|
|
825
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
826
|
+
return b.build();
|
|
827
|
+
}, "se_RemoveTagsFromVaultCommand");
|
|
828
|
+
var se_SetDataRetrievalPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
829
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
830
|
+
const headers = {
|
|
831
|
+
"content-type": "application/json"
|
|
832
|
+
};
|
|
833
|
+
b.bp("/{accountId}/policies/data-retrieval");
|
|
834
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
835
|
+
let body;
|
|
836
|
+
body = JSON.stringify(
|
|
837
|
+
(0, import_smithy_client.take)(input, {
|
|
838
|
+
Policy: (_) => (0, import_smithy_client._json)(_)
|
|
839
|
+
})
|
|
840
|
+
);
|
|
841
|
+
b.m("PUT").h(headers).b(body);
|
|
842
|
+
return b.build();
|
|
843
|
+
}, "se_SetDataRetrievalPolicyCommand");
|
|
844
|
+
var se_SetVaultAccessPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
845
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
846
|
+
const headers = {
|
|
847
|
+
"content-type": "application/json"
|
|
848
|
+
};
|
|
849
|
+
b.bp("/{accountId}/vaults/{vaultName}/access-policy");
|
|
850
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
851
|
+
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
852
|
+
let body;
|
|
853
|
+
if (input.policy !== void 0) {
|
|
854
|
+
body = (0, import_smithy_client._json)(input.policy);
|
|
855
|
+
}
|
|
856
|
+
if (body === void 0) {
|
|
857
|
+
body = {};
|
|
858
|
+
}
|
|
859
|
+
body = JSON.stringify(body);
|
|
860
|
+
b.m("PUT").h(headers).b(body);
|
|
861
|
+
return b.build();
|
|
862
|
+
}, "se_SetVaultAccessPolicyCommand");
|
|
863
|
+
var se_SetVaultNotificationsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
864
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
865
|
+
const headers = {
|
|
866
|
+
"content-type": "application/json"
|
|
867
|
+
};
|
|
868
|
+
b.bp("/{accountId}/vaults/{vaultName}/notification-configuration");
|
|
869
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
870
|
+
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
871
|
+
let body;
|
|
872
|
+
if (input.vaultNotificationConfig !== void 0) {
|
|
873
|
+
body = (0, import_smithy_client._json)(input.vaultNotificationConfig);
|
|
874
|
+
}
|
|
875
|
+
if (body === void 0) {
|
|
876
|
+
body = {};
|
|
877
|
+
}
|
|
878
|
+
body = JSON.stringify(body);
|
|
879
|
+
b.m("PUT").h(headers).b(body);
|
|
880
|
+
return b.build();
|
|
881
|
+
}, "se_SetVaultNotificationsCommand");
|
|
882
|
+
var se_UploadArchiveCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
883
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
884
|
+
const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
|
|
885
|
+
"content-type": "application/octet-stream",
|
|
886
|
+
[_xaad]: input[_aD],
|
|
887
|
+
[_xasth]: input[_c]
|
|
888
|
+
});
|
|
889
|
+
b.bp("/{accountId}/vaults/{vaultName}/archives");
|
|
890
|
+
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
891
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
892
|
+
let body;
|
|
893
|
+
if (input.body !== void 0) {
|
|
894
|
+
body = input.body;
|
|
895
|
+
}
|
|
896
|
+
b.m("POST").h(headers).b(body);
|
|
897
|
+
return b.build();
|
|
898
|
+
}, "se_UploadArchiveCommand");
|
|
899
|
+
var se_UploadMultipartPartCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
900
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
901
|
+
const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
|
|
902
|
+
"content-type": "application/octet-stream",
|
|
903
|
+
[_xasth]: input[_c],
|
|
904
|
+
[_cr]: input[_r]
|
|
905
|
+
});
|
|
906
|
+
b.bp("/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}");
|
|
907
|
+
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
908
|
+
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
909
|
+
b.p("uploadId", () => input.uploadId, "{uploadId}", false);
|
|
910
|
+
let body;
|
|
911
|
+
if (input.body !== void 0) {
|
|
912
|
+
body = input.body;
|
|
913
|
+
}
|
|
914
|
+
b.m("PUT").h(headers).b(body);
|
|
915
|
+
return b.build();
|
|
916
|
+
}, "se_UploadMultipartPartCommand");
|
|
917
|
+
var de_AbortMultipartUploadCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
918
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
919
|
+
return de_AbortMultipartUploadCommandError(output, context);
|
|
920
|
+
}
|
|
921
|
+
const contents = (0, import_smithy_client.map)({
|
|
922
|
+
$metadata: deserializeMetadata(output)
|
|
923
|
+
});
|
|
924
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
925
|
+
return contents;
|
|
926
|
+
}, "de_AbortMultipartUploadCommand");
|
|
927
|
+
var de_AbortMultipartUploadCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
928
|
+
const parsedOutput = {
|
|
929
|
+
...output,
|
|
930
|
+
body: await parseErrorBody(output.body, context)
|
|
931
|
+
};
|
|
932
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
933
|
+
switch (errorCode) {
|
|
934
|
+
case "InvalidParameterValueException":
|
|
935
|
+
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
936
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
937
|
+
case "MissingParameterValueException":
|
|
938
|
+
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
939
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
940
|
+
case "ResourceNotFoundException":
|
|
941
|
+
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
942
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
943
|
+
case "ServiceUnavailableException":
|
|
944
|
+
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
945
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
946
|
+
default:
|
|
947
|
+
const parsedBody = parsedOutput.body;
|
|
948
|
+
return throwDefaultError({
|
|
949
|
+
output,
|
|
950
|
+
parsedBody,
|
|
951
|
+
errorCode
|
|
952
|
+
});
|
|
953
|
+
}
|
|
954
|
+
}, "de_AbortMultipartUploadCommandError");
|
|
955
|
+
var de_AbortVaultLockCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
956
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
957
|
+
return de_AbortVaultLockCommandError(output, context);
|
|
958
|
+
}
|
|
959
|
+
const contents = (0, import_smithy_client.map)({
|
|
960
|
+
$metadata: deserializeMetadata(output)
|
|
961
|
+
});
|
|
962
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
963
|
+
return contents;
|
|
964
|
+
}, "de_AbortVaultLockCommand");
|
|
965
|
+
var de_AbortVaultLockCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
966
|
+
const parsedOutput = {
|
|
967
|
+
...output,
|
|
968
|
+
body: await parseErrorBody(output.body, context)
|
|
969
|
+
};
|
|
970
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
971
|
+
switch (errorCode) {
|
|
972
|
+
case "InvalidParameterValueException":
|
|
973
|
+
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
974
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
975
|
+
case "MissingParameterValueException":
|
|
976
|
+
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
977
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
978
|
+
case "ResourceNotFoundException":
|
|
979
|
+
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
980
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
981
|
+
case "ServiceUnavailableException":
|
|
982
|
+
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
983
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
984
|
+
default:
|
|
985
|
+
const parsedBody = parsedOutput.body;
|
|
986
|
+
return throwDefaultError({
|
|
987
|
+
output,
|
|
988
|
+
parsedBody,
|
|
989
|
+
errorCode
|
|
990
|
+
});
|
|
991
|
+
}
|
|
992
|
+
}, "de_AbortVaultLockCommandError");
|
|
993
|
+
var de_AddTagsToVaultCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
994
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
995
|
+
return de_AddTagsToVaultCommandError(output, context);
|
|
996
|
+
}
|
|
997
|
+
const contents = (0, import_smithy_client.map)({
|
|
998
|
+
$metadata: deserializeMetadata(output)
|
|
999
|
+
});
|
|
1000
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1001
|
+
return contents;
|
|
1002
|
+
}, "de_AddTagsToVaultCommand");
|
|
1003
|
+
var de_AddTagsToVaultCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1004
|
+
const parsedOutput = {
|
|
1005
|
+
...output,
|
|
1006
|
+
body: await parseErrorBody(output.body, context)
|
|
1007
|
+
};
|
|
1008
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1009
|
+
switch (errorCode) {
|
|
1010
|
+
case "InvalidParameterValueException":
|
|
1011
|
+
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1012
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1013
|
+
case "LimitExceededException":
|
|
1014
|
+
case "com.amazonaws.glacier#LimitExceededException":
|
|
1015
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1016
|
+
case "MissingParameterValueException":
|
|
1017
|
+
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1018
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1019
|
+
case "ResourceNotFoundException":
|
|
1020
|
+
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1021
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1022
|
+
case "ServiceUnavailableException":
|
|
1023
|
+
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1024
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1025
|
+
default:
|
|
1026
|
+
const parsedBody = parsedOutput.body;
|
|
1027
|
+
return throwDefaultError({
|
|
1028
|
+
output,
|
|
1029
|
+
parsedBody,
|
|
1030
|
+
errorCode
|
|
1031
|
+
});
|
|
1032
|
+
}
|
|
1033
|
+
}, "de_AddTagsToVaultCommandError");
|
|
1034
|
+
var de_CompleteMultipartUploadCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1035
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1036
|
+
return de_CompleteMultipartUploadCommandError(output, context);
|
|
1037
|
+
}
|
|
1038
|
+
const contents = (0, import_smithy_client.map)({
|
|
1039
|
+
$metadata: deserializeMetadata(output),
|
|
1040
|
+
[_lo]: [, output.headers[_lo]],
|
|
1041
|
+
[_c]: [, output.headers[_xasth]],
|
|
1042
|
+
[_aI]: [, output.headers[_xaai]]
|
|
1043
|
+
});
|
|
1044
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1045
|
+
return contents;
|
|
1046
|
+
}, "de_CompleteMultipartUploadCommand");
|
|
1047
|
+
var de_CompleteMultipartUploadCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1048
|
+
const parsedOutput = {
|
|
1049
|
+
...output,
|
|
1050
|
+
body: await parseErrorBody(output.body, context)
|
|
1051
|
+
};
|
|
1052
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1053
|
+
switch (errorCode) {
|
|
1054
|
+
case "InvalidParameterValueException":
|
|
1055
|
+
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1056
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1057
|
+
case "MissingParameterValueException":
|
|
1058
|
+
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1059
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1060
|
+
case "ResourceNotFoundException":
|
|
1061
|
+
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1062
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1063
|
+
case "ServiceUnavailableException":
|
|
1064
|
+
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1065
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1066
|
+
default:
|
|
1067
|
+
const parsedBody = parsedOutput.body;
|
|
1068
|
+
return throwDefaultError({
|
|
1069
|
+
output,
|
|
1070
|
+
parsedBody,
|
|
1071
|
+
errorCode
|
|
1072
|
+
});
|
|
1073
|
+
}
|
|
1074
|
+
}, "de_CompleteMultipartUploadCommandError");
|
|
1075
|
+
var de_CompleteVaultLockCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1076
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1077
|
+
return de_CompleteVaultLockCommandError(output, context);
|
|
1078
|
+
}
|
|
1079
|
+
const contents = (0, import_smithy_client.map)({
|
|
1080
|
+
$metadata: deserializeMetadata(output)
|
|
1081
|
+
});
|
|
1082
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1083
|
+
return contents;
|
|
1084
|
+
}, "de_CompleteVaultLockCommand");
|
|
1085
|
+
var de_CompleteVaultLockCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1086
|
+
const parsedOutput = {
|
|
1087
|
+
...output,
|
|
1088
|
+
body: await parseErrorBody(output.body, context)
|
|
1089
|
+
};
|
|
1090
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1091
|
+
switch (errorCode) {
|
|
1092
|
+
case "InvalidParameterValueException":
|
|
1093
|
+
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1094
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1095
|
+
case "MissingParameterValueException":
|
|
1096
|
+
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1097
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1098
|
+
case "ResourceNotFoundException":
|
|
1099
|
+
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1100
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1101
|
+
case "ServiceUnavailableException":
|
|
1102
|
+
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1103
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1104
|
+
default:
|
|
1105
|
+
const parsedBody = parsedOutput.body;
|
|
1106
|
+
return throwDefaultError({
|
|
1107
|
+
output,
|
|
1108
|
+
parsedBody,
|
|
1109
|
+
errorCode
|
|
1110
|
+
});
|
|
1111
|
+
}
|
|
1112
|
+
}, "de_CompleteVaultLockCommandError");
|
|
1113
|
+
var de_CreateVaultCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1114
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1115
|
+
return de_CreateVaultCommandError(output, context);
|
|
1116
|
+
}
|
|
1117
|
+
const contents = (0, import_smithy_client.map)({
|
|
1118
|
+
$metadata: deserializeMetadata(output),
|
|
1119
|
+
[_lo]: [, output.headers[_lo]]
|
|
1120
|
+
});
|
|
1121
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1122
|
+
return contents;
|
|
1123
|
+
}, "de_CreateVaultCommand");
|
|
1124
|
+
var de_CreateVaultCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1125
|
+
const parsedOutput = {
|
|
1126
|
+
...output,
|
|
1127
|
+
body: await parseErrorBody(output.body, context)
|
|
1128
|
+
};
|
|
1129
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1130
|
+
switch (errorCode) {
|
|
1131
|
+
case "InvalidParameterValueException":
|
|
1132
|
+
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1133
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1134
|
+
case "LimitExceededException":
|
|
1135
|
+
case "com.amazonaws.glacier#LimitExceededException":
|
|
1136
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1137
|
+
case "MissingParameterValueException":
|
|
1138
|
+
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1139
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1140
|
+
case "ServiceUnavailableException":
|
|
1141
|
+
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1142
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1143
|
+
default:
|
|
1144
|
+
const parsedBody = parsedOutput.body;
|
|
1145
|
+
return throwDefaultError({
|
|
1146
|
+
output,
|
|
1147
|
+
parsedBody,
|
|
1148
|
+
errorCode
|
|
1149
|
+
});
|
|
1150
|
+
}
|
|
1151
|
+
}, "de_CreateVaultCommandError");
|
|
1152
|
+
var de_DeleteArchiveCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1153
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1154
|
+
return de_DeleteArchiveCommandError(output, context);
|
|
1155
|
+
}
|
|
1156
|
+
const contents = (0, import_smithy_client.map)({
|
|
1157
|
+
$metadata: deserializeMetadata(output)
|
|
1158
|
+
});
|
|
1159
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1160
|
+
return contents;
|
|
1161
|
+
}, "de_DeleteArchiveCommand");
|
|
1162
|
+
var de_DeleteArchiveCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1163
|
+
const parsedOutput = {
|
|
1164
|
+
...output,
|
|
1165
|
+
body: await parseErrorBody(output.body, context)
|
|
1166
|
+
};
|
|
1167
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1168
|
+
switch (errorCode) {
|
|
1169
|
+
case "InvalidParameterValueException":
|
|
1170
|
+
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1171
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1172
|
+
case "MissingParameterValueException":
|
|
1173
|
+
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1174
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1175
|
+
case "ResourceNotFoundException":
|
|
1176
|
+
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1177
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1178
|
+
case "ServiceUnavailableException":
|
|
1179
|
+
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1180
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1181
|
+
default:
|
|
1182
|
+
const parsedBody = parsedOutput.body;
|
|
1183
|
+
return throwDefaultError({
|
|
1184
|
+
output,
|
|
1185
|
+
parsedBody,
|
|
1186
|
+
errorCode
|
|
1187
|
+
});
|
|
1188
|
+
}
|
|
1189
|
+
}, "de_DeleteArchiveCommandError");
|
|
1190
|
+
var de_DeleteVaultCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1191
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1192
|
+
return de_DeleteVaultCommandError(output, context);
|
|
1193
|
+
}
|
|
1194
|
+
const contents = (0, import_smithy_client.map)({
|
|
1195
|
+
$metadata: deserializeMetadata(output)
|
|
1196
|
+
});
|
|
1197
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1198
|
+
return contents;
|
|
1199
|
+
}, "de_DeleteVaultCommand");
|
|
1200
|
+
var de_DeleteVaultCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1201
|
+
const parsedOutput = {
|
|
1202
|
+
...output,
|
|
1203
|
+
body: await parseErrorBody(output.body, context)
|
|
1204
|
+
};
|
|
1205
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1206
|
+
switch (errorCode) {
|
|
1207
|
+
case "InvalidParameterValueException":
|
|
1208
|
+
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1209
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1210
|
+
case "MissingParameterValueException":
|
|
1211
|
+
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1212
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1213
|
+
case "ResourceNotFoundException":
|
|
1214
|
+
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1215
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1216
|
+
case "ServiceUnavailableException":
|
|
1217
|
+
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1218
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1219
|
+
default:
|
|
1220
|
+
const parsedBody = parsedOutput.body;
|
|
1221
|
+
return throwDefaultError({
|
|
1222
|
+
output,
|
|
1223
|
+
parsedBody,
|
|
1224
|
+
errorCode
|
|
1225
|
+
});
|
|
1226
|
+
}
|
|
1227
|
+
}, "de_DeleteVaultCommandError");
|
|
1228
|
+
var de_DeleteVaultAccessPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1229
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1230
|
+
return de_DeleteVaultAccessPolicyCommandError(output, context);
|
|
1231
|
+
}
|
|
1232
|
+
const contents = (0, import_smithy_client.map)({
|
|
1233
|
+
$metadata: deserializeMetadata(output)
|
|
1234
|
+
});
|
|
1235
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1236
|
+
return contents;
|
|
1237
|
+
}, "de_DeleteVaultAccessPolicyCommand");
|
|
1238
|
+
var de_DeleteVaultAccessPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1239
|
+
const parsedOutput = {
|
|
1240
|
+
...output,
|
|
1241
|
+
body: await parseErrorBody(output.body, context)
|
|
1242
|
+
};
|
|
1243
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1244
|
+
switch (errorCode) {
|
|
1245
|
+
case "InvalidParameterValueException":
|
|
1246
|
+
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1247
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1248
|
+
case "MissingParameterValueException":
|
|
1249
|
+
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1250
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1251
|
+
case "ResourceNotFoundException":
|
|
1252
|
+
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1253
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1254
|
+
case "ServiceUnavailableException":
|
|
1255
|
+
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1256
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1257
|
+
default:
|
|
1258
|
+
const parsedBody = parsedOutput.body;
|
|
1259
|
+
return throwDefaultError({
|
|
1260
|
+
output,
|
|
1261
|
+
parsedBody,
|
|
1262
|
+
errorCode
|
|
1263
|
+
});
|
|
1264
|
+
}
|
|
1265
|
+
}, "de_DeleteVaultAccessPolicyCommandError");
|
|
1266
|
+
var de_DeleteVaultNotificationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1267
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1268
|
+
return de_DeleteVaultNotificationsCommandError(output, context);
|
|
1269
|
+
}
|
|
1270
|
+
const contents = (0, import_smithy_client.map)({
|
|
1271
|
+
$metadata: deserializeMetadata(output)
|
|
1272
|
+
});
|
|
1273
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1274
|
+
return contents;
|
|
1275
|
+
}, "de_DeleteVaultNotificationsCommand");
|
|
1276
|
+
var de_DeleteVaultNotificationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1277
|
+
const parsedOutput = {
|
|
1278
|
+
...output,
|
|
1279
|
+
body: await parseErrorBody(output.body, context)
|
|
1280
|
+
};
|
|
1281
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1282
|
+
switch (errorCode) {
|
|
1283
|
+
case "InvalidParameterValueException":
|
|
1284
|
+
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1285
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1286
|
+
case "MissingParameterValueException":
|
|
1287
|
+
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1288
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1289
|
+
case "ResourceNotFoundException":
|
|
1290
|
+
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1291
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1292
|
+
case "ServiceUnavailableException":
|
|
1293
|
+
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1294
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1295
|
+
default:
|
|
1296
|
+
const parsedBody = parsedOutput.body;
|
|
1297
|
+
return throwDefaultError({
|
|
1298
|
+
output,
|
|
1299
|
+
parsedBody,
|
|
1300
|
+
errorCode
|
|
1301
|
+
});
|
|
1302
|
+
}
|
|
1303
|
+
}, "de_DeleteVaultNotificationsCommandError");
|
|
1304
|
+
var de_DescribeJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1305
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1306
|
+
return de_DescribeJobCommandError(output, context);
|
|
1307
|
+
}
|
|
1308
|
+
const contents = (0, import_smithy_client.map)({
|
|
1309
|
+
$metadata: deserializeMetadata(output)
|
|
1310
|
+
});
|
|
1311
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1312
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1313
|
+
Action: import_smithy_client.expectString,
|
|
1314
|
+
ArchiveId: import_smithy_client.expectString,
|
|
1315
|
+
ArchiveSHA256TreeHash: import_smithy_client.expectString,
|
|
1316
|
+
ArchiveSizeInBytes: import_smithy_client.expectLong,
|
|
1317
|
+
Completed: import_smithy_client.expectBoolean,
|
|
1318
|
+
CompletionDate: import_smithy_client.expectString,
|
|
1319
|
+
CreationDate: import_smithy_client.expectString,
|
|
1320
|
+
InventoryRetrievalParameters: import_smithy_client._json,
|
|
1321
|
+
InventorySizeInBytes: import_smithy_client.expectLong,
|
|
1322
|
+
JobDescription: import_smithy_client.expectString,
|
|
1323
|
+
JobId: import_smithy_client.expectString,
|
|
1324
|
+
JobOutputPath: import_smithy_client.expectString,
|
|
1325
|
+
OutputLocation: import_smithy_client._json,
|
|
1326
|
+
RetrievalByteRange: import_smithy_client.expectString,
|
|
1327
|
+
SHA256TreeHash: import_smithy_client.expectString,
|
|
1328
|
+
SNSTopic: import_smithy_client.expectString,
|
|
1329
|
+
SelectParameters: import_smithy_client._json,
|
|
1330
|
+
StatusCode: import_smithy_client.expectString,
|
|
1331
|
+
StatusMessage: import_smithy_client.expectString,
|
|
1332
|
+
Tier: import_smithy_client.expectString,
|
|
1333
|
+
VaultARN: import_smithy_client.expectString
|
|
1334
|
+
});
|
|
1335
|
+
Object.assign(contents, doc);
|
|
1336
|
+
return contents;
|
|
1337
|
+
}, "de_DescribeJobCommand");
|
|
1338
|
+
var de_DescribeJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1339
|
+
const parsedOutput = {
|
|
1340
|
+
...output,
|
|
1341
|
+
body: await parseErrorBody(output.body, context)
|
|
1342
|
+
};
|
|
1343
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1344
|
+
switch (errorCode) {
|
|
1345
|
+
case "InvalidParameterValueException":
|
|
1346
|
+
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1347
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1348
|
+
case "MissingParameterValueException":
|
|
1349
|
+
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1350
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1351
|
+
case "ResourceNotFoundException":
|
|
1352
|
+
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1353
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1354
|
+
case "ServiceUnavailableException":
|
|
1355
|
+
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1356
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1357
|
+
default:
|
|
1358
|
+
const parsedBody = parsedOutput.body;
|
|
1359
|
+
return throwDefaultError({
|
|
1360
|
+
output,
|
|
1361
|
+
parsedBody,
|
|
1362
|
+
errorCode
|
|
1363
|
+
});
|
|
1364
|
+
}
|
|
1365
|
+
}, "de_DescribeJobCommandError");
|
|
1366
|
+
var de_DescribeVaultCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1367
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1368
|
+
return de_DescribeVaultCommandError(output, context);
|
|
1369
|
+
}
|
|
1370
|
+
const contents = (0, import_smithy_client.map)({
|
|
1371
|
+
$metadata: deserializeMetadata(output)
|
|
1372
|
+
});
|
|
1373
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1374
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1375
|
+
CreationDate: import_smithy_client.expectString,
|
|
1376
|
+
LastInventoryDate: import_smithy_client.expectString,
|
|
1377
|
+
NumberOfArchives: import_smithy_client.expectLong,
|
|
1378
|
+
SizeInBytes: import_smithy_client.expectLong,
|
|
1379
|
+
VaultARN: import_smithy_client.expectString,
|
|
1380
|
+
VaultName: import_smithy_client.expectString
|
|
1381
|
+
});
|
|
1382
|
+
Object.assign(contents, doc);
|
|
1383
|
+
return contents;
|
|
1384
|
+
}, "de_DescribeVaultCommand");
|
|
1385
|
+
var de_DescribeVaultCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1386
|
+
const parsedOutput = {
|
|
1387
|
+
...output,
|
|
1388
|
+
body: await parseErrorBody(output.body, context)
|
|
1389
|
+
};
|
|
1390
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1391
|
+
switch (errorCode) {
|
|
1392
|
+
case "InvalidParameterValueException":
|
|
1393
|
+
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1394
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1395
|
+
case "MissingParameterValueException":
|
|
1396
|
+
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1397
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1398
|
+
case "ResourceNotFoundException":
|
|
1399
|
+
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1400
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1401
|
+
case "ServiceUnavailableException":
|
|
1402
|
+
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1403
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1404
|
+
default:
|
|
1405
|
+
const parsedBody = parsedOutput.body;
|
|
1406
|
+
return throwDefaultError({
|
|
1407
|
+
output,
|
|
1408
|
+
parsedBody,
|
|
1409
|
+
errorCode
|
|
1410
|
+
});
|
|
1411
|
+
}
|
|
1412
|
+
}, "de_DescribeVaultCommandError");
|
|
1413
|
+
var de_GetDataRetrievalPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1414
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1415
|
+
return de_GetDataRetrievalPolicyCommandError(output, context);
|
|
1416
|
+
}
|
|
1417
|
+
const contents = (0, import_smithy_client.map)({
|
|
1418
|
+
$metadata: deserializeMetadata(output)
|
|
1419
|
+
});
|
|
1420
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1421
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1422
|
+
Policy: import_smithy_client._json
|
|
1423
|
+
});
|
|
1424
|
+
Object.assign(contents, doc);
|
|
1425
|
+
return contents;
|
|
1426
|
+
}, "de_GetDataRetrievalPolicyCommand");
|
|
1427
|
+
var de_GetDataRetrievalPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1428
|
+
const parsedOutput = {
|
|
1429
|
+
...output,
|
|
1430
|
+
body: await parseErrorBody(output.body, context)
|
|
1431
|
+
};
|
|
1432
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1433
|
+
switch (errorCode) {
|
|
1434
|
+
case "InvalidParameterValueException":
|
|
1435
|
+
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1436
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1437
|
+
case "MissingParameterValueException":
|
|
1438
|
+
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1439
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1440
|
+
case "ServiceUnavailableException":
|
|
1441
|
+
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1442
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1443
|
+
default:
|
|
1444
|
+
const parsedBody = parsedOutput.body;
|
|
1445
|
+
return throwDefaultError({
|
|
1446
|
+
output,
|
|
1447
|
+
parsedBody,
|
|
1448
|
+
errorCode
|
|
1449
|
+
});
|
|
1450
|
+
}
|
|
1451
|
+
}, "de_GetDataRetrievalPolicyCommandError");
|
|
1452
|
+
var de_GetJobOutputCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1453
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1454
|
+
return de_GetJobOutputCommandError(output, context);
|
|
1455
|
+
}
|
|
1456
|
+
const contents = (0, import_smithy_client.map)({
|
|
1457
|
+
$metadata: deserializeMetadata(output),
|
|
1458
|
+
[_c]: [, output.headers[_xasth]],
|
|
1459
|
+
[_cR]: [, output.headers[_cr]],
|
|
1460
|
+
[_aR]: [, output.headers[_ar]],
|
|
1461
|
+
[_cT]: [, output.headers[_ct]],
|
|
1462
|
+
[_aD]: [, output.headers[_xaad]]
|
|
1463
|
+
});
|
|
1464
|
+
const data = output.body;
|
|
1465
|
+
context.sdkStreamMixin(data);
|
|
1466
|
+
contents.body = data;
|
|
1467
|
+
(0, import_smithy_client.map)(contents, {
|
|
1468
|
+
status: [, output.statusCode]
|
|
1469
|
+
});
|
|
1470
|
+
return contents;
|
|
1471
|
+
}, "de_GetJobOutputCommand");
|
|
1472
|
+
var de_GetJobOutputCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1473
|
+
const parsedOutput = {
|
|
1474
|
+
...output,
|
|
1475
|
+
body: await parseErrorBody(output.body, context)
|
|
1476
|
+
};
|
|
1477
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1478
|
+
switch (errorCode) {
|
|
1479
|
+
case "InvalidParameterValueException":
|
|
1480
|
+
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1481
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1482
|
+
case "MissingParameterValueException":
|
|
1483
|
+
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1484
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1485
|
+
case "ResourceNotFoundException":
|
|
1486
|
+
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1487
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1488
|
+
case "ServiceUnavailableException":
|
|
1489
|
+
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1490
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1491
|
+
default:
|
|
1492
|
+
const parsedBody = parsedOutput.body;
|
|
1493
|
+
return throwDefaultError({
|
|
1494
|
+
output,
|
|
1495
|
+
parsedBody,
|
|
1496
|
+
errorCode
|
|
1497
|
+
});
|
|
1498
|
+
}
|
|
1499
|
+
}, "de_GetJobOutputCommandError");
|
|
1500
|
+
var de_GetVaultAccessPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1501
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1502
|
+
return de_GetVaultAccessPolicyCommandError(output, context);
|
|
1503
|
+
}
|
|
1504
|
+
const contents = (0, import_smithy_client.map)({
|
|
1505
|
+
$metadata: deserializeMetadata(output)
|
|
1506
|
+
});
|
|
1507
|
+
const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
|
|
1508
|
+
contents.policy = (0, import_smithy_client._json)(data);
|
|
1509
|
+
return contents;
|
|
1510
|
+
}, "de_GetVaultAccessPolicyCommand");
|
|
1511
|
+
var de_GetVaultAccessPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1512
|
+
const parsedOutput = {
|
|
1513
|
+
...output,
|
|
1514
|
+
body: await parseErrorBody(output.body, context)
|
|
1515
|
+
};
|
|
1516
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1517
|
+
switch (errorCode) {
|
|
1518
|
+
case "InvalidParameterValueException":
|
|
1519
|
+
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1520
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1521
|
+
case "MissingParameterValueException":
|
|
1522
|
+
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1523
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1524
|
+
case "ResourceNotFoundException":
|
|
1525
|
+
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1526
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1527
|
+
case "ServiceUnavailableException":
|
|
1528
|
+
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1529
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1530
|
+
default:
|
|
1531
|
+
const parsedBody = parsedOutput.body;
|
|
1532
|
+
return throwDefaultError({
|
|
1533
|
+
output,
|
|
1534
|
+
parsedBody,
|
|
1535
|
+
errorCode
|
|
1536
|
+
});
|
|
1537
|
+
}
|
|
1538
|
+
}, "de_GetVaultAccessPolicyCommandError");
|
|
1539
|
+
var de_GetVaultLockCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1540
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1541
|
+
return de_GetVaultLockCommandError(output, context);
|
|
1542
|
+
}
|
|
1543
|
+
const contents = (0, import_smithy_client.map)({
|
|
1544
|
+
$metadata: deserializeMetadata(output)
|
|
1545
|
+
});
|
|
1546
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1547
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1548
|
+
CreationDate: import_smithy_client.expectString,
|
|
1549
|
+
ExpirationDate: import_smithy_client.expectString,
|
|
1550
|
+
Policy: import_smithy_client.expectString,
|
|
1551
|
+
State: import_smithy_client.expectString
|
|
1552
|
+
});
|
|
1553
|
+
Object.assign(contents, doc);
|
|
1554
|
+
return contents;
|
|
1555
|
+
}, "de_GetVaultLockCommand");
|
|
1556
|
+
var de_GetVaultLockCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1557
|
+
const parsedOutput = {
|
|
1558
|
+
...output,
|
|
1559
|
+
body: await parseErrorBody(output.body, context)
|
|
1560
|
+
};
|
|
1561
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1562
|
+
switch (errorCode) {
|
|
1563
|
+
case "InvalidParameterValueException":
|
|
1564
|
+
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1565
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1566
|
+
case "MissingParameterValueException":
|
|
1567
|
+
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1568
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1569
|
+
case "ResourceNotFoundException":
|
|
1570
|
+
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1571
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1572
|
+
case "ServiceUnavailableException":
|
|
1573
|
+
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1574
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1575
|
+
default:
|
|
1576
|
+
const parsedBody = parsedOutput.body;
|
|
1577
|
+
return throwDefaultError({
|
|
1578
|
+
output,
|
|
1579
|
+
parsedBody,
|
|
1580
|
+
errorCode
|
|
1581
|
+
});
|
|
1582
|
+
}
|
|
1583
|
+
}, "de_GetVaultLockCommandError");
|
|
1584
|
+
var de_GetVaultNotificationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1585
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1586
|
+
return de_GetVaultNotificationsCommandError(output, context);
|
|
1587
|
+
}
|
|
1588
|
+
const contents = (0, import_smithy_client.map)({
|
|
1589
|
+
$metadata: deserializeMetadata(output)
|
|
1590
|
+
});
|
|
1591
|
+
const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
|
|
1592
|
+
contents.vaultNotificationConfig = (0, import_smithy_client._json)(data);
|
|
1593
|
+
return contents;
|
|
1594
|
+
}, "de_GetVaultNotificationsCommand");
|
|
1595
|
+
var de_GetVaultNotificationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1596
|
+
const parsedOutput = {
|
|
1597
|
+
...output,
|
|
1598
|
+
body: await parseErrorBody(output.body, context)
|
|
1599
|
+
};
|
|
1600
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1601
|
+
switch (errorCode) {
|
|
1602
|
+
case "InvalidParameterValueException":
|
|
1603
|
+
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1604
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1605
|
+
case "MissingParameterValueException":
|
|
1606
|
+
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1607
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1608
|
+
case "ResourceNotFoundException":
|
|
1609
|
+
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1610
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1611
|
+
case "ServiceUnavailableException":
|
|
1612
|
+
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1613
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1614
|
+
default:
|
|
1615
|
+
const parsedBody = parsedOutput.body;
|
|
1616
|
+
return throwDefaultError({
|
|
1617
|
+
output,
|
|
1618
|
+
parsedBody,
|
|
1619
|
+
errorCode
|
|
1620
|
+
});
|
|
1621
|
+
}
|
|
1622
|
+
}, "de_GetVaultNotificationsCommandError");
|
|
1623
|
+
var de_InitiateJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1624
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1625
|
+
return de_InitiateJobCommandError(output, context);
|
|
1626
|
+
}
|
|
1627
|
+
const contents = (0, import_smithy_client.map)({
|
|
1628
|
+
$metadata: deserializeMetadata(output),
|
|
1629
|
+
[_lo]: [, output.headers[_lo]],
|
|
1630
|
+
[_jI]: [, output.headers[_xaji]],
|
|
1631
|
+
[_jOP]: [, output.headers[_xajop]]
|
|
1632
|
+
});
|
|
1633
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1634
|
+
return contents;
|
|
1635
|
+
}, "de_InitiateJobCommand");
|
|
1636
|
+
var de_InitiateJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1637
|
+
const parsedOutput = {
|
|
1638
|
+
...output,
|
|
1639
|
+
body: await parseErrorBody(output.body, context)
|
|
1640
|
+
};
|
|
1641
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1642
|
+
switch (errorCode) {
|
|
1643
|
+
case "InsufficientCapacityException":
|
|
1644
|
+
case "com.amazonaws.glacier#InsufficientCapacityException":
|
|
1645
|
+
throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
|
|
1646
|
+
case "InvalidParameterValueException":
|
|
1647
|
+
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1648
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1649
|
+
case "MissingParameterValueException":
|
|
1650
|
+
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1651
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1652
|
+
case "PolicyEnforcedException":
|
|
1653
|
+
case "com.amazonaws.glacier#PolicyEnforcedException":
|
|
1654
|
+
throw await de_PolicyEnforcedExceptionRes(parsedOutput, context);
|
|
1655
|
+
case "ResourceNotFoundException":
|
|
1656
|
+
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1657
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1658
|
+
case "ServiceUnavailableException":
|
|
1659
|
+
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1660
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1661
|
+
default:
|
|
1662
|
+
const parsedBody = parsedOutput.body;
|
|
1663
|
+
return throwDefaultError({
|
|
1664
|
+
output,
|
|
1665
|
+
parsedBody,
|
|
1666
|
+
errorCode
|
|
1667
|
+
});
|
|
1668
|
+
}
|
|
1669
|
+
}, "de_InitiateJobCommandError");
|
|
1670
|
+
var de_InitiateMultipartUploadCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1671
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1672
|
+
return de_InitiateMultipartUploadCommandError(output, context);
|
|
1673
|
+
}
|
|
1674
|
+
const contents = (0, import_smithy_client.map)({
|
|
1675
|
+
$metadata: deserializeMetadata(output),
|
|
1676
|
+
[_lo]: [, output.headers[_lo]],
|
|
1677
|
+
[_uI]: [, output.headers[_xamui]]
|
|
1678
|
+
});
|
|
1679
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1680
|
+
return contents;
|
|
1681
|
+
}, "de_InitiateMultipartUploadCommand");
|
|
1682
|
+
var de_InitiateMultipartUploadCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1683
|
+
const parsedOutput = {
|
|
1684
|
+
...output,
|
|
1685
|
+
body: await parseErrorBody(output.body, context)
|
|
1686
|
+
};
|
|
1687
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1688
|
+
switch (errorCode) {
|
|
1689
|
+
case "InvalidParameterValueException":
|
|
1690
|
+
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1691
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1692
|
+
case "MissingParameterValueException":
|
|
1693
|
+
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1694
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1695
|
+
case "ResourceNotFoundException":
|
|
1696
|
+
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1697
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1698
|
+
case "ServiceUnavailableException":
|
|
1699
|
+
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1700
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1701
|
+
default:
|
|
1702
|
+
const parsedBody = parsedOutput.body;
|
|
1703
|
+
return throwDefaultError({
|
|
1704
|
+
output,
|
|
1705
|
+
parsedBody,
|
|
1706
|
+
errorCode
|
|
1707
|
+
});
|
|
1708
|
+
}
|
|
1709
|
+
}, "de_InitiateMultipartUploadCommandError");
|
|
1710
|
+
var de_InitiateVaultLockCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1711
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1712
|
+
return de_InitiateVaultLockCommandError(output, context);
|
|
1713
|
+
}
|
|
1714
|
+
const contents = (0, import_smithy_client.map)({
|
|
1715
|
+
$metadata: deserializeMetadata(output),
|
|
1716
|
+
[_lI]: [, output.headers[_xali]]
|
|
1717
|
+
});
|
|
1718
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1719
|
+
return contents;
|
|
1720
|
+
}, "de_InitiateVaultLockCommand");
|
|
1721
|
+
var de_InitiateVaultLockCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1722
|
+
const parsedOutput = {
|
|
1723
|
+
...output,
|
|
1724
|
+
body: await parseErrorBody(output.body, context)
|
|
1725
|
+
};
|
|
1726
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1727
|
+
switch (errorCode) {
|
|
1728
|
+
case "InvalidParameterValueException":
|
|
1729
|
+
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1730
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1731
|
+
case "MissingParameterValueException":
|
|
1732
|
+
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1733
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1734
|
+
case "ResourceNotFoundException":
|
|
1735
|
+
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1736
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1737
|
+
case "ServiceUnavailableException":
|
|
1738
|
+
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1739
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1740
|
+
default:
|
|
1741
|
+
const parsedBody = parsedOutput.body;
|
|
1742
|
+
return throwDefaultError({
|
|
1743
|
+
output,
|
|
1744
|
+
parsedBody,
|
|
1745
|
+
errorCode
|
|
1746
|
+
});
|
|
1747
|
+
}
|
|
1748
|
+
}, "de_InitiateVaultLockCommandError");
|
|
1749
|
+
var de_ListJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1750
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1751
|
+
return de_ListJobsCommandError(output, context);
|
|
1752
|
+
}
|
|
1753
|
+
const contents = (0, import_smithy_client.map)({
|
|
1754
|
+
$metadata: deserializeMetadata(output)
|
|
1755
|
+
});
|
|
1756
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1757
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1758
|
+
JobList: import_smithy_client._json,
|
|
1759
|
+
Marker: import_smithy_client.expectString
|
|
1760
|
+
});
|
|
1761
|
+
Object.assign(contents, doc);
|
|
1762
|
+
return contents;
|
|
1763
|
+
}, "de_ListJobsCommand");
|
|
1764
|
+
var de_ListJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1765
|
+
const parsedOutput = {
|
|
1766
|
+
...output,
|
|
1767
|
+
body: await parseErrorBody(output.body, context)
|
|
1768
|
+
};
|
|
1769
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1770
|
+
switch (errorCode) {
|
|
1771
|
+
case "InvalidParameterValueException":
|
|
1772
|
+
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1773
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1774
|
+
case "MissingParameterValueException":
|
|
1775
|
+
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1776
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1777
|
+
case "ResourceNotFoundException":
|
|
1778
|
+
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1779
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1780
|
+
case "ServiceUnavailableException":
|
|
1781
|
+
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1782
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1783
|
+
default:
|
|
1784
|
+
const parsedBody = parsedOutput.body;
|
|
1785
|
+
return throwDefaultError({
|
|
1786
|
+
output,
|
|
1787
|
+
parsedBody,
|
|
1788
|
+
errorCode
|
|
1789
|
+
});
|
|
1790
|
+
}
|
|
1791
|
+
}, "de_ListJobsCommandError");
|
|
1792
|
+
var de_ListMultipartUploadsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1793
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1794
|
+
return de_ListMultipartUploadsCommandError(output, context);
|
|
1795
|
+
}
|
|
1796
|
+
const contents = (0, import_smithy_client.map)({
|
|
1797
|
+
$metadata: deserializeMetadata(output)
|
|
1798
|
+
});
|
|
1799
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1800
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1801
|
+
Marker: import_smithy_client.expectString,
|
|
1802
|
+
UploadsList: import_smithy_client._json
|
|
1803
|
+
});
|
|
1804
|
+
Object.assign(contents, doc);
|
|
1805
|
+
return contents;
|
|
1806
|
+
}, "de_ListMultipartUploadsCommand");
|
|
1807
|
+
var de_ListMultipartUploadsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1808
|
+
const parsedOutput = {
|
|
1809
|
+
...output,
|
|
1810
|
+
body: await parseErrorBody(output.body, context)
|
|
1811
|
+
};
|
|
1812
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1813
|
+
switch (errorCode) {
|
|
1814
|
+
case "InvalidParameterValueException":
|
|
1815
|
+
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1816
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1817
|
+
case "MissingParameterValueException":
|
|
1818
|
+
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1819
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1820
|
+
case "ResourceNotFoundException":
|
|
1821
|
+
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1822
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1823
|
+
case "ServiceUnavailableException":
|
|
1824
|
+
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1825
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1826
|
+
default:
|
|
1827
|
+
const parsedBody = parsedOutput.body;
|
|
1828
|
+
return throwDefaultError({
|
|
1829
|
+
output,
|
|
1830
|
+
parsedBody,
|
|
1831
|
+
errorCode
|
|
1832
|
+
});
|
|
1833
|
+
}
|
|
1834
|
+
}, "de_ListMultipartUploadsCommandError");
|
|
1835
|
+
var de_ListPartsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1836
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1837
|
+
return de_ListPartsCommandError(output, context);
|
|
1838
|
+
}
|
|
1839
|
+
const contents = (0, import_smithy_client.map)({
|
|
1840
|
+
$metadata: deserializeMetadata(output)
|
|
1841
|
+
});
|
|
1842
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1843
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1844
|
+
ArchiveDescription: import_smithy_client.expectString,
|
|
1845
|
+
CreationDate: import_smithy_client.expectString,
|
|
1846
|
+
Marker: import_smithy_client.expectString,
|
|
1847
|
+
MultipartUploadId: import_smithy_client.expectString,
|
|
1848
|
+
PartSizeInBytes: import_smithy_client.expectLong,
|
|
1849
|
+
Parts: import_smithy_client._json,
|
|
1850
|
+
VaultARN: import_smithy_client.expectString
|
|
1851
|
+
});
|
|
1852
|
+
Object.assign(contents, doc);
|
|
1853
|
+
return contents;
|
|
1854
|
+
}, "de_ListPartsCommand");
|
|
1855
|
+
var de_ListPartsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1856
|
+
const parsedOutput = {
|
|
1857
|
+
...output,
|
|
1858
|
+
body: await parseErrorBody(output.body, context)
|
|
1859
|
+
};
|
|
1860
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1861
|
+
switch (errorCode) {
|
|
1862
|
+
case "InvalidParameterValueException":
|
|
1863
|
+
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1864
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1865
|
+
case "MissingParameterValueException":
|
|
1866
|
+
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1867
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1868
|
+
case "ResourceNotFoundException":
|
|
1869
|
+
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1870
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1871
|
+
case "ServiceUnavailableException":
|
|
1872
|
+
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1873
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1874
|
+
default:
|
|
1875
|
+
const parsedBody = parsedOutput.body;
|
|
1876
|
+
return throwDefaultError({
|
|
1877
|
+
output,
|
|
1878
|
+
parsedBody,
|
|
1879
|
+
errorCode
|
|
1880
|
+
});
|
|
1881
|
+
}
|
|
1882
|
+
}, "de_ListPartsCommandError");
|
|
1883
|
+
var de_ListProvisionedCapacityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1884
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1885
|
+
return de_ListProvisionedCapacityCommandError(output, context);
|
|
1886
|
+
}
|
|
1887
|
+
const contents = (0, import_smithy_client.map)({
|
|
1888
|
+
$metadata: deserializeMetadata(output)
|
|
1889
|
+
});
|
|
1890
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1891
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1892
|
+
ProvisionedCapacityList: import_smithy_client._json
|
|
1893
|
+
});
|
|
1894
|
+
Object.assign(contents, doc);
|
|
1895
|
+
return contents;
|
|
1896
|
+
}, "de_ListProvisionedCapacityCommand");
|
|
1897
|
+
var de_ListProvisionedCapacityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1898
|
+
const parsedOutput = {
|
|
1899
|
+
...output,
|
|
1900
|
+
body: await parseErrorBody(output.body, context)
|
|
1901
|
+
};
|
|
1902
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1903
|
+
switch (errorCode) {
|
|
1904
|
+
case "InvalidParameterValueException":
|
|
1905
|
+
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1906
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1907
|
+
case "MissingParameterValueException":
|
|
1908
|
+
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1909
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1910
|
+
case "ServiceUnavailableException":
|
|
1911
|
+
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1912
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1913
|
+
default:
|
|
1914
|
+
const parsedBody = parsedOutput.body;
|
|
1915
|
+
return throwDefaultError({
|
|
1916
|
+
output,
|
|
1917
|
+
parsedBody,
|
|
1918
|
+
errorCode
|
|
1919
|
+
});
|
|
1920
|
+
}
|
|
1921
|
+
}, "de_ListProvisionedCapacityCommandError");
|
|
1922
|
+
var de_ListTagsForVaultCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1923
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1924
|
+
return de_ListTagsForVaultCommandError(output, context);
|
|
1925
|
+
}
|
|
1926
|
+
const contents = (0, import_smithy_client.map)({
|
|
1927
|
+
$metadata: deserializeMetadata(output)
|
|
1928
|
+
});
|
|
1929
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1930
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1931
|
+
Tags: import_smithy_client._json
|
|
1932
|
+
});
|
|
1933
|
+
Object.assign(contents, doc);
|
|
1934
|
+
return contents;
|
|
1935
|
+
}, "de_ListTagsForVaultCommand");
|
|
1936
|
+
var de_ListTagsForVaultCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1937
|
+
const parsedOutput = {
|
|
1938
|
+
...output,
|
|
1939
|
+
body: await parseErrorBody(output.body, context)
|
|
1940
|
+
};
|
|
1941
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1942
|
+
switch (errorCode) {
|
|
1943
|
+
case "InvalidParameterValueException":
|
|
1944
|
+
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1945
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1946
|
+
case "MissingParameterValueException":
|
|
1947
|
+
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1948
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1949
|
+
case "ResourceNotFoundException":
|
|
1950
|
+
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1951
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1952
|
+
case "ServiceUnavailableException":
|
|
1953
|
+
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1954
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1955
|
+
default:
|
|
1956
|
+
const parsedBody = parsedOutput.body;
|
|
1957
|
+
return throwDefaultError({
|
|
1958
|
+
output,
|
|
1959
|
+
parsedBody,
|
|
1960
|
+
errorCode
|
|
1961
|
+
});
|
|
1962
|
+
}
|
|
1963
|
+
}, "de_ListTagsForVaultCommandError");
|
|
1964
|
+
var de_ListVaultsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1965
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1966
|
+
return de_ListVaultsCommandError(output, context);
|
|
1967
|
+
}
|
|
1968
|
+
const contents = (0, import_smithy_client.map)({
|
|
1969
|
+
$metadata: deserializeMetadata(output)
|
|
1970
|
+
});
|
|
1971
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1972
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1973
|
+
Marker: import_smithy_client.expectString,
|
|
1974
|
+
VaultList: import_smithy_client._json
|
|
1975
|
+
});
|
|
1976
|
+
Object.assign(contents, doc);
|
|
1977
|
+
return contents;
|
|
1978
|
+
}, "de_ListVaultsCommand");
|
|
1979
|
+
var de_ListVaultsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1980
|
+
const parsedOutput = {
|
|
1981
|
+
...output,
|
|
1982
|
+
body: await parseErrorBody(output.body, context)
|
|
1983
|
+
};
|
|
1984
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1985
|
+
switch (errorCode) {
|
|
1986
|
+
case "InvalidParameterValueException":
|
|
1987
|
+
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1988
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1989
|
+
case "MissingParameterValueException":
|
|
1990
|
+
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1991
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1992
|
+
case "ResourceNotFoundException":
|
|
1993
|
+
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1994
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1995
|
+
case "ServiceUnavailableException":
|
|
1996
|
+
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1997
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1998
|
+
default:
|
|
1999
|
+
const parsedBody = parsedOutput.body;
|
|
2000
|
+
return throwDefaultError({
|
|
2001
|
+
output,
|
|
2002
|
+
parsedBody,
|
|
2003
|
+
errorCode
|
|
2004
|
+
});
|
|
2005
|
+
}
|
|
2006
|
+
}, "de_ListVaultsCommandError");
|
|
2007
|
+
var de_PurchaseProvisionedCapacityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2008
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2009
|
+
return de_PurchaseProvisionedCapacityCommandError(output, context);
|
|
2010
|
+
}
|
|
2011
|
+
const contents = (0, import_smithy_client.map)({
|
|
2012
|
+
$metadata: deserializeMetadata(output),
|
|
2013
|
+
[_cI]: [, output.headers[_xaci]]
|
|
2014
|
+
});
|
|
2015
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2016
|
+
return contents;
|
|
2017
|
+
}, "de_PurchaseProvisionedCapacityCommand");
|
|
2018
|
+
var de_PurchaseProvisionedCapacityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2019
|
+
const parsedOutput = {
|
|
2020
|
+
...output,
|
|
2021
|
+
body: await parseErrorBody(output.body, context)
|
|
2022
|
+
};
|
|
2023
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2024
|
+
switch (errorCode) {
|
|
2025
|
+
case "InvalidParameterValueException":
|
|
2026
|
+
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
2027
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2028
|
+
case "LimitExceededException":
|
|
2029
|
+
case "com.amazonaws.glacier#LimitExceededException":
|
|
2030
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2031
|
+
case "MissingParameterValueException":
|
|
2032
|
+
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
2033
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2034
|
+
case "ServiceUnavailableException":
|
|
2035
|
+
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
2036
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2037
|
+
default:
|
|
2038
|
+
const parsedBody = parsedOutput.body;
|
|
2039
|
+
return throwDefaultError({
|
|
2040
|
+
output,
|
|
2041
|
+
parsedBody,
|
|
2042
|
+
errorCode
|
|
2043
|
+
});
|
|
2044
|
+
}
|
|
2045
|
+
}, "de_PurchaseProvisionedCapacityCommandError");
|
|
2046
|
+
var de_RemoveTagsFromVaultCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2047
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2048
|
+
return de_RemoveTagsFromVaultCommandError(output, context);
|
|
2049
|
+
}
|
|
2050
|
+
const contents = (0, import_smithy_client.map)({
|
|
2051
|
+
$metadata: deserializeMetadata(output)
|
|
2052
|
+
});
|
|
2053
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2054
|
+
return contents;
|
|
2055
|
+
}, "de_RemoveTagsFromVaultCommand");
|
|
2056
|
+
var de_RemoveTagsFromVaultCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2057
|
+
const parsedOutput = {
|
|
2058
|
+
...output,
|
|
2059
|
+
body: await parseErrorBody(output.body, context)
|
|
2060
|
+
};
|
|
2061
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2062
|
+
switch (errorCode) {
|
|
2063
|
+
case "InvalidParameterValueException":
|
|
2064
|
+
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
2065
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2066
|
+
case "MissingParameterValueException":
|
|
2067
|
+
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
2068
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2069
|
+
case "ResourceNotFoundException":
|
|
2070
|
+
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
2071
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2072
|
+
case "ServiceUnavailableException":
|
|
2073
|
+
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
2074
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2075
|
+
default:
|
|
2076
|
+
const parsedBody = parsedOutput.body;
|
|
2077
|
+
return throwDefaultError({
|
|
2078
|
+
output,
|
|
2079
|
+
parsedBody,
|
|
2080
|
+
errorCode
|
|
2081
|
+
});
|
|
2082
|
+
}
|
|
2083
|
+
}, "de_RemoveTagsFromVaultCommandError");
|
|
2084
|
+
var de_SetDataRetrievalPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2085
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2086
|
+
return de_SetDataRetrievalPolicyCommandError(output, context);
|
|
2087
|
+
}
|
|
2088
|
+
const contents = (0, import_smithy_client.map)({
|
|
2089
|
+
$metadata: deserializeMetadata(output)
|
|
2090
|
+
});
|
|
2091
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2092
|
+
return contents;
|
|
2093
|
+
}, "de_SetDataRetrievalPolicyCommand");
|
|
2094
|
+
var de_SetDataRetrievalPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2095
|
+
const parsedOutput = {
|
|
2096
|
+
...output,
|
|
2097
|
+
body: await parseErrorBody(output.body, context)
|
|
2098
|
+
};
|
|
2099
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2100
|
+
switch (errorCode) {
|
|
2101
|
+
case "InvalidParameterValueException":
|
|
2102
|
+
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
2103
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2104
|
+
case "MissingParameterValueException":
|
|
2105
|
+
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
2106
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2107
|
+
case "ServiceUnavailableException":
|
|
2108
|
+
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
2109
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2110
|
+
default:
|
|
2111
|
+
const parsedBody = parsedOutput.body;
|
|
2112
|
+
return throwDefaultError({
|
|
2113
|
+
output,
|
|
2114
|
+
parsedBody,
|
|
2115
|
+
errorCode
|
|
2116
|
+
});
|
|
2117
|
+
}
|
|
2118
|
+
}, "de_SetDataRetrievalPolicyCommandError");
|
|
2119
|
+
var de_SetVaultAccessPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2120
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2121
|
+
return de_SetVaultAccessPolicyCommandError(output, context);
|
|
2122
|
+
}
|
|
2123
|
+
const contents = (0, import_smithy_client.map)({
|
|
2124
|
+
$metadata: deserializeMetadata(output)
|
|
2125
|
+
});
|
|
2126
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2127
|
+
return contents;
|
|
2128
|
+
}, "de_SetVaultAccessPolicyCommand");
|
|
2129
|
+
var de_SetVaultAccessPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2130
|
+
const parsedOutput = {
|
|
2131
|
+
...output,
|
|
2132
|
+
body: await parseErrorBody(output.body, context)
|
|
2133
|
+
};
|
|
2134
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2135
|
+
switch (errorCode) {
|
|
2136
|
+
case "InvalidParameterValueException":
|
|
2137
|
+
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
2138
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2139
|
+
case "MissingParameterValueException":
|
|
2140
|
+
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
2141
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2142
|
+
case "ResourceNotFoundException":
|
|
2143
|
+
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
2144
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2145
|
+
case "ServiceUnavailableException":
|
|
2146
|
+
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
2147
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2148
|
+
default:
|
|
2149
|
+
const parsedBody = parsedOutput.body;
|
|
2150
|
+
return throwDefaultError({
|
|
2151
|
+
output,
|
|
2152
|
+
parsedBody,
|
|
2153
|
+
errorCode
|
|
2154
|
+
});
|
|
2155
|
+
}
|
|
2156
|
+
}, "de_SetVaultAccessPolicyCommandError");
|
|
2157
|
+
var de_SetVaultNotificationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2158
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2159
|
+
return de_SetVaultNotificationsCommandError(output, context);
|
|
2160
|
+
}
|
|
2161
|
+
const contents = (0, import_smithy_client.map)({
|
|
2162
|
+
$metadata: deserializeMetadata(output)
|
|
2163
|
+
});
|
|
2164
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2165
|
+
return contents;
|
|
2166
|
+
}, "de_SetVaultNotificationsCommand");
|
|
2167
|
+
var de_SetVaultNotificationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2168
|
+
const parsedOutput = {
|
|
2169
|
+
...output,
|
|
2170
|
+
body: await parseErrorBody(output.body, context)
|
|
2171
|
+
};
|
|
2172
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2173
|
+
switch (errorCode) {
|
|
2174
|
+
case "InvalidParameterValueException":
|
|
2175
|
+
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
2176
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2177
|
+
case "MissingParameterValueException":
|
|
2178
|
+
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
2179
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2180
|
+
case "ResourceNotFoundException":
|
|
2181
|
+
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
2182
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2183
|
+
case "ServiceUnavailableException":
|
|
2184
|
+
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
2185
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2186
|
+
default:
|
|
2187
|
+
const parsedBody = parsedOutput.body;
|
|
2188
|
+
return throwDefaultError({
|
|
2189
|
+
output,
|
|
2190
|
+
parsedBody,
|
|
2191
|
+
errorCode
|
|
2192
|
+
});
|
|
2193
|
+
}
|
|
2194
|
+
}, "de_SetVaultNotificationsCommandError");
|
|
2195
|
+
var de_UploadArchiveCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2196
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2197
|
+
return de_UploadArchiveCommandError(output, context);
|
|
2198
|
+
}
|
|
2199
|
+
const contents = (0, import_smithy_client.map)({
|
|
2200
|
+
$metadata: deserializeMetadata(output),
|
|
2201
|
+
[_lo]: [, output.headers[_lo]],
|
|
2202
|
+
[_c]: [, output.headers[_xasth]],
|
|
2203
|
+
[_aI]: [, output.headers[_xaai]]
|
|
2204
|
+
});
|
|
2205
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2206
|
+
return contents;
|
|
2207
|
+
}, "de_UploadArchiveCommand");
|
|
2208
|
+
var de_UploadArchiveCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2209
|
+
const parsedOutput = {
|
|
2210
|
+
...output,
|
|
2211
|
+
body: await parseErrorBody(output.body, context)
|
|
2212
|
+
};
|
|
2213
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2214
|
+
switch (errorCode) {
|
|
2215
|
+
case "InvalidParameterValueException":
|
|
2216
|
+
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
2217
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2218
|
+
case "MissingParameterValueException":
|
|
2219
|
+
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
2220
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2221
|
+
case "RequestTimeoutException":
|
|
2222
|
+
case "com.amazonaws.glacier#RequestTimeoutException":
|
|
2223
|
+
throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
|
|
2224
|
+
case "ResourceNotFoundException":
|
|
2225
|
+
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
2226
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2227
|
+
case "ServiceUnavailableException":
|
|
2228
|
+
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
2229
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2230
|
+
default:
|
|
2231
|
+
const parsedBody = parsedOutput.body;
|
|
2232
|
+
return throwDefaultError({
|
|
2233
|
+
output,
|
|
2234
|
+
parsedBody,
|
|
2235
|
+
errorCode
|
|
2236
|
+
});
|
|
2237
|
+
}
|
|
2238
|
+
}, "de_UploadArchiveCommandError");
|
|
2239
|
+
var de_UploadMultipartPartCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2240
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2241
|
+
return de_UploadMultipartPartCommandError(output, context);
|
|
2242
|
+
}
|
|
2243
|
+
const contents = (0, import_smithy_client.map)({
|
|
2244
|
+
$metadata: deserializeMetadata(output),
|
|
2245
|
+
[_c]: [, output.headers[_xasth]]
|
|
2246
|
+
});
|
|
2247
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2248
|
+
return contents;
|
|
2249
|
+
}, "de_UploadMultipartPartCommand");
|
|
2250
|
+
var de_UploadMultipartPartCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2251
|
+
const parsedOutput = {
|
|
2252
|
+
...output,
|
|
2253
|
+
body: await parseErrorBody(output.body, context)
|
|
2254
|
+
};
|
|
2255
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2256
|
+
switch (errorCode) {
|
|
2257
|
+
case "InvalidParameterValueException":
|
|
2258
|
+
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
2259
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2260
|
+
case "MissingParameterValueException":
|
|
2261
|
+
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
2262
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2263
|
+
case "RequestTimeoutException":
|
|
2264
|
+
case "com.amazonaws.glacier#RequestTimeoutException":
|
|
2265
|
+
throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
|
|
2266
|
+
case "ResourceNotFoundException":
|
|
2267
|
+
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
2268
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2269
|
+
case "ServiceUnavailableException":
|
|
2270
|
+
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
2271
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2272
|
+
default:
|
|
2273
|
+
const parsedBody = parsedOutput.body;
|
|
2274
|
+
return throwDefaultError({
|
|
2275
|
+
output,
|
|
2276
|
+
parsedBody,
|
|
2277
|
+
errorCode
|
|
2278
|
+
});
|
|
2279
|
+
}
|
|
2280
|
+
}, "de_UploadMultipartPartCommandError");
|
|
2281
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(GlacierServiceException);
|
|
2282
|
+
var de_InsufficientCapacityExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2283
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2284
|
+
const data = parsedOutput.body;
|
|
2285
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2286
|
+
code: import_smithy_client.expectString,
|
|
2287
|
+
message: import_smithy_client.expectString,
|
|
2288
|
+
type: import_smithy_client.expectString
|
|
2289
|
+
});
|
|
2290
|
+
Object.assign(contents, doc);
|
|
2291
|
+
const exception = new InsufficientCapacityException({
|
|
2292
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2293
|
+
...contents
|
|
2294
|
+
});
|
|
2295
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2296
|
+
}, "de_InsufficientCapacityExceptionRes");
|
|
2297
|
+
var de_InvalidParameterValueExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2298
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2299
|
+
const data = parsedOutput.body;
|
|
2300
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2301
|
+
code: import_smithy_client.expectString,
|
|
2302
|
+
message: import_smithy_client.expectString,
|
|
2303
|
+
type: import_smithy_client.expectString
|
|
2304
|
+
});
|
|
2305
|
+
Object.assign(contents, doc);
|
|
2306
|
+
const exception = new InvalidParameterValueException({
|
|
2307
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2308
|
+
...contents
|
|
2309
|
+
});
|
|
2310
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2311
|
+
}, "de_InvalidParameterValueExceptionRes");
|
|
2312
|
+
var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2313
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2314
|
+
const data = parsedOutput.body;
|
|
2315
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2316
|
+
code: import_smithy_client.expectString,
|
|
2317
|
+
message: import_smithy_client.expectString,
|
|
2318
|
+
type: import_smithy_client.expectString
|
|
2319
|
+
});
|
|
2320
|
+
Object.assign(contents, doc);
|
|
2321
|
+
const exception = new LimitExceededException({
|
|
2322
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2323
|
+
...contents
|
|
2324
|
+
});
|
|
2325
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2326
|
+
}, "de_LimitExceededExceptionRes");
|
|
2327
|
+
var de_MissingParameterValueExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2328
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2329
|
+
const data = parsedOutput.body;
|
|
2330
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2331
|
+
code: import_smithy_client.expectString,
|
|
2332
|
+
message: import_smithy_client.expectString,
|
|
2333
|
+
type: import_smithy_client.expectString
|
|
2334
|
+
});
|
|
2335
|
+
Object.assign(contents, doc);
|
|
2336
|
+
const exception = new MissingParameterValueException({
|
|
2337
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2338
|
+
...contents
|
|
2339
|
+
});
|
|
2340
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2341
|
+
}, "de_MissingParameterValueExceptionRes");
|
|
2342
|
+
var de_PolicyEnforcedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2343
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2344
|
+
const data = parsedOutput.body;
|
|
2345
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2346
|
+
code: import_smithy_client.expectString,
|
|
2347
|
+
message: import_smithy_client.expectString,
|
|
2348
|
+
type: import_smithy_client.expectString
|
|
2349
|
+
});
|
|
2350
|
+
Object.assign(contents, doc);
|
|
2351
|
+
const exception = new PolicyEnforcedException({
|
|
2352
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2353
|
+
...contents
|
|
2354
|
+
});
|
|
2355
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2356
|
+
}, "de_PolicyEnforcedExceptionRes");
|
|
2357
|
+
var de_RequestTimeoutExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2358
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2359
|
+
const data = parsedOutput.body;
|
|
2360
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2361
|
+
code: import_smithy_client.expectString,
|
|
2362
|
+
message: import_smithy_client.expectString,
|
|
2363
|
+
type: import_smithy_client.expectString
|
|
2364
|
+
});
|
|
2365
|
+
Object.assign(contents, doc);
|
|
2366
|
+
const exception = new RequestTimeoutException({
|
|
2367
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2368
|
+
...contents
|
|
2369
|
+
});
|
|
2370
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2371
|
+
}, "de_RequestTimeoutExceptionRes");
|
|
2372
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2373
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2374
|
+
const data = parsedOutput.body;
|
|
2375
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2376
|
+
code: import_smithy_client.expectString,
|
|
2377
|
+
message: import_smithy_client.expectString,
|
|
2378
|
+
type: import_smithy_client.expectString
|
|
2379
|
+
});
|
|
2380
|
+
Object.assign(contents, doc);
|
|
2381
|
+
const exception = new ResourceNotFoundException({
|
|
2382
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2383
|
+
...contents
|
|
2384
|
+
});
|
|
2385
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2386
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
2387
|
+
var de_ServiceUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2388
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2389
|
+
const data = parsedOutput.body;
|
|
2390
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2391
|
+
code: import_smithy_client.expectString,
|
|
2392
|
+
message: import_smithy_client.expectString,
|
|
2393
|
+
type: import_smithy_client.expectString
|
|
2394
|
+
});
|
|
2395
|
+
Object.assign(contents, doc);
|
|
2396
|
+
const exception = new ServiceUnavailableException({
|
|
2397
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2398
|
+
...contents
|
|
2399
|
+
});
|
|
2400
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2401
|
+
}, "de_ServiceUnavailableExceptionRes");
|
|
2402
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
2403
|
+
httpStatusCode: output.statusCode,
|
|
2404
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2405
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2406
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
2407
|
+
}), "deserializeMetadata");
|
|
2408
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
2409
|
+
var isSerializableHeaderValue = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "" && (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0), "isSerializableHeaderValue");
|
|
2410
|
+
var _aD = "archiveDescription";
|
|
2411
|
+
var _aI = "archiveId";
|
|
2412
|
+
var _aR = "acceptRanges";
|
|
2413
|
+
var _aS = "archiveSize";
|
|
2414
|
+
var _ar = "accept-ranges";
|
|
2415
|
+
var _c = "checksum";
|
|
2416
|
+
var _cI = "capacityId";
|
|
2417
|
+
var _cR = "contentRange";
|
|
2418
|
+
var _cT = "contentType";
|
|
2419
|
+
var _co = "completed";
|
|
2420
|
+
var _cr = "content-range";
|
|
2421
|
+
var _ct = "content-type";
|
|
2422
|
+
var _jI = "jobId";
|
|
2423
|
+
var _jOP = "jobOutputPath";
|
|
2424
|
+
var _l = "limit";
|
|
2425
|
+
var _lI = "lockId";
|
|
2426
|
+
var _lo = "location";
|
|
2427
|
+
var _m = "marker";
|
|
2428
|
+
var _o = "operation";
|
|
2429
|
+
var _pS = "partSize";
|
|
2430
|
+
var _r = "range";
|
|
2431
|
+
var _s = "statuscode";
|
|
2432
|
+
var _uI = "uploadId";
|
|
2433
|
+
var _xaad = "x-amz-archive-description";
|
|
2434
|
+
var _xaai = "x-amz-archive-id";
|
|
2435
|
+
var _xaas = "x-amz-archive-size";
|
|
2436
|
+
var _xaci = "x-amz-capacity-id";
|
|
2437
|
+
var _xaji = "x-amz-job-id";
|
|
2438
|
+
var _xajop = "x-amz-job-output-path";
|
|
2439
|
+
var _xali = "x-amz-lock-id";
|
|
2440
|
+
var _xamui = "x-amz-multipart-upload-id";
|
|
2441
|
+
var _xaps = "x-amz-part-size";
|
|
2442
|
+
var _xasth = "x-amz-sha256-tree-hash";
|
|
2443
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2444
|
+
if (encoded.length) {
|
|
2445
|
+
return JSON.parse(encoded);
|
|
2446
|
+
}
|
|
2447
|
+
return {};
|
|
2448
|
+
}), "parseBody");
|
|
2449
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
2450
|
+
const value = await parseBody(errorBody, context);
|
|
2451
|
+
value.message = value.message ?? value.Message;
|
|
2452
|
+
return value;
|
|
2453
|
+
}, "parseErrorBody");
|
|
2454
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
2455
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
2456
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
2457
|
+
let cleanValue = rawValue;
|
|
2458
|
+
if (typeof cleanValue === "number") {
|
|
2459
|
+
cleanValue = cleanValue.toString();
|
|
2460
|
+
}
|
|
2461
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
2462
|
+
cleanValue = cleanValue.split(",")[0];
|
|
2463
|
+
}
|
|
2464
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
2465
|
+
cleanValue = cleanValue.split(":")[0];
|
|
2466
|
+
}
|
|
2467
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
2468
|
+
cleanValue = cleanValue.split("#")[1];
|
|
2469
|
+
}
|
|
2470
|
+
return cleanValue;
|
|
2471
|
+
}, "sanitizeErrorCode");
|
|
2472
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2473
|
+
if (headerKey !== void 0) {
|
|
2474
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2475
|
+
}
|
|
2476
|
+
if (data.code !== void 0) {
|
|
2477
|
+
return sanitizeErrorCode(data.code);
|
|
2478
|
+
}
|
|
2479
|
+
if (data["__type"] !== void 0) {
|
|
2480
|
+
return sanitizeErrorCode(data["__type"]);
|
|
2481
|
+
}
|
|
2482
|
+
}, "loadRestJsonErrorCode");
|
|
2483
|
+
|
|
2484
|
+
// src/commands/AbortMultipartUploadCommand.ts
|
|
2485
|
+
var _AbortMultipartUploadCommand = class _AbortMultipartUploadCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2486
|
+
...commonParams
|
|
2487
|
+
}).m(function(Command, cs, config, o) {
|
|
2488
|
+
return [
|
|
2489
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2490
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2491
|
+
];
|
|
2492
|
+
}).s("Glacier", "AbortMultipartUpload", {}).n("GlacierClient", "AbortMultipartUploadCommand").f(void 0, void 0).ser(se_AbortMultipartUploadCommand).de(de_AbortMultipartUploadCommand).build() {
|
|
2493
|
+
};
|
|
2494
|
+
__name(_AbortMultipartUploadCommand, "AbortMultipartUploadCommand");
|
|
2495
|
+
var AbortMultipartUploadCommand = _AbortMultipartUploadCommand;
|
|
2496
|
+
|
|
2497
|
+
// src/commands/AbortVaultLockCommand.ts
|
|
2498
|
+
|
|
2499
|
+
|
|
2500
|
+
|
|
2501
|
+
|
|
2502
|
+
var _AbortVaultLockCommand = class _AbortVaultLockCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2503
|
+
...commonParams
|
|
2504
|
+
}).m(function(Command, cs, config, o) {
|
|
2505
|
+
return [
|
|
2506
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2507
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2508
|
+
];
|
|
2509
|
+
}).s("Glacier", "AbortVaultLock", {}).n("GlacierClient", "AbortVaultLockCommand").f(void 0, void 0).ser(se_AbortVaultLockCommand).de(de_AbortVaultLockCommand).build() {
|
|
2510
|
+
};
|
|
2511
|
+
__name(_AbortVaultLockCommand, "AbortVaultLockCommand");
|
|
2512
|
+
var AbortVaultLockCommand = _AbortVaultLockCommand;
|
|
2513
|
+
|
|
2514
|
+
// src/commands/AddTagsToVaultCommand.ts
|
|
2515
|
+
|
|
2516
|
+
|
|
2517
|
+
|
|
2518
|
+
|
|
2519
|
+
var _AddTagsToVaultCommand = class _AddTagsToVaultCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2520
|
+
...commonParams
|
|
2521
|
+
}).m(function(Command, cs, config, o) {
|
|
2522
|
+
return [
|
|
2523
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2524
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2525
|
+
];
|
|
2526
|
+
}).s("Glacier", "AddTagsToVault", {}).n("GlacierClient", "AddTagsToVaultCommand").f(void 0, void 0).ser(se_AddTagsToVaultCommand).de(de_AddTagsToVaultCommand).build() {
|
|
2527
|
+
};
|
|
2528
|
+
__name(_AddTagsToVaultCommand, "AddTagsToVaultCommand");
|
|
2529
|
+
var AddTagsToVaultCommand = _AddTagsToVaultCommand;
|
|
2530
|
+
|
|
2531
|
+
// src/commands/CompleteMultipartUploadCommand.ts
|
|
2532
|
+
|
|
2533
|
+
|
|
2534
|
+
|
|
2535
|
+
|
|
2536
|
+
var _CompleteMultipartUploadCommand = class _CompleteMultipartUploadCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2537
|
+
...commonParams
|
|
2538
|
+
}).m(function(Command, cs, config, o) {
|
|
2539
|
+
return [
|
|
2540
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2541
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2542
|
+
];
|
|
2543
|
+
}).s("Glacier", "CompleteMultipartUpload", {}).n("GlacierClient", "CompleteMultipartUploadCommand").f(void 0, void 0).ser(se_CompleteMultipartUploadCommand).de(de_CompleteMultipartUploadCommand).build() {
|
|
2544
|
+
};
|
|
2545
|
+
__name(_CompleteMultipartUploadCommand, "CompleteMultipartUploadCommand");
|
|
2546
|
+
var CompleteMultipartUploadCommand = _CompleteMultipartUploadCommand;
|
|
2547
|
+
|
|
2548
|
+
// src/commands/CompleteVaultLockCommand.ts
|
|
2549
|
+
|
|
2550
|
+
|
|
2551
|
+
|
|
2552
|
+
|
|
2553
|
+
var _CompleteVaultLockCommand = class _CompleteVaultLockCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2554
|
+
...commonParams
|
|
2555
|
+
}).m(function(Command, cs, config, o) {
|
|
2556
|
+
return [
|
|
2557
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2558
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2559
|
+
];
|
|
2560
|
+
}).s("Glacier", "CompleteVaultLock", {}).n("GlacierClient", "CompleteVaultLockCommand").f(void 0, void 0).ser(se_CompleteVaultLockCommand).de(de_CompleteVaultLockCommand).build() {
|
|
2561
|
+
};
|
|
2562
|
+
__name(_CompleteVaultLockCommand, "CompleteVaultLockCommand");
|
|
2563
|
+
var CompleteVaultLockCommand = _CompleteVaultLockCommand;
|
|
2564
|
+
|
|
2565
|
+
// src/commands/CreateVaultCommand.ts
|
|
2566
|
+
|
|
2567
|
+
|
|
2568
|
+
|
|
2569
|
+
|
|
2570
|
+
var _CreateVaultCommand = class _CreateVaultCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2571
|
+
...commonParams
|
|
2572
|
+
}).m(function(Command, cs, config, o) {
|
|
2573
|
+
return [
|
|
2574
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2575
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2576
|
+
];
|
|
2577
|
+
}).s("Glacier", "CreateVault", {}).n("GlacierClient", "CreateVaultCommand").f(void 0, void 0).ser(se_CreateVaultCommand).de(de_CreateVaultCommand).build() {
|
|
2578
|
+
};
|
|
2579
|
+
__name(_CreateVaultCommand, "CreateVaultCommand");
|
|
2580
|
+
var CreateVaultCommand = _CreateVaultCommand;
|
|
2581
|
+
|
|
2582
|
+
// src/commands/DeleteArchiveCommand.ts
|
|
2583
|
+
|
|
2584
|
+
|
|
2585
|
+
|
|
2586
|
+
|
|
2587
|
+
var _DeleteArchiveCommand = class _DeleteArchiveCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2588
|
+
...commonParams
|
|
2589
|
+
}).m(function(Command, cs, config, o) {
|
|
2590
|
+
return [
|
|
2591
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2592
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2593
|
+
];
|
|
2594
|
+
}).s("Glacier", "DeleteArchive", {}).n("GlacierClient", "DeleteArchiveCommand").f(void 0, void 0).ser(se_DeleteArchiveCommand).de(de_DeleteArchiveCommand).build() {
|
|
2595
|
+
};
|
|
2596
|
+
__name(_DeleteArchiveCommand, "DeleteArchiveCommand");
|
|
2597
|
+
var DeleteArchiveCommand = _DeleteArchiveCommand;
|
|
2598
|
+
|
|
2599
|
+
// src/commands/DeleteVaultAccessPolicyCommand.ts
|
|
2600
|
+
|
|
2601
|
+
|
|
2602
|
+
|
|
2603
|
+
|
|
2604
|
+
var _DeleteVaultAccessPolicyCommand = class _DeleteVaultAccessPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2605
|
+
...commonParams
|
|
2606
|
+
}).m(function(Command, cs, config, o) {
|
|
2607
|
+
return [
|
|
2608
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2609
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2610
|
+
];
|
|
2611
|
+
}).s("Glacier", "DeleteVaultAccessPolicy", {}).n("GlacierClient", "DeleteVaultAccessPolicyCommand").f(void 0, void 0).ser(se_DeleteVaultAccessPolicyCommand).de(de_DeleteVaultAccessPolicyCommand).build() {
|
|
2612
|
+
};
|
|
2613
|
+
__name(_DeleteVaultAccessPolicyCommand, "DeleteVaultAccessPolicyCommand");
|
|
2614
|
+
var DeleteVaultAccessPolicyCommand = _DeleteVaultAccessPolicyCommand;
|
|
2615
|
+
|
|
2616
|
+
// src/commands/DeleteVaultCommand.ts
|
|
2617
|
+
|
|
2618
|
+
|
|
2619
|
+
|
|
2620
|
+
|
|
2621
|
+
var _DeleteVaultCommand = class _DeleteVaultCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2622
|
+
...commonParams
|
|
2623
|
+
}).m(function(Command, cs, config, o) {
|
|
2624
|
+
return [
|
|
2625
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2626
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2627
|
+
];
|
|
2628
|
+
}).s("Glacier", "DeleteVault", {}).n("GlacierClient", "DeleteVaultCommand").f(void 0, void 0).ser(se_DeleteVaultCommand).de(de_DeleteVaultCommand).build() {
|
|
2629
|
+
};
|
|
2630
|
+
__name(_DeleteVaultCommand, "DeleteVaultCommand");
|
|
2631
|
+
var DeleteVaultCommand = _DeleteVaultCommand;
|
|
2632
|
+
|
|
2633
|
+
// src/commands/DeleteVaultNotificationsCommand.ts
|
|
2634
|
+
|
|
2635
|
+
|
|
2636
|
+
|
|
2637
|
+
|
|
2638
|
+
var _DeleteVaultNotificationsCommand = class _DeleteVaultNotificationsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2639
|
+
...commonParams
|
|
2640
|
+
}).m(function(Command, cs, config, o) {
|
|
2641
|
+
return [
|
|
2642
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2643
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2644
|
+
];
|
|
2645
|
+
}).s("Glacier", "DeleteVaultNotifications", {}).n("GlacierClient", "DeleteVaultNotificationsCommand").f(void 0, void 0).ser(se_DeleteVaultNotificationsCommand).de(de_DeleteVaultNotificationsCommand).build() {
|
|
2646
|
+
};
|
|
2647
|
+
__name(_DeleteVaultNotificationsCommand, "DeleteVaultNotificationsCommand");
|
|
2648
|
+
var DeleteVaultNotificationsCommand = _DeleteVaultNotificationsCommand;
|
|
2649
|
+
|
|
2650
|
+
// src/commands/DescribeJobCommand.ts
|
|
2651
|
+
|
|
2652
|
+
|
|
2653
|
+
|
|
2654
|
+
|
|
2655
|
+
var _DescribeJobCommand = class _DescribeJobCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2656
|
+
...commonParams
|
|
2657
|
+
}).m(function(Command, cs, config, o) {
|
|
2658
|
+
return [
|
|
2659
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2660
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2661
|
+
];
|
|
2662
|
+
}).s("Glacier", "DescribeJob", {}).n("GlacierClient", "DescribeJobCommand").f(void 0, void 0).ser(se_DescribeJobCommand).de(de_DescribeJobCommand).build() {
|
|
2663
|
+
};
|
|
2664
|
+
__name(_DescribeJobCommand, "DescribeJobCommand");
|
|
2665
|
+
var DescribeJobCommand = _DescribeJobCommand;
|
|
2666
|
+
|
|
2667
|
+
// src/commands/DescribeVaultCommand.ts
|
|
2668
|
+
|
|
2669
|
+
|
|
2670
|
+
|
|
2671
|
+
|
|
2672
|
+
var _DescribeVaultCommand = class _DescribeVaultCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2673
|
+
...commonParams
|
|
2674
|
+
}).m(function(Command, cs, config, o) {
|
|
2675
|
+
return [
|
|
2676
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2677
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2678
|
+
];
|
|
2679
|
+
}).s("Glacier", "DescribeVault", {}).n("GlacierClient", "DescribeVaultCommand").f(void 0, void 0).ser(se_DescribeVaultCommand).de(de_DescribeVaultCommand).build() {
|
|
2680
|
+
};
|
|
2681
|
+
__name(_DescribeVaultCommand, "DescribeVaultCommand");
|
|
2682
|
+
var DescribeVaultCommand = _DescribeVaultCommand;
|
|
2683
|
+
|
|
2684
|
+
// src/commands/GetDataRetrievalPolicyCommand.ts
|
|
2685
|
+
|
|
2686
|
+
|
|
2687
|
+
|
|
2688
|
+
|
|
2689
|
+
var _GetDataRetrievalPolicyCommand = class _GetDataRetrievalPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2690
|
+
...commonParams
|
|
2691
|
+
}).m(function(Command, cs, config, o) {
|
|
2692
|
+
return [
|
|
2693
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2694
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2695
|
+
];
|
|
2696
|
+
}).s("Glacier", "GetDataRetrievalPolicy", {}).n("GlacierClient", "GetDataRetrievalPolicyCommand").f(void 0, void 0).ser(se_GetDataRetrievalPolicyCommand).de(de_GetDataRetrievalPolicyCommand).build() {
|
|
2697
|
+
};
|
|
2698
|
+
__name(_GetDataRetrievalPolicyCommand, "GetDataRetrievalPolicyCommand");
|
|
2699
|
+
var GetDataRetrievalPolicyCommand = _GetDataRetrievalPolicyCommand;
|
|
2700
|
+
|
|
2701
|
+
// src/commands/GetJobOutputCommand.ts
|
|
2702
|
+
|
|
2703
|
+
|
|
2704
|
+
|
|
2705
|
+
|
|
2706
|
+
var _GetJobOutputCommand = class _GetJobOutputCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2707
|
+
...commonParams
|
|
2708
|
+
}).m(function(Command, cs, config, o) {
|
|
2709
|
+
return [
|
|
2710
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2711
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2712
|
+
];
|
|
2713
|
+
}).s("Glacier", "GetJobOutput", {}).n("GlacierClient", "GetJobOutputCommand").f(void 0, GetJobOutputOutputFilterSensitiveLog).ser(se_GetJobOutputCommand).de(de_GetJobOutputCommand).build() {
|
|
2714
|
+
};
|
|
2715
|
+
__name(_GetJobOutputCommand, "GetJobOutputCommand");
|
|
2716
|
+
var GetJobOutputCommand = _GetJobOutputCommand;
|
|
2717
|
+
|
|
2718
|
+
// src/commands/GetVaultAccessPolicyCommand.ts
|
|
2719
|
+
|
|
2720
|
+
|
|
2721
|
+
|
|
2722
|
+
|
|
2723
|
+
var _GetVaultAccessPolicyCommand = class _GetVaultAccessPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2724
|
+
...commonParams
|
|
2725
|
+
}).m(function(Command, cs, config, o) {
|
|
2726
|
+
return [
|
|
2727
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2728
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2729
|
+
];
|
|
2730
|
+
}).s("Glacier", "GetVaultAccessPolicy", {}).n("GlacierClient", "GetVaultAccessPolicyCommand").f(void 0, void 0).ser(se_GetVaultAccessPolicyCommand).de(de_GetVaultAccessPolicyCommand).build() {
|
|
2731
|
+
};
|
|
2732
|
+
__name(_GetVaultAccessPolicyCommand, "GetVaultAccessPolicyCommand");
|
|
2733
|
+
var GetVaultAccessPolicyCommand = _GetVaultAccessPolicyCommand;
|
|
2734
|
+
|
|
2735
|
+
// src/commands/GetVaultLockCommand.ts
|
|
2736
|
+
|
|
2737
|
+
|
|
2738
|
+
|
|
2739
|
+
|
|
2740
|
+
var _GetVaultLockCommand = class _GetVaultLockCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2741
|
+
...commonParams
|
|
2742
|
+
}).m(function(Command, cs, config, o) {
|
|
2743
|
+
return [
|
|
2744
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2745
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2746
|
+
];
|
|
2747
|
+
}).s("Glacier", "GetVaultLock", {}).n("GlacierClient", "GetVaultLockCommand").f(void 0, void 0).ser(se_GetVaultLockCommand).de(de_GetVaultLockCommand).build() {
|
|
2748
|
+
};
|
|
2749
|
+
__name(_GetVaultLockCommand, "GetVaultLockCommand");
|
|
2750
|
+
var GetVaultLockCommand = _GetVaultLockCommand;
|
|
2751
|
+
|
|
2752
|
+
// src/commands/GetVaultNotificationsCommand.ts
|
|
2753
|
+
|
|
2754
|
+
|
|
2755
|
+
|
|
2756
|
+
|
|
2757
|
+
var _GetVaultNotificationsCommand = class _GetVaultNotificationsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2758
|
+
...commonParams
|
|
2759
|
+
}).m(function(Command, cs, config, o) {
|
|
2760
|
+
return [
|
|
2761
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2762
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2763
|
+
];
|
|
2764
|
+
}).s("Glacier", "GetVaultNotifications", {}).n("GlacierClient", "GetVaultNotificationsCommand").f(void 0, void 0).ser(se_GetVaultNotificationsCommand).de(de_GetVaultNotificationsCommand).build() {
|
|
2765
|
+
};
|
|
2766
|
+
__name(_GetVaultNotificationsCommand, "GetVaultNotificationsCommand");
|
|
2767
|
+
var GetVaultNotificationsCommand = _GetVaultNotificationsCommand;
|
|
2768
|
+
|
|
2769
|
+
// src/commands/InitiateJobCommand.ts
|
|
2770
|
+
|
|
2771
|
+
|
|
2772
|
+
|
|
2773
|
+
|
|
2774
|
+
var _InitiateJobCommand = class _InitiateJobCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2775
|
+
...commonParams
|
|
2776
|
+
}).m(function(Command, cs, config, o) {
|
|
2777
|
+
return [
|
|
2778
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2779
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2780
|
+
];
|
|
2781
|
+
}).s("Glacier", "InitiateJob", {}).n("GlacierClient", "InitiateJobCommand").f(void 0, void 0).ser(se_InitiateJobCommand).de(de_InitiateJobCommand).build() {
|
|
2782
|
+
};
|
|
2783
|
+
__name(_InitiateJobCommand, "InitiateJobCommand");
|
|
2784
|
+
var InitiateJobCommand = _InitiateJobCommand;
|
|
2785
|
+
|
|
2786
|
+
// src/commands/InitiateMultipartUploadCommand.ts
|
|
2787
|
+
|
|
2788
|
+
|
|
2789
|
+
|
|
2790
|
+
|
|
2791
|
+
var _InitiateMultipartUploadCommand = class _InitiateMultipartUploadCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2792
|
+
...commonParams
|
|
2793
|
+
}).m(function(Command, cs, config, o) {
|
|
2794
|
+
return [
|
|
2795
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2796
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2797
|
+
];
|
|
2798
|
+
}).s("Glacier", "InitiateMultipartUpload", {}).n("GlacierClient", "InitiateMultipartUploadCommand").f(void 0, void 0).ser(se_InitiateMultipartUploadCommand).de(de_InitiateMultipartUploadCommand).build() {
|
|
2799
|
+
};
|
|
2800
|
+
__name(_InitiateMultipartUploadCommand, "InitiateMultipartUploadCommand");
|
|
2801
|
+
var InitiateMultipartUploadCommand = _InitiateMultipartUploadCommand;
|
|
2802
|
+
|
|
2803
|
+
// src/commands/InitiateVaultLockCommand.ts
|
|
2804
|
+
|
|
2805
|
+
|
|
2806
|
+
|
|
2807
|
+
|
|
2808
|
+
var _InitiateVaultLockCommand = class _InitiateVaultLockCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2809
|
+
...commonParams
|
|
2810
|
+
}).m(function(Command, cs, config, o) {
|
|
2811
|
+
return [
|
|
2812
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2813
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2814
|
+
];
|
|
2815
|
+
}).s("Glacier", "InitiateVaultLock", {}).n("GlacierClient", "InitiateVaultLockCommand").f(void 0, void 0).ser(se_InitiateVaultLockCommand).de(de_InitiateVaultLockCommand).build() {
|
|
2816
|
+
};
|
|
2817
|
+
__name(_InitiateVaultLockCommand, "InitiateVaultLockCommand");
|
|
2818
|
+
var InitiateVaultLockCommand = _InitiateVaultLockCommand;
|
|
2819
|
+
|
|
2820
|
+
// src/commands/ListJobsCommand.ts
|
|
2821
|
+
|
|
2822
|
+
|
|
2823
|
+
|
|
2824
|
+
|
|
2825
|
+
var _ListJobsCommand = class _ListJobsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2826
|
+
...commonParams
|
|
2827
|
+
}).m(function(Command, cs, config, o) {
|
|
2828
|
+
return [
|
|
2829
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2830
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2831
|
+
];
|
|
2832
|
+
}).s("Glacier", "ListJobs", {}).n("GlacierClient", "ListJobsCommand").f(void 0, void 0).ser(se_ListJobsCommand).de(de_ListJobsCommand).build() {
|
|
2833
|
+
};
|
|
2834
|
+
__name(_ListJobsCommand, "ListJobsCommand");
|
|
2835
|
+
var ListJobsCommand = _ListJobsCommand;
|
|
2836
|
+
|
|
2837
|
+
// src/commands/ListMultipartUploadsCommand.ts
|
|
2838
|
+
|
|
2839
|
+
|
|
2840
|
+
|
|
2841
|
+
|
|
2842
|
+
var _ListMultipartUploadsCommand = class _ListMultipartUploadsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2843
|
+
...commonParams
|
|
2844
|
+
}).m(function(Command, cs, config, o) {
|
|
2845
|
+
return [
|
|
2846
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2847
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2848
|
+
];
|
|
2849
|
+
}).s("Glacier", "ListMultipartUploads", {}).n("GlacierClient", "ListMultipartUploadsCommand").f(void 0, void 0).ser(se_ListMultipartUploadsCommand).de(de_ListMultipartUploadsCommand).build() {
|
|
2850
|
+
};
|
|
2851
|
+
__name(_ListMultipartUploadsCommand, "ListMultipartUploadsCommand");
|
|
2852
|
+
var ListMultipartUploadsCommand = _ListMultipartUploadsCommand;
|
|
2853
|
+
|
|
2854
|
+
// src/commands/ListPartsCommand.ts
|
|
2855
|
+
|
|
2856
|
+
|
|
2857
|
+
|
|
2858
|
+
|
|
2859
|
+
var _ListPartsCommand = class _ListPartsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2860
|
+
...commonParams
|
|
2861
|
+
}).m(function(Command, cs, config, o) {
|
|
2862
|
+
return [
|
|
2863
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2864
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2865
|
+
];
|
|
2866
|
+
}).s("Glacier", "ListParts", {}).n("GlacierClient", "ListPartsCommand").f(void 0, void 0).ser(se_ListPartsCommand).de(de_ListPartsCommand).build() {
|
|
2867
|
+
};
|
|
2868
|
+
__name(_ListPartsCommand, "ListPartsCommand");
|
|
2869
|
+
var ListPartsCommand = _ListPartsCommand;
|
|
2870
|
+
|
|
2871
|
+
// src/commands/ListProvisionedCapacityCommand.ts
|
|
2872
|
+
|
|
2873
|
+
|
|
2874
|
+
|
|
2875
|
+
|
|
2876
|
+
var _ListProvisionedCapacityCommand = class _ListProvisionedCapacityCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2877
|
+
...commonParams
|
|
2878
|
+
}).m(function(Command, cs, config, o) {
|
|
2879
|
+
return [
|
|
2880
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2881
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2882
|
+
];
|
|
2883
|
+
}).s("Glacier", "ListProvisionedCapacity", {}).n("GlacierClient", "ListProvisionedCapacityCommand").f(void 0, void 0).ser(se_ListProvisionedCapacityCommand).de(de_ListProvisionedCapacityCommand).build() {
|
|
2884
|
+
};
|
|
2885
|
+
__name(_ListProvisionedCapacityCommand, "ListProvisionedCapacityCommand");
|
|
2886
|
+
var ListProvisionedCapacityCommand = _ListProvisionedCapacityCommand;
|
|
2887
|
+
|
|
2888
|
+
// src/commands/ListTagsForVaultCommand.ts
|
|
2889
|
+
|
|
2890
|
+
|
|
2891
|
+
|
|
2892
|
+
|
|
2893
|
+
var _ListTagsForVaultCommand = class _ListTagsForVaultCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2894
|
+
...commonParams
|
|
2895
|
+
}).m(function(Command, cs, config, o) {
|
|
2896
|
+
return [
|
|
2897
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2898
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2899
|
+
];
|
|
2900
|
+
}).s("Glacier", "ListTagsForVault", {}).n("GlacierClient", "ListTagsForVaultCommand").f(void 0, void 0).ser(se_ListTagsForVaultCommand).de(de_ListTagsForVaultCommand).build() {
|
|
2901
|
+
};
|
|
2902
|
+
__name(_ListTagsForVaultCommand, "ListTagsForVaultCommand");
|
|
2903
|
+
var ListTagsForVaultCommand = _ListTagsForVaultCommand;
|
|
2904
|
+
|
|
2905
|
+
// src/commands/ListVaultsCommand.ts
|
|
2906
|
+
|
|
2907
|
+
|
|
2908
|
+
|
|
2909
|
+
|
|
2910
|
+
var _ListVaultsCommand = class _ListVaultsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2911
|
+
...commonParams
|
|
2912
|
+
}).m(function(Command, cs, config, o) {
|
|
2913
|
+
return [
|
|
2914
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2915
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2916
|
+
];
|
|
2917
|
+
}).s("Glacier", "ListVaults", {}).n("GlacierClient", "ListVaultsCommand").f(void 0, void 0).ser(se_ListVaultsCommand).de(de_ListVaultsCommand).build() {
|
|
2918
|
+
};
|
|
2919
|
+
__name(_ListVaultsCommand, "ListVaultsCommand");
|
|
2920
|
+
var ListVaultsCommand = _ListVaultsCommand;
|
|
2921
|
+
|
|
2922
|
+
// src/commands/PurchaseProvisionedCapacityCommand.ts
|
|
2923
|
+
|
|
2924
|
+
|
|
2925
|
+
|
|
2926
|
+
|
|
2927
|
+
var _PurchaseProvisionedCapacityCommand = class _PurchaseProvisionedCapacityCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2928
|
+
...commonParams
|
|
2929
|
+
}).m(function(Command, cs, config, o) {
|
|
2930
|
+
return [
|
|
2931
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2932
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2933
|
+
];
|
|
2934
|
+
}).s("Glacier", "PurchaseProvisionedCapacity", {}).n("GlacierClient", "PurchaseProvisionedCapacityCommand").f(void 0, void 0).ser(se_PurchaseProvisionedCapacityCommand).de(de_PurchaseProvisionedCapacityCommand).build() {
|
|
2935
|
+
};
|
|
2936
|
+
__name(_PurchaseProvisionedCapacityCommand, "PurchaseProvisionedCapacityCommand");
|
|
2937
|
+
var PurchaseProvisionedCapacityCommand = _PurchaseProvisionedCapacityCommand;
|
|
2938
|
+
|
|
2939
|
+
// src/commands/RemoveTagsFromVaultCommand.ts
|
|
2940
|
+
|
|
2941
|
+
|
|
2942
|
+
|
|
2943
|
+
|
|
2944
|
+
var _RemoveTagsFromVaultCommand = class _RemoveTagsFromVaultCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2945
|
+
...commonParams
|
|
2946
|
+
}).m(function(Command, cs, config, o) {
|
|
2947
|
+
return [
|
|
2948
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2949
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2950
|
+
];
|
|
2951
|
+
}).s("Glacier", "RemoveTagsFromVault", {}).n("GlacierClient", "RemoveTagsFromVaultCommand").f(void 0, void 0).ser(se_RemoveTagsFromVaultCommand).de(de_RemoveTagsFromVaultCommand).build() {
|
|
2952
|
+
};
|
|
2953
|
+
__name(_RemoveTagsFromVaultCommand, "RemoveTagsFromVaultCommand");
|
|
2954
|
+
var RemoveTagsFromVaultCommand = _RemoveTagsFromVaultCommand;
|
|
2955
|
+
|
|
2956
|
+
// src/commands/SetDataRetrievalPolicyCommand.ts
|
|
2957
|
+
|
|
2958
|
+
|
|
2959
|
+
|
|
2960
|
+
|
|
2961
|
+
var _SetDataRetrievalPolicyCommand = class _SetDataRetrievalPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2962
|
+
...commonParams
|
|
2963
|
+
}).m(function(Command, cs, config, o) {
|
|
2964
|
+
return [
|
|
2965
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2966
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2967
|
+
];
|
|
2968
|
+
}).s("Glacier", "SetDataRetrievalPolicy", {}).n("GlacierClient", "SetDataRetrievalPolicyCommand").f(void 0, void 0).ser(se_SetDataRetrievalPolicyCommand).de(de_SetDataRetrievalPolicyCommand).build() {
|
|
2969
|
+
};
|
|
2970
|
+
__name(_SetDataRetrievalPolicyCommand, "SetDataRetrievalPolicyCommand");
|
|
2971
|
+
var SetDataRetrievalPolicyCommand = _SetDataRetrievalPolicyCommand;
|
|
2972
|
+
|
|
2973
|
+
// src/commands/SetVaultAccessPolicyCommand.ts
|
|
2974
|
+
|
|
2975
|
+
|
|
2976
|
+
|
|
2977
|
+
|
|
2978
|
+
var _SetVaultAccessPolicyCommand = class _SetVaultAccessPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2979
|
+
...commonParams
|
|
2980
|
+
}).m(function(Command, cs, config, o) {
|
|
2981
|
+
return [
|
|
2982
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2983
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2984
|
+
];
|
|
2985
|
+
}).s("Glacier", "SetVaultAccessPolicy", {}).n("GlacierClient", "SetVaultAccessPolicyCommand").f(void 0, void 0).ser(se_SetVaultAccessPolicyCommand).de(de_SetVaultAccessPolicyCommand).build() {
|
|
2986
|
+
};
|
|
2987
|
+
__name(_SetVaultAccessPolicyCommand, "SetVaultAccessPolicyCommand");
|
|
2988
|
+
var SetVaultAccessPolicyCommand = _SetVaultAccessPolicyCommand;
|
|
2989
|
+
|
|
2990
|
+
// src/commands/SetVaultNotificationsCommand.ts
|
|
2991
|
+
|
|
2992
|
+
|
|
2993
|
+
|
|
2994
|
+
|
|
2995
|
+
var _SetVaultNotificationsCommand = class _SetVaultNotificationsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2996
|
+
...commonParams
|
|
2997
|
+
}).m(function(Command, cs, config, o) {
|
|
2998
|
+
return [
|
|
2999
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3000
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3001
|
+
];
|
|
3002
|
+
}).s("Glacier", "SetVaultNotifications", {}).n("GlacierClient", "SetVaultNotificationsCommand").f(void 0, void 0).ser(se_SetVaultNotificationsCommand).de(de_SetVaultNotificationsCommand).build() {
|
|
3003
|
+
};
|
|
3004
|
+
__name(_SetVaultNotificationsCommand, "SetVaultNotificationsCommand");
|
|
3005
|
+
var SetVaultNotificationsCommand = _SetVaultNotificationsCommand;
|
|
3006
|
+
|
|
3007
|
+
// src/commands/UploadArchiveCommand.ts
|
|
3008
|
+
|
|
3009
|
+
|
|
3010
|
+
|
|
3011
|
+
|
|
3012
|
+
var _UploadArchiveCommand = class _UploadArchiveCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3013
|
+
...commonParams
|
|
3014
|
+
}).m(function(Command, cs, config, o) {
|
|
3015
|
+
return [
|
|
3016
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3017
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3018
|
+
];
|
|
3019
|
+
}).s("Glacier", "UploadArchive", {}).n("GlacierClient", "UploadArchiveCommand").f(UploadArchiveInputFilterSensitiveLog, void 0).ser(se_UploadArchiveCommand).de(de_UploadArchiveCommand).build() {
|
|
3020
|
+
};
|
|
3021
|
+
__name(_UploadArchiveCommand, "UploadArchiveCommand");
|
|
3022
|
+
var UploadArchiveCommand = _UploadArchiveCommand;
|
|
3023
|
+
|
|
3024
|
+
// src/commands/UploadMultipartPartCommand.ts
|
|
3025
|
+
|
|
3026
|
+
|
|
3027
|
+
|
|
3028
|
+
|
|
3029
|
+
var _UploadMultipartPartCommand = class _UploadMultipartPartCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3030
|
+
...commonParams
|
|
3031
|
+
}).m(function(Command, cs, config, o) {
|
|
3032
|
+
return [
|
|
3033
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3034
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3035
|
+
];
|
|
3036
|
+
}).s("Glacier", "UploadMultipartPart", {}).n("GlacierClient", "UploadMultipartPartCommand").f(UploadMultipartPartInputFilterSensitiveLog, void 0).ser(se_UploadMultipartPartCommand).de(de_UploadMultipartPartCommand).build() {
|
|
3037
|
+
};
|
|
3038
|
+
__name(_UploadMultipartPartCommand, "UploadMultipartPartCommand");
|
|
3039
|
+
var UploadMultipartPartCommand = _UploadMultipartPartCommand;
|
|
3040
|
+
|
|
3041
|
+
// src/Glacier.ts
|
|
3042
|
+
var commands = {
|
|
3043
|
+
AbortMultipartUploadCommand,
|
|
3044
|
+
AbortVaultLockCommand,
|
|
3045
|
+
AddTagsToVaultCommand,
|
|
3046
|
+
CompleteMultipartUploadCommand,
|
|
3047
|
+
CompleteVaultLockCommand,
|
|
3048
|
+
CreateVaultCommand,
|
|
3049
|
+
DeleteArchiveCommand,
|
|
3050
|
+
DeleteVaultCommand,
|
|
3051
|
+
DeleteVaultAccessPolicyCommand,
|
|
3052
|
+
DeleteVaultNotificationsCommand,
|
|
3053
|
+
DescribeJobCommand,
|
|
3054
|
+
DescribeVaultCommand,
|
|
3055
|
+
GetDataRetrievalPolicyCommand,
|
|
3056
|
+
GetJobOutputCommand,
|
|
3057
|
+
GetVaultAccessPolicyCommand,
|
|
3058
|
+
GetVaultLockCommand,
|
|
3059
|
+
GetVaultNotificationsCommand,
|
|
3060
|
+
InitiateJobCommand,
|
|
3061
|
+
InitiateMultipartUploadCommand,
|
|
3062
|
+
InitiateVaultLockCommand,
|
|
3063
|
+
ListJobsCommand,
|
|
3064
|
+
ListMultipartUploadsCommand,
|
|
3065
|
+
ListPartsCommand,
|
|
3066
|
+
ListProvisionedCapacityCommand,
|
|
3067
|
+
ListTagsForVaultCommand,
|
|
3068
|
+
ListVaultsCommand,
|
|
3069
|
+
PurchaseProvisionedCapacityCommand,
|
|
3070
|
+
RemoveTagsFromVaultCommand,
|
|
3071
|
+
SetDataRetrievalPolicyCommand,
|
|
3072
|
+
SetVaultAccessPolicyCommand,
|
|
3073
|
+
SetVaultNotificationsCommand,
|
|
3074
|
+
UploadArchiveCommand,
|
|
3075
|
+
UploadMultipartPartCommand
|
|
3076
|
+
};
|
|
3077
|
+
var _Glacier = class _Glacier extends GlacierClient {
|
|
3078
|
+
};
|
|
3079
|
+
__name(_Glacier, "Glacier");
|
|
3080
|
+
var Glacier = _Glacier;
|
|
3081
|
+
(0, import_smithy_client.createAggregatedClient)(commands, Glacier);
|
|
3082
|
+
|
|
3083
|
+
// src/pagination/ListJobsPaginator.ts
|
|
3084
|
+
|
|
3085
|
+
var paginateListJobs = (0, import_core.createPaginator)(GlacierClient, ListJobsCommand, "marker", "Marker", "limit");
|
|
3086
|
+
|
|
3087
|
+
// src/pagination/ListMultipartUploadsPaginator.ts
|
|
3088
|
+
|
|
3089
|
+
var paginateListMultipartUploads = (0, import_core.createPaginator)(GlacierClient, ListMultipartUploadsCommand, "marker", "Marker", "limit");
|
|
3090
|
+
|
|
3091
|
+
// src/pagination/ListPartsPaginator.ts
|
|
3092
|
+
|
|
3093
|
+
var paginateListParts = (0, import_core.createPaginator)(GlacierClient, ListPartsCommand, "marker", "Marker", "limit");
|
|
3094
|
+
|
|
3095
|
+
// src/pagination/ListVaultsPaginator.ts
|
|
3096
|
+
|
|
3097
|
+
var paginateListVaults = (0, import_core.createPaginator)(GlacierClient, ListVaultsCommand, "marker", "Marker", "limit");
|
|
3098
|
+
|
|
3099
|
+
// src/waiters/waitForVaultExists.ts
|
|
3100
|
+
var import_util_waiter = require("@smithy/util-waiter");
|
|
3101
|
+
var checkState = /* @__PURE__ */ __name(async (client, input) => {
|
|
3102
|
+
let reason;
|
|
3103
|
+
try {
|
|
3104
|
+
const result = await client.send(new DescribeVaultCommand(input));
|
|
3105
|
+
reason = result;
|
|
3106
|
+
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
3107
|
+
} catch (exception) {
|
|
3108
|
+
reason = exception;
|
|
3109
|
+
if (exception.name && exception.name == "ResourceNotFoundException") {
|
|
3110
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
3111
|
+
}
|
|
3112
|
+
}
|
|
3113
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
3114
|
+
}, "checkState");
|
|
3115
|
+
var waitForVaultExists = /* @__PURE__ */ __name(async (params, input) => {
|
|
3116
|
+
const serviceDefaults = { minDelay: 3, maxDelay: 120 };
|
|
3117
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
3118
|
+
}, "waitForVaultExists");
|
|
3119
|
+
var waitUntilVaultExists = /* @__PURE__ */ __name(async (params, input) => {
|
|
3120
|
+
const serviceDefaults = { minDelay: 3, maxDelay: 120 };
|
|
3121
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
3122
|
+
return (0, import_util_waiter.checkExceptions)(result);
|
|
3123
|
+
}, "waitUntilVaultExists");
|
|
3124
|
+
|
|
3125
|
+
// src/waiters/waitForVaultNotExists.ts
|
|
3126
|
+
|
|
3127
|
+
var checkState2 = /* @__PURE__ */ __name(async (client, input) => {
|
|
3128
|
+
let reason;
|
|
3129
|
+
try {
|
|
3130
|
+
const result = await client.send(new DescribeVaultCommand(input));
|
|
3131
|
+
reason = result;
|
|
3132
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
3133
|
+
} catch (exception) {
|
|
3134
|
+
reason = exception;
|
|
3135
|
+
if (exception.name && exception.name == "ResourceNotFoundException") {
|
|
3136
|
+
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
3137
|
+
}
|
|
3138
|
+
}
|
|
3139
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
3140
|
+
}, "checkState");
|
|
3141
|
+
var waitForVaultNotExists = /* @__PURE__ */ __name(async (params, input) => {
|
|
3142
|
+
const serviceDefaults = { minDelay: 3, maxDelay: 120 };
|
|
3143
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
|
|
3144
|
+
}, "waitForVaultNotExists");
|
|
3145
|
+
var waitUntilVaultNotExists = /* @__PURE__ */ __name(async (params, input) => {
|
|
3146
|
+
const serviceDefaults = { minDelay: 3, maxDelay: 120 };
|
|
3147
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
|
|
3148
|
+
return (0, import_util_waiter.checkExceptions)(result);
|
|
3149
|
+
}, "waitUntilVaultNotExists");
|
|
3150
|
+
|
|
3151
|
+
// src/index.ts
|
|
3152
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
3153
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
3154
|
+
0 && (module.exports = {
|
|
3155
|
+
AbortMultipartUploadCommand,
|
|
3156
|
+
AbortVaultLockCommand,
|
|
3157
|
+
ActionCode,
|
|
3158
|
+
AddTagsToVaultCommand,
|
|
3159
|
+
CannedACL,
|
|
3160
|
+
CompleteMultipartUploadCommand,
|
|
3161
|
+
CompleteVaultLockCommand,
|
|
3162
|
+
CreateVaultCommand,
|
|
3163
|
+
DeleteArchiveCommand,
|
|
3164
|
+
DeleteVaultAccessPolicyCommand,
|
|
3165
|
+
DeleteVaultCommand,
|
|
3166
|
+
DeleteVaultNotificationsCommand,
|
|
3167
|
+
DescribeJobCommand,
|
|
3168
|
+
DescribeVaultCommand,
|
|
3169
|
+
EncryptionType,
|
|
3170
|
+
ExpressionType,
|
|
3171
|
+
FileHeaderInfo,
|
|
3172
|
+
GetDataRetrievalPolicyCommand,
|
|
3173
|
+
GetJobOutputCommand,
|
|
3174
|
+
GetJobOutputOutputFilterSensitiveLog,
|
|
3175
|
+
GetVaultAccessPolicyCommand,
|
|
3176
|
+
GetVaultLockCommand,
|
|
3177
|
+
GetVaultNotificationsCommand,
|
|
3178
|
+
Glacier,
|
|
3179
|
+
GlacierClient,
|
|
3180
|
+
GlacierServiceException,
|
|
3181
|
+
InitiateJobCommand,
|
|
3182
|
+
InitiateMultipartUploadCommand,
|
|
3183
|
+
InitiateVaultLockCommand,
|
|
3184
|
+
InsufficientCapacityException,
|
|
3185
|
+
InvalidParameterValueException,
|
|
3186
|
+
LimitExceededException,
|
|
3187
|
+
ListJobsCommand,
|
|
3188
|
+
ListMultipartUploadsCommand,
|
|
3189
|
+
ListPartsCommand,
|
|
3190
|
+
ListProvisionedCapacityCommand,
|
|
3191
|
+
ListTagsForVaultCommand,
|
|
3192
|
+
ListVaultsCommand,
|
|
3193
|
+
MissingParameterValueException,
|
|
3194
|
+
Permission,
|
|
3195
|
+
PolicyEnforcedException,
|
|
3196
|
+
PurchaseProvisionedCapacityCommand,
|
|
3197
|
+
QuoteFields,
|
|
3198
|
+
RemoveTagsFromVaultCommand,
|
|
3199
|
+
RequestTimeoutException,
|
|
3200
|
+
ResourceNotFoundException,
|
|
3201
|
+
ServiceUnavailableException,
|
|
3202
|
+
SetDataRetrievalPolicyCommand,
|
|
3203
|
+
SetVaultAccessPolicyCommand,
|
|
3204
|
+
SetVaultNotificationsCommand,
|
|
3205
|
+
StatusCode,
|
|
3206
|
+
StorageClass,
|
|
3207
|
+
Type,
|
|
3208
|
+
UploadArchiveCommand,
|
|
3209
|
+
UploadArchiveInputFilterSensitiveLog,
|
|
3210
|
+
UploadMultipartPartCommand,
|
|
3211
|
+
UploadMultipartPartInputFilterSensitiveLog,
|
|
3212
|
+
__Client,
|
|
3213
|
+
paginateListJobs,
|
|
3214
|
+
paginateListMultipartUploads,
|
|
3215
|
+
paginateListParts,
|
|
3216
|
+
paginateListVaults,
|
|
3217
|
+
waitForVaultExists,
|
|
3218
|
+
waitForVaultNotExists,
|
|
3219
|
+
waitUntilVaultExists,
|
|
3220
|
+
waitUntilVaultNotExists
|
|
3221
|
+
});
|