@aws-sdk/client-glacier 3.926.0 → 3.928.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/index.js +1532 -1313
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/GlacierClient.js +2 -0
- package/dist-es/commands/AbortMultipartUploadCommand.js +3 -9
- package/dist-es/commands/AbortVaultLockCommand.js +3 -9
- package/dist-es/commands/AddTagsToVaultCommand.js +3 -9
- package/dist-es/commands/CompleteMultipartUploadCommand.js +3 -9
- package/dist-es/commands/CompleteVaultLockCommand.js +3 -9
- package/dist-es/commands/CreateVaultCommand.js +3 -9
- package/dist-es/commands/DeleteArchiveCommand.js +3 -9
- package/dist-es/commands/DeleteVaultAccessPolicyCommand.js +3 -9
- package/dist-es/commands/DeleteVaultCommand.js +3 -9
- package/dist-es/commands/DeleteVaultNotificationsCommand.js +3 -9
- package/dist-es/commands/DescribeJobCommand.js +3 -9
- package/dist-es/commands/DescribeVaultCommand.js +3 -9
- package/dist-es/commands/GetDataRetrievalPolicyCommand.js +3 -9
- package/dist-es/commands/GetJobOutputCommand.js +3 -10
- package/dist-es/commands/GetVaultAccessPolicyCommand.js +3 -9
- package/dist-es/commands/GetVaultLockCommand.js +3 -9
- package/dist-es/commands/GetVaultNotificationsCommand.js +3 -9
- package/dist-es/commands/InitiateJobCommand.js +3 -9
- package/dist-es/commands/InitiateMultipartUploadCommand.js +3 -9
- package/dist-es/commands/InitiateVaultLockCommand.js +3 -9
- package/dist-es/commands/ListJobsCommand.js +3 -9
- package/dist-es/commands/ListMultipartUploadsCommand.js +3 -9
- package/dist-es/commands/ListPartsCommand.js +3 -9
- package/dist-es/commands/ListProvisionedCapacityCommand.js +3 -9
- package/dist-es/commands/ListTagsForVaultCommand.js +3 -9
- package/dist-es/commands/ListVaultsCommand.js +3 -9
- package/dist-es/commands/PurchaseProvisionedCapacityCommand.js +3 -9
- package/dist-es/commands/RemoveTagsFromVaultCommand.js +3 -9
- package/dist-es/commands/SetDataRetrievalPolicyCommand.js +3 -9
- package/dist-es/commands/SetVaultAccessPolicyCommand.js +3 -9
- package/dist-es/commands/SetVaultNotificationsCommand.js +3 -9
- package/dist-es/commands/UploadArchiveCommand.js +3 -10
- package/dist-es/commands/UploadMultipartPartCommand.js +3 -10
- package/dist-es/models/models_0.js +0 -9
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +1467 -0
- package/dist-types/GlacierClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -12
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +130 -0
- package/dist-types/ts3.4/GlacierClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -9
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +136 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_restJson1.js +0 -1070
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -299
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -404
|
@@ -1,1070 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { GlacierServiceException as __BaseException } from "../models/GlacierServiceException";
|
|
5
|
-
import { InsufficientCapacityException, InvalidParameterValueException, LimitExceededException, MissingParameterValueException, PolicyEnforcedException, RequestTimeoutException, ResourceNotFoundException, ServiceUnavailableException, } from "../models/models_0";
|
|
6
|
-
export const se_AbortMultipartUploadCommand = async (input, context) => {
|
|
7
|
-
const b = rb(input, context);
|
|
8
|
-
const headers = {};
|
|
9
|
-
b.bp("/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}");
|
|
10
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
11
|
-
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
12
|
-
b.p("uploadId", () => input.uploadId, "{uploadId}", false);
|
|
13
|
-
let body;
|
|
14
|
-
b.m("DELETE").h(headers).b(body);
|
|
15
|
-
return b.build();
|
|
16
|
-
};
|
|
17
|
-
export const se_AbortVaultLockCommand = async (input, context) => {
|
|
18
|
-
const b = rb(input, context);
|
|
19
|
-
const headers = {};
|
|
20
|
-
b.bp("/{accountId}/vaults/{vaultName}/lock-policy");
|
|
21
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
22
|
-
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
23
|
-
let body;
|
|
24
|
-
b.m("DELETE").h(headers).b(body);
|
|
25
|
-
return b.build();
|
|
26
|
-
};
|
|
27
|
-
export const se_AddTagsToVaultCommand = async (input, context) => {
|
|
28
|
-
const b = rb(input, context);
|
|
29
|
-
const headers = {
|
|
30
|
-
"content-type": "application/json",
|
|
31
|
-
};
|
|
32
|
-
b.bp("/{accountId}/vaults/{vaultName}/tags");
|
|
33
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
34
|
-
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
35
|
-
const query = map({
|
|
36
|
-
[_o]: [, "add"],
|
|
37
|
-
});
|
|
38
|
-
let body;
|
|
39
|
-
body = JSON.stringify(take(input, {
|
|
40
|
-
Tags: (_) => _json(_),
|
|
41
|
-
}));
|
|
42
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
43
|
-
return b.build();
|
|
44
|
-
};
|
|
45
|
-
export const se_CompleteMultipartUploadCommand = async (input, context) => {
|
|
46
|
-
const b = rb(input, context);
|
|
47
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
48
|
-
[_xaas]: input[_aS],
|
|
49
|
-
[_xasth]: input[_c],
|
|
50
|
-
});
|
|
51
|
-
b.bp("/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}");
|
|
52
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
53
|
-
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
54
|
-
b.p("uploadId", () => input.uploadId, "{uploadId}", false);
|
|
55
|
-
let body;
|
|
56
|
-
b.m("POST").h(headers).b(body);
|
|
57
|
-
return b.build();
|
|
58
|
-
};
|
|
59
|
-
export const se_CompleteVaultLockCommand = async (input, context) => {
|
|
60
|
-
const b = rb(input, context);
|
|
61
|
-
const headers = {};
|
|
62
|
-
b.bp("/{accountId}/vaults/{vaultName}/lock-policy/{lockId}");
|
|
63
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
64
|
-
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
65
|
-
b.p("lockId", () => input.lockId, "{lockId}", false);
|
|
66
|
-
let body;
|
|
67
|
-
b.m("POST").h(headers).b(body);
|
|
68
|
-
return b.build();
|
|
69
|
-
};
|
|
70
|
-
export const se_CreateVaultCommand = async (input, context) => {
|
|
71
|
-
const b = rb(input, context);
|
|
72
|
-
const headers = {};
|
|
73
|
-
b.bp("/{accountId}/vaults/{vaultName}");
|
|
74
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
75
|
-
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
76
|
-
let body;
|
|
77
|
-
b.m("PUT").h(headers).b(body);
|
|
78
|
-
return b.build();
|
|
79
|
-
};
|
|
80
|
-
export const se_DeleteArchiveCommand = async (input, context) => {
|
|
81
|
-
const b = rb(input, context);
|
|
82
|
-
const headers = {};
|
|
83
|
-
b.bp("/{accountId}/vaults/{vaultName}/archives/{archiveId}");
|
|
84
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
85
|
-
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
86
|
-
b.p("archiveId", () => input.archiveId, "{archiveId}", false);
|
|
87
|
-
let body;
|
|
88
|
-
b.m("DELETE").h(headers).b(body);
|
|
89
|
-
return b.build();
|
|
90
|
-
};
|
|
91
|
-
export const se_DeleteVaultCommand = async (input, context) => {
|
|
92
|
-
const b = rb(input, context);
|
|
93
|
-
const headers = {};
|
|
94
|
-
b.bp("/{accountId}/vaults/{vaultName}");
|
|
95
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
96
|
-
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
97
|
-
let body;
|
|
98
|
-
b.m("DELETE").h(headers).b(body);
|
|
99
|
-
return b.build();
|
|
100
|
-
};
|
|
101
|
-
export const se_DeleteVaultAccessPolicyCommand = async (input, context) => {
|
|
102
|
-
const b = rb(input, context);
|
|
103
|
-
const headers = {};
|
|
104
|
-
b.bp("/{accountId}/vaults/{vaultName}/access-policy");
|
|
105
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
106
|
-
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
107
|
-
let body;
|
|
108
|
-
b.m("DELETE").h(headers).b(body);
|
|
109
|
-
return b.build();
|
|
110
|
-
};
|
|
111
|
-
export const se_DeleteVaultNotificationsCommand = async (input, context) => {
|
|
112
|
-
const b = rb(input, context);
|
|
113
|
-
const headers = {};
|
|
114
|
-
b.bp("/{accountId}/vaults/{vaultName}/notification-configuration");
|
|
115
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
116
|
-
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
117
|
-
let body;
|
|
118
|
-
b.m("DELETE").h(headers).b(body);
|
|
119
|
-
return b.build();
|
|
120
|
-
};
|
|
121
|
-
export const se_DescribeJobCommand = async (input, context) => {
|
|
122
|
-
const b = rb(input, context);
|
|
123
|
-
const headers = {};
|
|
124
|
-
b.bp("/{accountId}/vaults/{vaultName}/jobs/{jobId}");
|
|
125
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
126
|
-
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
127
|
-
b.p("jobId", () => input.jobId, "{jobId}", false);
|
|
128
|
-
let body;
|
|
129
|
-
b.m("GET").h(headers).b(body);
|
|
130
|
-
return b.build();
|
|
131
|
-
};
|
|
132
|
-
export const se_DescribeVaultCommand = async (input, context) => {
|
|
133
|
-
const b = rb(input, context);
|
|
134
|
-
const headers = {};
|
|
135
|
-
b.bp("/{accountId}/vaults/{vaultName}");
|
|
136
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
137
|
-
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
138
|
-
let body;
|
|
139
|
-
b.m("GET").h(headers).b(body);
|
|
140
|
-
return b.build();
|
|
141
|
-
};
|
|
142
|
-
export const se_GetDataRetrievalPolicyCommand = async (input, context) => {
|
|
143
|
-
const b = rb(input, context);
|
|
144
|
-
const headers = {};
|
|
145
|
-
b.bp("/{accountId}/policies/data-retrieval");
|
|
146
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
147
|
-
let body;
|
|
148
|
-
b.m("GET").h(headers).b(body);
|
|
149
|
-
return b.build();
|
|
150
|
-
};
|
|
151
|
-
export const se_GetJobOutputCommand = async (input, context) => {
|
|
152
|
-
const b = rb(input, context);
|
|
153
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
154
|
-
[_r]: input[_r],
|
|
155
|
-
});
|
|
156
|
-
b.bp("/{accountId}/vaults/{vaultName}/jobs/{jobId}/output");
|
|
157
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
158
|
-
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
159
|
-
b.p("jobId", () => input.jobId, "{jobId}", false);
|
|
160
|
-
let body;
|
|
161
|
-
b.m("GET").h(headers).b(body);
|
|
162
|
-
return b.build();
|
|
163
|
-
};
|
|
164
|
-
export const se_GetVaultAccessPolicyCommand = async (input, context) => {
|
|
165
|
-
const b = rb(input, context);
|
|
166
|
-
const headers = {};
|
|
167
|
-
b.bp("/{accountId}/vaults/{vaultName}/access-policy");
|
|
168
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
169
|
-
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
170
|
-
let body;
|
|
171
|
-
b.m("GET").h(headers).b(body);
|
|
172
|
-
return b.build();
|
|
173
|
-
};
|
|
174
|
-
export const se_GetVaultLockCommand = async (input, context) => {
|
|
175
|
-
const b = rb(input, context);
|
|
176
|
-
const headers = {};
|
|
177
|
-
b.bp("/{accountId}/vaults/{vaultName}/lock-policy");
|
|
178
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
179
|
-
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
180
|
-
let body;
|
|
181
|
-
b.m("GET").h(headers).b(body);
|
|
182
|
-
return b.build();
|
|
183
|
-
};
|
|
184
|
-
export const se_GetVaultNotificationsCommand = async (input, context) => {
|
|
185
|
-
const b = rb(input, context);
|
|
186
|
-
const headers = {};
|
|
187
|
-
b.bp("/{accountId}/vaults/{vaultName}/notification-configuration");
|
|
188
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
189
|
-
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
190
|
-
let body;
|
|
191
|
-
b.m("GET").h(headers).b(body);
|
|
192
|
-
return b.build();
|
|
193
|
-
};
|
|
194
|
-
export const se_InitiateJobCommand = async (input, context) => {
|
|
195
|
-
const b = rb(input, context);
|
|
196
|
-
const headers = {
|
|
197
|
-
"content-type": "application/json",
|
|
198
|
-
};
|
|
199
|
-
b.bp("/{accountId}/vaults/{vaultName}/jobs");
|
|
200
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
201
|
-
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
202
|
-
let body;
|
|
203
|
-
if (input.jobParameters !== undefined) {
|
|
204
|
-
body = _json(input.jobParameters);
|
|
205
|
-
}
|
|
206
|
-
if (body === undefined) {
|
|
207
|
-
body = {};
|
|
208
|
-
}
|
|
209
|
-
body = JSON.stringify(body);
|
|
210
|
-
b.m("POST").h(headers).b(body);
|
|
211
|
-
return b.build();
|
|
212
|
-
};
|
|
213
|
-
export const se_InitiateMultipartUploadCommand = async (input, context) => {
|
|
214
|
-
const b = rb(input, context);
|
|
215
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
216
|
-
[_xaad]: input[_aD],
|
|
217
|
-
[_xaps]: input[_pS],
|
|
218
|
-
});
|
|
219
|
-
b.bp("/{accountId}/vaults/{vaultName}/multipart-uploads");
|
|
220
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
221
|
-
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
222
|
-
let body;
|
|
223
|
-
b.m("POST").h(headers).b(body);
|
|
224
|
-
return b.build();
|
|
225
|
-
};
|
|
226
|
-
export const se_InitiateVaultLockCommand = async (input, context) => {
|
|
227
|
-
const b = rb(input, context);
|
|
228
|
-
const headers = {
|
|
229
|
-
"content-type": "application/json",
|
|
230
|
-
};
|
|
231
|
-
b.bp("/{accountId}/vaults/{vaultName}/lock-policy");
|
|
232
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
233
|
-
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
234
|
-
let body;
|
|
235
|
-
if (input.policy !== undefined) {
|
|
236
|
-
body = _json(input.policy);
|
|
237
|
-
}
|
|
238
|
-
if (body === undefined) {
|
|
239
|
-
body = {};
|
|
240
|
-
}
|
|
241
|
-
body = JSON.stringify(body);
|
|
242
|
-
b.m("POST").h(headers).b(body);
|
|
243
|
-
return b.build();
|
|
244
|
-
};
|
|
245
|
-
export const se_ListJobsCommand = async (input, context) => {
|
|
246
|
-
const b = rb(input, context);
|
|
247
|
-
const headers = {};
|
|
248
|
-
b.bp("/{accountId}/vaults/{vaultName}/jobs");
|
|
249
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
250
|
-
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
251
|
-
const query = map({
|
|
252
|
-
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
253
|
-
[_m]: [, input[_m]],
|
|
254
|
-
[_s]: [, input[_s]],
|
|
255
|
-
[_co]: [, input[_co]],
|
|
256
|
-
});
|
|
257
|
-
let body;
|
|
258
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
259
|
-
return b.build();
|
|
260
|
-
};
|
|
261
|
-
export const se_ListMultipartUploadsCommand = async (input, context) => {
|
|
262
|
-
const b = rb(input, context);
|
|
263
|
-
const headers = {};
|
|
264
|
-
b.bp("/{accountId}/vaults/{vaultName}/multipart-uploads");
|
|
265
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
266
|
-
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
267
|
-
const query = map({
|
|
268
|
-
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
269
|
-
[_m]: [, input[_m]],
|
|
270
|
-
});
|
|
271
|
-
let body;
|
|
272
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
273
|
-
return b.build();
|
|
274
|
-
};
|
|
275
|
-
export const se_ListPartsCommand = async (input, context) => {
|
|
276
|
-
const b = rb(input, context);
|
|
277
|
-
const headers = {};
|
|
278
|
-
b.bp("/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}");
|
|
279
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
280
|
-
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
281
|
-
b.p("uploadId", () => input.uploadId, "{uploadId}", false);
|
|
282
|
-
const query = map({
|
|
283
|
-
[_m]: [, input[_m]],
|
|
284
|
-
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
285
|
-
});
|
|
286
|
-
let body;
|
|
287
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
288
|
-
return b.build();
|
|
289
|
-
};
|
|
290
|
-
export const se_ListProvisionedCapacityCommand = async (input, context) => {
|
|
291
|
-
const b = rb(input, context);
|
|
292
|
-
const headers = {};
|
|
293
|
-
b.bp("/{accountId}/provisioned-capacity");
|
|
294
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
295
|
-
let body;
|
|
296
|
-
b.m("GET").h(headers).b(body);
|
|
297
|
-
return b.build();
|
|
298
|
-
};
|
|
299
|
-
export const se_ListTagsForVaultCommand = async (input, context) => {
|
|
300
|
-
const b = rb(input, context);
|
|
301
|
-
const headers = {};
|
|
302
|
-
b.bp("/{accountId}/vaults/{vaultName}/tags");
|
|
303
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
304
|
-
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
305
|
-
let body;
|
|
306
|
-
b.m("GET").h(headers).b(body);
|
|
307
|
-
return b.build();
|
|
308
|
-
};
|
|
309
|
-
export const se_ListVaultsCommand = async (input, context) => {
|
|
310
|
-
const b = rb(input, context);
|
|
311
|
-
const headers = {};
|
|
312
|
-
b.bp("/{accountId}/vaults");
|
|
313
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
314
|
-
const query = map({
|
|
315
|
-
[_m]: [, input[_m]],
|
|
316
|
-
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
317
|
-
});
|
|
318
|
-
let body;
|
|
319
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
320
|
-
return b.build();
|
|
321
|
-
};
|
|
322
|
-
export const se_PurchaseProvisionedCapacityCommand = async (input, context) => {
|
|
323
|
-
const b = rb(input, context);
|
|
324
|
-
const headers = {};
|
|
325
|
-
b.bp("/{accountId}/provisioned-capacity");
|
|
326
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
327
|
-
let body;
|
|
328
|
-
b.m("POST").h(headers).b(body);
|
|
329
|
-
return b.build();
|
|
330
|
-
};
|
|
331
|
-
export const se_RemoveTagsFromVaultCommand = async (input, context) => {
|
|
332
|
-
const b = rb(input, context);
|
|
333
|
-
const headers = {
|
|
334
|
-
"content-type": "application/json",
|
|
335
|
-
};
|
|
336
|
-
b.bp("/{accountId}/vaults/{vaultName}/tags");
|
|
337
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
338
|
-
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
339
|
-
const query = map({
|
|
340
|
-
[_o]: [, "remove"],
|
|
341
|
-
});
|
|
342
|
-
let body;
|
|
343
|
-
body = JSON.stringify(take(input, {
|
|
344
|
-
TagKeys: (_) => _json(_),
|
|
345
|
-
}));
|
|
346
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
347
|
-
return b.build();
|
|
348
|
-
};
|
|
349
|
-
export const se_SetDataRetrievalPolicyCommand = async (input, context) => {
|
|
350
|
-
const b = rb(input, context);
|
|
351
|
-
const headers = {
|
|
352
|
-
"content-type": "application/json",
|
|
353
|
-
};
|
|
354
|
-
b.bp("/{accountId}/policies/data-retrieval");
|
|
355
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
356
|
-
let body;
|
|
357
|
-
body = JSON.stringify(take(input, {
|
|
358
|
-
Policy: (_) => _json(_),
|
|
359
|
-
}));
|
|
360
|
-
b.m("PUT").h(headers).b(body);
|
|
361
|
-
return b.build();
|
|
362
|
-
};
|
|
363
|
-
export const se_SetVaultAccessPolicyCommand = async (input, context) => {
|
|
364
|
-
const b = rb(input, context);
|
|
365
|
-
const headers = {
|
|
366
|
-
"content-type": "application/json",
|
|
367
|
-
};
|
|
368
|
-
b.bp("/{accountId}/vaults/{vaultName}/access-policy");
|
|
369
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
370
|
-
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
371
|
-
let body;
|
|
372
|
-
if (input.policy !== undefined) {
|
|
373
|
-
body = _json(input.policy);
|
|
374
|
-
}
|
|
375
|
-
if (body === undefined) {
|
|
376
|
-
body = {};
|
|
377
|
-
}
|
|
378
|
-
body = JSON.stringify(body);
|
|
379
|
-
b.m("PUT").h(headers).b(body);
|
|
380
|
-
return b.build();
|
|
381
|
-
};
|
|
382
|
-
export const se_SetVaultNotificationsCommand = async (input, context) => {
|
|
383
|
-
const b = rb(input, context);
|
|
384
|
-
const headers = {
|
|
385
|
-
"content-type": "application/json",
|
|
386
|
-
};
|
|
387
|
-
b.bp("/{accountId}/vaults/{vaultName}/notification-configuration");
|
|
388
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
389
|
-
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
390
|
-
let body;
|
|
391
|
-
if (input.vaultNotificationConfig !== undefined) {
|
|
392
|
-
body = _json(input.vaultNotificationConfig);
|
|
393
|
-
}
|
|
394
|
-
if (body === undefined) {
|
|
395
|
-
body = {};
|
|
396
|
-
}
|
|
397
|
-
body = JSON.stringify(body);
|
|
398
|
-
b.m("PUT").h(headers).b(body);
|
|
399
|
-
return b.build();
|
|
400
|
-
};
|
|
401
|
-
export const se_UploadArchiveCommand = async (input, context) => {
|
|
402
|
-
const b = rb(input, context);
|
|
403
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
404
|
-
"content-type": "application/octet-stream",
|
|
405
|
-
[_xaad]: input[_aD],
|
|
406
|
-
[_xasth]: input[_c],
|
|
407
|
-
});
|
|
408
|
-
b.bp("/{accountId}/vaults/{vaultName}/archives");
|
|
409
|
-
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
410
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
411
|
-
let body;
|
|
412
|
-
if (input.body !== undefined) {
|
|
413
|
-
body = input.body;
|
|
414
|
-
}
|
|
415
|
-
b.m("POST").h(headers).b(body);
|
|
416
|
-
return b.build();
|
|
417
|
-
};
|
|
418
|
-
export const se_UploadMultipartPartCommand = async (input, context) => {
|
|
419
|
-
const b = rb(input, context);
|
|
420
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
421
|
-
"content-type": "application/octet-stream",
|
|
422
|
-
[_xasth]: input[_c],
|
|
423
|
-
[_cr]: input[_r],
|
|
424
|
-
});
|
|
425
|
-
b.bp("/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}");
|
|
426
|
-
b.p("accountId", () => input.accountId, "{accountId}", false);
|
|
427
|
-
b.p("vaultName", () => input.vaultName, "{vaultName}", false);
|
|
428
|
-
b.p("uploadId", () => input.uploadId, "{uploadId}", false);
|
|
429
|
-
let body;
|
|
430
|
-
if (input.body !== undefined) {
|
|
431
|
-
body = input.body;
|
|
432
|
-
}
|
|
433
|
-
b.m("PUT").h(headers).b(body);
|
|
434
|
-
return b.build();
|
|
435
|
-
};
|
|
436
|
-
export const de_AbortMultipartUploadCommand = async (output, context) => {
|
|
437
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
438
|
-
return de_CommandError(output, context);
|
|
439
|
-
}
|
|
440
|
-
const contents = map({
|
|
441
|
-
$metadata: deserializeMetadata(output),
|
|
442
|
-
});
|
|
443
|
-
await collectBody(output.body, context);
|
|
444
|
-
return contents;
|
|
445
|
-
};
|
|
446
|
-
export const de_AbortVaultLockCommand = async (output, context) => {
|
|
447
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
448
|
-
return de_CommandError(output, context);
|
|
449
|
-
}
|
|
450
|
-
const contents = map({
|
|
451
|
-
$metadata: deserializeMetadata(output),
|
|
452
|
-
});
|
|
453
|
-
await collectBody(output.body, context);
|
|
454
|
-
return contents;
|
|
455
|
-
};
|
|
456
|
-
export const de_AddTagsToVaultCommand = async (output, context) => {
|
|
457
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
458
|
-
return de_CommandError(output, context);
|
|
459
|
-
}
|
|
460
|
-
const contents = map({
|
|
461
|
-
$metadata: deserializeMetadata(output),
|
|
462
|
-
});
|
|
463
|
-
await collectBody(output.body, context);
|
|
464
|
-
return contents;
|
|
465
|
-
};
|
|
466
|
-
export const de_CompleteMultipartUploadCommand = async (output, context) => {
|
|
467
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
468
|
-
return de_CommandError(output, context);
|
|
469
|
-
}
|
|
470
|
-
const contents = map({
|
|
471
|
-
$metadata: deserializeMetadata(output),
|
|
472
|
-
[_lo]: [, output.headers[_lo]],
|
|
473
|
-
[_c]: [, output.headers[_xasth]],
|
|
474
|
-
[_aI]: [, output.headers[_xaai]],
|
|
475
|
-
});
|
|
476
|
-
await collectBody(output.body, context);
|
|
477
|
-
return contents;
|
|
478
|
-
};
|
|
479
|
-
export const de_CompleteVaultLockCommand = async (output, context) => {
|
|
480
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
481
|
-
return de_CommandError(output, context);
|
|
482
|
-
}
|
|
483
|
-
const contents = map({
|
|
484
|
-
$metadata: deserializeMetadata(output),
|
|
485
|
-
});
|
|
486
|
-
await collectBody(output.body, context);
|
|
487
|
-
return contents;
|
|
488
|
-
};
|
|
489
|
-
export const de_CreateVaultCommand = async (output, context) => {
|
|
490
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
491
|
-
return de_CommandError(output, context);
|
|
492
|
-
}
|
|
493
|
-
const contents = map({
|
|
494
|
-
$metadata: deserializeMetadata(output),
|
|
495
|
-
[_lo]: [, output.headers[_lo]],
|
|
496
|
-
});
|
|
497
|
-
await collectBody(output.body, context);
|
|
498
|
-
return contents;
|
|
499
|
-
};
|
|
500
|
-
export const de_DeleteArchiveCommand = async (output, context) => {
|
|
501
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
502
|
-
return de_CommandError(output, context);
|
|
503
|
-
}
|
|
504
|
-
const contents = map({
|
|
505
|
-
$metadata: deserializeMetadata(output),
|
|
506
|
-
});
|
|
507
|
-
await collectBody(output.body, context);
|
|
508
|
-
return contents;
|
|
509
|
-
};
|
|
510
|
-
export const de_DeleteVaultCommand = async (output, context) => {
|
|
511
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
512
|
-
return de_CommandError(output, context);
|
|
513
|
-
}
|
|
514
|
-
const contents = map({
|
|
515
|
-
$metadata: deserializeMetadata(output),
|
|
516
|
-
});
|
|
517
|
-
await collectBody(output.body, context);
|
|
518
|
-
return contents;
|
|
519
|
-
};
|
|
520
|
-
export const de_DeleteVaultAccessPolicyCommand = async (output, context) => {
|
|
521
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
522
|
-
return de_CommandError(output, context);
|
|
523
|
-
}
|
|
524
|
-
const contents = map({
|
|
525
|
-
$metadata: deserializeMetadata(output),
|
|
526
|
-
});
|
|
527
|
-
await collectBody(output.body, context);
|
|
528
|
-
return contents;
|
|
529
|
-
};
|
|
530
|
-
export const de_DeleteVaultNotificationsCommand = async (output, context) => {
|
|
531
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
532
|
-
return de_CommandError(output, context);
|
|
533
|
-
}
|
|
534
|
-
const contents = map({
|
|
535
|
-
$metadata: deserializeMetadata(output),
|
|
536
|
-
});
|
|
537
|
-
await collectBody(output.body, context);
|
|
538
|
-
return contents;
|
|
539
|
-
};
|
|
540
|
-
export const de_DescribeJobCommand = async (output, context) => {
|
|
541
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
542
|
-
return de_CommandError(output, context);
|
|
543
|
-
}
|
|
544
|
-
const contents = map({
|
|
545
|
-
$metadata: deserializeMetadata(output),
|
|
546
|
-
});
|
|
547
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
548
|
-
const doc = take(data, {
|
|
549
|
-
Action: __expectString,
|
|
550
|
-
ArchiveId: __expectString,
|
|
551
|
-
ArchiveSHA256TreeHash: __expectString,
|
|
552
|
-
ArchiveSizeInBytes: __expectLong,
|
|
553
|
-
Completed: __expectBoolean,
|
|
554
|
-
CompletionDate: __expectString,
|
|
555
|
-
CreationDate: __expectString,
|
|
556
|
-
InventoryRetrievalParameters: _json,
|
|
557
|
-
InventorySizeInBytes: __expectLong,
|
|
558
|
-
JobDescription: __expectString,
|
|
559
|
-
JobId: __expectString,
|
|
560
|
-
JobOutputPath: __expectString,
|
|
561
|
-
OutputLocation: _json,
|
|
562
|
-
RetrievalByteRange: __expectString,
|
|
563
|
-
SHA256TreeHash: __expectString,
|
|
564
|
-
SNSTopic: __expectString,
|
|
565
|
-
SelectParameters: _json,
|
|
566
|
-
StatusCode: __expectString,
|
|
567
|
-
StatusMessage: __expectString,
|
|
568
|
-
Tier: __expectString,
|
|
569
|
-
VaultARN: __expectString,
|
|
570
|
-
});
|
|
571
|
-
Object.assign(contents, doc);
|
|
572
|
-
return contents;
|
|
573
|
-
};
|
|
574
|
-
export const de_DescribeVaultCommand = async (output, context) => {
|
|
575
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
576
|
-
return de_CommandError(output, context);
|
|
577
|
-
}
|
|
578
|
-
const contents = map({
|
|
579
|
-
$metadata: deserializeMetadata(output),
|
|
580
|
-
});
|
|
581
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
582
|
-
const doc = take(data, {
|
|
583
|
-
CreationDate: __expectString,
|
|
584
|
-
LastInventoryDate: __expectString,
|
|
585
|
-
NumberOfArchives: __expectLong,
|
|
586
|
-
SizeInBytes: __expectLong,
|
|
587
|
-
VaultARN: __expectString,
|
|
588
|
-
VaultName: __expectString,
|
|
589
|
-
});
|
|
590
|
-
Object.assign(contents, doc);
|
|
591
|
-
return contents;
|
|
592
|
-
};
|
|
593
|
-
export const de_GetDataRetrievalPolicyCommand = async (output, context) => {
|
|
594
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
595
|
-
return de_CommandError(output, context);
|
|
596
|
-
}
|
|
597
|
-
const contents = map({
|
|
598
|
-
$metadata: deserializeMetadata(output),
|
|
599
|
-
});
|
|
600
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
601
|
-
const doc = take(data, {
|
|
602
|
-
Policy: _json,
|
|
603
|
-
});
|
|
604
|
-
Object.assign(contents, doc);
|
|
605
|
-
return contents;
|
|
606
|
-
};
|
|
607
|
-
export const de_GetJobOutputCommand = async (output, context) => {
|
|
608
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
609
|
-
return de_CommandError(output, context);
|
|
610
|
-
}
|
|
611
|
-
const contents = map({
|
|
612
|
-
$metadata: deserializeMetadata(output),
|
|
613
|
-
[_c]: [, output.headers[_xasth]],
|
|
614
|
-
[_cR]: [, output.headers[_cr]],
|
|
615
|
-
[_aR]: [, output.headers[_ar]],
|
|
616
|
-
[_cT]: [, output.headers[_ct]],
|
|
617
|
-
[_aD]: [, output.headers[_xaad]],
|
|
618
|
-
});
|
|
619
|
-
const data = output.body;
|
|
620
|
-
context.sdkStreamMixin(data);
|
|
621
|
-
contents.body = data;
|
|
622
|
-
map(contents, {
|
|
623
|
-
status: [, output.statusCode],
|
|
624
|
-
});
|
|
625
|
-
return contents;
|
|
626
|
-
};
|
|
627
|
-
export const de_GetVaultAccessPolicyCommand = async (output, context) => {
|
|
628
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
629
|
-
return de_CommandError(output, context);
|
|
630
|
-
}
|
|
631
|
-
const contents = map({
|
|
632
|
-
$metadata: deserializeMetadata(output),
|
|
633
|
-
});
|
|
634
|
-
const data = __expectObject(await parseBody(output.body, context));
|
|
635
|
-
contents.policy = _json(data);
|
|
636
|
-
return contents;
|
|
637
|
-
};
|
|
638
|
-
export const de_GetVaultLockCommand = async (output, context) => {
|
|
639
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
640
|
-
return de_CommandError(output, context);
|
|
641
|
-
}
|
|
642
|
-
const contents = map({
|
|
643
|
-
$metadata: deserializeMetadata(output),
|
|
644
|
-
});
|
|
645
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
646
|
-
const doc = take(data, {
|
|
647
|
-
CreationDate: __expectString,
|
|
648
|
-
ExpirationDate: __expectString,
|
|
649
|
-
Policy: __expectString,
|
|
650
|
-
State: __expectString,
|
|
651
|
-
});
|
|
652
|
-
Object.assign(contents, doc);
|
|
653
|
-
return contents;
|
|
654
|
-
};
|
|
655
|
-
export const de_GetVaultNotificationsCommand = async (output, context) => {
|
|
656
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
657
|
-
return de_CommandError(output, context);
|
|
658
|
-
}
|
|
659
|
-
const contents = map({
|
|
660
|
-
$metadata: deserializeMetadata(output),
|
|
661
|
-
});
|
|
662
|
-
const data = __expectObject(await parseBody(output.body, context));
|
|
663
|
-
contents.vaultNotificationConfig = _json(data);
|
|
664
|
-
return contents;
|
|
665
|
-
};
|
|
666
|
-
export const de_InitiateJobCommand = async (output, context) => {
|
|
667
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
668
|
-
return de_CommandError(output, context);
|
|
669
|
-
}
|
|
670
|
-
const contents = map({
|
|
671
|
-
$metadata: deserializeMetadata(output),
|
|
672
|
-
[_lo]: [, output.headers[_lo]],
|
|
673
|
-
[_jI]: [, output.headers[_xaji]],
|
|
674
|
-
[_jOP]: [, output.headers[_xajop]],
|
|
675
|
-
});
|
|
676
|
-
await collectBody(output.body, context);
|
|
677
|
-
return contents;
|
|
678
|
-
};
|
|
679
|
-
export const de_InitiateMultipartUploadCommand = async (output, context) => {
|
|
680
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
681
|
-
return de_CommandError(output, context);
|
|
682
|
-
}
|
|
683
|
-
const contents = map({
|
|
684
|
-
$metadata: deserializeMetadata(output),
|
|
685
|
-
[_lo]: [, output.headers[_lo]],
|
|
686
|
-
[_uI]: [, output.headers[_xamui]],
|
|
687
|
-
});
|
|
688
|
-
await collectBody(output.body, context);
|
|
689
|
-
return contents;
|
|
690
|
-
};
|
|
691
|
-
export const de_InitiateVaultLockCommand = async (output, context) => {
|
|
692
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
693
|
-
return de_CommandError(output, context);
|
|
694
|
-
}
|
|
695
|
-
const contents = map({
|
|
696
|
-
$metadata: deserializeMetadata(output),
|
|
697
|
-
[_lI]: [, output.headers[_xali]],
|
|
698
|
-
});
|
|
699
|
-
await collectBody(output.body, context);
|
|
700
|
-
return contents;
|
|
701
|
-
};
|
|
702
|
-
export const de_ListJobsCommand = async (output, context) => {
|
|
703
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
704
|
-
return de_CommandError(output, context);
|
|
705
|
-
}
|
|
706
|
-
const contents = map({
|
|
707
|
-
$metadata: deserializeMetadata(output),
|
|
708
|
-
});
|
|
709
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
710
|
-
const doc = take(data, {
|
|
711
|
-
JobList: _json,
|
|
712
|
-
Marker: __expectString,
|
|
713
|
-
});
|
|
714
|
-
Object.assign(contents, doc);
|
|
715
|
-
return contents;
|
|
716
|
-
};
|
|
717
|
-
export const de_ListMultipartUploadsCommand = async (output, context) => {
|
|
718
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
719
|
-
return de_CommandError(output, context);
|
|
720
|
-
}
|
|
721
|
-
const contents = map({
|
|
722
|
-
$metadata: deserializeMetadata(output),
|
|
723
|
-
});
|
|
724
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
725
|
-
const doc = take(data, {
|
|
726
|
-
Marker: __expectString,
|
|
727
|
-
UploadsList: _json,
|
|
728
|
-
});
|
|
729
|
-
Object.assign(contents, doc);
|
|
730
|
-
return contents;
|
|
731
|
-
};
|
|
732
|
-
export const de_ListPartsCommand = async (output, context) => {
|
|
733
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
734
|
-
return de_CommandError(output, context);
|
|
735
|
-
}
|
|
736
|
-
const contents = map({
|
|
737
|
-
$metadata: deserializeMetadata(output),
|
|
738
|
-
});
|
|
739
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
740
|
-
const doc = take(data, {
|
|
741
|
-
ArchiveDescription: __expectString,
|
|
742
|
-
CreationDate: __expectString,
|
|
743
|
-
Marker: __expectString,
|
|
744
|
-
MultipartUploadId: __expectString,
|
|
745
|
-
PartSizeInBytes: __expectLong,
|
|
746
|
-
Parts: _json,
|
|
747
|
-
VaultARN: __expectString,
|
|
748
|
-
});
|
|
749
|
-
Object.assign(contents, doc);
|
|
750
|
-
return contents;
|
|
751
|
-
};
|
|
752
|
-
export const de_ListProvisionedCapacityCommand = async (output, context) => {
|
|
753
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
754
|
-
return de_CommandError(output, context);
|
|
755
|
-
}
|
|
756
|
-
const contents = map({
|
|
757
|
-
$metadata: deserializeMetadata(output),
|
|
758
|
-
});
|
|
759
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
760
|
-
const doc = take(data, {
|
|
761
|
-
ProvisionedCapacityList: _json,
|
|
762
|
-
});
|
|
763
|
-
Object.assign(contents, doc);
|
|
764
|
-
return contents;
|
|
765
|
-
};
|
|
766
|
-
export const de_ListTagsForVaultCommand = async (output, context) => {
|
|
767
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
768
|
-
return de_CommandError(output, context);
|
|
769
|
-
}
|
|
770
|
-
const contents = map({
|
|
771
|
-
$metadata: deserializeMetadata(output),
|
|
772
|
-
});
|
|
773
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
774
|
-
const doc = take(data, {
|
|
775
|
-
Tags: _json,
|
|
776
|
-
});
|
|
777
|
-
Object.assign(contents, doc);
|
|
778
|
-
return contents;
|
|
779
|
-
};
|
|
780
|
-
export const de_ListVaultsCommand = async (output, context) => {
|
|
781
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
782
|
-
return de_CommandError(output, context);
|
|
783
|
-
}
|
|
784
|
-
const contents = map({
|
|
785
|
-
$metadata: deserializeMetadata(output),
|
|
786
|
-
});
|
|
787
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
788
|
-
const doc = take(data, {
|
|
789
|
-
Marker: __expectString,
|
|
790
|
-
VaultList: _json,
|
|
791
|
-
});
|
|
792
|
-
Object.assign(contents, doc);
|
|
793
|
-
return contents;
|
|
794
|
-
};
|
|
795
|
-
export const de_PurchaseProvisionedCapacityCommand = async (output, context) => {
|
|
796
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
797
|
-
return de_CommandError(output, context);
|
|
798
|
-
}
|
|
799
|
-
const contents = map({
|
|
800
|
-
$metadata: deserializeMetadata(output),
|
|
801
|
-
[_cI]: [, output.headers[_xaci]],
|
|
802
|
-
});
|
|
803
|
-
await collectBody(output.body, context);
|
|
804
|
-
return contents;
|
|
805
|
-
};
|
|
806
|
-
export const de_RemoveTagsFromVaultCommand = async (output, context) => {
|
|
807
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
808
|
-
return de_CommandError(output, context);
|
|
809
|
-
}
|
|
810
|
-
const contents = map({
|
|
811
|
-
$metadata: deserializeMetadata(output),
|
|
812
|
-
});
|
|
813
|
-
await collectBody(output.body, context);
|
|
814
|
-
return contents;
|
|
815
|
-
};
|
|
816
|
-
export const de_SetDataRetrievalPolicyCommand = async (output, context) => {
|
|
817
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
818
|
-
return de_CommandError(output, context);
|
|
819
|
-
}
|
|
820
|
-
const contents = map({
|
|
821
|
-
$metadata: deserializeMetadata(output),
|
|
822
|
-
});
|
|
823
|
-
await collectBody(output.body, context);
|
|
824
|
-
return contents;
|
|
825
|
-
};
|
|
826
|
-
export const de_SetVaultAccessPolicyCommand = async (output, context) => {
|
|
827
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
828
|
-
return de_CommandError(output, context);
|
|
829
|
-
}
|
|
830
|
-
const contents = map({
|
|
831
|
-
$metadata: deserializeMetadata(output),
|
|
832
|
-
});
|
|
833
|
-
await collectBody(output.body, context);
|
|
834
|
-
return contents;
|
|
835
|
-
};
|
|
836
|
-
export const de_SetVaultNotificationsCommand = async (output, context) => {
|
|
837
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
838
|
-
return de_CommandError(output, context);
|
|
839
|
-
}
|
|
840
|
-
const contents = map({
|
|
841
|
-
$metadata: deserializeMetadata(output),
|
|
842
|
-
});
|
|
843
|
-
await collectBody(output.body, context);
|
|
844
|
-
return contents;
|
|
845
|
-
};
|
|
846
|
-
export const de_UploadArchiveCommand = async (output, context) => {
|
|
847
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
848
|
-
return de_CommandError(output, context);
|
|
849
|
-
}
|
|
850
|
-
const contents = map({
|
|
851
|
-
$metadata: deserializeMetadata(output),
|
|
852
|
-
[_lo]: [, output.headers[_lo]],
|
|
853
|
-
[_c]: [, output.headers[_xasth]],
|
|
854
|
-
[_aI]: [, output.headers[_xaai]],
|
|
855
|
-
});
|
|
856
|
-
await collectBody(output.body, context);
|
|
857
|
-
return contents;
|
|
858
|
-
};
|
|
859
|
-
export const de_UploadMultipartPartCommand = async (output, context) => {
|
|
860
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
861
|
-
return de_CommandError(output, context);
|
|
862
|
-
}
|
|
863
|
-
const contents = map({
|
|
864
|
-
$metadata: deserializeMetadata(output),
|
|
865
|
-
[_c]: [, output.headers[_xasth]],
|
|
866
|
-
});
|
|
867
|
-
await collectBody(output.body, context);
|
|
868
|
-
return contents;
|
|
869
|
-
};
|
|
870
|
-
const de_CommandError = async (output, context) => {
|
|
871
|
-
const parsedOutput = {
|
|
872
|
-
...output,
|
|
873
|
-
body: await parseErrorBody(output.body, context),
|
|
874
|
-
};
|
|
875
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
876
|
-
switch (errorCode) {
|
|
877
|
-
case "InvalidParameterValueException":
|
|
878
|
-
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
879
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
880
|
-
case "MissingParameterValueException":
|
|
881
|
-
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
882
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
883
|
-
case "ResourceNotFoundException":
|
|
884
|
-
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
885
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
886
|
-
case "ServiceUnavailableException":
|
|
887
|
-
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
888
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
889
|
-
case "LimitExceededException":
|
|
890
|
-
case "com.amazonaws.glacier#LimitExceededException":
|
|
891
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
892
|
-
case "InsufficientCapacityException":
|
|
893
|
-
case "com.amazonaws.glacier#InsufficientCapacityException":
|
|
894
|
-
throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
|
|
895
|
-
case "PolicyEnforcedException":
|
|
896
|
-
case "com.amazonaws.glacier#PolicyEnforcedException":
|
|
897
|
-
throw await de_PolicyEnforcedExceptionRes(parsedOutput, context);
|
|
898
|
-
case "RequestTimeoutException":
|
|
899
|
-
case "com.amazonaws.glacier#RequestTimeoutException":
|
|
900
|
-
throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
|
|
901
|
-
default:
|
|
902
|
-
const parsedBody = parsedOutput.body;
|
|
903
|
-
return throwDefaultError({
|
|
904
|
-
output,
|
|
905
|
-
parsedBody,
|
|
906
|
-
errorCode,
|
|
907
|
-
});
|
|
908
|
-
}
|
|
909
|
-
};
|
|
910
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
911
|
-
const de_InsufficientCapacityExceptionRes = async (parsedOutput, context) => {
|
|
912
|
-
const contents = map({});
|
|
913
|
-
const data = parsedOutput.body;
|
|
914
|
-
const doc = take(data, {
|
|
915
|
-
code: __expectString,
|
|
916
|
-
message: __expectString,
|
|
917
|
-
type: __expectString,
|
|
918
|
-
});
|
|
919
|
-
Object.assign(contents, doc);
|
|
920
|
-
const exception = new InsufficientCapacityException({
|
|
921
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
922
|
-
...contents,
|
|
923
|
-
});
|
|
924
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
925
|
-
};
|
|
926
|
-
const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
|
|
927
|
-
const contents = map({});
|
|
928
|
-
const data = parsedOutput.body;
|
|
929
|
-
const doc = take(data, {
|
|
930
|
-
code: __expectString,
|
|
931
|
-
message: __expectString,
|
|
932
|
-
type: __expectString,
|
|
933
|
-
});
|
|
934
|
-
Object.assign(contents, doc);
|
|
935
|
-
const exception = new InvalidParameterValueException({
|
|
936
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
937
|
-
...contents,
|
|
938
|
-
});
|
|
939
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
940
|
-
};
|
|
941
|
-
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
942
|
-
const contents = map({});
|
|
943
|
-
const data = parsedOutput.body;
|
|
944
|
-
const doc = take(data, {
|
|
945
|
-
code: __expectString,
|
|
946
|
-
message: __expectString,
|
|
947
|
-
type: __expectString,
|
|
948
|
-
});
|
|
949
|
-
Object.assign(contents, doc);
|
|
950
|
-
const exception = new LimitExceededException({
|
|
951
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
952
|
-
...contents,
|
|
953
|
-
});
|
|
954
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
955
|
-
};
|
|
956
|
-
const de_MissingParameterValueExceptionRes = async (parsedOutput, context) => {
|
|
957
|
-
const contents = map({});
|
|
958
|
-
const data = parsedOutput.body;
|
|
959
|
-
const doc = take(data, {
|
|
960
|
-
code: __expectString,
|
|
961
|
-
message: __expectString,
|
|
962
|
-
type: __expectString,
|
|
963
|
-
});
|
|
964
|
-
Object.assign(contents, doc);
|
|
965
|
-
const exception = new MissingParameterValueException({
|
|
966
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
967
|
-
...contents,
|
|
968
|
-
});
|
|
969
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
970
|
-
};
|
|
971
|
-
const de_PolicyEnforcedExceptionRes = async (parsedOutput, context) => {
|
|
972
|
-
const contents = map({});
|
|
973
|
-
const data = parsedOutput.body;
|
|
974
|
-
const doc = take(data, {
|
|
975
|
-
code: __expectString,
|
|
976
|
-
message: __expectString,
|
|
977
|
-
type: __expectString,
|
|
978
|
-
});
|
|
979
|
-
Object.assign(contents, doc);
|
|
980
|
-
const exception = new PolicyEnforcedException({
|
|
981
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
982
|
-
...contents,
|
|
983
|
-
});
|
|
984
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
985
|
-
};
|
|
986
|
-
const de_RequestTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
987
|
-
const contents = map({});
|
|
988
|
-
const data = parsedOutput.body;
|
|
989
|
-
const doc = take(data, {
|
|
990
|
-
code: __expectString,
|
|
991
|
-
message: __expectString,
|
|
992
|
-
type: __expectString,
|
|
993
|
-
});
|
|
994
|
-
Object.assign(contents, doc);
|
|
995
|
-
const exception = new RequestTimeoutException({
|
|
996
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
997
|
-
...contents,
|
|
998
|
-
});
|
|
999
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1000
|
-
};
|
|
1001
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1002
|
-
const contents = map({});
|
|
1003
|
-
const data = parsedOutput.body;
|
|
1004
|
-
const doc = take(data, {
|
|
1005
|
-
code: __expectString,
|
|
1006
|
-
message: __expectString,
|
|
1007
|
-
type: __expectString,
|
|
1008
|
-
});
|
|
1009
|
-
Object.assign(contents, doc);
|
|
1010
|
-
const exception = new ResourceNotFoundException({
|
|
1011
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1012
|
-
...contents,
|
|
1013
|
-
});
|
|
1014
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1015
|
-
};
|
|
1016
|
-
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
1017
|
-
const contents = map({});
|
|
1018
|
-
const data = parsedOutput.body;
|
|
1019
|
-
const doc = take(data, {
|
|
1020
|
-
code: __expectString,
|
|
1021
|
-
message: __expectString,
|
|
1022
|
-
type: __expectString,
|
|
1023
|
-
});
|
|
1024
|
-
Object.assign(contents, doc);
|
|
1025
|
-
const exception = new ServiceUnavailableException({
|
|
1026
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1027
|
-
...contents,
|
|
1028
|
-
});
|
|
1029
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1030
|
-
};
|
|
1031
|
-
const deserializeMetadata = (output) => ({
|
|
1032
|
-
httpStatusCode: output.statusCode,
|
|
1033
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1034
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1035
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1036
|
-
});
|
|
1037
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1038
|
-
const _aD = "archiveDescription";
|
|
1039
|
-
const _aI = "archiveId";
|
|
1040
|
-
const _aR = "acceptRanges";
|
|
1041
|
-
const _aS = "archiveSize";
|
|
1042
|
-
const _ar = "accept-ranges";
|
|
1043
|
-
const _c = "checksum";
|
|
1044
|
-
const _cI = "capacityId";
|
|
1045
|
-
const _cR = "contentRange";
|
|
1046
|
-
const _cT = "contentType";
|
|
1047
|
-
const _co = "completed";
|
|
1048
|
-
const _cr = "content-range";
|
|
1049
|
-
const _ct = "content-type";
|
|
1050
|
-
const _jI = "jobId";
|
|
1051
|
-
const _jOP = "jobOutputPath";
|
|
1052
|
-
const _l = "limit";
|
|
1053
|
-
const _lI = "lockId";
|
|
1054
|
-
const _lo = "location";
|
|
1055
|
-
const _m = "marker";
|
|
1056
|
-
const _o = "operation";
|
|
1057
|
-
const _pS = "partSize";
|
|
1058
|
-
const _r = "range";
|
|
1059
|
-
const _s = "statuscode";
|
|
1060
|
-
const _uI = "uploadId";
|
|
1061
|
-
const _xaad = "x-amz-archive-description";
|
|
1062
|
-
const _xaai = "x-amz-archive-id";
|
|
1063
|
-
const _xaas = "x-amz-archive-size";
|
|
1064
|
-
const _xaci = "x-amz-capacity-id";
|
|
1065
|
-
const _xaji = "x-amz-job-id";
|
|
1066
|
-
const _xajop = "x-amz-job-output-path";
|
|
1067
|
-
const _xali = "x-amz-lock-id";
|
|
1068
|
-
const _xamui = "x-amz-multipart-upload-id";
|
|
1069
|
-
const _xaps = "x-amz-part-size";
|
|
1070
|
-
const _xasth = "x-amz-sha256-tree-hash";
|