@aws-sdk/client-glacier 3.303.0 → 3.309.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/commands/AbortMultipartUploadCommand.js +2 -2
- package/dist-cjs/commands/AbortVaultLockCommand.js +2 -2
- package/dist-cjs/commands/AddTagsToVaultCommand.js +2 -2
- package/dist-cjs/commands/CompleteMultipartUploadCommand.js +2 -2
- package/dist-cjs/commands/CompleteVaultLockCommand.js +2 -2
- package/dist-cjs/commands/CreateVaultCommand.js +2 -2
- package/dist-cjs/commands/DeleteArchiveCommand.js +2 -2
- package/dist-cjs/commands/DeleteVaultAccessPolicyCommand.js +2 -2
- package/dist-cjs/commands/DeleteVaultCommand.js +2 -2
- package/dist-cjs/commands/DeleteVaultNotificationsCommand.js +2 -2
- package/dist-cjs/commands/DescribeJobCommand.js +2 -2
- package/dist-cjs/commands/DescribeVaultCommand.js +2 -2
- package/dist-cjs/commands/GetDataRetrievalPolicyCommand.js +2 -2
- package/dist-cjs/commands/GetJobOutputCommand.js +2 -2
- package/dist-cjs/commands/GetVaultAccessPolicyCommand.js +2 -2
- package/dist-cjs/commands/GetVaultLockCommand.js +2 -2
- package/dist-cjs/commands/GetVaultNotificationsCommand.js +2 -2
- package/dist-cjs/commands/InitiateJobCommand.js +2 -2
- package/dist-cjs/commands/InitiateMultipartUploadCommand.js +2 -2
- package/dist-cjs/commands/InitiateVaultLockCommand.js +2 -2
- package/dist-cjs/commands/ListJobsCommand.js +2 -2
- package/dist-cjs/commands/ListMultipartUploadsCommand.js +2 -2
- package/dist-cjs/commands/ListPartsCommand.js +2 -2
- package/dist-cjs/commands/ListProvisionedCapacityCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForVaultCommand.js +2 -2
- package/dist-cjs/commands/ListVaultsCommand.js +2 -2
- package/dist-cjs/commands/PurchaseProvisionedCapacityCommand.js +2 -2
- package/dist-cjs/commands/RemoveTagsFromVaultCommand.js +2 -2
- package/dist-cjs/commands/SetDataRetrievalPolicyCommand.js +2 -2
- package/dist-cjs/commands/SetVaultAccessPolicyCommand.js +2 -2
- package/dist-cjs/commands/SetVaultNotificationsCommand.js +2 -2
- package/dist-cjs/commands/UploadArchiveCommand.js +2 -2
- package/dist-cjs/commands/UploadMultipartPartCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +453 -467
- package/dist-es/commands/AbortMultipartUploadCommand.js +3 -3
- package/dist-es/commands/AbortVaultLockCommand.js +3 -3
- package/dist-es/commands/AddTagsToVaultCommand.js +3 -3
- package/dist-es/commands/CompleteMultipartUploadCommand.js +3 -3
- package/dist-es/commands/CompleteVaultLockCommand.js +3 -3
- package/dist-es/commands/CreateVaultCommand.js +3 -3
- package/dist-es/commands/DeleteArchiveCommand.js +3 -3
- package/dist-es/commands/DeleteVaultAccessPolicyCommand.js +3 -3
- package/dist-es/commands/DeleteVaultCommand.js +3 -3
- package/dist-es/commands/DeleteVaultNotificationsCommand.js +3 -3
- package/dist-es/commands/DescribeJobCommand.js +3 -3
- package/dist-es/commands/DescribeVaultCommand.js +3 -3
- package/dist-es/commands/GetDataRetrievalPolicyCommand.js +3 -3
- package/dist-es/commands/GetJobOutputCommand.js +3 -3
- package/dist-es/commands/GetVaultAccessPolicyCommand.js +3 -3
- package/dist-es/commands/GetVaultLockCommand.js +3 -3
- package/dist-es/commands/GetVaultNotificationsCommand.js +3 -3
- package/dist-es/commands/InitiateJobCommand.js +3 -3
- package/dist-es/commands/InitiateMultipartUploadCommand.js +3 -3
- package/dist-es/commands/InitiateVaultLockCommand.js +3 -3
- package/dist-es/commands/ListJobsCommand.js +3 -3
- package/dist-es/commands/ListMultipartUploadsCommand.js +3 -3
- package/dist-es/commands/ListPartsCommand.js +3 -3
- package/dist-es/commands/ListProvisionedCapacityCommand.js +3 -3
- package/dist-es/commands/ListTagsForVaultCommand.js +3 -3
- package/dist-es/commands/ListVaultsCommand.js +3 -3
- package/dist-es/commands/PurchaseProvisionedCapacityCommand.js +3 -3
- package/dist-es/commands/RemoveTagsFromVaultCommand.js +3 -3
- package/dist-es/commands/SetDataRetrievalPolicyCommand.js +3 -3
- package/dist-es/commands/SetVaultAccessPolicyCommand.js +3 -3
- package/dist-es/commands/SetVaultNotificationsCommand.js +3 -3
- package/dist-es/commands/UploadArchiveCommand.js +3 -3
- package/dist-es/commands/UploadMultipartPartCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +385 -399
- package/dist-types/protocols/Aws_restJson1.d.ts +264 -66
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +66 -66
- package/package.json +35 -35
|
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { GlacierServiceException as __BaseException } from "../models/GlacierServiceException";
|
|
4
4
|
import { InsufficientCapacityException, InvalidParameterValueException, LimitExceededException, MissingParameterValueException, PolicyEnforcedException, RequestTimeoutException, ResourceNotFoundException, ServiceUnavailableException, } from "../models/models_0";
|
|
5
|
-
export const
|
|
5
|
+
export const se_AbortMultipartUploadCommand = async (input, context) => {
|
|
6
6
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
7
|
const headers = {};
|
|
8
8
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -21,7 +21,7 @@ export const serializeAws_restJson1AbortMultipartUploadCommand = async (input, c
|
|
|
21
21
|
body,
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
|
-
export const
|
|
24
|
+
export const se_AbortVaultLockCommand = async (input, context) => {
|
|
25
25
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
26
26
|
const headers = {};
|
|
27
27
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -39,7 +39,7 @@ export const serializeAws_restJson1AbortVaultLockCommand = async (input, context
|
|
|
39
39
|
body,
|
|
40
40
|
});
|
|
41
41
|
};
|
|
42
|
-
export const
|
|
42
|
+
export const se_AddTagsToVaultCommand = async (input, context) => {
|
|
43
43
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
44
44
|
const headers = {
|
|
45
45
|
"content-type": "application/json",
|
|
@@ -52,7 +52,7 @@ export const serializeAws_restJson1AddTagsToVaultCommand = async (input, context
|
|
|
52
52
|
});
|
|
53
53
|
let body;
|
|
54
54
|
body = JSON.stringify({
|
|
55
|
-
...(input.Tags != null && { Tags:
|
|
55
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
56
56
|
});
|
|
57
57
|
return new __HttpRequest({
|
|
58
58
|
protocol,
|
|
@@ -65,7 +65,7 @@ export const serializeAws_restJson1AddTagsToVaultCommand = async (input, context
|
|
|
65
65
|
body,
|
|
66
66
|
});
|
|
67
67
|
};
|
|
68
|
-
export const
|
|
68
|
+
export const se_CompleteMultipartUploadCommand = async (input, context) => {
|
|
69
69
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
70
70
|
const headers = map({}, isSerializableHeaderValue, {
|
|
71
71
|
"x-amz-archive-size": input.archiveSize,
|
|
@@ -87,7 +87,7 @@ export const serializeAws_restJson1CompleteMultipartUploadCommand = async (input
|
|
|
87
87
|
body,
|
|
88
88
|
});
|
|
89
89
|
};
|
|
90
|
-
export const
|
|
90
|
+
export const se_CompleteVaultLockCommand = async (input, context) => {
|
|
91
91
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
92
92
|
const headers = {};
|
|
93
93
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -106,7 +106,7 @@ export const serializeAws_restJson1CompleteVaultLockCommand = async (input, cont
|
|
|
106
106
|
body,
|
|
107
107
|
});
|
|
108
108
|
};
|
|
109
|
-
export const
|
|
109
|
+
export const se_CreateVaultCommand = async (input, context) => {
|
|
110
110
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
111
111
|
const headers = {};
|
|
112
112
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}";
|
|
@@ -123,7 +123,7 @@ export const serializeAws_restJson1CreateVaultCommand = async (input, context) =
|
|
|
123
123
|
body,
|
|
124
124
|
});
|
|
125
125
|
};
|
|
126
|
-
export const
|
|
126
|
+
export const se_DeleteArchiveCommand = async (input, context) => {
|
|
127
127
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
128
128
|
const headers = {};
|
|
129
129
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -142,7 +142,7 @@ export const serializeAws_restJson1DeleteArchiveCommand = async (input, context)
|
|
|
142
142
|
body,
|
|
143
143
|
});
|
|
144
144
|
};
|
|
145
|
-
export const
|
|
145
|
+
export const se_DeleteVaultCommand = async (input, context) => {
|
|
146
146
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
147
147
|
const headers = {};
|
|
148
148
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}";
|
|
@@ -159,7 +159,7 @@ export const serializeAws_restJson1DeleteVaultCommand = async (input, context) =
|
|
|
159
159
|
body,
|
|
160
160
|
});
|
|
161
161
|
};
|
|
162
|
-
export const
|
|
162
|
+
export const se_DeleteVaultAccessPolicyCommand = async (input, context) => {
|
|
163
163
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
164
164
|
const headers = {};
|
|
165
165
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -177,7 +177,7 @@ export const serializeAws_restJson1DeleteVaultAccessPolicyCommand = async (input
|
|
|
177
177
|
body,
|
|
178
178
|
});
|
|
179
179
|
};
|
|
180
|
-
export const
|
|
180
|
+
export const se_DeleteVaultNotificationsCommand = async (input, context) => {
|
|
181
181
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
182
182
|
const headers = {};
|
|
183
183
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -195,7 +195,7 @@ export const serializeAws_restJson1DeleteVaultNotificationsCommand = async (inpu
|
|
|
195
195
|
body,
|
|
196
196
|
});
|
|
197
197
|
};
|
|
198
|
-
export const
|
|
198
|
+
export const se_DescribeJobCommand = async (input, context) => {
|
|
199
199
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
200
200
|
const headers = {};
|
|
201
201
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -214,7 +214,7 @@ export const serializeAws_restJson1DescribeJobCommand = async (input, context) =
|
|
|
214
214
|
body,
|
|
215
215
|
});
|
|
216
216
|
};
|
|
217
|
-
export const
|
|
217
|
+
export const se_DescribeVaultCommand = async (input, context) => {
|
|
218
218
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
219
219
|
const headers = {};
|
|
220
220
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}";
|
|
@@ -231,7 +231,7 @@ export const serializeAws_restJson1DescribeVaultCommand = async (input, context)
|
|
|
231
231
|
body,
|
|
232
232
|
});
|
|
233
233
|
};
|
|
234
|
-
export const
|
|
234
|
+
export const se_GetDataRetrievalPolicyCommand = async (input, context) => {
|
|
235
235
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
236
236
|
const headers = {};
|
|
237
237
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/policies/data-retrieval";
|
|
@@ -247,7 +247,7 @@ export const serializeAws_restJson1GetDataRetrievalPolicyCommand = async (input,
|
|
|
247
247
|
body,
|
|
248
248
|
});
|
|
249
249
|
};
|
|
250
|
-
export const
|
|
250
|
+
export const se_GetJobOutputCommand = async (input, context) => {
|
|
251
251
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
252
252
|
const headers = map({}, isSerializableHeaderValue, {
|
|
253
253
|
range: input.range,
|
|
@@ -268,7 +268,7 @@ export const serializeAws_restJson1GetJobOutputCommand = async (input, context)
|
|
|
268
268
|
body,
|
|
269
269
|
});
|
|
270
270
|
};
|
|
271
|
-
export const
|
|
271
|
+
export const se_GetVaultAccessPolicyCommand = async (input, context) => {
|
|
272
272
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
273
273
|
const headers = {};
|
|
274
274
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -286,7 +286,7 @@ export const serializeAws_restJson1GetVaultAccessPolicyCommand = async (input, c
|
|
|
286
286
|
body,
|
|
287
287
|
});
|
|
288
288
|
};
|
|
289
|
-
export const
|
|
289
|
+
export const se_GetVaultLockCommand = async (input, context) => {
|
|
290
290
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
291
291
|
const headers = {};
|
|
292
292
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -304,7 +304,7 @@ export const serializeAws_restJson1GetVaultLockCommand = async (input, context)
|
|
|
304
304
|
body,
|
|
305
305
|
});
|
|
306
306
|
};
|
|
307
|
-
export const
|
|
307
|
+
export const se_GetVaultNotificationsCommand = async (input, context) => {
|
|
308
308
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
309
309
|
const headers = {};
|
|
310
310
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -322,7 +322,7 @@ export const serializeAws_restJson1GetVaultNotificationsCommand = async (input,
|
|
|
322
322
|
body,
|
|
323
323
|
});
|
|
324
324
|
};
|
|
325
|
-
export const
|
|
325
|
+
export const se_InitiateJobCommand = async (input, context) => {
|
|
326
326
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
327
327
|
const headers = {
|
|
328
328
|
"content-type": "application/json",
|
|
@@ -332,7 +332,7 @@ export const serializeAws_restJson1InitiateJobCommand = async (input, context) =
|
|
|
332
332
|
resolvedPath = __resolvedPath(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
|
|
333
333
|
let body;
|
|
334
334
|
if (input.jobParameters !== undefined) {
|
|
335
|
-
body =
|
|
335
|
+
body = se_JobParameters(input.jobParameters, context);
|
|
336
336
|
}
|
|
337
337
|
if (body === undefined) {
|
|
338
338
|
body = {};
|
|
@@ -348,7 +348,7 @@ export const serializeAws_restJson1InitiateJobCommand = async (input, context) =
|
|
|
348
348
|
body,
|
|
349
349
|
});
|
|
350
350
|
};
|
|
351
|
-
export const
|
|
351
|
+
export const se_InitiateMultipartUploadCommand = async (input, context) => {
|
|
352
352
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
353
353
|
const headers = map({}, isSerializableHeaderValue, {
|
|
354
354
|
"x-amz-archive-description": input.archiveDescription,
|
|
@@ -369,7 +369,7 @@ export const serializeAws_restJson1InitiateMultipartUploadCommand = async (input
|
|
|
369
369
|
body,
|
|
370
370
|
});
|
|
371
371
|
};
|
|
372
|
-
export const
|
|
372
|
+
export const se_InitiateVaultLockCommand = async (input, context) => {
|
|
373
373
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
374
374
|
const headers = {
|
|
375
375
|
"content-type": "application/json",
|
|
@@ -380,7 +380,7 @@ export const serializeAws_restJson1InitiateVaultLockCommand = async (input, cont
|
|
|
380
380
|
resolvedPath = __resolvedPath(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
|
|
381
381
|
let body;
|
|
382
382
|
if (input.policy !== undefined) {
|
|
383
|
-
body =
|
|
383
|
+
body = se_VaultLockPolicy(input.policy, context);
|
|
384
384
|
}
|
|
385
385
|
if (body === undefined) {
|
|
386
386
|
body = {};
|
|
@@ -396,7 +396,7 @@ export const serializeAws_restJson1InitiateVaultLockCommand = async (input, cont
|
|
|
396
396
|
body,
|
|
397
397
|
});
|
|
398
398
|
};
|
|
399
|
-
export const
|
|
399
|
+
export const se_ListJobsCommand = async (input, context) => {
|
|
400
400
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
401
401
|
const headers = {};
|
|
402
402
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}/jobs";
|
|
@@ -420,7 +420,7 @@ export const serializeAws_restJson1ListJobsCommand = async (input, context) => {
|
|
|
420
420
|
body,
|
|
421
421
|
});
|
|
422
422
|
};
|
|
423
|
-
export const
|
|
423
|
+
export const se_ListMultipartUploadsCommand = async (input, context) => {
|
|
424
424
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
425
425
|
const headers = {};
|
|
426
426
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -443,7 +443,7 @@ export const serializeAws_restJson1ListMultipartUploadsCommand = async (input, c
|
|
|
443
443
|
body,
|
|
444
444
|
});
|
|
445
445
|
};
|
|
446
|
-
export const
|
|
446
|
+
export const se_ListPartsCommand = async (input, context) => {
|
|
447
447
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
448
448
|
const headers = {};
|
|
449
449
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -467,7 +467,7 @@ export const serializeAws_restJson1ListPartsCommand = async (input, context) =>
|
|
|
467
467
|
body,
|
|
468
468
|
});
|
|
469
469
|
};
|
|
470
|
-
export const
|
|
470
|
+
export const se_ListProvisionedCapacityCommand = async (input, context) => {
|
|
471
471
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
472
472
|
const headers = {};
|
|
473
473
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/provisioned-capacity";
|
|
@@ -483,7 +483,7 @@ export const serializeAws_restJson1ListProvisionedCapacityCommand = async (input
|
|
|
483
483
|
body,
|
|
484
484
|
});
|
|
485
485
|
};
|
|
486
|
-
export const
|
|
486
|
+
export const se_ListTagsForVaultCommand = async (input, context) => {
|
|
487
487
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
488
488
|
const headers = {};
|
|
489
489
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}/tags";
|
|
@@ -500,7 +500,7 @@ export const serializeAws_restJson1ListTagsForVaultCommand = async (input, conte
|
|
|
500
500
|
body,
|
|
501
501
|
});
|
|
502
502
|
};
|
|
503
|
-
export const
|
|
503
|
+
export const se_ListVaultsCommand = async (input, context) => {
|
|
504
504
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
505
505
|
const headers = {};
|
|
506
506
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults";
|
|
@@ -521,7 +521,7 @@ export const serializeAws_restJson1ListVaultsCommand = async (input, context) =>
|
|
|
521
521
|
body,
|
|
522
522
|
});
|
|
523
523
|
};
|
|
524
|
-
export const
|
|
524
|
+
export const se_PurchaseProvisionedCapacityCommand = async (input, context) => {
|
|
525
525
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
526
526
|
const headers = {};
|
|
527
527
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/provisioned-capacity";
|
|
@@ -537,7 +537,7 @@ export const serializeAws_restJson1PurchaseProvisionedCapacityCommand = async (i
|
|
|
537
537
|
body,
|
|
538
538
|
});
|
|
539
539
|
};
|
|
540
|
-
export const
|
|
540
|
+
export const se_RemoveTagsFromVaultCommand = async (input, context) => {
|
|
541
541
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
542
542
|
const headers = {
|
|
543
543
|
"content-type": "application/json",
|
|
@@ -550,7 +550,7 @@ export const serializeAws_restJson1RemoveTagsFromVaultCommand = async (input, co
|
|
|
550
550
|
});
|
|
551
551
|
let body;
|
|
552
552
|
body = JSON.stringify({
|
|
553
|
-
...(input.TagKeys != null && { TagKeys:
|
|
553
|
+
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
554
554
|
});
|
|
555
555
|
return new __HttpRequest({
|
|
556
556
|
protocol,
|
|
@@ -563,7 +563,7 @@ export const serializeAws_restJson1RemoveTagsFromVaultCommand = async (input, co
|
|
|
563
563
|
body,
|
|
564
564
|
});
|
|
565
565
|
};
|
|
566
|
-
export const
|
|
566
|
+
export const se_SetDataRetrievalPolicyCommand = async (input, context) => {
|
|
567
567
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
568
568
|
const headers = {
|
|
569
569
|
"content-type": "application/json",
|
|
@@ -572,7 +572,7 @@ export const serializeAws_restJson1SetDataRetrievalPolicyCommand = async (input,
|
|
|
572
572
|
resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
|
|
573
573
|
let body;
|
|
574
574
|
body = JSON.stringify({
|
|
575
|
-
...(input.Policy != null && { Policy:
|
|
575
|
+
...(input.Policy != null && { Policy: se_DataRetrievalPolicy(input.Policy, context) }),
|
|
576
576
|
});
|
|
577
577
|
return new __HttpRequest({
|
|
578
578
|
protocol,
|
|
@@ -584,7 +584,7 @@ export const serializeAws_restJson1SetDataRetrievalPolicyCommand = async (input,
|
|
|
584
584
|
body,
|
|
585
585
|
});
|
|
586
586
|
};
|
|
587
|
-
export const
|
|
587
|
+
export const se_SetVaultAccessPolicyCommand = async (input, context) => {
|
|
588
588
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
589
589
|
const headers = {
|
|
590
590
|
"content-type": "application/json",
|
|
@@ -595,7 +595,7 @@ export const serializeAws_restJson1SetVaultAccessPolicyCommand = async (input, c
|
|
|
595
595
|
resolvedPath = __resolvedPath(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
|
|
596
596
|
let body;
|
|
597
597
|
if (input.policy !== undefined) {
|
|
598
|
-
body =
|
|
598
|
+
body = se_VaultAccessPolicy(input.policy, context);
|
|
599
599
|
}
|
|
600
600
|
if (body === undefined) {
|
|
601
601
|
body = {};
|
|
@@ -611,7 +611,7 @@ export const serializeAws_restJson1SetVaultAccessPolicyCommand = async (input, c
|
|
|
611
611
|
body,
|
|
612
612
|
});
|
|
613
613
|
};
|
|
614
|
-
export const
|
|
614
|
+
export const se_SetVaultNotificationsCommand = async (input, context) => {
|
|
615
615
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
616
616
|
const headers = {
|
|
617
617
|
"content-type": "application/json",
|
|
@@ -622,7 +622,7 @@ export const serializeAws_restJson1SetVaultNotificationsCommand = async (input,
|
|
|
622
622
|
resolvedPath = __resolvedPath(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
|
|
623
623
|
let body;
|
|
624
624
|
if (input.vaultNotificationConfig !== undefined) {
|
|
625
|
-
body =
|
|
625
|
+
body = se_VaultNotificationConfig(input.vaultNotificationConfig, context);
|
|
626
626
|
}
|
|
627
627
|
if (body === undefined) {
|
|
628
628
|
body = {};
|
|
@@ -638,7 +638,7 @@ export const serializeAws_restJson1SetVaultNotificationsCommand = async (input,
|
|
|
638
638
|
body,
|
|
639
639
|
});
|
|
640
640
|
};
|
|
641
|
-
export const
|
|
641
|
+
export const se_UploadArchiveCommand = async (input, context) => {
|
|
642
642
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
643
643
|
const headers = map({}, isSerializableHeaderValue, {
|
|
644
644
|
"content-type": "application/octet-stream",
|
|
@@ -662,7 +662,7 @@ export const serializeAws_restJson1UploadArchiveCommand = async (input, context)
|
|
|
662
662
|
body,
|
|
663
663
|
});
|
|
664
664
|
};
|
|
665
|
-
export const
|
|
665
|
+
export const se_UploadMultipartPartCommand = async (input, context) => {
|
|
666
666
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
667
667
|
const headers = map({}, isSerializableHeaderValue, {
|
|
668
668
|
"content-type": "application/octet-stream",
|
|
@@ -688,9 +688,9 @@ export const serializeAws_restJson1UploadMultipartPartCommand = async (input, co
|
|
|
688
688
|
body,
|
|
689
689
|
});
|
|
690
690
|
};
|
|
691
|
-
export const
|
|
691
|
+
export const de_AbortMultipartUploadCommand = async (output, context) => {
|
|
692
692
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
693
|
-
return
|
|
693
|
+
return de_AbortMultipartUploadCommandError(output, context);
|
|
694
694
|
}
|
|
695
695
|
const contents = map({
|
|
696
696
|
$metadata: deserializeMetadata(output),
|
|
@@ -698,7 +698,7 @@ export const deserializeAws_restJson1AbortMultipartUploadCommand = async (output
|
|
|
698
698
|
await collectBody(output.body, context);
|
|
699
699
|
return contents;
|
|
700
700
|
};
|
|
701
|
-
const
|
|
701
|
+
const de_AbortMultipartUploadCommandError = async (output, context) => {
|
|
702
702
|
const parsedOutput = {
|
|
703
703
|
...output,
|
|
704
704
|
body: await parseErrorBody(output.body, context),
|
|
@@ -707,16 +707,16 @@ const deserializeAws_restJson1AbortMultipartUploadCommandError = async (output,
|
|
|
707
707
|
switch (errorCode) {
|
|
708
708
|
case "InvalidParameterValueException":
|
|
709
709
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
710
|
-
throw await
|
|
710
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
711
711
|
case "MissingParameterValueException":
|
|
712
712
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
713
|
-
throw await
|
|
713
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
714
714
|
case "ResourceNotFoundException":
|
|
715
715
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
716
|
-
throw await
|
|
716
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
717
717
|
case "ServiceUnavailableException":
|
|
718
718
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
719
|
-
throw await
|
|
719
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
720
720
|
default:
|
|
721
721
|
const parsedBody = parsedOutput.body;
|
|
722
722
|
throwDefaultError({
|
|
@@ -727,9 +727,9 @@ const deserializeAws_restJson1AbortMultipartUploadCommandError = async (output,
|
|
|
727
727
|
});
|
|
728
728
|
}
|
|
729
729
|
};
|
|
730
|
-
export const
|
|
730
|
+
export const de_AbortVaultLockCommand = async (output, context) => {
|
|
731
731
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
732
|
-
return
|
|
732
|
+
return de_AbortVaultLockCommandError(output, context);
|
|
733
733
|
}
|
|
734
734
|
const contents = map({
|
|
735
735
|
$metadata: deserializeMetadata(output),
|
|
@@ -737,7 +737,7 @@ export const deserializeAws_restJson1AbortVaultLockCommand = async (output, cont
|
|
|
737
737
|
await collectBody(output.body, context);
|
|
738
738
|
return contents;
|
|
739
739
|
};
|
|
740
|
-
const
|
|
740
|
+
const de_AbortVaultLockCommandError = async (output, context) => {
|
|
741
741
|
const parsedOutput = {
|
|
742
742
|
...output,
|
|
743
743
|
body: await parseErrorBody(output.body, context),
|
|
@@ -746,16 +746,16 @@ const deserializeAws_restJson1AbortVaultLockCommandError = async (output, contex
|
|
|
746
746
|
switch (errorCode) {
|
|
747
747
|
case "InvalidParameterValueException":
|
|
748
748
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
749
|
-
throw await
|
|
749
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
750
750
|
case "MissingParameterValueException":
|
|
751
751
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
752
|
-
throw await
|
|
752
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
753
753
|
case "ResourceNotFoundException":
|
|
754
754
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
755
|
-
throw await
|
|
755
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
756
756
|
case "ServiceUnavailableException":
|
|
757
757
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
758
|
-
throw await
|
|
758
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
759
759
|
default:
|
|
760
760
|
const parsedBody = parsedOutput.body;
|
|
761
761
|
throwDefaultError({
|
|
@@ -766,9 +766,9 @@ const deserializeAws_restJson1AbortVaultLockCommandError = async (output, contex
|
|
|
766
766
|
});
|
|
767
767
|
}
|
|
768
768
|
};
|
|
769
|
-
export const
|
|
769
|
+
export const de_AddTagsToVaultCommand = async (output, context) => {
|
|
770
770
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
771
|
-
return
|
|
771
|
+
return de_AddTagsToVaultCommandError(output, context);
|
|
772
772
|
}
|
|
773
773
|
const contents = map({
|
|
774
774
|
$metadata: deserializeMetadata(output),
|
|
@@ -776,7 +776,7 @@ export const deserializeAws_restJson1AddTagsToVaultCommand = async (output, cont
|
|
|
776
776
|
await collectBody(output.body, context);
|
|
777
777
|
return contents;
|
|
778
778
|
};
|
|
779
|
-
const
|
|
779
|
+
const de_AddTagsToVaultCommandError = async (output, context) => {
|
|
780
780
|
const parsedOutput = {
|
|
781
781
|
...output,
|
|
782
782
|
body: await parseErrorBody(output.body, context),
|
|
@@ -785,19 +785,19 @@ const deserializeAws_restJson1AddTagsToVaultCommandError = async (output, contex
|
|
|
785
785
|
switch (errorCode) {
|
|
786
786
|
case "InvalidParameterValueException":
|
|
787
787
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
788
|
-
throw await
|
|
788
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
789
789
|
case "LimitExceededException":
|
|
790
790
|
case "com.amazonaws.glacier#LimitExceededException":
|
|
791
|
-
throw await
|
|
791
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
792
792
|
case "MissingParameterValueException":
|
|
793
793
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
794
|
-
throw await
|
|
794
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
795
795
|
case "ResourceNotFoundException":
|
|
796
796
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
797
|
-
throw await
|
|
797
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
798
798
|
case "ServiceUnavailableException":
|
|
799
799
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
800
|
-
throw await
|
|
800
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
801
801
|
default:
|
|
802
802
|
const parsedBody = parsedOutput.body;
|
|
803
803
|
throwDefaultError({
|
|
@@ -808,9 +808,9 @@ const deserializeAws_restJson1AddTagsToVaultCommandError = async (output, contex
|
|
|
808
808
|
});
|
|
809
809
|
}
|
|
810
810
|
};
|
|
811
|
-
export const
|
|
811
|
+
export const de_CompleteMultipartUploadCommand = async (output, context) => {
|
|
812
812
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
813
|
-
return
|
|
813
|
+
return de_CompleteMultipartUploadCommandError(output, context);
|
|
814
814
|
}
|
|
815
815
|
const contents = map({
|
|
816
816
|
$metadata: deserializeMetadata(output),
|
|
@@ -821,7 +821,7 @@ export const deserializeAws_restJson1CompleteMultipartUploadCommand = async (out
|
|
|
821
821
|
await collectBody(output.body, context);
|
|
822
822
|
return contents;
|
|
823
823
|
};
|
|
824
|
-
const
|
|
824
|
+
const de_CompleteMultipartUploadCommandError = async (output, context) => {
|
|
825
825
|
const parsedOutput = {
|
|
826
826
|
...output,
|
|
827
827
|
body: await parseErrorBody(output.body, context),
|
|
@@ -830,16 +830,16 @@ const deserializeAws_restJson1CompleteMultipartUploadCommandError = async (outpu
|
|
|
830
830
|
switch (errorCode) {
|
|
831
831
|
case "InvalidParameterValueException":
|
|
832
832
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
833
|
-
throw await
|
|
833
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
834
834
|
case "MissingParameterValueException":
|
|
835
835
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
836
|
-
throw await
|
|
836
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
837
837
|
case "ResourceNotFoundException":
|
|
838
838
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
839
|
-
throw await
|
|
839
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
840
840
|
case "ServiceUnavailableException":
|
|
841
841
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
842
|
-
throw await
|
|
842
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
843
843
|
default:
|
|
844
844
|
const parsedBody = parsedOutput.body;
|
|
845
845
|
throwDefaultError({
|
|
@@ -850,9 +850,9 @@ const deserializeAws_restJson1CompleteMultipartUploadCommandError = async (outpu
|
|
|
850
850
|
});
|
|
851
851
|
}
|
|
852
852
|
};
|
|
853
|
-
export const
|
|
853
|
+
export const de_CompleteVaultLockCommand = async (output, context) => {
|
|
854
854
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
855
|
-
return
|
|
855
|
+
return de_CompleteVaultLockCommandError(output, context);
|
|
856
856
|
}
|
|
857
857
|
const contents = map({
|
|
858
858
|
$metadata: deserializeMetadata(output),
|
|
@@ -860,7 +860,7 @@ export const deserializeAws_restJson1CompleteVaultLockCommand = async (output, c
|
|
|
860
860
|
await collectBody(output.body, context);
|
|
861
861
|
return contents;
|
|
862
862
|
};
|
|
863
|
-
const
|
|
863
|
+
const de_CompleteVaultLockCommandError = async (output, context) => {
|
|
864
864
|
const parsedOutput = {
|
|
865
865
|
...output,
|
|
866
866
|
body: await parseErrorBody(output.body, context),
|
|
@@ -869,16 +869,16 @@ const deserializeAws_restJson1CompleteVaultLockCommandError = async (output, con
|
|
|
869
869
|
switch (errorCode) {
|
|
870
870
|
case "InvalidParameterValueException":
|
|
871
871
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
872
|
-
throw await
|
|
872
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
873
873
|
case "MissingParameterValueException":
|
|
874
874
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
875
|
-
throw await
|
|
875
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
876
876
|
case "ResourceNotFoundException":
|
|
877
877
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
878
|
-
throw await
|
|
878
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
879
879
|
case "ServiceUnavailableException":
|
|
880
880
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
881
|
-
throw await
|
|
881
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
882
882
|
default:
|
|
883
883
|
const parsedBody = parsedOutput.body;
|
|
884
884
|
throwDefaultError({
|
|
@@ -889,9 +889,9 @@ const deserializeAws_restJson1CompleteVaultLockCommandError = async (output, con
|
|
|
889
889
|
});
|
|
890
890
|
}
|
|
891
891
|
};
|
|
892
|
-
export const
|
|
892
|
+
export const de_CreateVaultCommand = async (output, context) => {
|
|
893
893
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
894
|
-
return
|
|
894
|
+
return de_CreateVaultCommandError(output, context);
|
|
895
895
|
}
|
|
896
896
|
const contents = map({
|
|
897
897
|
$metadata: deserializeMetadata(output),
|
|
@@ -900,7 +900,7 @@ export const deserializeAws_restJson1CreateVaultCommand = async (output, context
|
|
|
900
900
|
await collectBody(output.body, context);
|
|
901
901
|
return contents;
|
|
902
902
|
};
|
|
903
|
-
const
|
|
903
|
+
const de_CreateVaultCommandError = async (output, context) => {
|
|
904
904
|
const parsedOutput = {
|
|
905
905
|
...output,
|
|
906
906
|
body: await parseErrorBody(output.body, context),
|
|
@@ -909,16 +909,16 @@ const deserializeAws_restJson1CreateVaultCommandError = async (output, context)
|
|
|
909
909
|
switch (errorCode) {
|
|
910
910
|
case "InvalidParameterValueException":
|
|
911
911
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
912
|
-
throw await
|
|
912
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
913
913
|
case "LimitExceededException":
|
|
914
914
|
case "com.amazonaws.glacier#LimitExceededException":
|
|
915
|
-
throw await
|
|
915
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
916
916
|
case "MissingParameterValueException":
|
|
917
917
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
918
|
-
throw await
|
|
918
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
919
919
|
case "ServiceUnavailableException":
|
|
920
920
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
921
|
-
throw await
|
|
921
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
922
922
|
default:
|
|
923
923
|
const parsedBody = parsedOutput.body;
|
|
924
924
|
throwDefaultError({
|
|
@@ -929,9 +929,9 @@ const deserializeAws_restJson1CreateVaultCommandError = async (output, context)
|
|
|
929
929
|
});
|
|
930
930
|
}
|
|
931
931
|
};
|
|
932
|
-
export const
|
|
932
|
+
export const de_DeleteArchiveCommand = async (output, context) => {
|
|
933
933
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
934
|
-
return
|
|
934
|
+
return de_DeleteArchiveCommandError(output, context);
|
|
935
935
|
}
|
|
936
936
|
const contents = map({
|
|
937
937
|
$metadata: deserializeMetadata(output),
|
|
@@ -939,7 +939,7 @@ export const deserializeAws_restJson1DeleteArchiveCommand = async (output, conte
|
|
|
939
939
|
await collectBody(output.body, context);
|
|
940
940
|
return contents;
|
|
941
941
|
};
|
|
942
|
-
const
|
|
942
|
+
const de_DeleteArchiveCommandError = async (output, context) => {
|
|
943
943
|
const parsedOutput = {
|
|
944
944
|
...output,
|
|
945
945
|
body: await parseErrorBody(output.body, context),
|
|
@@ -948,16 +948,16 @@ const deserializeAws_restJson1DeleteArchiveCommandError = async (output, context
|
|
|
948
948
|
switch (errorCode) {
|
|
949
949
|
case "InvalidParameterValueException":
|
|
950
950
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
951
|
-
throw await
|
|
951
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
952
952
|
case "MissingParameterValueException":
|
|
953
953
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
954
|
-
throw await
|
|
954
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
955
955
|
case "ResourceNotFoundException":
|
|
956
956
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
957
|
-
throw await
|
|
957
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
958
958
|
case "ServiceUnavailableException":
|
|
959
959
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
960
|
-
throw await
|
|
960
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
961
961
|
default:
|
|
962
962
|
const parsedBody = parsedOutput.body;
|
|
963
963
|
throwDefaultError({
|
|
@@ -968,9 +968,9 @@ const deserializeAws_restJson1DeleteArchiveCommandError = async (output, context
|
|
|
968
968
|
});
|
|
969
969
|
}
|
|
970
970
|
};
|
|
971
|
-
export const
|
|
971
|
+
export const de_DeleteVaultCommand = async (output, context) => {
|
|
972
972
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
973
|
-
return
|
|
973
|
+
return de_DeleteVaultCommandError(output, context);
|
|
974
974
|
}
|
|
975
975
|
const contents = map({
|
|
976
976
|
$metadata: deserializeMetadata(output),
|
|
@@ -978,7 +978,7 @@ export const deserializeAws_restJson1DeleteVaultCommand = async (output, context
|
|
|
978
978
|
await collectBody(output.body, context);
|
|
979
979
|
return contents;
|
|
980
980
|
};
|
|
981
|
-
const
|
|
981
|
+
const de_DeleteVaultCommandError = async (output, context) => {
|
|
982
982
|
const parsedOutput = {
|
|
983
983
|
...output,
|
|
984
984
|
body: await parseErrorBody(output.body, context),
|
|
@@ -987,16 +987,16 @@ const deserializeAws_restJson1DeleteVaultCommandError = async (output, context)
|
|
|
987
987
|
switch (errorCode) {
|
|
988
988
|
case "InvalidParameterValueException":
|
|
989
989
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
990
|
-
throw await
|
|
990
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
991
991
|
case "MissingParameterValueException":
|
|
992
992
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
993
|
-
throw await
|
|
993
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
994
994
|
case "ResourceNotFoundException":
|
|
995
995
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
996
|
-
throw await
|
|
996
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
997
997
|
case "ServiceUnavailableException":
|
|
998
998
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
999
|
-
throw await
|
|
999
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1000
1000
|
default:
|
|
1001
1001
|
const parsedBody = parsedOutput.body;
|
|
1002
1002
|
throwDefaultError({
|
|
@@ -1007,9 +1007,9 @@ const deserializeAws_restJson1DeleteVaultCommandError = async (output, context)
|
|
|
1007
1007
|
});
|
|
1008
1008
|
}
|
|
1009
1009
|
};
|
|
1010
|
-
export const
|
|
1010
|
+
export const de_DeleteVaultAccessPolicyCommand = async (output, context) => {
|
|
1011
1011
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1012
|
-
return
|
|
1012
|
+
return de_DeleteVaultAccessPolicyCommandError(output, context);
|
|
1013
1013
|
}
|
|
1014
1014
|
const contents = map({
|
|
1015
1015
|
$metadata: deserializeMetadata(output),
|
|
@@ -1017,7 +1017,7 @@ export const deserializeAws_restJson1DeleteVaultAccessPolicyCommand = async (out
|
|
|
1017
1017
|
await collectBody(output.body, context);
|
|
1018
1018
|
return contents;
|
|
1019
1019
|
};
|
|
1020
|
-
const
|
|
1020
|
+
const de_DeleteVaultAccessPolicyCommandError = async (output, context) => {
|
|
1021
1021
|
const parsedOutput = {
|
|
1022
1022
|
...output,
|
|
1023
1023
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1026,16 +1026,16 @@ const deserializeAws_restJson1DeleteVaultAccessPolicyCommandError = async (outpu
|
|
|
1026
1026
|
switch (errorCode) {
|
|
1027
1027
|
case "InvalidParameterValueException":
|
|
1028
1028
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1029
|
-
throw await
|
|
1029
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1030
1030
|
case "MissingParameterValueException":
|
|
1031
1031
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1032
|
-
throw await
|
|
1032
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1033
1033
|
case "ResourceNotFoundException":
|
|
1034
1034
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1035
|
-
throw await
|
|
1035
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1036
1036
|
case "ServiceUnavailableException":
|
|
1037
1037
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1038
|
-
throw await
|
|
1038
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1039
1039
|
default:
|
|
1040
1040
|
const parsedBody = parsedOutput.body;
|
|
1041
1041
|
throwDefaultError({
|
|
@@ -1046,9 +1046,9 @@ const deserializeAws_restJson1DeleteVaultAccessPolicyCommandError = async (outpu
|
|
|
1046
1046
|
});
|
|
1047
1047
|
}
|
|
1048
1048
|
};
|
|
1049
|
-
export const
|
|
1049
|
+
export const de_DeleteVaultNotificationsCommand = async (output, context) => {
|
|
1050
1050
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1051
|
-
return
|
|
1051
|
+
return de_DeleteVaultNotificationsCommandError(output, context);
|
|
1052
1052
|
}
|
|
1053
1053
|
const contents = map({
|
|
1054
1054
|
$metadata: deserializeMetadata(output),
|
|
@@ -1056,7 +1056,7 @@ export const deserializeAws_restJson1DeleteVaultNotificationsCommand = async (ou
|
|
|
1056
1056
|
await collectBody(output.body, context);
|
|
1057
1057
|
return contents;
|
|
1058
1058
|
};
|
|
1059
|
-
const
|
|
1059
|
+
const de_DeleteVaultNotificationsCommandError = async (output, context) => {
|
|
1060
1060
|
const parsedOutput = {
|
|
1061
1061
|
...output,
|
|
1062
1062
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1065,16 +1065,16 @@ const deserializeAws_restJson1DeleteVaultNotificationsCommandError = async (outp
|
|
|
1065
1065
|
switch (errorCode) {
|
|
1066
1066
|
case "InvalidParameterValueException":
|
|
1067
1067
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1068
|
-
throw await
|
|
1068
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1069
1069
|
case "MissingParameterValueException":
|
|
1070
1070
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1071
|
-
throw await
|
|
1071
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1072
1072
|
case "ResourceNotFoundException":
|
|
1073
1073
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1074
|
-
throw await
|
|
1074
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1075
1075
|
case "ServiceUnavailableException":
|
|
1076
1076
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1077
|
-
throw await
|
|
1077
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1078
1078
|
default:
|
|
1079
1079
|
const parsedBody = parsedOutput.body;
|
|
1080
1080
|
throwDefaultError({
|
|
@@ -1085,9 +1085,9 @@ const deserializeAws_restJson1DeleteVaultNotificationsCommandError = async (outp
|
|
|
1085
1085
|
});
|
|
1086
1086
|
}
|
|
1087
1087
|
};
|
|
1088
|
-
export const
|
|
1088
|
+
export const de_DescribeJobCommand = async (output, context) => {
|
|
1089
1089
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1090
|
-
return
|
|
1090
|
+
return de_DescribeJobCommandError(output, context);
|
|
1091
1091
|
}
|
|
1092
1092
|
const contents = map({
|
|
1093
1093
|
$metadata: deserializeMetadata(output),
|
|
@@ -1115,7 +1115,7 @@ export const deserializeAws_restJson1DescribeJobCommand = async (output, context
|
|
|
1115
1115
|
contents.CreationDate = __expectString(data.CreationDate);
|
|
1116
1116
|
}
|
|
1117
1117
|
if (data.InventoryRetrievalParameters != null) {
|
|
1118
|
-
contents.InventoryRetrievalParameters =
|
|
1118
|
+
contents.InventoryRetrievalParameters = de_InventoryRetrievalJobDescription(data.InventoryRetrievalParameters, context);
|
|
1119
1119
|
}
|
|
1120
1120
|
if (data.InventorySizeInBytes != null) {
|
|
1121
1121
|
contents.InventorySizeInBytes = __expectLong(data.InventorySizeInBytes);
|
|
@@ -1130,7 +1130,7 @@ export const deserializeAws_restJson1DescribeJobCommand = async (output, context
|
|
|
1130
1130
|
contents.JobOutputPath = __expectString(data.JobOutputPath);
|
|
1131
1131
|
}
|
|
1132
1132
|
if (data.OutputLocation != null) {
|
|
1133
|
-
contents.OutputLocation =
|
|
1133
|
+
contents.OutputLocation = de_OutputLocation(data.OutputLocation, context);
|
|
1134
1134
|
}
|
|
1135
1135
|
if (data.RetrievalByteRange != null) {
|
|
1136
1136
|
contents.RetrievalByteRange = __expectString(data.RetrievalByteRange);
|
|
@@ -1142,7 +1142,7 @@ export const deserializeAws_restJson1DescribeJobCommand = async (output, context
|
|
|
1142
1142
|
contents.SNSTopic = __expectString(data.SNSTopic);
|
|
1143
1143
|
}
|
|
1144
1144
|
if (data.SelectParameters != null) {
|
|
1145
|
-
contents.SelectParameters =
|
|
1145
|
+
contents.SelectParameters = de_SelectParameters(data.SelectParameters, context);
|
|
1146
1146
|
}
|
|
1147
1147
|
if (data.StatusCode != null) {
|
|
1148
1148
|
contents.StatusCode = __expectString(data.StatusCode);
|
|
@@ -1158,7 +1158,7 @@ export const deserializeAws_restJson1DescribeJobCommand = async (output, context
|
|
|
1158
1158
|
}
|
|
1159
1159
|
return contents;
|
|
1160
1160
|
};
|
|
1161
|
-
const
|
|
1161
|
+
const de_DescribeJobCommandError = async (output, context) => {
|
|
1162
1162
|
const parsedOutput = {
|
|
1163
1163
|
...output,
|
|
1164
1164
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1167,16 +1167,16 @@ const deserializeAws_restJson1DescribeJobCommandError = async (output, context)
|
|
|
1167
1167
|
switch (errorCode) {
|
|
1168
1168
|
case "InvalidParameterValueException":
|
|
1169
1169
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1170
|
-
throw await
|
|
1170
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1171
1171
|
case "MissingParameterValueException":
|
|
1172
1172
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1173
|
-
throw await
|
|
1173
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1174
1174
|
case "ResourceNotFoundException":
|
|
1175
1175
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1176
|
-
throw await
|
|
1176
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1177
1177
|
case "ServiceUnavailableException":
|
|
1178
1178
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1179
|
-
throw await
|
|
1179
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1180
1180
|
default:
|
|
1181
1181
|
const parsedBody = parsedOutput.body;
|
|
1182
1182
|
throwDefaultError({
|
|
@@ -1187,9 +1187,9 @@ const deserializeAws_restJson1DescribeJobCommandError = async (output, context)
|
|
|
1187
1187
|
});
|
|
1188
1188
|
}
|
|
1189
1189
|
};
|
|
1190
|
-
export const
|
|
1190
|
+
export const de_DescribeVaultCommand = async (output, context) => {
|
|
1191
1191
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1192
|
-
return
|
|
1192
|
+
return de_DescribeVaultCommandError(output, context);
|
|
1193
1193
|
}
|
|
1194
1194
|
const contents = map({
|
|
1195
1195
|
$metadata: deserializeMetadata(output),
|
|
@@ -1215,7 +1215,7 @@ export const deserializeAws_restJson1DescribeVaultCommand = async (output, conte
|
|
|
1215
1215
|
}
|
|
1216
1216
|
return contents;
|
|
1217
1217
|
};
|
|
1218
|
-
const
|
|
1218
|
+
const de_DescribeVaultCommandError = async (output, context) => {
|
|
1219
1219
|
const parsedOutput = {
|
|
1220
1220
|
...output,
|
|
1221
1221
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1224,16 +1224,16 @@ const deserializeAws_restJson1DescribeVaultCommandError = async (output, context
|
|
|
1224
1224
|
switch (errorCode) {
|
|
1225
1225
|
case "InvalidParameterValueException":
|
|
1226
1226
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1227
|
-
throw await
|
|
1227
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1228
1228
|
case "MissingParameterValueException":
|
|
1229
1229
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1230
|
-
throw await
|
|
1230
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1231
1231
|
case "ResourceNotFoundException":
|
|
1232
1232
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1233
|
-
throw await
|
|
1233
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1234
1234
|
case "ServiceUnavailableException":
|
|
1235
1235
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1236
|
-
throw await
|
|
1236
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1237
1237
|
default:
|
|
1238
1238
|
const parsedBody = parsedOutput.body;
|
|
1239
1239
|
throwDefaultError({
|
|
@@ -1244,20 +1244,20 @@ const deserializeAws_restJson1DescribeVaultCommandError = async (output, context
|
|
|
1244
1244
|
});
|
|
1245
1245
|
}
|
|
1246
1246
|
};
|
|
1247
|
-
export const
|
|
1247
|
+
export const de_GetDataRetrievalPolicyCommand = async (output, context) => {
|
|
1248
1248
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1249
|
-
return
|
|
1249
|
+
return de_GetDataRetrievalPolicyCommandError(output, context);
|
|
1250
1250
|
}
|
|
1251
1251
|
const contents = map({
|
|
1252
1252
|
$metadata: deserializeMetadata(output),
|
|
1253
1253
|
});
|
|
1254
1254
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1255
1255
|
if (data.Policy != null) {
|
|
1256
|
-
contents.Policy =
|
|
1256
|
+
contents.Policy = de_DataRetrievalPolicy(data.Policy, context);
|
|
1257
1257
|
}
|
|
1258
1258
|
return contents;
|
|
1259
1259
|
};
|
|
1260
|
-
const
|
|
1260
|
+
const de_GetDataRetrievalPolicyCommandError = async (output, context) => {
|
|
1261
1261
|
const parsedOutput = {
|
|
1262
1262
|
...output,
|
|
1263
1263
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1266,13 +1266,13 @@ const deserializeAws_restJson1GetDataRetrievalPolicyCommandError = async (output
|
|
|
1266
1266
|
switch (errorCode) {
|
|
1267
1267
|
case "InvalidParameterValueException":
|
|
1268
1268
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1269
|
-
throw await
|
|
1269
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1270
1270
|
case "MissingParameterValueException":
|
|
1271
1271
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1272
|
-
throw await
|
|
1272
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1273
1273
|
case "ServiceUnavailableException":
|
|
1274
1274
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1275
|
-
throw await
|
|
1275
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1276
1276
|
default:
|
|
1277
1277
|
const parsedBody = parsedOutput.body;
|
|
1278
1278
|
throwDefaultError({
|
|
@@ -1283,9 +1283,9 @@ const deserializeAws_restJson1GetDataRetrievalPolicyCommandError = async (output
|
|
|
1283
1283
|
});
|
|
1284
1284
|
}
|
|
1285
1285
|
};
|
|
1286
|
-
export const
|
|
1286
|
+
export const de_GetJobOutputCommand = async (output, context) => {
|
|
1287
1287
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1288
|
-
return
|
|
1288
|
+
return de_GetJobOutputCommandError(output, context);
|
|
1289
1289
|
}
|
|
1290
1290
|
const contents = map({
|
|
1291
1291
|
$metadata: deserializeMetadata(output),
|
|
@@ -1303,7 +1303,7 @@ export const deserializeAws_restJson1GetJobOutputCommand = async (output, contex
|
|
|
1303
1303
|
});
|
|
1304
1304
|
return contents;
|
|
1305
1305
|
};
|
|
1306
|
-
const
|
|
1306
|
+
const de_GetJobOutputCommandError = async (output, context) => {
|
|
1307
1307
|
const parsedOutput = {
|
|
1308
1308
|
...output,
|
|
1309
1309
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1312,16 +1312,16 @@ const deserializeAws_restJson1GetJobOutputCommandError = async (output, context)
|
|
|
1312
1312
|
switch (errorCode) {
|
|
1313
1313
|
case "InvalidParameterValueException":
|
|
1314
1314
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1315
|
-
throw await
|
|
1315
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1316
1316
|
case "MissingParameterValueException":
|
|
1317
1317
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1318
|
-
throw await
|
|
1318
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1319
1319
|
case "ResourceNotFoundException":
|
|
1320
1320
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1321
|
-
throw await
|
|
1321
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1322
1322
|
case "ServiceUnavailableException":
|
|
1323
1323
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1324
|
-
throw await
|
|
1324
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1325
1325
|
default:
|
|
1326
1326
|
const parsedBody = parsedOutput.body;
|
|
1327
1327
|
throwDefaultError({
|
|
@@ -1332,18 +1332,18 @@ const deserializeAws_restJson1GetJobOutputCommandError = async (output, context)
|
|
|
1332
1332
|
});
|
|
1333
1333
|
}
|
|
1334
1334
|
};
|
|
1335
|
-
export const
|
|
1335
|
+
export const de_GetVaultAccessPolicyCommand = async (output, context) => {
|
|
1336
1336
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1337
|
-
return
|
|
1337
|
+
return de_GetVaultAccessPolicyCommandError(output, context);
|
|
1338
1338
|
}
|
|
1339
1339
|
const contents = map({
|
|
1340
1340
|
$metadata: deserializeMetadata(output),
|
|
1341
1341
|
});
|
|
1342
1342
|
const data = __expectObject(await parseBody(output.body, context));
|
|
1343
|
-
contents.policy =
|
|
1343
|
+
contents.policy = de_VaultAccessPolicy(data, context);
|
|
1344
1344
|
return contents;
|
|
1345
1345
|
};
|
|
1346
|
-
const
|
|
1346
|
+
const de_GetVaultAccessPolicyCommandError = async (output, context) => {
|
|
1347
1347
|
const parsedOutput = {
|
|
1348
1348
|
...output,
|
|
1349
1349
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1352,16 +1352,16 @@ const deserializeAws_restJson1GetVaultAccessPolicyCommandError = async (output,
|
|
|
1352
1352
|
switch (errorCode) {
|
|
1353
1353
|
case "InvalidParameterValueException":
|
|
1354
1354
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1355
|
-
throw await
|
|
1355
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1356
1356
|
case "MissingParameterValueException":
|
|
1357
1357
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1358
|
-
throw await
|
|
1358
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1359
1359
|
case "ResourceNotFoundException":
|
|
1360
1360
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1361
|
-
throw await
|
|
1361
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1362
1362
|
case "ServiceUnavailableException":
|
|
1363
1363
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1364
|
-
throw await
|
|
1364
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1365
1365
|
default:
|
|
1366
1366
|
const parsedBody = parsedOutput.body;
|
|
1367
1367
|
throwDefaultError({
|
|
@@ -1372,9 +1372,9 @@ const deserializeAws_restJson1GetVaultAccessPolicyCommandError = async (output,
|
|
|
1372
1372
|
});
|
|
1373
1373
|
}
|
|
1374
1374
|
};
|
|
1375
|
-
export const
|
|
1375
|
+
export const de_GetVaultLockCommand = async (output, context) => {
|
|
1376
1376
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1377
|
-
return
|
|
1377
|
+
return de_GetVaultLockCommandError(output, context);
|
|
1378
1378
|
}
|
|
1379
1379
|
const contents = map({
|
|
1380
1380
|
$metadata: deserializeMetadata(output),
|
|
@@ -1394,7 +1394,7 @@ export const deserializeAws_restJson1GetVaultLockCommand = async (output, contex
|
|
|
1394
1394
|
}
|
|
1395
1395
|
return contents;
|
|
1396
1396
|
};
|
|
1397
|
-
const
|
|
1397
|
+
const de_GetVaultLockCommandError = async (output, context) => {
|
|
1398
1398
|
const parsedOutput = {
|
|
1399
1399
|
...output,
|
|
1400
1400
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1403,16 +1403,16 @@ const deserializeAws_restJson1GetVaultLockCommandError = async (output, context)
|
|
|
1403
1403
|
switch (errorCode) {
|
|
1404
1404
|
case "InvalidParameterValueException":
|
|
1405
1405
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1406
|
-
throw await
|
|
1406
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1407
1407
|
case "MissingParameterValueException":
|
|
1408
1408
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1409
|
-
throw await
|
|
1409
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1410
1410
|
case "ResourceNotFoundException":
|
|
1411
1411
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1412
|
-
throw await
|
|
1412
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1413
1413
|
case "ServiceUnavailableException":
|
|
1414
1414
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1415
|
-
throw await
|
|
1415
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1416
1416
|
default:
|
|
1417
1417
|
const parsedBody = parsedOutput.body;
|
|
1418
1418
|
throwDefaultError({
|
|
@@ -1423,18 +1423,18 @@ const deserializeAws_restJson1GetVaultLockCommandError = async (output, context)
|
|
|
1423
1423
|
});
|
|
1424
1424
|
}
|
|
1425
1425
|
};
|
|
1426
|
-
export const
|
|
1426
|
+
export const de_GetVaultNotificationsCommand = async (output, context) => {
|
|
1427
1427
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1428
|
-
return
|
|
1428
|
+
return de_GetVaultNotificationsCommandError(output, context);
|
|
1429
1429
|
}
|
|
1430
1430
|
const contents = map({
|
|
1431
1431
|
$metadata: deserializeMetadata(output),
|
|
1432
1432
|
});
|
|
1433
1433
|
const data = __expectObject(await parseBody(output.body, context));
|
|
1434
|
-
contents.vaultNotificationConfig =
|
|
1434
|
+
contents.vaultNotificationConfig = de_VaultNotificationConfig(data, context);
|
|
1435
1435
|
return contents;
|
|
1436
1436
|
};
|
|
1437
|
-
const
|
|
1437
|
+
const de_GetVaultNotificationsCommandError = async (output, context) => {
|
|
1438
1438
|
const parsedOutput = {
|
|
1439
1439
|
...output,
|
|
1440
1440
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1443,16 +1443,16 @@ const deserializeAws_restJson1GetVaultNotificationsCommandError = async (output,
|
|
|
1443
1443
|
switch (errorCode) {
|
|
1444
1444
|
case "InvalidParameterValueException":
|
|
1445
1445
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1446
|
-
throw await
|
|
1446
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1447
1447
|
case "MissingParameterValueException":
|
|
1448
1448
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1449
|
-
throw await
|
|
1449
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1450
1450
|
case "ResourceNotFoundException":
|
|
1451
1451
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1452
|
-
throw await
|
|
1452
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1453
1453
|
case "ServiceUnavailableException":
|
|
1454
1454
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1455
|
-
throw await
|
|
1455
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1456
1456
|
default:
|
|
1457
1457
|
const parsedBody = parsedOutput.body;
|
|
1458
1458
|
throwDefaultError({
|
|
@@ -1463,9 +1463,9 @@ const deserializeAws_restJson1GetVaultNotificationsCommandError = async (output,
|
|
|
1463
1463
|
});
|
|
1464
1464
|
}
|
|
1465
1465
|
};
|
|
1466
|
-
export const
|
|
1466
|
+
export const de_InitiateJobCommand = async (output, context) => {
|
|
1467
1467
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1468
|
-
return
|
|
1468
|
+
return de_InitiateJobCommandError(output, context);
|
|
1469
1469
|
}
|
|
1470
1470
|
const contents = map({
|
|
1471
1471
|
$metadata: deserializeMetadata(output),
|
|
@@ -1476,7 +1476,7 @@ export const deserializeAws_restJson1InitiateJobCommand = async (output, context
|
|
|
1476
1476
|
await collectBody(output.body, context);
|
|
1477
1477
|
return contents;
|
|
1478
1478
|
};
|
|
1479
|
-
const
|
|
1479
|
+
const de_InitiateJobCommandError = async (output, context) => {
|
|
1480
1480
|
const parsedOutput = {
|
|
1481
1481
|
...output,
|
|
1482
1482
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1485,22 +1485,22 @@ const deserializeAws_restJson1InitiateJobCommandError = async (output, context)
|
|
|
1485
1485
|
switch (errorCode) {
|
|
1486
1486
|
case "InsufficientCapacityException":
|
|
1487
1487
|
case "com.amazonaws.glacier#InsufficientCapacityException":
|
|
1488
|
-
throw await
|
|
1488
|
+
throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
|
|
1489
1489
|
case "InvalidParameterValueException":
|
|
1490
1490
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1491
|
-
throw await
|
|
1491
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1492
1492
|
case "MissingParameterValueException":
|
|
1493
1493
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1494
|
-
throw await
|
|
1494
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1495
1495
|
case "PolicyEnforcedException":
|
|
1496
1496
|
case "com.amazonaws.glacier#PolicyEnforcedException":
|
|
1497
|
-
throw await
|
|
1497
|
+
throw await de_PolicyEnforcedExceptionRes(parsedOutput, context);
|
|
1498
1498
|
case "ResourceNotFoundException":
|
|
1499
1499
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1500
|
-
throw await
|
|
1500
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1501
1501
|
case "ServiceUnavailableException":
|
|
1502
1502
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1503
|
-
throw await
|
|
1503
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1504
1504
|
default:
|
|
1505
1505
|
const parsedBody = parsedOutput.body;
|
|
1506
1506
|
throwDefaultError({
|
|
@@ -1511,9 +1511,9 @@ const deserializeAws_restJson1InitiateJobCommandError = async (output, context)
|
|
|
1511
1511
|
});
|
|
1512
1512
|
}
|
|
1513
1513
|
};
|
|
1514
|
-
export const
|
|
1514
|
+
export const de_InitiateMultipartUploadCommand = async (output, context) => {
|
|
1515
1515
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1516
|
-
return
|
|
1516
|
+
return de_InitiateMultipartUploadCommandError(output, context);
|
|
1517
1517
|
}
|
|
1518
1518
|
const contents = map({
|
|
1519
1519
|
$metadata: deserializeMetadata(output),
|
|
@@ -1523,7 +1523,7 @@ export const deserializeAws_restJson1InitiateMultipartUploadCommand = async (out
|
|
|
1523
1523
|
await collectBody(output.body, context);
|
|
1524
1524
|
return contents;
|
|
1525
1525
|
};
|
|
1526
|
-
const
|
|
1526
|
+
const de_InitiateMultipartUploadCommandError = async (output, context) => {
|
|
1527
1527
|
const parsedOutput = {
|
|
1528
1528
|
...output,
|
|
1529
1529
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1532,16 +1532,16 @@ const deserializeAws_restJson1InitiateMultipartUploadCommandError = async (outpu
|
|
|
1532
1532
|
switch (errorCode) {
|
|
1533
1533
|
case "InvalidParameterValueException":
|
|
1534
1534
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1535
|
-
throw await
|
|
1535
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1536
1536
|
case "MissingParameterValueException":
|
|
1537
1537
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1538
|
-
throw await
|
|
1538
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1539
1539
|
case "ResourceNotFoundException":
|
|
1540
1540
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1541
|
-
throw await
|
|
1541
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1542
1542
|
case "ServiceUnavailableException":
|
|
1543
1543
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1544
|
-
throw await
|
|
1544
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1545
1545
|
default:
|
|
1546
1546
|
const parsedBody = parsedOutput.body;
|
|
1547
1547
|
throwDefaultError({
|
|
@@ -1552,9 +1552,9 @@ const deserializeAws_restJson1InitiateMultipartUploadCommandError = async (outpu
|
|
|
1552
1552
|
});
|
|
1553
1553
|
}
|
|
1554
1554
|
};
|
|
1555
|
-
export const
|
|
1555
|
+
export const de_InitiateVaultLockCommand = async (output, context) => {
|
|
1556
1556
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1557
|
-
return
|
|
1557
|
+
return de_InitiateVaultLockCommandError(output, context);
|
|
1558
1558
|
}
|
|
1559
1559
|
const contents = map({
|
|
1560
1560
|
$metadata: deserializeMetadata(output),
|
|
@@ -1563,7 +1563,7 @@ export const deserializeAws_restJson1InitiateVaultLockCommand = async (output, c
|
|
|
1563
1563
|
await collectBody(output.body, context);
|
|
1564
1564
|
return contents;
|
|
1565
1565
|
};
|
|
1566
|
-
const
|
|
1566
|
+
const de_InitiateVaultLockCommandError = async (output, context) => {
|
|
1567
1567
|
const parsedOutput = {
|
|
1568
1568
|
...output,
|
|
1569
1569
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1572,16 +1572,16 @@ const deserializeAws_restJson1InitiateVaultLockCommandError = async (output, con
|
|
|
1572
1572
|
switch (errorCode) {
|
|
1573
1573
|
case "InvalidParameterValueException":
|
|
1574
1574
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1575
|
-
throw await
|
|
1575
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1576
1576
|
case "MissingParameterValueException":
|
|
1577
1577
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1578
|
-
throw await
|
|
1578
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1579
1579
|
case "ResourceNotFoundException":
|
|
1580
1580
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1581
|
-
throw await
|
|
1581
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1582
1582
|
case "ServiceUnavailableException":
|
|
1583
1583
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1584
|
-
throw await
|
|
1584
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1585
1585
|
default:
|
|
1586
1586
|
const parsedBody = parsedOutput.body;
|
|
1587
1587
|
throwDefaultError({
|
|
@@ -1592,23 +1592,23 @@ const deserializeAws_restJson1InitiateVaultLockCommandError = async (output, con
|
|
|
1592
1592
|
});
|
|
1593
1593
|
}
|
|
1594
1594
|
};
|
|
1595
|
-
export const
|
|
1595
|
+
export const de_ListJobsCommand = async (output, context) => {
|
|
1596
1596
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1597
|
-
return
|
|
1597
|
+
return de_ListJobsCommandError(output, context);
|
|
1598
1598
|
}
|
|
1599
1599
|
const contents = map({
|
|
1600
1600
|
$metadata: deserializeMetadata(output),
|
|
1601
1601
|
});
|
|
1602
1602
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1603
1603
|
if (data.JobList != null) {
|
|
1604
|
-
contents.JobList =
|
|
1604
|
+
contents.JobList = de_JobList(data.JobList, context);
|
|
1605
1605
|
}
|
|
1606
1606
|
if (data.Marker != null) {
|
|
1607
1607
|
contents.Marker = __expectString(data.Marker);
|
|
1608
1608
|
}
|
|
1609
1609
|
return contents;
|
|
1610
1610
|
};
|
|
1611
|
-
const
|
|
1611
|
+
const de_ListJobsCommandError = async (output, context) => {
|
|
1612
1612
|
const parsedOutput = {
|
|
1613
1613
|
...output,
|
|
1614
1614
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1617,16 +1617,16 @@ const deserializeAws_restJson1ListJobsCommandError = async (output, context) =>
|
|
|
1617
1617
|
switch (errorCode) {
|
|
1618
1618
|
case "InvalidParameterValueException":
|
|
1619
1619
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1620
|
-
throw await
|
|
1620
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1621
1621
|
case "MissingParameterValueException":
|
|
1622
1622
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1623
|
-
throw await
|
|
1623
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1624
1624
|
case "ResourceNotFoundException":
|
|
1625
1625
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1626
|
-
throw await
|
|
1626
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1627
1627
|
case "ServiceUnavailableException":
|
|
1628
1628
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1629
|
-
throw await
|
|
1629
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1630
1630
|
default:
|
|
1631
1631
|
const parsedBody = parsedOutput.body;
|
|
1632
1632
|
throwDefaultError({
|
|
@@ -1637,9 +1637,9 @@ const deserializeAws_restJson1ListJobsCommandError = async (output, context) =>
|
|
|
1637
1637
|
});
|
|
1638
1638
|
}
|
|
1639
1639
|
};
|
|
1640
|
-
export const
|
|
1640
|
+
export const de_ListMultipartUploadsCommand = async (output, context) => {
|
|
1641
1641
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1642
|
-
return
|
|
1642
|
+
return de_ListMultipartUploadsCommandError(output, context);
|
|
1643
1643
|
}
|
|
1644
1644
|
const contents = map({
|
|
1645
1645
|
$metadata: deserializeMetadata(output),
|
|
@@ -1649,11 +1649,11 @@ export const deserializeAws_restJson1ListMultipartUploadsCommand = async (output
|
|
|
1649
1649
|
contents.Marker = __expectString(data.Marker);
|
|
1650
1650
|
}
|
|
1651
1651
|
if (data.UploadsList != null) {
|
|
1652
|
-
contents.UploadsList =
|
|
1652
|
+
contents.UploadsList = de_UploadsList(data.UploadsList, context);
|
|
1653
1653
|
}
|
|
1654
1654
|
return contents;
|
|
1655
1655
|
};
|
|
1656
|
-
const
|
|
1656
|
+
const de_ListMultipartUploadsCommandError = async (output, context) => {
|
|
1657
1657
|
const parsedOutput = {
|
|
1658
1658
|
...output,
|
|
1659
1659
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1662,16 +1662,16 @@ const deserializeAws_restJson1ListMultipartUploadsCommandError = async (output,
|
|
|
1662
1662
|
switch (errorCode) {
|
|
1663
1663
|
case "InvalidParameterValueException":
|
|
1664
1664
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1665
|
-
throw await
|
|
1665
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1666
1666
|
case "MissingParameterValueException":
|
|
1667
1667
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1668
|
-
throw await
|
|
1668
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1669
1669
|
case "ResourceNotFoundException":
|
|
1670
1670
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1671
|
-
throw await
|
|
1671
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1672
1672
|
case "ServiceUnavailableException":
|
|
1673
1673
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1674
|
-
throw await
|
|
1674
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1675
1675
|
default:
|
|
1676
1676
|
const parsedBody = parsedOutput.body;
|
|
1677
1677
|
throwDefaultError({
|
|
@@ -1682,9 +1682,9 @@ const deserializeAws_restJson1ListMultipartUploadsCommandError = async (output,
|
|
|
1682
1682
|
});
|
|
1683
1683
|
}
|
|
1684
1684
|
};
|
|
1685
|
-
export const
|
|
1685
|
+
export const de_ListPartsCommand = async (output, context) => {
|
|
1686
1686
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1687
|
-
return
|
|
1687
|
+
return de_ListPartsCommandError(output, context);
|
|
1688
1688
|
}
|
|
1689
1689
|
const contents = map({
|
|
1690
1690
|
$metadata: deserializeMetadata(output),
|
|
@@ -1706,14 +1706,14 @@ export const deserializeAws_restJson1ListPartsCommand = async (output, context)
|
|
|
1706
1706
|
contents.PartSizeInBytes = __expectLong(data.PartSizeInBytes);
|
|
1707
1707
|
}
|
|
1708
1708
|
if (data.Parts != null) {
|
|
1709
|
-
contents.Parts =
|
|
1709
|
+
contents.Parts = de_PartList(data.Parts, context);
|
|
1710
1710
|
}
|
|
1711
1711
|
if (data.VaultARN != null) {
|
|
1712
1712
|
contents.VaultARN = __expectString(data.VaultARN);
|
|
1713
1713
|
}
|
|
1714
1714
|
return contents;
|
|
1715
1715
|
};
|
|
1716
|
-
const
|
|
1716
|
+
const de_ListPartsCommandError = async (output, context) => {
|
|
1717
1717
|
const parsedOutput = {
|
|
1718
1718
|
...output,
|
|
1719
1719
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1722,16 +1722,16 @@ const deserializeAws_restJson1ListPartsCommandError = async (output, context) =>
|
|
|
1722
1722
|
switch (errorCode) {
|
|
1723
1723
|
case "InvalidParameterValueException":
|
|
1724
1724
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1725
|
-
throw await
|
|
1725
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1726
1726
|
case "MissingParameterValueException":
|
|
1727
1727
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1728
|
-
throw await
|
|
1728
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1729
1729
|
case "ResourceNotFoundException":
|
|
1730
1730
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1731
|
-
throw await
|
|
1731
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1732
1732
|
case "ServiceUnavailableException":
|
|
1733
1733
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1734
|
-
throw await
|
|
1734
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1735
1735
|
default:
|
|
1736
1736
|
const parsedBody = parsedOutput.body;
|
|
1737
1737
|
throwDefaultError({
|
|
@@ -1742,20 +1742,20 @@ const deserializeAws_restJson1ListPartsCommandError = async (output, context) =>
|
|
|
1742
1742
|
});
|
|
1743
1743
|
}
|
|
1744
1744
|
};
|
|
1745
|
-
export const
|
|
1745
|
+
export const de_ListProvisionedCapacityCommand = async (output, context) => {
|
|
1746
1746
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1747
|
-
return
|
|
1747
|
+
return de_ListProvisionedCapacityCommandError(output, context);
|
|
1748
1748
|
}
|
|
1749
1749
|
const contents = map({
|
|
1750
1750
|
$metadata: deserializeMetadata(output),
|
|
1751
1751
|
});
|
|
1752
1752
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1753
1753
|
if (data.ProvisionedCapacityList != null) {
|
|
1754
|
-
contents.ProvisionedCapacityList =
|
|
1754
|
+
contents.ProvisionedCapacityList = de_ProvisionedCapacityList(data.ProvisionedCapacityList, context);
|
|
1755
1755
|
}
|
|
1756
1756
|
return contents;
|
|
1757
1757
|
};
|
|
1758
|
-
const
|
|
1758
|
+
const de_ListProvisionedCapacityCommandError = async (output, context) => {
|
|
1759
1759
|
const parsedOutput = {
|
|
1760
1760
|
...output,
|
|
1761
1761
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1764,13 +1764,13 @@ const deserializeAws_restJson1ListProvisionedCapacityCommandError = async (outpu
|
|
|
1764
1764
|
switch (errorCode) {
|
|
1765
1765
|
case "InvalidParameterValueException":
|
|
1766
1766
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1767
|
-
throw await
|
|
1767
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1768
1768
|
case "MissingParameterValueException":
|
|
1769
1769
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1770
|
-
throw await
|
|
1770
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1771
1771
|
case "ServiceUnavailableException":
|
|
1772
1772
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1773
|
-
throw await
|
|
1773
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1774
1774
|
default:
|
|
1775
1775
|
const parsedBody = parsedOutput.body;
|
|
1776
1776
|
throwDefaultError({
|
|
@@ -1781,20 +1781,20 @@ const deserializeAws_restJson1ListProvisionedCapacityCommandError = async (outpu
|
|
|
1781
1781
|
});
|
|
1782
1782
|
}
|
|
1783
1783
|
};
|
|
1784
|
-
export const
|
|
1784
|
+
export const de_ListTagsForVaultCommand = async (output, context) => {
|
|
1785
1785
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1786
|
-
return
|
|
1786
|
+
return de_ListTagsForVaultCommandError(output, context);
|
|
1787
1787
|
}
|
|
1788
1788
|
const contents = map({
|
|
1789
1789
|
$metadata: deserializeMetadata(output),
|
|
1790
1790
|
});
|
|
1791
1791
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1792
1792
|
if (data.Tags != null) {
|
|
1793
|
-
contents.Tags =
|
|
1793
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
1794
1794
|
}
|
|
1795
1795
|
return contents;
|
|
1796
1796
|
};
|
|
1797
|
-
const
|
|
1797
|
+
const de_ListTagsForVaultCommandError = async (output, context) => {
|
|
1798
1798
|
const parsedOutput = {
|
|
1799
1799
|
...output,
|
|
1800
1800
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1803,16 +1803,16 @@ const deserializeAws_restJson1ListTagsForVaultCommandError = async (output, cont
|
|
|
1803
1803
|
switch (errorCode) {
|
|
1804
1804
|
case "InvalidParameterValueException":
|
|
1805
1805
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1806
|
-
throw await
|
|
1806
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1807
1807
|
case "MissingParameterValueException":
|
|
1808
1808
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1809
|
-
throw await
|
|
1809
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1810
1810
|
case "ResourceNotFoundException":
|
|
1811
1811
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1812
|
-
throw await
|
|
1812
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1813
1813
|
case "ServiceUnavailableException":
|
|
1814
1814
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1815
|
-
throw await
|
|
1815
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1816
1816
|
default:
|
|
1817
1817
|
const parsedBody = parsedOutput.body;
|
|
1818
1818
|
throwDefaultError({
|
|
@@ -1823,9 +1823,9 @@ const deserializeAws_restJson1ListTagsForVaultCommandError = async (output, cont
|
|
|
1823
1823
|
});
|
|
1824
1824
|
}
|
|
1825
1825
|
};
|
|
1826
|
-
export const
|
|
1826
|
+
export const de_ListVaultsCommand = async (output, context) => {
|
|
1827
1827
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1828
|
-
return
|
|
1828
|
+
return de_ListVaultsCommandError(output, context);
|
|
1829
1829
|
}
|
|
1830
1830
|
const contents = map({
|
|
1831
1831
|
$metadata: deserializeMetadata(output),
|
|
@@ -1835,11 +1835,11 @@ export const deserializeAws_restJson1ListVaultsCommand = async (output, context)
|
|
|
1835
1835
|
contents.Marker = __expectString(data.Marker);
|
|
1836
1836
|
}
|
|
1837
1837
|
if (data.VaultList != null) {
|
|
1838
|
-
contents.VaultList =
|
|
1838
|
+
contents.VaultList = de_VaultList(data.VaultList, context);
|
|
1839
1839
|
}
|
|
1840
1840
|
return contents;
|
|
1841
1841
|
};
|
|
1842
|
-
const
|
|
1842
|
+
const de_ListVaultsCommandError = async (output, context) => {
|
|
1843
1843
|
const parsedOutput = {
|
|
1844
1844
|
...output,
|
|
1845
1845
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1848,16 +1848,16 @@ const deserializeAws_restJson1ListVaultsCommandError = async (output, context) =
|
|
|
1848
1848
|
switch (errorCode) {
|
|
1849
1849
|
case "InvalidParameterValueException":
|
|
1850
1850
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1851
|
-
throw await
|
|
1851
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1852
1852
|
case "MissingParameterValueException":
|
|
1853
1853
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1854
|
-
throw await
|
|
1854
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1855
1855
|
case "ResourceNotFoundException":
|
|
1856
1856
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1857
|
-
throw await
|
|
1857
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1858
1858
|
case "ServiceUnavailableException":
|
|
1859
1859
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1860
|
-
throw await
|
|
1860
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1861
1861
|
default:
|
|
1862
1862
|
const parsedBody = parsedOutput.body;
|
|
1863
1863
|
throwDefaultError({
|
|
@@ -1868,9 +1868,9 @@ const deserializeAws_restJson1ListVaultsCommandError = async (output, context) =
|
|
|
1868
1868
|
});
|
|
1869
1869
|
}
|
|
1870
1870
|
};
|
|
1871
|
-
export const
|
|
1871
|
+
export const de_PurchaseProvisionedCapacityCommand = async (output, context) => {
|
|
1872
1872
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1873
|
-
return
|
|
1873
|
+
return de_PurchaseProvisionedCapacityCommandError(output, context);
|
|
1874
1874
|
}
|
|
1875
1875
|
const contents = map({
|
|
1876
1876
|
$metadata: deserializeMetadata(output),
|
|
@@ -1879,7 +1879,7 @@ export const deserializeAws_restJson1PurchaseProvisionedCapacityCommand = async
|
|
|
1879
1879
|
await collectBody(output.body, context);
|
|
1880
1880
|
return contents;
|
|
1881
1881
|
};
|
|
1882
|
-
const
|
|
1882
|
+
const de_PurchaseProvisionedCapacityCommandError = async (output, context) => {
|
|
1883
1883
|
const parsedOutput = {
|
|
1884
1884
|
...output,
|
|
1885
1885
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1888,16 +1888,16 @@ const deserializeAws_restJson1PurchaseProvisionedCapacityCommandError = async (o
|
|
|
1888
1888
|
switch (errorCode) {
|
|
1889
1889
|
case "InvalidParameterValueException":
|
|
1890
1890
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1891
|
-
throw await
|
|
1891
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1892
1892
|
case "LimitExceededException":
|
|
1893
1893
|
case "com.amazonaws.glacier#LimitExceededException":
|
|
1894
|
-
throw await
|
|
1894
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1895
1895
|
case "MissingParameterValueException":
|
|
1896
1896
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1897
|
-
throw await
|
|
1897
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1898
1898
|
case "ServiceUnavailableException":
|
|
1899
1899
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1900
|
-
throw await
|
|
1900
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1901
1901
|
default:
|
|
1902
1902
|
const parsedBody = parsedOutput.body;
|
|
1903
1903
|
throwDefaultError({
|
|
@@ -1908,9 +1908,9 @@ const deserializeAws_restJson1PurchaseProvisionedCapacityCommandError = async (o
|
|
|
1908
1908
|
});
|
|
1909
1909
|
}
|
|
1910
1910
|
};
|
|
1911
|
-
export const
|
|
1911
|
+
export const de_RemoveTagsFromVaultCommand = async (output, context) => {
|
|
1912
1912
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1913
|
-
return
|
|
1913
|
+
return de_RemoveTagsFromVaultCommandError(output, context);
|
|
1914
1914
|
}
|
|
1915
1915
|
const contents = map({
|
|
1916
1916
|
$metadata: deserializeMetadata(output),
|
|
@@ -1918,7 +1918,7 @@ export const deserializeAws_restJson1RemoveTagsFromVaultCommand = async (output,
|
|
|
1918
1918
|
await collectBody(output.body, context);
|
|
1919
1919
|
return contents;
|
|
1920
1920
|
};
|
|
1921
|
-
const
|
|
1921
|
+
const de_RemoveTagsFromVaultCommandError = async (output, context) => {
|
|
1922
1922
|
const parsedOutput = {
|
|
1923
1923
|
...output,
|
|
1924
1924
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1927,16 +1927,16 @@ const deserializeAws_restJson1RemoveTagsFromVaultCommandError = async (output, c
|
|
|
1927
1927
|
switch (errorCode) {
|
|
1928
1928
|
case "InvalidParameterValueException":
|
|
1929
1929
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1930
|
-
throw await
|
|
1930
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1931
1931
|
case "MissingParameterValueException":
|
|
1932
1932
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1933
|
-
throw await
|
|
1933
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1934
1934
|
case "ResourceNotFoundException":
|
|
1935
1935
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1936
|
-
throw await
|
|
1936
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1937
1937
|
case "ServiceUnavailableException":
|
|
1938
1938
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1939
|
-
throw await
|
|
1939
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1940
1940
|
default:
|
|
1941
1941
|
const parsedBody = parsedOutput.body;
|
|
1942
1942
|
throwDefaultError({
|
|
@@ -1947,9 +1947,9 @@ const deserializeAws_restJson1RemoveTagsFromVaultCommandError = async (output, c
|
|
|
1947
1947
|
});
|
|
1948
1948
|
}
|
|
1949
1949
|
};
|
|
1950
|
-
export const
|
|
1950
|
+
export const de_SetDataRetrievalPolicyCommand = async (output, context) => {
|
|
1951
1951
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1952
|
-
return
|
|
1952
|
+
return de_SetDataRetrievalPolicyCommandError(output, context);
|
|
1953
1953
|
}
|
|
1954
1954
|
const contents = map({
|
|
1955
1955
|
$metadata: deserializeMetadata(output),
|
|
@@ -1957,7 +1957,7 @@ export const deserializeAws_restJson1SetDataRetrievalPolicyCommand = async (outp
|
|
|
1957
1957
|
await collectBody(output.body, context);
|
|
1958
1958
|
return contents;
|
|
1959
1959
|
};
|
|
1960
|
-
const
|
|
1960
|
+
const de_SetDataRetrievalPolicyCommandError = async (output, context) => {
|
|
1961
1961
|
const parsedOutput = {
|
|
1962
1962
|
...output,
|
|
1963
1963
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1966,13 +1966,13 @@ const deserializeAws_restJson1SetDataRetrievalPolicyCommandError = async (output
|
|
|
1966
1966
|
switch (errorCode) {
|
|
1967
1967
|
case "InvalidParameterValueException":
|
|
1968
1968
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1969
|
-
throw await
|
|
1969
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1970
1970
|
case "MissingParameterValueException":
|
|
1971
1971
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1972
|
-
throw await
|
|
1972
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1973
1973
|
case "ServiceUnavailableException":
|
|
1974
1974
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1975
|
-
throw await
|
|
1975
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1976
1976
|
default:
|
|
1977
1977
|
const parsedBody = parsedOutput.body;
|
|
1978
1978
|
throwDefaultError({
|
|
@@ -1983,9 +1983,9 @@ const deserializeAws_restJson1SetDataRetrievalPolicyCommandError = async (output
|
|
|
1983
1983
|
});
|
|
1984
1984
|
}
|
|
1985
1985
|
};
|
|
1986
|
-
export const
|
|
1986
|
+
export const de_SetVaultAccessPolicyCommand = async (output, context) => {
|
|
1987
1987
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1988
|
-
return
|
|
1988
|
+
return de_SetVaultAccessPolicyCommandError(output, context);
|
|
1989
1989
|
}
|
|
1990
1990
|
const contents = map({
|
|
1991
1991
|
$metadata: deserializeMetadata(output),
|
|
@@ -1993,7 +1993,7 @@ export const deserializeAws_restJson1SetVaultAccessPolicyCommand = async (output
|
|
|
1993
1993
|
await collectBody(output.body, context);
|
|
1994
1994
|
return contents;
|
|
1995
1995
|
};
|
|
1996
|
-
const
|
|
1996
|
+
const de_SetVaultAccessPolicyCommandError = async (output, context) => {
|
|
1997
1997
|
const parsedOutput = {
|
|
1998
1998
|
...output,
|
|
1999
1999
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2002,16 +2002,16 @@ const deserializeAws_restJson1SetVaultAccessPolicyCommandError = async (output,
|
|
|
2002
2002
|
switch (errorCode) {
|
|
2003
2003
|
case "InvalidParameterValueException":
|
|
2004
2004
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
2005
|
-
throw await
|
|
2005
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2006
2006
|
case "MissingParameterValueException":
|
|
2007
2007
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
2008
|
-
throw await
|
|
2008
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2009
2009
|
case "ResourceNotFoundException":
|
|
2010
2010
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
2011
|
-
throw await
|
|
2011
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2012
2012
|
case "ServiceUnavailableException":
|
|
2013
2013
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
2014
|
-
throw await
|
|
2014
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2015
2015
|
default:
|
|
2016
2016
|
const parsedBody = parsedOutput.body;
|
|
2017
2017
|
throwDefaultError({
|
|
@@ -2022,9 +2022,9 @@ const deserializeAws_restJson1SetVaultAccessPolicyCommandError = async (output,
|
|
|
2022
2022
|
});
|
|
2023
2023
|
}
|
|
2024
2024
|
};
|
|
2025
|
-
export const
|
|
2025
|
+
export const de_SetVaultNotificationsCommand = async (output, context) => {
|
|
2026
2026
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2027
|
-
return
|
|
2027
|
+
return de_SetVaultNotificationsCommandError(output, context);
|
|
2028
2028
|
}
|
|
2029
2029
|
const contents = map({
|
|
2030
2030
|
$metadata: deserializeMetadata(output),
|
|
@@ -2032,7 +2032,7 @@ export const deserializeAws_restJson1SetVaultNotificationsCommand = async (outpu
|
|
|
2032
2032
|
await collectBody(output.body, context);
|
|
2033
2033
|
return contents;
|
|
2034
2034
|
};
|
|
2035
|
-
const
|
|
2035
|
+
const de_SetVaultNotificationsCommandError = async (output, context) => {
|
|
2036
2036
|
const parsedOutput = {
|
|
2037
2037
|
...output,
|
|
2038
2038
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2041,16 +2041,16 @@ const deserializeAws_restJson1SetVaultNotificationsCommandError = async (output,
|
|
|
2041
2041
|
switch (errorCode) {
|
|
2042
2042
|
case "InvalidParameterValueException":
|
|
2043
2043
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
2044
|
-
throw await
|
|
2044
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2045
2045
|
case "MissingParameterValueException":
|
|
2046
2046
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
2047
|
-
throw await
|
|
2047
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2048
2048
|
case "ResourceNotFoundException":
|
|
2049
2049
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
2050
|
-
throw await
|
|
2050
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2051
2051
|
case "ServiceUnavailableException":
|
|
2052
2052
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
2053
|
-
throw await
|
|
2053
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2054
2054
|
default:
|
|
2055
2055
|
const parsedBody = parsedOutput.body;
|
|
2056
2056
|
throwDefaultError({
|
|
@@ -2061,9 +2061,9 @@ const deserializeAws_restJson1SetVaultNotificationsCommandError = async (output,
|
|
|
2061
2061
|
});
|
|
2062
2062
|
}
|
|
2063
2063
|
};
|
|
2064
|
-
export const
|
|
2064
|
+
export const de_UploadArchiveCommand = async (output, context) => {
|
|
2065
2065
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2066
|
-
return
|
|
2066
|
+
return de_UploadArchiveCommandError(output, context);
|
|
2067
2067
|
}
|
|
2068
2068
|
const contents = map({
|
|
2069
2069
|
$metadata: deserializeMetadata(output),
|
|
@@ -2074,7 +2074,7 @@ export const deserializeAws_restJson1UploadArchiveCommand = async (output, conte
|
|
|
2074
2074
|
await collectBody(output.body, context);
|
|
2075
2075
|
return contents;
|
|
2076
2076
|
};
|
|
2077
|
-
const
|
|
2077
|
+
const de_UploadArchiveCommandError = async (output, context) => {
|
|
2078
2078
|
const parsedOutput = {
|
|
2079
2079
|
...output,
|
|
2080
2080
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2083,19 +2083,19 @@ const deserializeAws_restJson1UploadArchiveCommandError = async (output, context
|
|
|
2083
2083
|
switch (errorCode) {
|
|
2084
2084
|
case "InvalidParameterValueException":
|
|
2085
2085
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
2086
|
-
throw await
|
|
2086
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2087
2087
|
case "MissingParameterValueException":
|
|
2088
2088
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
2089
|
-
throw await
|
|
2089
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2090
2090
|
case "RequestTimeoutException":
|
|
2091
2091
|
case "com.amazonaws.glacier#RequestTimeoutException":
|
|
2092
|
-
throw await
|
|
2092
|
+
throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
|
|
2093
2093
|
case "ResourceNotFoundException":
|
|
2094
2094
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
2095
|
-
throw await
|
|
2095
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2096
2096
|
case "ServiceUnavailableException":
|
|
2097
2097
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
2098
|
-
throw await
|
|
2098
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2099
2099
|
default:
|
|
2100
2100
|
const parsedBody = parsedOutput.body;
|
|
2101
2101
|
throwDefaultError({
|
|
@@ -2106,9 +2106,9 @@ const deserializeAws_restJson1UploadArchiveCommandError = async (output, context
|
|
|
2106
2106
|
});
|
|
2107
2107
|
}
|
|
2108
2108
|
};
|
|
2109
|
-
export const
|
|
2109
|
+
export const de_UploadMultipartPartCommand = async (output, context) => {
|
|
2110
2110
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2111
|
-
return
|
|
2111
|
+
return de_UploadMultipartPartCommandError(output, context);
|
|
2112
2112
|
}
|
|
2113
2113
|
const contents = map({
|
|
2114
2114
|
$metadata: deserializeMetadata(output),
|
|
@@ -2117,7 +2117,7 @@ export const deserializeAws_restJson1UploadMultipartPartCommand = async (output,
|
|
|
2117
2117
|
await collectBody(output.body, context);
|
|
2118
2118
|
return contents;
|
|
2119
2119
|
};
|
|
2120
|
-
const
|
|
2120
|
+
const de_UploadMultipartPartCommandError = async (output, context) => {
|
|
2121
2121
|
const parsedOutput = {
|
|
2122
2122
|
...output,
|
|
2123
2123
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2126,19 +2126,19 @@ const deserializeAws_restJson1UploadMultipartPartCommandError = async (output, c
|
|
|
2126
2126
|
switch (errorCode) {
|
|
2127
2127
|
case "InvalidParameterValueException":
|
|
2128
2128
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
2129
|
-
throw await
|
|
2129
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2130
2130
|
case "MissingParameterValueException":
|
|
2131
2131
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
2132
|
-
throw await
|
|
2132
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2133
2133
|
case "RequestTimeoutException":
|
|
2134
2134
|
case "com.amazonaws.glacier#RequestTimeoutException":
|
|
2135
|
-
throw await
|
|
2135
|
+
throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
|
|
2136
2136
|
case "ResourceNotFoundException":
|
|
2137
2137
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
2138
|
-
throw await
|
|
2138
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2139
2139
|
case "ServiceUnavailableException":
|
|
2140
2140
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
2141
|
-
throw await
|
|
2141
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2142
2142
|
default:
|
|
2143
2143
|
const parsedBody = parsedOutput.body;
|
|
2144
2144
|
throwDefaultError({
|
|
@@ -2150,7 +2150,7 @@ const deserializeAws_restJson1UploadMultipartPartCommandError = async (output, c
|
|
|
2150
2150
|
}
|
|
2151
2151
|
};
|
|
2152
2152
|
const map = __map;
|
|
2153
|
-
const
|
|
2153
|
+
const de_InsufficientCapacityExceptionRes = async (parsedOutput, context) => {
|
|
2154
2154
|
const contents = map({});
|
|
2155
2155
|
const data = parsedOutput.body;
|
|
2156
2156
|
if (data.code != null) {
|
|
@@ -2168,7 +2168,7 @@ const deserializeAws_restJson1InsufficientCapacityExceptionResponse = async (par
|
|
|
2168
2168
|
});
|
|
2169
2169
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2170
2170
|
};
|
|
2171
|
-
const
|
|
2171
|
+
const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
|
|
2172
2172
|
const contents = map({});
|
|
2173
2173
|
const data = parsedOutput.body;
|
|
2174
2174
|
if (data.code != null) {
|
|
@@ -2186,7 +2186,7 @@ const deserializeAws_restJson1InvalidParameterValueExceptionResponse = async (pa
|
|
|
2186
2186
|
});
|
|
2187
2187
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2188
2188
|
};
|
|
2189
|
-
const
|
|
2189
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2190
2190
|
const contents = map({});
|
|
2191
2191
|
const data = parsedOutput.body;
|
|
2192
2192
|
if (data.code != null) {
|
|
@@ -2204,7 +2204,7 @@ const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutp
|
|
|
2204
2204
|
});
|
|
2205
2205
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2206
2206
|
};
|
|
2207
|
-
const
|
|
2207
|
+
const de_MissingParameterValueExceptionRes = async (parsedOutput, context) => {
|
|
2208
2208
|
const contents = map({});
|
|
2209
2209
|
const data = parsedOutput.body;
|
|
2210
2210
|
if (data.code != null) {
|
|
@@ -2222,7 +2222,7 @@ const deserializeAws_restJson1MissingParameterValueExceptionResponse = async (pa
|
|
|
2222
2222
|
});
|
|
2223
2223
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2224
2224
|
};
|
|
2225
|
-
const
|
|
2225
|
+
const de_PolicyEnforcedExceptionRes = async (parsedOutput, context) => {
|
|
2226
2226
|
const contents = map({});
|
|
2227
2227
|
const data = parsedOutput.body;
|
|
2228
2228
|
if (data.code != null) {
|
|
@@ -2240,7 +2240,7 @@ const deserializeAws_restJson1PolicyEnforcedExceptionResponse = async (parsedOut
|
|
|
2240
2240
|
});
|
|
2241
2241
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2242
2242
|
};
|
|
2243
|
-
const
|
|
2243
|
+
const de_RequestTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
2244
2244
|
const contents = map({});
|
|
2245
2245
|
const data = parsedOutput.body;
|
|
2246
2246
|
if (data.code != null) {
|
|
@@ -2258,7 +2258,7 @@ const deserializeAws_restJson1RequestTimeoutExceptionResponse = async (parsedOut
|
|
|
2258
2258
|
});
|
|
2259
2259
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2260
2260
|
};
|
|
2261
|
-
const
|
|
2261
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2262
2262
|
const contents = map({});
|
|
2263
2263
|
const data = parsedOutput.body;
|
|
2264
2264
|
if (data.code != null) {
|
|
@@ -2276,7 +2276,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
2276
2276
|
});
|
|
2277
2277
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2278
2278
|
};
|
|
2279
|
-
const
|
|
2279
|
+
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
2280
2280
|
const contents = map({});
|
|
2281
2281
|
const data = parsedOutput.body;
|
|
2282
2282
|
if (data.code != null) {
|
|
@@ -2294,14 +2294,14 @@ const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parse
|
|
|
2294
2294
|
});
|
|
2295
2295
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2296
2296
|
};
|
|
2297
|
-
const
|
|
2297
|
+
const se_AccessControlPolicyList = (input, context) => {
|
|
2298
2298
|
return input
|
|
2299
2299
|
.filter((e) => e != null)
|
|
2300
2300
|
.map((entry) => {
|
|
2301
|
-
return
|
|
2301
|
+
return se_Grant(entry, context);
|
|
2302
2302
|
});
|
|
2303
2303
|
};
|
|
2304
|
-
const
|
|
2304
|
+
const se_CSVInput = (input, context) => {
|
|
2305
2305
|
return {
|
|
2306
2306
|
...(input.Comments != null && { Comments: input.Comments }),
|
|
2307
2307
|
...(input.FieldDelimiter != null && { FieldDelimiter: input.FieldDelimiter }),
|
|
@@ -2311,7 +2311,7 @@ const serializeAws_restJson1CSVInput = (input, context) => {
|
|
|
2311
2311
|
...(input.RecordDelimiter != null && { RecordDelimiter: input.RecordDelimiter }),
|
|
2312
2312
|
};
|
|
2313
2313
|
};
|
|
2314
|
-
const
|
|
2314
|
+
const se_CSVOutput = (input, context) => {
|
|
2315
2315
|
return {
|
|
2316
2316
|
...(input.FieldDelimiter != null && { FieldDelimiter: input.FieldDelimiter }),
|
|
2317
2317
|
...(input.QuoteCharacter != null && { QuoteCharacter: input.QuoteCharacter }),
|
|
@@ -2320,38 +2320,38 @@ const serializeAws_restJson1CSVOutput = (input, context) => {
|
|
|
2320
2320
|
...(input.RecordDelimiter != null && { RecordDelimiter: input.RecordDelimiter }),
|
|
2321
2321
|
};
|
|
2322
2322
|
};
|
|
2323
|
-
const
|
|
2323
|
+
const se_DataRetrievalPolicy = (input, context) => {
|
|
2324
2324
|
return {
|
|
2325
|
-
...(input.Rules != null && { Rules:
|
|
2325
|
+
...(input.Rules != null && { Rules: se_DataRetrievalRulesList(input.Rules, context) }),
|
|
2326
2326
|
};
|
|
2327
2327
|
};
|
|
2328
|
-
const
|
|
2328
|
+
const se_DataRetrievalRule = (input, context) => {
|
|
2329
2329
|
return {
|
|
2330
2330
|
...(input.BytesPerHour != null && { BytesPerHour: input.BytesPerHour }),
|
|
2331
2331
|
...(input.Strategy != null && { Strategy: input.Strategy }),
|
|
2332
2332
|
};
|
|
2333
2333
|
};
|
|
2334
|
-
const
|
|
2334
|
+
const se_DataRetrievalRulesList = (input, context) => {
|
|
2335
2335
|
return input
|
|
2336
2336
|
.filter((e) => e != null)
|
|
2337
2337
|
.map((entry) => {
|
|
2338
|
-
return
|
|
2338
|
+
return se_DataRetrievalRule(entry, context);
|
|
2339
2339
|
});
|
|
2340
2340
|
};
|
|
2341
|
-
const
|
|
2341
|
+
const se_Encryption = (input, context) => {
|
|
2342
2342
|
return {
|
|
2343
2343
|
...(input.EncryptionType != null && { EncryptionType: input.EncryptionType }),
|
|
2344
2344
|
...(input.KMSContext != null && { KMSContext: input.KMSContext }),
|
|
2345
2345
|
...(input.KMSKeyId != null && { KMSKeyId: input.KMSKeyId }),
|
|
2346
2346
|
};
|
|
2347
2347
|
};
|
|
2348
|
-
const
|
|
2348
|
+
const se_Grant = (input, context) => {
|
|
2349
2349
|
return {
|
|
2350
|
-
...(input.Grantee != null && { Grantee:
|
|
2350
|
+
...(input.Grantee != null && { Grantee: se_Grantee(input.Grantee, context) }),
|
|
2351
2351
|
...(input.Permission != null && { Permission: input.Permission }),
|
|
2352
2352
|
};
|
|
2353
2353
|
};
|
|
2354
|
-
const
|
|
2354
|
+
const se_Grantee = (input, context) => {
|
|
2355
2355
|
return {
|
|
2356
2356
|
...(input.DisplayName != null && { DisplayName: input.DisplayName }),
|
|
2357
2357
|
...(input.EmailAddress != null && { EmailAddress: input.EmailAddress }),
|
|
@@ -2360,7 +2360,7 @@ const serializeAws_restJson1Grantee = (input, context) => {
|
|
|
2360
2360
|
...(input.URI != null && { URI: input.URI }),
|
|
2361
2361
|
};
|
|
2362
2362
|
};
|
|
2363
|
-
const
|
|
2363
|
+
const se_hashmap = (input, context) => {
|
|
2364
2364
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2365
2365
|
if (value === null) {
|
|
2366
2366
|
return acc;
|
|
@@ -2369,12 +2369,12 @@ const serializeAws_restJson1hashmap = (input, context) => {
|
|
|
2369
2369
|
return acc;
|
|
2370
2370
|
}, {});
|
|
2371
2371
|
};
|
|
2372
|
-
const
|
|
2372
|
+
const se_InputSerialization = (input, context) => {
|
|
2373
2373
|
return {
|
|
2374
|
-
...(input.csv != null && { csv:
|
|
2374
|
+
...(input.csv != null && { csv: se_CSVInput(input.csv, context) }),
|
|
2375
2375
|
};
|
|
2376
2376
|
};
|
|
2377
|
-
const
|
|
2377
|
+
const se_InventoryRetrievalJobInput = (input, context) => {
|
|
2378
2378
|
return {
|
|
2379
2379
|
...(input.EndDate != null && { EndDate: input.EndDate }),
|
|
2380
2380
|
...(input.Limit != null && { Limit: input.Limit }),
|
|
@@ -2382,77 +2382,73 @@ const serializeAws_restJson1InventoryRetrievalJobInput = (input, context) => {
|
|
|
2382
2382
|
...(input.StartDate != null && { StartDate: input.StartDate }),
|
|
2383
2383
|
};
|
|
2384
2384
|
};
|
|
2385
|
-
const
|
|
2385
|
+
const se_JobParameters = (input, context) => {
|
|
2386
2386
|
return {
|
|
2387
2387
|
...(input.ArchiveId != null && { ArchiveId: input.ArchiveId }),
|
|
2388
2388
|
...(input.Description != null && { Description: input.Description }),
|
|
2389
2389
|
...(input.Format != null && { Format: input.Format }),
|
|
2390
2390
|
...(input.InventoryRetrievalParameters != null && {
|
|
2391
|
-
InventoryRetrievalParameters:
|
|
2392
|
-
}),
|
|
2393
|
-
...(input.OutputLocation != null && {
|
|
2394
|
-
OutputLocation: serializeAws_restJson1OutputLocation(input.OutputLocation, context),
|
|
2391
|
+
InventoryRetrievalParameters: se_InventoryRetrievalJobInput(input.InventoryRetrievalParameters, context),
|
|
2395
2392
|
}),
|
|
2393
|
+
...(input.OutputLocation != null && { OutputLocation: se_OutputLocation(input.OutputLocation, context) }),
|
|
2396
2394
|
...(input.RetrievalByteRange != null && { RetrievalByteRange: input.RetrievalByteRange }),
|
|
2397
2395
|
...(input.SNSTopic != null && { SNSTopic: input.SNSTopic }),
|
|
2398
|
-
...(input.SelectParameters != null && {
|
|
2399
|
-
SelectParameters: serializeAws_restJson1SelectParameters(input.SelectParameters, context),
|
|
2400
|
-
}),
|
|
2396
|
+
...(input.SelectParameters != null && { SelectParameters: se_SelectParameters(input.SelectParameters, context) }),
|
|
2401
2397
|
...(input.Tier != null && { Tier: input.Tier }),
|
|
2402
2398
|
...(input.Type != null && { Type: input.Type }),
|
|
2403
2399
|
};
|
|
2404
2400
|
};
|
|
2405
|
-
const
|
|
2401
|
+
const se_NotificationEventList = (input, context) => {
|
|
2406
2402
|
return input
|
|
2407
2403
|
.filter((e) => e != null)
|
|
2408
2404
|
.map((entry) => {
|
|
2409
2405
|
return entry;
|
|
2410
2406
|
});
|
|
2411
2407
|
};
|
|
2412
|
-
const
|
|
2408
|
+
const se_OutputLocation = (input, context) => {
|
|
2413
2409
|
return {
|
|
2414
|
-
...(input.S3 != null && { S3:
|
|
2410
|
+
...(input.S3 != null && { S3: se_S3Location(input.S3, context) }),
|
|
2415
2411
|
};
|
|
2416
2412
|
};
|
|
2417
|
-
const
|
|
2413
|
+
const se_OutputSerialization = (input, context) => {
|
|
2418
2414
|
return {
|
|
2419
|
-
...(input.csv != null && { csv:
|
|
2415
|
+
...(input.csv != null && { csv: se_CSVOutput(input.csv, context) }),
|
|
2420
2416
|
};
|
|
2421
2417
|
};
|
|
2422
|
-
const
|
|
2418
|
+
const se_S3Location = (input, context) => {
|
|
2423
2419
|
return {
|
|
2424
2420
|
...(input.AccessControlList != null && {
|
|
2425
|
-
AccessControlList:
|
|
2421
|
+
AccessControlList: se_AccessControlPolicyList(input.AccessControlList, context),
|
|
2426
2422
|
}),
|
|
2427
2423
|
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
2428
2424
|
...(input.CannedACL != null && { CannedACL: input.CannedACL }),
|
|
2429
|
-
...(input.Encryption != null && { Encryption:
|
|
2425
|
+
...(input.Encryption != null && { Encryption: se_Encryption(input.Encryption, context) }),
|
|
2430
2426
|
...(input.Prefix != null && { Prefix: input.Prefix }),
|
|
2431
2427
|
...(input.StorageClass != null && { StorageClass: input.StorageClass }),
|
|
2432
|
-
...(input.Tagging != null && { Tagging:
|
|
2433
|
-
...(input.UserMetadata != null && { UserMetadata:
|
|
2428
|
+
...(input.Tagging != null && { Tagging: se_hashmap(input.Tagging, context) }),
|
|
2429
|
+
...(input.UserMetadata != null && { UserMetadata: se_hashmap(input.UserMetadata, context) }),
|
|
2434
2430
|
};
|
|
2435
2431
|
};
|
|
2436
|
-
const
|
|
2432
|
+
const se_SelectParameters = (input, context) => {
|
|
2437
2433
|
return {
|
|
2438
2434
|
...(input.Expression != null && { Expression: input.Expression }),
|
|
2439
2435
|
...(input.ExpressionType != null && { ExpressionType: input.ExpressionType }),
|
|
2440
2436
|
...(input.InputSerialization != null && {
|
|
2441
|
-
InputSerialization:
|
|
2437
|
+
InputSerialization: se_InputSerialization(input.InputSerialization, context),
|
|
2442
2438
|
}),
|
|
2443
2439
|
...(input.OutputSerialization != null && {
|
|
2444
|
-
OutputSerialization:
|
|
2440
|
+
OutputSerialization: se_OutputSerialization(input.OutputSerialization, context),
|
|
2445
2441
|
}),
|
|
2446
2442
|
};
|
|
2447
2443
|
};
|
|
2448
|
-
const
|
|
2444
|
+
const se_TagKeyList = (input, context) => {
|
|
2449
2445
|
return input
|
|
2450
2446
|
.filter((e) => e != null)
|
|
2451
2447
|
.map((entry) => {
|
|
2452
2448
|
return entry;
|
|
2453
2449
|
});
|
|
2454
2450
|
};
|
|
2455
|
-
const
|
|
2451
|
+
const se_TagMap = (input, context) => {
|
|
2456
2452
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2457
2453
|
if (value === null) {
|
|
2458
2454
|
return acc;
|
|
@@ -2461,34 +2457,34 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
2461
2457
|
return acc;
|
|
2462
2458
|
}, {});
|
|
2463
2459
|
};
|
|
2464
|
-
const
|
|
2460
|
+
const se_VaultAccessPolicy = (input, context) => {
|
|
2465
2461
|
return {
|
|
2466
2462
|
...(input.Policy != null && { Policy: input.Policy }),
|
|
2467
2463
|
};
|
|
2468
2464
|
};
|
|
2469
|
-
const
|
|
2465
|
+
const se_VaultLockPolicy = (input, context) => {
|
|
2470
2466
|
return {
|
|
2471
2467
|
...(input.Policy != null && { Policy: input.Policy }),
|
|
2472
2468
|
};
|
|
2473
2469
|
};
|
|
2474
|
-
const
|
|
2470
|
+
const se_VaultNotificationConfig = (input, context) => {
|
|
2475
2471
|
return {
|
|
2476
|
-
...(input.Events != null && { Events:
|
|
2472
|
+
...(input.Events != null && { Events: se_NotificationEventList(input.Events, context) }),
|
|
2477
2473
|
...(input.SNSTopic != null && { SNSTopic: input.SNSTopic }),
|
|
2478
2474
|
};
|
|
2479
2475
|
};
|
|
2480
|
-
const
|
|
2476
|
+
const de_AccessControlPolicyList = (output, context) => {
|
|
2481
2477
|
const retVal = (output || [])
|
|
2482
2478
|
.filter((e) => e != null)
|
|
2483
2479
|
.map((entry) => {
|
|
2484
2480
|
if (entry === null) {
|
|
2485
2481
|
return null;
|
|
2486
2482
|
}
|
|
2487
|
-
return
|
|
2483
|
+
return de_Grant(entry, context);
|
|
2488
2484
|
});
|
|
2489
2485
|
return retVal;
|
|
2490
2486
|
};
|
|
2491
|
-
const
|
|
2487
|
+
const de_CSVInput = (output, context) => {
|
|
2492
2488
|
return {
|
|
2493
2489
|
Comments: __expectString(output.Comments),
|
|
2494
2490
|
FieldDelimiter: __expectString(output.FieldDelimiter),
|
|
@@ -2498,7 +2494,7 @@ const deserializeAws_restJson1CSVInput = (output, context) => {
|
|
|
2498
2494
|
RecordDelimiter: __expectString(output.RecordDelimiter),
|
|
2499
2495
|
};
|
|
2500
2496
|
};
|
|
2501
|
-
const
|
|
2497
|
+
const de_CSVOutput = (output, context) => {
|
|
2502
2498
|
return {
|
|
2503
2499
|
FieldDelimiter: __expectString(output.FieldDelimiter),
|
|
2504
2500
|
QuoteCharacter: __expectString(output.QuoteCharacter),
|
|
@@ -2507,29 +2503,29 @@ const deserializeAws_restJson1CSVOutput = (output, context) => {
|
|
|
2507
2503
|
RecordDelimiter: __expectString(output.RecordDelimiter),
|
|
2508
2504
|
};
|
|
2509
2505
|
};
|
|
2510
|
-
const
|
|
2506
|
+
const de_DataRetrievalPolicy = (output, context) => {
|
|
2511
2507
|
return {
|
|
2512
|
-
Rules: output.Rules != null ?
|
|
2508
|
+
Rules: output.Rules != null ? de_DataRetrievalRulesList(output.Rules, context) : undefined,
|
|
2513
2509
|
};
|
|
2514
2510
|
};
|
|
2515
|
-
const
|
|
2511
|
+
const de_DataRetrievalRule = (output, context) => {
|
|
2516
2512
|
return {
|
|
2517
2513
|
BytesPerHour: __expectLong(output.BytesPerHour),
|
|
2518
2514
|
Strategy: __expectString(output.Strategy),
|
|
2519
2515
|
};
|
|
2520
2516
|
};
|
|
2521
|
-
const
|
|
2517
|
+
const de_DataRetrievalRulesList = (output, context) => {
|
|
2522
2518
|
const retVal = (output || [])
|
|
2523
2519
|
.filter((e) => e != null)
|
|
2524
2520
|
.map((entry) => {
|
|
2525
2521
|
if (entry === null) {
|
|
2526
2522
|
return null;
|
|
2527
2523
|
}
|
|
2528
|
-
return
|
|
2524
|
+
return de_DataRetrievalRule(entry, context);
|
|
2529
2525
|
});
|
|
2530
2526
|
return retVal;
|
|
2531
2527
|
};
|
|
2532
|
-
const
|
|
2528
|
+
const de_DescribeVaultOutput = (output, context) => {
|
|
2533
2529
|
return {
|
|
2534
2530
|
CreationDate: __expectString(output.CreationDate),
|
|
2535
2531
|
LastInventoryDate: __expectString(output.LastInventoryDate),
|
|
@@ -2539,14 +2535,14 @@ const deserializeAws_restJson1DescribeVaultOutput = (output, context) => {
|
|
|
2539
2535
|
VaultName: __expectString(output.VaultName),
|
|
2540
2536
|
};
|
|
2541
2537
|
};
|
|
2542
|
-
const
|
|
2538
|
+
const de_Encryption = (output, context) => {
|
|
2543
2539
|
return {
|
|
2544
2540
|
EncryptionType: __expectString(output.EncryptionType),
|
|
2545
2541
|
KMSContext: __expectString(output.KMSContext),
|
|
2546
2542
|
KMSKeyId: __expectString(output.KMSKeyId),
|
|
2547
2543
|
};
|
|
2548
2544
|
};
|
|
2549
|
-
const
|
|
2545
|
+
const de_GlacierJobDescription = (output, context) => {
|
|
2550
2546
|
return {
|
|
2551
2547
|
Action: __expectString(output.Action),
|
|
2552
2548
|
ArchiveId: __expectString(output.ArchiveId),
|
|
@@ -2556,34 +2552,30 @@ const deserializeAws_restJson1GlacierJobDescription = (output, context) => {
|
|
|
2556
2552
|
CompletionDate: __expectString(output.CompletionDate),
|
|
2557
2553
|
CreationDate: __expectString(output.CreationDate),
|
|
2558
2554
|
InventoryRetrievalParameters: output.InventoryRetrievalParameters != null
|
|
2559
|
-
?
|
|
2555
|
+
? de_InventoryRetrievalJobDescription(output.InventoryRetrievalParameters, context)
|
|
2560
2556
|
: undefined,
|
|
2561
2557
|
InventorySizeInBytes: __expectLong(output.InventorySizeInBytes),
|
|
2562
2558
|
JobDescription: __expectString(output.JobDescription),
|
|
2563
2559
|
JobId: __expectString(output.JobId),
|
|
2564
2560
|
JobOutputPath: __expectString(output.JobOutputPath),
|
|
2565
|
-
OutputLocation: output.OutputLocation != null
|
|
2566
|
-
? deserializeAws_restJson1OutputLocation(output.OutputLocation, context)
|
|
2567
|
-
: undefined,
|
|
2561
|
+
OutputLocation: output.OutputLocation != null ? de_OutputLocation(output.OutputLocation, context) : undefined,
|
|
2568
2562
|
RetrievalByteRange: __expectString(output.RetrievalByteRange),
|
|
2569
2563
|
SHA256TreeHash: __expectString(output.SHA256TreeHash),
|
|
2570
2564
|
SNSTopic: __expectString(output.SNSTopic),
|
|
2571
|
-
SelectParameters: output.SelectParameters != null
|
|
2572
|
-
? deserializeAws_restJson1SelectParameters(output.SelectParameters, context)
|
|
2573
|
-
: undefined,
|
|
2565
|
+
SelectParameters: output.SelectParameters != null ? de_SelectParameters(output.SelectParameters, context) : undefined,
|
|
2574
2566
|
StatusCode: __expectString(output.StatusCode),
|
|
2575
2567
|
StatusMessage: __expectString(output.StatusMessage),
|
|
2576
2568
|
Tier: __expectString(output.Tier),
|
|
2577
2569
|
VaultARN: __expectString(output.VaultARN),
|
|
2578
2570
|
};
|
|
2579
2571
|
};
|
|
2580
|
-
const
|
|
2572
|
+
const de_Grant = (output, context) => {
|
|
2581
2573
|
return {
|
|
2582
|
-
Grantee: output.Grantee != null ?
|
|
2574
|
+
Grantee: output.Grantee != null ? de_Grantee(output.Grantee, context) : undefined,
|
|
2583
2575
|
Permission: __expectString(output.Permission),
|
|
2584
2576
|
};
|
|
2585
2577
|
};
|
|
2586
|
-
const
|
|
2578
|
+
const de_Grantee = (output, context) => {
|
|
2587
2579
|
return {
|
|
2588
2580
|
DisplayName: __expectString(output.DisplayName),
|
|
2589
2581
|
EmailAddress: __expectString(output.EmailAddress),
|
|
@@ -2592,7 +2584,7 @@ const deserializeAws_restJson1Grantee = (output, context) => {
|
|
|
2592
2584
|
URI: __expectString(output.URI),
|
|
2593
2585
|
};
|
|
2594
2586
|
};
|
|
2595
|
-
const
|
|
2587
|
+
const de_hashmap = (output, context) => {
|
|
2596
2588
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2597
2589
|
if (value === null) {
|
|
2598
2590
|
return acc;
|
|
@@ -2601,12 +2593,12 @@ const deserializeAws_restJson1hashmap = (output, context) => {
|
|
|
2601
2593
|
return acc;
|
|
2602
2594
|
}, {});
|
|
2603
2595
|
};
|
|
2604
|
-
const
|
|
2596
|
+
const de_InputSerialization = (output, context) => {
|
|
2605
2597
|
return {
|
|
2606
|
-
csv: output.csv != null ?
|
|
2598
|
+
csv: output.csv != null ? de_CSVInput(output.csv, context) : undefined,
|
|
2607
2599
|
};
|
|
2608
2600
|
};
|
|
2609
|
-
const
|
|
2601
|
+
const de_InventoryRetrievalJobDescription = (output, context) => {
|
|
2610
2602
|
return {
|
|
2611
2603
|
EndDate: __expectString(output.EndDate),
|
|
2612
2604
|
Format: __expectString(output.Format),
|
|
@@ -2615,18 +2607,18 @@ const deserializeAws_restJson1InventoryRetrievalJobDescription = (output, contex
|
|
|
2615
2607
|
StartDate: __expectString(output.StartDate),
|
|
2616
2608
|
};
|
|
2617
2609
|
};
|
|
2618
|
-
const
|
|
2610
|
+
const de_JobList = (output, context) => {
|
|
2619
2611
|
const retVal = (output || [])
|
|
2620
2612
|
.filter((e) => e != null)
|
|
2621
2613
|
.map((entry) => {
|
|
2622
2614
|
if (entry === null) {
|
|
2623
2615
|
return null;
|
|
2624
2616
|
}
|
|
2625
|
-
return
|
|
2617
|
+
return de_GlacierJobDescription(entry, context);
|
|
2626
2618
|
});
|
|
2627
2619
|
return retVal;
|
|
2628
2620
|
};
|
|
2629
|
-
const
|
|
2621
|
+
const de_NotificationEventList = (output, context) => {
|
|
2630
2622
|
const retVal = (output || [])
|
|
2631
2623
|
.filter((e) => e != null)
|
|
2632
2624
|
.map((entry) => {
|
|
@@ -2637,78 +2629,72 @@ const deserializeAws_restJson1NotificationEventList = (output, context) => {
|
|
|
2637
2629
|
});
|
|
2638
2630
|
return retVal;
|
|
2639
2631
|
};
|
|
2640
|
-
const
|
|
2632
|
+
const de_OutputLocation = (output, context) => {
|
|
2641
2633
|
return {
|
|
2642
|
-
S3: output.S3 != null ?
|
|
2634
|
+
S3: output.S3 != null ? de_S3Location(output.S3, context) : undefined,
|
|
2643
2635
|
};
|
|
2644
2636
|
};
|
|
2645
|
-
const
|
|
2637
|
+
const de_OutputSerialization = (output, context) => {
|
|
2646
2638
|
return {
|
|
2647
|
-
csv: output.csv != null ?
|
|
2639
|
+
csv: output.csv != null ? de_CSVOutput(output.csv, context) : undefined,
|
|
2648
2640
|
};
|
|
2649
2641
|
};
|
|
2650
|
-
const
|
|
2642
|
+
const de_PartList = (output, context) => {
|
|
2651
2643
|
const retVal = (output || [])
|
|
2652
2644
|
.filter((e) => e != null)
|
|
2653
2645
|
.map((entry) => {
|
|
2654
2646
|
if (entry === null) {
|
|
2655
2647
|
return null;
|
|
2656
2648
|
}
|
|
2657
|
-
return
|
|
2649
|
+
return de_PartListElement(entry, context);
|
|
2658
2650
|
});
|
|
2659
2651
|
return retVal;
|
|
2660
2652
|
};
|
|
2661
|
-
const
|
|
2653
|
+
const de_PartListElement = (output, context) => {
|
|
2662
2654
|
return {
|
|
2663
2655
|
RangeInBytes: __expectString(output.RangeInBytes),
|
|
2664
2656
|
SHA256TreeHash: __expectString(output.SHA256TreeHash),
|
|
2665
2657
|
};
|
|
2666
2658
|
};
|
|
2667
|
-
const
|
|
2659
|
+
const de_ProvisionedCapacityDescription = (output, context) => {
|
|
2668
2660
|
return {
|
|
2669
2661
|
CapacityId: __expectString(output.CapacityId),
|
|
2670
2662
|
ExpirationDate: __expectString(output.ExpirationDate),
|
|
2671
2663
|
StartDate: __expectString(output.StartDate),
|
|
2672
2664
|
};
|
|
2673
2665
|
};
|
|
2674
|
-
const
|
|
2666
|
+
const de_ProvisionedCapacityList = (output, context) => {
|
|
2675
2667
|
const retVal = (output || [])
|
|
2676
2668
|
.filter((e) => e != null)
|
|
2677
2669
|
.map((entry) => {
|
|
2678
2670
|
if (entry === null) {
|
|
2679
2671
|
return null;
|
|
2680
2672
|
}
|
|
2681
|
-
return
|
|
2673
|
+
return de_ProvisionedCapacityDescription(entry, context);
|
|
2682
2674
|
});
|
|
2683
2675
|
return retVal;
|
|
2684
2676
|
};
|
|
2685
|
-
const
|
|
2677
|
+
const de_S3Location = (output, context) => {
|
|
2686
2678
|
return {
|
|
2687
|
-
AccessControlList: output.AccessControlList != null
|
|
2688
|
-
? deserializeAws_restJson1AccessControlPolicyList(output.AccessControlList, context)
|
|
2689
|
-
: undefined,
|
|
2679
|
+
AccessControlList: output.AccessControlList != null ? de_AccessControlPolicyList(output.AccessControlList, context) : undefined,
|
|
2690
2680
|
BucketName: __expectString(output.BucketName),
|
|
2691
2681
|
CannedACL: __expectString(output.CannedACL),
|
|
2692
|
-
Encryption: output.Encryption != null ?
|
|
2682
|
+
Encryption: output.Encryption != null ? de_Encryption(output.Encryption, context) : undefined,
|
|
2693
2683
|
Prefix: __expectString(output.Prefix),
|
|
2694
2684
|
StorageClass: __expectString(output.StorageClass),
|
|
2695
|
-
Tagging: output.Tagging != null ?
|
|
2696
|
-
UserMetadata: output.UserMetadata != null ?
|
|
2685
|
+
Tagging: output.Tagging != null ? de_hashmap(output.Tagging, context) : undefined,
|
|
2686
|
+
UserMetadata: output.UserMetadata != null ? de_hashmap(output.UserMetadata, context) : undefined,
|
|
2697
2687
|
};
|
|
2698
2688
|
};
|
|
2699
|
-
const
|
|
2689
|
+
const de_SelectParameters = (output, context) => {
|
|
2700
2690
|
return {
|
|
2701
2691
|
Expression: __expectString(output.Expression),
|
|
2702
2692
|
ExpressionType: __expectString(output.ExpressionType),
|
|
2703
|
-
InputSerialization: output.InputSerialization != null
|
|
2704
|
-
|
|
2705
|
-
: undefined,
|
|
2706
|
-
OutputSerialization: output.OutputSerialization != null
|
|
2707
|
-
? deserializeAws_restJson1OutputSerialization(output.OutputSerialization, context)
|
|
2708
|
-
: undefined,
|
|
2693
|
+
InputSerialization: output.InputSerialization != null ? de_InputSerialization(output.InputSerialization, context) : undefined,
|
|
2694
|
+
OutputSerialization: output.OutputSerialization != null ? de_OutputSerialization(output.OutputSerialization, context) : undefined,
|
|
2709
2695
|
};
|
|
2710
2696
|
};
|
|
2711
|
-
const
|
|
2697
|
+
const de_TagMap = (output, context) => {
|
|
2712
2698
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2713
2699
|
if (value === null) {
|
|
2714
2700
|
return acc;
|
|
@@ -2717,7 +2703,7 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
2717
2703
|
return acc;
|
|
2718
2704
|
}, {});
|
|
2719
2705
|
};
|
|
2720
|
-
const
|
|
2706
|
+
const de_UploadListElement = (output, context) => {
|
|
2721
2707
|
return {
|
|
2722
2708
|
ArchiveDescription: __expectString(output.ArchiveDescription),
|
|
2723
2709
|
CreationDate: __expectString(output.CreationDate),
|
|
@@ -2726,36 +2712,36 @@ const deserializeAws_restJson1UploadListElement = (output, context) => {
|
|
|
2726
2712
|
VaultARN: __expectString(output.VaultARN),
|
|
2727
2713
|
};
|
|
2728
2714
|
};
|
|
2729
|
-
const
|
|
2715
|
+
const de_UploadsList = (output, context) => {
|
|
2730
2716
|
const retVal = (output || [])
|
|
2731
2717
|
.filter((e) => e != null)
|
|
2732
2718
|
.map((entry) => {
|
|
2733
2719
|
if (entry === null) {
|
|
2734
2720
|
return null;
|
|
2735
2721
|
}
|
|
2736
|
-
return
|
|
2722
|
+
return de_UploadListElement(entry, context);
|
|
2737
2723
|
});
|
|
2738
2724
|
return retVal;
|
|
2739
2725
|
};
|
|
2740
|
-
const
|
|
2726
|
+
const de_VaultAccessPolicy = (output, context) => {
|
|
2741
2727
|
return {
|
|
2742
2728
|
Policy: __expectString(output.Policy),
|
|
2743
2729
|
};
|
|
2744
2730
|
};
|
|
2745
|
-
const
|
|
2731
|
+
const de_VaultList = (output, context) => {
|
|
2746
2732
|
const retVal = (output || [])
|
|
2747
2733
|
.filter((e) => e != null)
|
|
2748
2734
|
.map((entry) => {
|
|
2749
2735
|
if (entry === null) {
|
|
2750
2736
|
return null;
|
|
2751
2737
|
}
|
|
2752
|
-
return
|
|
2738
|
+
return de_DescribeVaultOutput(entry, context);
|
|
2753
2739
|
});
|
|
2754
2740
|
return retVal;
|
|
2755
2741
|
};
|
|
2756
|
-
const
|
|
2742
|
+
const de_VaultNotificationConfig = (output, context) => {
|
|
2757
2743
|
return {
|
|
2758
|
-
Events: output.Events != null ?
|
|
2744
|
+
Events: output.Events != null ? de_NotificationEventList(output.Events, context) : undefined,
|
|
2759
2745
|
SNSTopic: __expectString(output.SNSTopic),
|
|
2760
2746
|
};
|
|
2761
2747
|
};
|