@aws-sdk/client-glacier 3.306.0 → 3.310.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 +41 -41
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.de_GetVaultNotificationsCommand = exports.de_GetVaultLockCommand = exports.de_GetVaultAccessPolicyCommand = exports.de_GetJobOutputCommand = exports.de_GetDataRetrievalPolicyCommand = exports.de_DescribeVaultCommand = exports.de_DescribeJobCommand = exports.de_DeleteVaultNotificationsCommand = exports.de_DeleteVaultAccessPolicyCommand = exports.de_DeleteVaultCommand = exports.de_DeleteArchiveCommand = exports.de_CreateVaultCommand = exports.de_CompleteVaultLockCommand = exports.de_CompleteMultipartUploadCommand = exports.de_AddTagsToVaultCommand = exports.de_AbortVaultLockCommand = exports.de_AbortMultipartUploadCommand = exports.se_UploadMultipartPartCommand = exports.se_UploadArchiveCommand = exports.se_SetVaultNotificationsCommand = exports.se_SetVaultAccessPolicyCommand = exports.se_SetDataRetrievalPolicyCommand = exports.se_RemoveTagsFromVaultCommand = exports.se_PurchaseProvisionedCapacityCommand = exports.se_ListVaultsCommand = exports.se_ListTagsForVaultCommand = exports.se_ListProvisionedCapacityCommand = exports.se_ListPartsCommand = exports.se_ListMultipartUploadsCommand = exports.se_ListJobsCommand = exports.se_InitiateVaultLockCommand = exports.se_InitiateMultipartUploadCommand = exports.se_InitiateJobCommand = exports.se_GetVaultNotificationsCommand = exports.se_GetVaultLockCommand = exports.se_GetVaultAccessPolicyCommand = exports.se_GetJobOutputCommand = exports.se_GetDataRetrievalPolicyCommand = exports.se_DescribeVaultCommand = exports.se_DescribeJobCommand = exports.se_DeleteVaultNotificationsCommand = exports.se_DeleteVaultAccessPolicyCommand = exports.se_DeleteVaultCommand = exports.se_DeleteArchiveCommand = exports.se_CreateVaultCommand = exports.se_CompleteVaultLockCommand = exports.se_CompleteMultipartUploadCommand = exports.se_AddTagsToVaultCommand = exports.se_AbortVaultLockCommand = exports.se_AbortMultipartUploadCommand = void 0;
|
|
4
|
+
exports.de_UploadMultipartPartCommand = exports.de_UploadArchiveCommand = exports.de_SetVaultNotificationsCommand = exports.de_SetVaultAccessPolicyCommand = exports.de_SetDataRetrievalPolicyCommand = exports.de_RemoveTagsFromVaultCommand = exports.de_PurchaseProvisionedCapacityCommand = exports.de_ListVaultsCommand = exports.de_ListTagsForVaultCommand = exports.de_ListProvisionedCapacityCommand = exports.de_ListPartsCommand = exports.de_ListMultipartUploadsCommand = exports.de_ListJobsCommand = exports.de_InitiateVaultLockCommand = exports.de_InitiateMultipartUploadCommand = exports.de_InitiateJobCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const GlacierServiceException_1 = require("../models/GlacierServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const
|
|
9
|
+
const se_AbortMultipartUploadCommand = async (input, context) => {
|
|
10
10
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
11
11
|
const headers = {};
|
|
12
12
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -25,8 +25,8 @@ const serializeAws_restJson1AbortMultipartUploadCommand = async (input, context)
|
|
|
25
25
|
body,
|
|
26
26
|
});
|
|
27
27
|
};
|
|
28
|
-
exports.
|
|
29
|
-
const
|
|
28
|
+
exports.se_AbortMultipartUploadCommand = se_AbortMultipartUploadCommand;
|
|
29
|
+
const se_AbortVaultLockCommand = async (input, context) => {
|
|
30
30
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
31
31
|
const headers = {};
|
|
32
32
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -44,8 +44,8 @@ const serializeAws_restJson1AbortVaultLockCommand = async (input, context) => {
|
|
|
44
44
|
body,
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
-
exports.
|
|
48
|
-
const
|
|
47
|
+
exports.se_AbortVaultLockCommand = se_AbortVaultLockCommand;
|
|
48
|
+
const se_AddTagsToVaultCommand = async (input, context) => {
|
|
49
49
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
50
50
|
const headers = {
|
|
51
51
|
"content-type": "application/json",
|
|
@@ -58,7 +58,7 @@ const serializeAws_restJson1AddTagsToVaultCommand = async (input, context) => {
|
|
|
58
58
|
});
|
|
59
59
|
let body;
|
|
60
60
|
body = JSON.stringify({
|
|
61
|
-
...(input.Tags != null && { Tags:
|
|
61
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
62
62
|
});
|
|
63
63
|
return new protocol_http_1.HttpRequest({
|
|
64
64
|
protocol,
|
|
@@ -71,8 +71,8 @@ const serializeAws_restJson1AddTagsToVaultCommand = async (input, context) => {
|
|
|
71
71
|
body,
|
|
72
72
|
});
|
|
73
73
|
};
|
|
74
|
-
exports.
|
|
75
|
-
const
|
|
74
|
+
exports.se_AddTagsToVaultCommand = se_AddTagsToVaultCommand;
|
|
75
|
+
const se_CompleteMultipartUploadCommand = async (input, context) => {
|
|
76
76
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
77
77
|
const headers = map({}, isSerializableHeaderValue, {
|
|
78
78
|
"x-amz-archive-size": input.archiveSize,
|
|
@@ -94,8 +94,8 @@ const serializeAws_restJson1CompleteMultipartUploadCommand = async (input, conte
|
|
|
94
94
|
body,
|
|
95
95
|
});
|
|
96
96
|
};
|
|
97
|
-
exports.
|
|
98
|
-
const
|
|
97
|
+
exports.se_CompleteMultipartUploadCommand = se_CompleteMultipartUploadCommand;
|
|
98
|
+
const se_CompleteVaultLockCommand = async (input, context) => {
|
|
99
99
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
100
100
|
const headers = {};
|
|
101
101
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -114,8 +114,8 @@ const serializeAws_restJson1CompleteVaultLockCommand = async (input, context) =>
|
|
|
114
114
|
body,
|
|
115
115
|
});
|
|
116
116
|
};
|
|
117
|
-
exports.
|
|
118
|
-
const
|
|
117
|
+
exports.se_CompleteVaultLockCommand = se_CompleteVaultLockCommand;
|
|
118
|
+
const se_CreateVaultCommand = async (input, context) => {
|
|
119
119
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
120
120
|
const headers = {};
|
|
121
121
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}";
|
|
@@ -132,8 +132,8 @@ const serializeAws_restJson1CreateVaultCommand = async (input, context) => {
|
|
|
132
132
|
body,
|
|
133
133
|
});
|
|
134
134
|
};
|
|
135
|
-
exports.
|
|
136
|
-
const
|
|
135
|
+
exports.se_CreateVaultCommand = se_CreateVaultCommand;
|
|
136
|
+
const se_DeleteArchiveCommand = async (input, context) => {
|
|
137
137
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
138
138
|
const headers = {};
|
|
139
139
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -152,8 +152,8 @@ const serializeAws_restJson1DeleteArchiveCommand = async (input, context) => {
|
|
|
152
152
|
body,
|
|
153
153
|
});
|
|
154
154
|
};
|
|
155
|
-
exports.
|
|
156
|
-
const
|
|
155
|
+
exports.se_DeleteArchiveCommand = se_DeleteArchiveCommand;
|
|
156
|
+
const se_DeleteVaultCommand = async (input, context) => {
|
|
157
157
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
158
158
|
const headers = {};
|
|
159
159
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}";
|
|
@@ -170,8 +170,8 @@ const serializeAws_restJson1DeleteVaultCommand = async (input, context) => {
|
|
|
170
170
|
body,
|
|
171
171
|
});
|
|
172
172
|
};
|
|
173
|
-
exports.
|
|
174
|
-
const
|
|
173
|
+
exports.se_DeleteVaultCommand = se_DeleteVaultCommand;
|
|
174
|
+
const se_DeleteVaultAccessPolicyCommand = async (input, context) => {
|
|
175
175
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
176
176
|
const headers = {};
|
|
177
177
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -189,8 +189,8 @@ const serializeAws_restJson1DeleteVaultAccessPolicyCommand = async (input, conte
|
|
|
189
189
|
body,
|
|
190
190
|
});
|
|
191
191
|
};
|
|
192
|
-
exports.
|
|
193
|
-
const
|
|
192
|
+
exports.se_DeleteVaultAccessPolicyCommand = se_DeleteVaultAccessPolicyCommand;
|
|
193
|
+
const se_DeleteVaultNotificationsCommand = async (input, context) => {
|
|
194
194
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
195
195
|
const headers = {};
|
|
196
196
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -208,8 +208,8 @@ const serializeAws_restJson1DeleteVaultNotificationsCommand = async (input, cont
|
|
|
208
208
|
body,
|
|
209
209
|
});
|
|
210
210
|
};
|
|
211
|
-
exports.
|
|
212
|
-
const
|
|
211
|
+
exports.se_DeleteVaultNotificationsCommand = se_DeleteVaultNotificationsCommand;
|
|
212
|
+
const se_DescribeJobCommand = async (input, context) => {
|
|
213
213
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
214
214
|
const headers = {};
|
|
215
215
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -228,8 +228,8 @@ const serializeAws_restJson1DescribeJobCommand = async (input, context) => {
|
|
|
228
228
|
body,
|
|
229
229
|
});
|
|
230
230
|
};
|
|
231
|
-
exports.
|
|
232
|
-
const
|
|
231
|
+
exports.se_DescribeJobCommand = se_DescribeJobCommand;
|
|
232
|
+
const se_DescribeVaultCommand = async (input, context) => {
|
|
233
233
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
234
234
|
const headers = {};
|
|
235
235
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}";
|
|
@@ -246,8 +246,8 @@ const serializeAws_restJson1DescribeVaultCommand = async (input, context) => {
|
|
|
246
246
|
body,
|
|
247
247
|
});
|
|
248
248
|
};
|
|
249
|
-
exports.
|
|
250
|
-
const
|
|
249
|
+
exports.se_DescribeVaultCommand = se_DescribeVaultCommand;
|
|
250
|
+
const se_GetDataRetrievalPolicyCommand = async (input, context) => {
|
|
251
251
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
252
252
|
const headers = {};
|
|
253
253
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/policies/data-retrieval";
|
|
@@ -263,8 +263,8 @@ const serializeAws_restJson1GetDataRetrievalPolicyCommand = async (input, contex
|
|
|
263
263
|
body,
|
|
264
264
|
});
|
|
265
265
|
};
|
|
266
|
-
exports.
|
|
267
|
-
const
|
|
266
|
+
exports.se_GetDataRetrievalPolicyCommand = se_GetDataRetrievalPolicyCommand;
|
|
267
|
+
const se_GetJobOutputCommand = async (input, context) => {
|
|
268
268
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
269
269
|
const headers = map({}, isSerializableHeaderValue, {
|
|
270
270
|
range: input.range,
|
|
@@ -285,8 +285,8 @@ const serializeAws_restJson1GetJobOutputCommand = async (input, context) => {
|
|
|
285
285
|
body,
|
|
286
286
|
});
|
|
287
287
|
};
|
|
288
|
-
exports.
|
|
289
|
-
const
|
|
288
|
+
exports.se_GetJobOutputCommand = se_GetJobOutputCommand;
|
|
289
|
+
const se_GetVaultAccessPolicyCommand = 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,8 +304,8 @@ const serializeAws_restJson1GetVaultAccessPolicyCommand = async (input, context)
|
|
|
304
304
|
body,
|
|
305
305
|
});
|
|
306
306
|
};
|
|
307
|
-
exports.
|
|
308
|
-
const
|
|
307
|
+
exports.se_GetVaultAccessPolicyCommand = se_GetVaultAccessPolicyCommand;
|
|
308
|
+
const se_GetVaultLockCommand = async (input, context) => {
|
|
309
309
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
310
310
|
const headers = {};
|
|
311
311
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -323,8 +323,8 @@ const serializeAws_restJson1GetVaultLockCommand = async (input, context) => {
|
|
|
323
323
|
body,
|
|
324
324
|
});
|
|
325
325
|
};
|
|
326
|
-
exports.
|
|
327
|
-
const
|
|
326
|
+
exports.se_GetVaultLockCommand = se_GetVaultLockCommand;
|
|
327
|
+
const se_GetVaultNotificationsCommand = async (input, context) => {
|
|
328
328
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
329
329
|
const headers = {};
|
|
330
330
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -342,8 +342,8 @@ const serializeAws_restJson1GetVaultNotificationsCommand = async (input, context
|
|
|
342
342
|
body,
|
|
343
343
|
});
|
|
344
344
|
};
|
|
345
|
-
exports.
|
|
346
|
-
const
|
|
345
|
+
exports.se_GetVaultNotificationsCommand = se_GetVaultNotificationsCommand;
|
|
346
|
+
const se_InitiateJobCommand = async (input, context) => {
|
|
347
347
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
348
348
|
const headers = {
|
|
349
349
|
"content-type": "application/json",
|
|
@@ -353,7 +353,7 @@ const serializeAws_restJson1InitiateJobCommand = async (input, context) => {
|
|
|
353
353
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
|
|
354
354
|
let body;
|
|
355
355
|
if (input.jobParameters !== undefined) {
|
|
356
|
-
body =
|
|
356
|
+
body = se_JobParameters(input.jobParameters, context);
|
|
357
357
|
}
|
|
358
358
|
if (body === undefined) {
|
|
359
359
|
body = {};
|
|
@@ -369,8 +369,8 @@ const serializeAws_restJson1InitiateJobCommand = async (input, context) => {
|
|
|
369
369
|
body,
|
|
370
370
|
});
|
|
371
371
|
};
|
|
372
|
-
exports.
|
|
373
|
-
const
|
|
372
|
+
exports.se_InitiateJobCommand = se_InitiateJobCommand;
|
|
373
|
+
const se_InitiateMultipartUploadCommand = async (input, context) => {
|
|
374
374
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
375
375
|
const headers = map({}, isSerializableHeaderValue, {
|
|
376
376
|
"x-amz-archive-description": input.archiveDescription,
|
|
@@ -391,8 +391,8 @@ const serializeAws_restJson1InitiateMultipartUploadCommand = async (input, conte
|
|
|
391
391
|
body,
|
|
392
392
|
});
|
|
393
393
|
};
|
|
394
|
-
exports.
|
|
395
|
-
const
|
|
394
|
+
exports.se_InitiateMultipartUploadCommand = se_InitiateMultipartUploadCommand;
|
|
395
|
+
const se_InitiateVaultLockCommand = async (input, context) => {
|
|
396
396
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
397
397
|
const headers = {
|
|
398
398
|
"content-type": "application/json",
|
|
@@ -403,7 +403,7 @@ const serializeAws_restJson1InitiateVaultLockCommand = async (input, context) =>
|
|
|
403
403
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
|
|
404
404
|
let body;
|
|
405
405
|
if (input.policy !== undefined) {
|
|
406
|
-
body =
|
|
406
|
+
body = se_VaultLockPolicy(input.policy, context);
|
|
407
407
|
}
|
|
408
408
|
if (body === undefined) {
|
|
409
409
|
body = {};
|
|
@@ -419,8 +419,8 @@ const serializeAws_restJson1InitiateVaultLockCommand = async (input, context) =>
|
|
|
419
419
|
body,
|
|
420
420
|
});
|
|
421
421
|
};
|
|
422
|
-
exports.
|
|
423
|
-
const
|
|
422
|
+
exports.se_InitiateVaultLockCommand = se_InitiateVaultLockCommand;
|
|
423
|
+
const se_ListJobsCommand = 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 || ""}` + "/{accountId}/vaults/{vaultName}/jobs";
|
|
@@ -444,8 +444,8 @@ const serializeAws_restJson1ListJobsCommand = async (input, context) => {
|
|
|
444
444
|
body,
|
|
445
445
|
});
|
|
446
446
|
};
|
|
447
|
-
exports.
|
|
448
|
-
const
|
|
447
|
+
exports.se_ListJobsCommand = se_ListJobsCommand;
|
|
448
|
+
const se_ListMultipartUploadsCommand = async (input, context) => {
|
|
449
449
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
450
450
|
const headers = {};
|
|
451
451
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -468,8 +468,8 @@ const serializeAws_restJson1ListMultipartUploadsCommand = async (input, context)
|
|
|
468
468
|
body,
|
|
469
469
|
});
|
|
470
470
|
};
|
|
471
|
-
exports.
|
|
472
|
-
const
|
|
471
|
+
exports.se_ListMultipartUploadsCommand = se_ListMultipartUploadsCommand;
|
|
472
|
+
const se_ListPartsCommand = async (input, context) => {
|
|
473
473
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
474
474
|
const headers = {};
|
|
475
475
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -493,8 +493,8 @@ const serializeAws_restJson1ListPartsCommand = async (input, context) => {
|
|
|
493
493
|
body,
|
|
494
494
|
});
|
|
495
495
|
};
|
|
496
|
-
exports.
|
|
497
|
-
const
|
|
496
|
+
exports.se_ListPartsCommand = se_ListPartsCommand;
|
|
497
|
+
const se_ListProvisionedCapacityCommand = async (input, context) => {
|
|
498
498
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
499
499
|
const headers = {};
|
|
500
500
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/provisioned-capacity";
|
|
@@ -510,8 +510,8 @@ const serializeAws_restJson1ListProvisionedCapacityCommand = async (input, conte
|
|
|
510
510
|
body,
|
|
511
511
|
});
|
|
512
512
|
};
|
|
513
|
-
exports.
|
|
514
|
-
const
|
|
513
|
+
exports.se_ListProvisionedCapacityCommand = se_ListProvisionedCapacityCommand;
|
|
514
|
+
const se_ListTagsForVaultCommand = async (input, context) => {
|
|
515
515
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
516
516
|
const headers = {};
|
|
517
517
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}/tags";
|
|
@@ -528,8 +528,8 @@ const serializeAws_restJson1ListTagsForVaultCommand = async (input, context) =>
|
|
|
528
528
|
body,
|
|
529
529
|
});
|
|
530
530
|
};
|
|
531
|
-
exports.
|
|
532
|
-
const
|
|
531
|
+
exports.se_ListTagsForVaultCommand = se_ListTagsForVaultCommand;
|
|
532
|
+
const se_ListVaultsCommand = async (input, context) => {
|
|
533
533
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
534
534
|
const headers = {};
|
|
535
535
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults";
|
|
@@ -550,8 +550,8 @@ const serializeAws_restJson1ListVaultsCommand = async (input, context) => {
|
|
|
550
550
|
body,
|
|
551
551
|
});
|
|
552
552
|
};
|
|
553
|
-
exports.
|
|
554
|
-
const
|
|
553
|
+
exports.se_ListVaultsCommand = se_ListVaultsCommand;
|
|
554
|
+
const se_PurchaseProvisionedCapacityCommand = async (input, context) => {
|
|
555
555
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
556
556
|
const headers = {};
|
|
557
557
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/provisioned-capacity";
|
|
@@ -567,8 +567,8 @@ const serializeAws_restJson1PurchaseProvisionedCapacityCommand = async (input, c
|
|
|
567
567
|
body,
|
|
568
568
|
});
|
|
569
569
|
};
|
|
570
|
-
exports.
|
|
571
|
-
const
|
|
570
|
+
exports.se_PurchaseProvisionedCapacityCommand = se_PurchaseProvisionedCapacityCommand;
|
|
571
|
+
const se_RemoveTagsFromVaultCommand = async (input, context) => {
|
|
572
572
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
573
573
|
const headers = {
|
|
574
574
|
"content-type": "application/json",
|
|
@@ -581,7 +581,7 @@ const serializeAws_restJson1RemoveTagsFromVaultCommand = async (input, context)
|
|
|
581
581
|
});
|
|
582
582
|
let body;
|
|
583
583
|
body = JSON.stringify({
|
|
584
|
-
...(input.TagKeys != null && { TagKeys:
|
|
584
|
+
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
585
585
|
});
|
|
586
586
|
return new protocol_http_1.HttpRequest({
|
|
587
587
|
protocol,
|
|
@@ -594,8 +594,8 @@ const serializeAws_restJson1RemoveTagsFromVaultCommand = async (input, context)
|
|
|
594
594
|
body,
|
|
595
595
|
});
|
|
596
596
|
};
|
|
597
|
-
exports.
|
|
598
|
-
const
|
|
597
|
+
exports.se_RemoveTagsFromVaultCommand = se_RemoveTagsFromVaultCommand;
|
|
598
|
+
const se_SetDataRetrievalPolicyCommand = async (input, context) => {
|
|
599
599
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
600
600
|
const headers = {
|
|
601
601
|
"content-type": "application/json",
|
|
@@ -604,7 +604,7 @@ const serializeAws_restJson1SetDataRetrievalPolicyCommand = async (input, contex
|
|
|
604
604
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
|
|
605
605
|
let body;
|
|
606
606
|
body = JSON.stringify({
|
|
607
|
-
...(input.Policy != null && { Policy:
|
|
607
|
+
...(input.Policy != null && { Policy: se_DataRetrievalPolicy(input.Policy, context) }),
|
|
608
608
|
});
|
|
609
609
|
return new protocol_http_1.HttpRequest({
|
|
610
610
|
protocol,
|
|
@@ -616,8 +616,8 @@ const serializeAws_restJson1SetDataRetrievalPolicyCommand = async (input, contex
|
|
|
616
616
|
body,
|
|
617
617
|
});
|
|
618
618
|
};
|
|
619
|
-
exports.
|
|
620
|
-
const
|
|
619
|
+
exports.se_SetDataRetrievalPolicyCommand = se_SetDataRetrievalPolicyCommand;
|
|
620
|
+
const se_SetVaultAccessPolicyCommand = async (input, context) => {
|
|
621
621
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
622
622
|
const headers = {
|
|
623
623
|
"content-type": "application/json",
|
|
@@ -628,7 +628,7 @@ const serializeAws_restJson1SetVaultAccessPolicyCommand = async (input, context)
|
|
|
628
628
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
|
|
629
629
|
let body;
|
|
630
630
|
if (input.policy !== undefined) {
|
|
631
|
-
body =
|
|
631
|
+
body = se_VaultAccessPolicy(input.policy, context);
|
|
632
632
|
}
|
|
633
633
|
if (body === undefined) {
|
|
634
634
|
body = {};
|
|
@@ -644,8 +644,8 @@ const serializeAws_restJson1SetVaultAccessPolicyCommand = async (input, context)
|
|
|
644
644
|
body,
|
|
645
645
|
});
|
|
646
646
|
};
|
|
647
|
-
exports.
|
|
648
|
-
const
|
|
647
|
+
exports.se_SetVaultAccessPolicyCommand = se_SetVaultAccessPolicyCommand;
|
|
648
|
+
const se_SetVaultNotificationsCommand = async (input, context) => {
|
|
649
649
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
650
650
|
const headers = {
|
|
651
651
|
"content-type": "application/json",
|
|
@@ -656,7 +656,7 @@ const serializeAws_restJson1SetVaultNotificationsCommand = async (input, context
|
|
|
656
656
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
|
|
657
657
|
let body;
|
|
658
658
|
if (input.vaultNotificationConfig !== undefined) {
|
|
659
|
-
body =
|
|
659
|
+
body = se_VaultNotificationConfig(input.vaultNotificationConfig, context);
|
|
660
660
|
}
|
|
661
661
|
if (body === undefined) {
|
|
662
662
|
body = {};
|
|
@@ -672,8 +672,8 @@ const serializeAws_restJson1SetVaultNotificationsCommand = async (input, context
|
|
|
672
672
|
body,
|
|
673
673
|
});
|
|
674
674
|
};
|
|
675
|
-
exports.
|
|
676
|
-
const
|
|
675
|
+
exports.se_SetVaultNotificationsCommand = se_SetVaultNotificationsCommand;
|
|
676
|
+
const se_UploadArchiveCommand = async (input, context) => {
|
|
677
677
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
678
678
|
const headers = map({}, isSerializableHeaderValue, {
|
|
679
679
|
"content-type": "application/octet-stream",
|
|
@@ -697,8 +697,8 @@ const serializeAws_restJson1UploadArchiveCommand = async (input, context) => {
|
|
|
697
697
|
body,
|
|
698
698
|
});
|
|
699
699
|
};
|
|
700
|
-
exports.
|
|
701
|
-
const
|
|
700
|
+
exports.se_UploadArchiveCommand = se_UploadArchiveCommand;
|
|
701
|
+
const se_UploadMultipartPartCommand = async (input, context) => {
|
|
702
702
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
703
703
|
const headers = map({}, isSerializableHeaderValue, {
|
|
704
704
|
"content-type": "application/octet-stream",
|
|
@@ -724,10 +724,10 @@ const serializeAws_restJson1UploadMultipartPartCommand = async (input, context)
|
|
|
724
724
|
body,
|
|
725
725
|
});
|
|
726
726
|
};
|
|
727
|
-
exports.
|
|
728
|
-
const
|
|
727
|
+
exports.se_UploadMultipartPartCommand = se_UploadMultipartPartCommand;
|
|
728
|
+
const de_AbortMultipartUploadCommand = async (output, context) => {
|
|
729
729
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
730
|
-
return
|
|
730
|
+
return de_AbortMultipartUploadCommandError(output, context);
|
|
731
731
|
}
|
|
732
732
|
const contents = map({
|
|
733
733
|
$metadata: deserializeMetadata(output),
|
|
@@ -735,8 +735,8 @@ const deserializeAws_restJson1AbortMultipartUploadCommand = async (output, conte
|
|
|
735
735
|
await collectBody(output.body, context);
|
|
736
736
|
return contents;
|
|
737
737
|
};
|
|
738
|
-
exports.
|
|
739
|
-
const
|
|
738
|
+
exports.de_AbortMultipartUploadCommand = de_AbortMultipartUploadCommand;
|
|
739
|
+
const de_AbortMultipartUploadCommandError = async (output, context) => {
|
|
740
740
|
const parsedOutput = {
|
|
741
741
|
...output,
|
|
742
742
|
body: await parseErrorBody(output.body, context),
|
|
@@ -745,16 +745,16 @@ const deserializeAws_restJson1AbortMultipartUploadCommandError = async (output,
|
|
|
745
745
|
switch (errorCode) {
|
|
746
746
|
case "InvalidParameterValueException":
|
|
747
747
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
748
|
-
throw await
|
|
748
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
749
749
|
case "MissingParameterValueException":
|
|
750
750
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
751
|
-
throw await
|
|
751
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
752
752
|
case "ResourceNotFoundException":
|
|
753
753
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
754
|
-
throw await
|
|
754
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
755
755
|
case "ServiceUnavailableException":
|
|
756
756
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
757
|
-
throw await
|
|
757
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
758
758
|
default:
|
|
759
759
|
const parsedBody = parsedOutput.body;
|
|
760
760
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -765,9 +765,9 @@ const deserializeAws_restJson1AbortMultipartUploadCommandError = async (output,
|
|
|
765
765
|
});
|
|
766
766
|
}
|
|
767
767
|
};
|
|
768
|
-
const
|
|
768
|
+
const de_AbortVaultLockCommand = async (output, context) => {
|
|
769
769
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
770
|
-
return
|
|
770
|
+
return de_AbortVaultLockCommandError(output, context);
|
|
771
771
|
}
|
|
772
772
|
const contents = map({
|
|
773
773
|
$metadata: deserializeMetadata(output),
|
|
@@ -775,8 +775,8 @@ const deserializeAws_restJson1AbortVaultLockCommand = async (output, context) =>
|
|
|
775
775
|
await collectBody(output.body, context);
|
|
776
776
|
return contents;
|
|
777
777
|
};
|
|
778
|
-
exports.
|
|
779
|
-
const
|
|
778
|
+
exports.de_AbortVaultLockCommand = de_AbortVaultLockCommand;
|
|
779
|
+
const de_AbortVaultLockCommandError = async (output, context) => {
|
|
780
780
|
const parsedOutput = {
|
|
781
781
|
...output,
|
|
782
782
|
body: await parseErrorBody(output.body, context),
|
|
@@ -785,16 +785,16 @@ const deserializeAws_restJson1AbortVaultLockCommandError = 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 "MissingParameterValueException":
|
|
790
790
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
791
|
-
throw await
|
|
791
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
792
792
|
case "ResourceNotFoundException":
|
|
793
793
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
794
|
-
throw await
|
|
794
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
795
795
|
case "ServiceUnavailableException":
|
|
796
796
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
797
|
-
throw await
|
|
797
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
798
798
|
default:
|
|
799
799
|
const parsedBody = parsedOutput.body;
|
|
800
800
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -805,9 +805,9 @@ const deserializeAws_restJson1AbortVaultLockCommandError = async (output, contex
|
|
|
805
805
|
});
|
|
806
806
|
}
|
|
807
807
|
};
|
|
808
|
-
const
|
|
808
|
+
const de_AddTagsToVaultCommand = async (output, context) => {
|
|
809
809
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
810
|
-
return
|
|
810
|
+
return de_AddTagsToVaultCommandError(output, context);
|
|
811
811
|
}
|
|
812
812
|
const contents = map({
|
|
813
813
|
$metadata: deserializeMetadata(output),
|
|
@@ -815,8 +815,8 @@ const deserializeAws_restJson1AddTagsToVaultCommand = async (output, context) =>
|
|
|
815
815
|
await collectBody(output.body, context);
|
|
816
816
|
return contents;
|
|
817
817
|
};
|
|
818
|
-
exports.
|
|
819
|
-
const
|
|
818
|
+
exports.de_AddTagsToVaultCommand = de_AddTagsToVaultCommand;
|
|
819
|
+
const de_AddTagsToVaultCommandError = async (output, context) => {
|
|
820
820
|
const parsedOutput = {
|
|
821
821
|
...output,
|
|
822
822
|
body: await parseErrorBody(output.body, context),
|
|
@@ -825,19 +825,19 @@ const deserializeAws_restJson1AddTagsToVaultCommandError = async (output, contex
|
|
|
825
825
|
switch (errorCode) {
|
|
826
826
|
case "InvalidParameterValueException":
|
|
827
827
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
828
|
-
throw await
|
|
828
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
829
829
|
case "LimitExceededException":
|
|
830
830
|
case "com.amazonaws.glacier#LimitExceededException":
|
|
831
|
-
throw await
|
|
831
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
832
832
|
case "MissingParameterValueException":
|
|
833
833
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
834
|
-
throw await
|
|
834
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
835
835
|
case "ResourceNotFoundException":
|
|
836
836
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
837
|
-
throw await
|
|
837
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
838
838
|
case "ServiceUnavailableException":
|
|
839
839
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
840
|
-
throw await
|
|
840
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
841
841
|
default:
|
|
842
842
|
const parsedBody = parsedOutput.body;
|
|
843
843
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -848,9 +848,9 @@ const deserializeAws_restJson1AddTagsToVaultCommandError = async (output, contex
|
|
|
848
848
|
});
|
|
849
849
|
}
|
|
850
850
|
};
|
|
851
|
-
const
|
|
851
|
+
const de_CompleteMultipartUploadCommand = async (output, context) => {
|
|
852
852
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
853
|
-
return
|
|
853
|
+
return de_CompleteMultipartUploadCommandError(output, context);
|
|
854
854
|
}
|
|
855
855
|
const contents = map({
|
|
856
856
|
$metadata: deserializeMetadata(output),
|
|
@@ -861,8 +861,8 @@ const deserializeAws_restJson1CompleteMultipartUploadCommand = async (output, co
|
|
|
861
861
|
await collectBody(output.body, context);
|
|
862
862
|
return contents;
|
|
863
863
|
};
|
|
864
|
-
exports.
|
|
865
|
-
const
|
|
864
|
+
exports.de_CompleteMultipartUploadCommand = de_CompleteMultipartUploadCommand;
|
|
865
|
+
const de_CompleteMultipartUploadCommandError = async (output, context) => {
|
|
866
866
|
const parsedOutput = {
|
|
867
867
|
...output,
|
|
868
868
|
body: await parseErrorBody(output.body, context),
|
|
@@ -871,16 +871,16 @@ const deserializeAws_restJson1CompleteMultipartUploadCommandError = async (outpu
|
|
|
871
871
|
switch (errorCode) {
|
|
872
872
|
case "InvalidParameterValueException":
|
|
873
873
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
874
|
-
throw await
|
|
874
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
875
875
|
case "MissingParameterValueException":
|
|
876
876
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
877
|
-
throw await
|
|
877
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
878
878
|
case "ResourceNotFoundException":
|
|
879
879
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
880
|
-
throw await
|
|
880
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
881
881
|
case "ServiceUnavailableException":
|
|
882
882
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
883
|
-
throw await
|
|
883
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
884
884
|
default:
|
|
885
885
|
const parsedBody = parsedOutput.body;
|
|
886
886
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -891,9 +891,9 @@ const deserializeAws_restJson1CompleteMultipartUploadCommandError = async (outpu
|
|
|
891
891
|
});
|
|
892
892
|
}
|
|
893
893
|
};
|
|
894
|
-
const
|
|
894
|
+
const de_CompleteVaultLockCommand = async (output, context) => {
|
|
895
895
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
896
|
-
return
|
|
896
|
+
return de_CompleteVaultLockCommandError(output, context);
|
|
897
897
|
}
|
|
898
898
|
const contents = map({
|
|
899
899
|
$metadata: deserializeMetadata(output),
|
|
@@ -901,8 +901,8 @@ const deserializeAws_restJson1CompleteVaultLockCommand = async (output, context)
|
|
|
901
901
|
await collectBody(output.body, context);
|
|
902
902
|
return contents;
|
|
903
903
|
};
|
|
904
|
-
exports.
|
|
905
|
-
const
|
|
904
|
+
exports.de_CompleteVaultLockCommand = de_CompleteVaultLockCommand;
|
|
905
|
+
const de_CompleteVaultLockCommandError = async (output, context) => {
|
|
906
906
|
const parsedOutput = {
|
|
907
907
|
...output,
|
|
908
908
|
body: await parseErrorBody(output.body, context),
|
|
@@ -911,16 +911,16 @@ const deserializeAws_restJson1CompleteVaultLockCommandError = async (output, con
|
|
|
911
911
|
switch (errorCode) {
|
|
912
912
|
case "InvalidParameterValueException":
|
|
913
913
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
914
|
-
throw await
|
|
914
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
915
915
|
case "MissingParameterValueException":
|
|
916
916
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
917
|
-
throw await
|
|
917
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
918
918
|
case "ResourceNotFoundException":
|
|
919
919
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
920
|
-
throw await
|
|
920
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
921
921
|
case "ServiceUnavailableException":
|
|
922
922
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
923
|
-
throw await
|
|
923
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
924
924
|
default:
|
|
925
925
|
const parsedBody = parsedOutput.body;
|
|
926
926
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -931,9 +931,9 @@ const deserializeAws_restJson1CompleteVaultLockCommandError = async (output, con
|
|
|
931
931
|
});
|
|
932
932
|
}
|
|
933
933
|
};
|
|
934
|
-
const
|
|
934
|
+
const de_CreateVaultCommand = async (output, context) => {
|
|
935
935
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
936
|
-
return
|
|
936
|
+
return de_CreateVaultCommandError(output, context);
|
|
937
937
|
}
|
|
938
938
|
const contents = map({
|
|
939
939
|
$metadata: deserializeMetadata(output),
|
|
@@ -942,8 +942,8 @@ const deserializeAws_restJson1CreateVaultCommand = async (output, context) => {
|
|
|
942
942
|
await collectBody(output.body, context);
|
|
943
943
|
return contents;
|
|
944
944
|
};
|
|
945
|
-
exports.
|
|
946
|
-
const
|
|
945
|
+
exports.de_CreateVaultCommand = de_CreateVaultCommand;
|
|
946
|
+
const de_CreateVaultCommandError = async (output, context) => {
|
|
947
947
|
const parsedOutput = {
|
|
948
948
|
...output,
|
|
949
949
|
body: await parseErrorBody(output.body, context),
|
|
@@ -952,16 +952,16 @@ const deserializeAws_restJson1CreateVaultCommandError = async (output, context)
|
|
|
952
952
|
switch (errorCode) {
|
|
953
953
|
case "InvalidParameterValueException":
|
|
954
954
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
955
|
-
throw await
|
|
955
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
956
956
|
case "LimitExceededException":
|
|
957
957
|
case "com.amazonaws.glacier#LimitExceededException":
|
|
958
|
-
throw await
|
|
958
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
959
959
|
case "MissingParameterValueException":
|
|
960
960
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
961
|
-
throw await
|
|
961
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
962
962
|
case "ServiceUnavailableException":
|
|
963
963
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
964
|
-
throw await
|
|
964
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
965
965
|
default:
|
|
966
966
|
const parsedBody = parsedOutput.body;
|
|
967
967
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -972,9 +972,9 @@ const deserializeAws_restJson1CreateVaultCommandError = async (output, context)
|
|
|
972
972
|
});
|
|
973
973
|
}
|
|
974
974
|
};
|
|
975
|
-
const
|
|
975
|
+
const de_DeleteArchiveCommand = async (output, context) => {
|
|
976
976
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
977
|
-
return
|
|
977
|
+
return de_DeleteArchiveCommandError(output, context);
|
|
978
978
|
}
|
|
979
979
|
const contents = map({
|
|
980
980
|
$metadata: deserializeMetadata(output),
|
|
@@ -982,8 +982,8 @@ const deserializeAws_restJson1DeleteArchiveCommand = async (output, context) =>
|
|
|
982
982
|
await collectBody(output.body, context);
|
|
983
983
|
return contents;
|
|
984
984
|
};
|
|
985
|
-
exports.
|
|
986
|
-
const
|
|
985
|
+
exports.de_DeleteArchiveCommand = de_DeleteArchiveCommand;
|
|
986
|
+
const de_DeleteArchiveCommandError = async (output, context) => {
|
|
987
987
|
const parsedOutput = {
|
|
988
988
|
...output,
|
|
989
989
|
body: await parseErrorBody(output.body, context),
|
|
@@ -992,16 +992,16 @@ const deserializeAws_restJson1DeleteArchiveCommandError = async (output, context
|
|
|
992
992
|
switch (errorCode) {
|
|
993
993
|
case "InvalidParameterValueException":
|
|
994
994
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
995
|
-
throw await
|
|
995
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
996
996
|
case "MissingParameterValueException":
|
|
997
997
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
998
|
-
throw await
|
|
998
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
999
999
|
case "ResourceNotFoundException":
|
|
1000
1000
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1001
|
-
throw await
|
|
1001
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1002
1002
|
case "ServiceUnavailableException":
|
|
1003
1003
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1004
|
-
throw await
|
|
1004
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1005
1005
|
default:
|
|
1006
1006
|
const parsedBody = parsedOutput.body;
|
|
1007
1007
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1012,9 +1012,9 @@ const deserializeAws_restJson1DeleteArchiveCommandError = async (output, context
|
|
|
1012
1012
|
});
|
|
1013
1013
|
}
|
|
1014
1014
|
};
|
|
1015
|
-
const
|
|
1015
|
+
const de_DeleteVaultCommand = async (output, context) => {
|
|
1016
1016
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1017
|
-
return
|
|
1017
|
+
return de_DeleteVaultCommandError(output, context);
|
|
1018
1018
|
}
|
|
1019
1019
|
const contents = map({
|
|
1020
1020
|
$metadata: deserializeMetadata(output),
|
|
@@ -1022,8 +1022,8 @@ const deserializeAws_restJson1DeleteVaultCommand = async (output, context) => {
|
|
|
1022
1022
|
await collectBody(output.body, context);
|
|
1023
1023
|
return contents;
|
|
1024
1024
|
};
|
|
1025
|
-
exports.
|
|
1026
|
-
const
|
|
1025
|
+
exports.de_DeleteVaultCommand = de_DeleteVaultCommand;
|
|
1026
|
+
const de_DeleteVaultCommandError = async (output, context) => {
|
|
1027
1027
|
const parsedOutput = {
|
|
1028
1028
|
...output,
|
|
1029
1029
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1032,16 +1032,16 @@ const deserializeAws_restJson1DeleteVaultCommandError = async (output, context)
|
|
|
1032
1032
|
switch (errorCode) {
|
|
1033
1033
|
case "InvalidParameterValueException":
|
|
1034
1034
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1035
|
-
throw await
|
|
1035
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1036
1036
|
case "MissingParameterValueException":
|
|
1037
1037
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1038
|
-
throw await
|
|
1038
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1039
1039
|
case "ResourceNotFoundException":
|
|
1040
1040
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1041
|
-
throw await
|
|
1041
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1042
1042
|
case "ServiceUnavailableException":
|
|
1043
1043
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1044
|
-
throw await
|
|
1044
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1045
1045
|
default:
|
|
1046
1046
|
const parsedBody = parsedOutput.body;
|
|
1047
1047
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1052,9 +1052,9 @@ const deserializeAws_restJson1DeleteVaultCommandError = async (output, context)
|
|
|
1052
1052
|
});
|
|
1053
1053
|
}
|
|
1054
1054
|
};
|
|
1055
|
-
const
|
|
1055
|
+
const de_DeleteVaultAccessPolicyCommand = async (output, context) => {
|
|
1056
1056
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1057
|
-
return
|
|
1057
|
+
return de_DeleteVaultAccessPolicyCommandError(output, context);
|
|
1058
1058
|
}
|
|
1059
1059
|
const contents = map({
|
|
1060
1060
|
$metadata: deserializeMetadata(output),
|
|
@@ -1062,8 +1062,8 @@ const deserializeAws_restJson1DeleteVaultAccessPolicyCommand = async (output, co
|
|
|
1062
1062
|
await collectBody(output.body, context);
|
|
1063
1063
|
return contents;
|
|
1064
1064
|
};
|
|
1065
|
-
exports.
|
|
1066
|
-
const
|
|
1065
|
+
exports.de_DeleteVaultAccessPolicyCommand = de_DeleteVaultAccessPolicyCommand;
|
|
1066
|
+
const de_DeleteVaultAccessPolicyCommandError = async (output, context) => {
|
|
1067
1067
|
const parsedOutput = {
|
|
1068
1068
|
...output,
|
|
1069
1069
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1072,16 +1072,16 @@ const deserializeAws_restJson1DeleteVaultAccessPolicyCommandError = async (outpu
|
|
|
1072
1072
|
switch (errorCode) {
|
|
1073
1073
|
case "InvalidParameterValueException":
|
|
1074
1074
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1075
|
-
throw await
|
|
1075
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1076
1076
|
case "MissingParameterValueException":
|
|
1077
1077
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1078
|
-
throw await
|
|
1078
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1079
1079
|
case "ResourceNotFoundException":
|
|
1080
1080
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1081
|
-
throw await
|
|
1081
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1082
1082
|
case "ServiceUnavailableException":
|
|
1083
1083
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1084
|
-
throw await
|
|
1084
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1085
1085
|
default:
|
|
1086
1086
|
const parsedBody = parsedOutput.body;
|
|
1087
1087
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1092,9 +1092,9 @@ const deserializeAws_restJson1DeleteVaultAccessPolicyCommandError = async (outpu
|
|
|
1092
1092
|
});
|
|
1093
1093
|
}
|
|
1094
1094
|
};
|
|
1095
|
-
const
|
|
1095
|
+
const de_DeleteVaultNotificationsCommand = async (output, context) => {
|
|
1096
1096
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1097
|
-
return
|
|
1097
|
+
return de_DeleteVaultNotificationsCommandError(output, context);
|
|
1098
1098
|
}
|
|
1099
1099
|
const contents = map({
|
|
1100
1100
|
$metadata: deserializeMetadata(output),
|
|
@@ -1102,8 +1102,8 @@ const deserializeAws_restJson1DeleteVaultNotificationsCommand = async (output, c
|
|
|
1102
1102
|
await collectBody(output.body, context);
|
|
1103
1103
|
return contents;
|
|
1104
1104
|
};
|
|
1105
|
-
exports.
|
|
1106
|
-
const
|
|
1105
|
+
exports.de_DeleteVaultNotificationsCommand = de_DeleteVaultNotificationsCommand;
|
|
1106
|
+
const de_DeleteVaultNotificationsCommandError = async (output, context) => {
|
|
1107
1107
|
const parsedOutput = {
|
|
1108
1108
|
...output,
|
|
1109
1109
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1112,16 +1112,16 @@ const deserializeAws_restJson1DeleteVaultNotificationsCommandError = async (outp
|
|
|
1112
1112
|
switch (errorCode) {
|
|
1113
1113
|
case "InvalidParameterValueException":
|
|
1114
1114
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1115
|
-
throw await
|
|
1115
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1116
1116
|
case "MissingParameterValueException":
|
|
1117
1117
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1118
|
-
throw await
|
|
1118
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1119
1119
|
case "ResourceNotFoundException":
|
|
1120
1120
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1121
|
-
throw await
|
|
1121
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1122
1122
|
case "ServiceUnavailableException":
|
|
1123
1123
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1124
|
-
throw await
|
|
1124
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1125
1125
|
default:
|
|
1126
1126
|
const parsedBody = parsedOutput.body;
|
|
1127
1127
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1132,9 +1132,9 @@ const deserializeAws_restJson1DeleteVaultNotificationsCommandError = async (outp
|
|
|
1132
1132
|
});
|
|
1133
1133
|
}
|
|
1134
1134
|
};
|
|
1135
|
-
const
|
|
1135
|
+
const de_DescribeJobCommand = async (output, context) => {
|
|
1136
1136
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1137
|
-
return
|
|
1137
|
+
return de_DescribeJobCommandError(output, context);
|
|
1138
1138
|
}
|
|
1139
1139
|
const contents = map({
|
|
1140
1140
|
$metadata: deserializeMetadata(output),
|
|
@@ -1162,7 +1162,7 @@ const deserializeAws_restJson1DescribeJobCommand = async (output, context) => {
|
|
|
1162
1162
|
contents.CreationDate = (0, smithy_client_1.expectString)(data.CreationDate);
|
|
1163
1163
|
}
|
|
1164
1164
|
if (data.InventoryRetrievalParameters != null) {
|
|
1165
|
-
contents.InventoryRetrievalParameters =
|
|
1165
|
+
contents.InventoryRetrievalParameters = de_InventoryRetrievalJobDescription(data.InventoryRetrievalParameters, context);
|
|
1166
1166
|
}
|
|
1167
1167
|
if (data.InventorySizeInBytes != null) {
|
|
1168
1168
|
contents.InventorySizeInBytes = (0, smithy_client_1.expectLong)(data.InventorySizeInBytes);
|
|
@@ -1177,7 +1177,7 @@ const deserializeAws_restJson1DescribeJobCommand = async (output, context) => {
|
|
|
1177
1177
|
contents.JobOutputPath = (0, smithy_client_1.expectString)(data.JobOutputPath);
|
|
1178
1178
|
}
|
|
1179
1179
|
if (data.OutputLocation != null) {
|
|
1180
|
-
contents.OutputLocation =
|
|
1180
|
+
contents.OutputLocation = de_OutputLocation(data.OutputLocation, context);
|
|
1181
1181
|
}
|
|
1182
1182
|
if (data.RetrievalByteRange != null) {
|
|
1183
1183
|
contents.RetrievalByteRange = (0, smithy_client_1.expectString)(data.RetrievalByteRange);
|
|
@@ -1189,7 +1189,7 @@ const deserializeAws_restJson1DescribeJobCommand = async (output, context) => {
|
|
|
1189
1189
|
contents.SNSTopic = (0, smithy_client_1.expectString)(data.SNSTopic);
|
|
1190
1190
|
}
|
|
1191
1191
|
if (data.SelectParameters != null) {
|
|
1192
|
-
contents.SelectParameters =
|
|
1192
|
+
contents.SelectParameters = de_SelectParameters(data.SelectParameters, context);
|
|
1193
1193
|
}
|
|
1194
1194
|
if (data.StatusCode != null) {
|
|
1195
1195
|
contents.StatusCode = (0, smithy_client_1.expectString)(data.StatusCode);
|
|
@@ -1205,8 +1205,8 @@ const deserializeAws_restJson1DescribeJobCommand = async (output, context) => {
|
|
|
1205
1205
|
}
|
|
1206
1206
|
return contents;
|
|
1207
1207
|
};
|
|
1208
|
-
exports.
|
|
1209
|
-
const
|
|
1208
|
+
exports.de_DescribeJobCommand = de_DescribeJobCommand;
|
|
1209
|
+
const de_DescribeJobCommandError = async (output, context) => {
|
|
1210
1210
|
const parsedOutput = {
|
|
1211
1211
|
...output,
|
|
1212
1212
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1215,16 +1215,16 @@ const deserializeAws_restJson1DescribeJobCommandError = async (output, context)
|
|
|
1215
1215
|
switch (errorCode) {
|
|
1216
1216
|
case "InvalidParameterValueException":
|
|
1217
1217
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1218
|
-
throw await
|
|
1218
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1219
1219
|
case "MissingParameterValueException":
|
|
1220
1220
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1221
|
-
throw await
|
|
1221
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1222
1222
|
case "ResourceNotFoundException":
|
|
1223
1223
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1224
|
-
throw await
|
|
1224
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1225
1225
|
case "ServiceUnavailableException":
|
|
1226
1226
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1227
|
-
throw await
|
|
1227
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1228
1228
|
default:
|
|
1229
1229
|
const parsedBody = parsedOutput.body;
|
|
1230
1230
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1235,9 +1235,9 @@ const deserializeAws_restJson1DescribeJobCommandError = async (output, context)
|
|
|
1235
1235
|
});
|
|
1236
1236
|
}
|
|
1237
1237
|
};
|
|
1238
|
-
const
|
|
1238
|
+
const de_DescribeVaultCommand = async (output, context) => {
|
|
1239
1239
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1240
|
-
return
|
|
1240
|
+
return de_DescribeVaultCommandError(output, context);
|
|
1241
1241
|
}
|
|
1242
1242
|
const contents = map({
|
|
1243
1243
|
$metadata: deserializeMetadata(output),
|
|
@@ -1263,8 +1263,8 @@ const deserializeAws_restJson1DescribeVaultCommand = async (output, context) =>
|
|
|
1263
1263
|
}
|
|
1264
1264
|
return contents;
|
|
1265
1265
|
};
|
|
1266
|
-
exports.
|
|
1267
|
-
const
|
|
1266
|
+
exports.de_DescribeVaultCommand = de_DescribeVaultCommand;
|
|
1267
|
+
const de_DescribeVaultCommandError = async (output, context) => {
|
|
1268
1268
|
const parsedOutput = {
|
|
1269
1269
|
...output,
|
|
1270
1270
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1273,16 +1273,16 @@ const deserializeAws_restJson1DescribeVaultCommandError = async (output, context
|
|
|
1273
1273
|
switch (errorCode) {
|
|
1274
1274
|
case "InvalidParameterValueException":
|
|
1275
1275
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1276
|
-
throw await
|
|
1276
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1277
1277
|
case "MissingParameterValueException":
|
|
1278
1278
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1279
|
-
throw await
|
|
1279
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1280
1280
|
case "ResourceNotFoundException":
|
|
1281
1281
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1282
|
-
throw await
|
|
1282
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1283
1283
|
case "ServiceUnavailableException":
|
|
1284
1284
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1285
|
-
throw await
|
|
1285
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1286
1286
|
default:
|
|
1287
1287
|
const parsedBody = parsedOutput.body;
|
|
1288
1288
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1293,21 +1293,21 @@ const deserializeAws_restJson1DescribeVaultCommandError = async (output, context
|
|
|
1293
1293
|
});
|
|
1294
1294
|
}
|
|
1295
1295
|
};
|
|
1296
|
-
const
|
|
1296
|
+
const de_GetDataRetrievalPolicyCommand = async (output, context) => {
|
|
1297
1297
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1298
|
-
return
|
|
1298
|
+
return de_GetDataRetrievalPolicyCommandError(output, context);
|
|
1299
1299
|
}
|
|
1300
1300
|
const contents = map({
|
|
1301
1301
|
$metadata: deserializeMetadata(output),
|
|
1302
1302
|
});
|
|
1303
1303
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1304
1304
|
if (data.Policy != null) {
|
|
1305
|
-
contents.Policy =
|
|
1305
|
+
contents.Policy = de_DataRetrievalPolicy(data.Policy, context);
|
|
1306
1306
|
}
|
|
1307
1307
|
return contents;
|
|
1308
1308
|
};
|
|
1309
|
-
exports.
|
|
1310
|
-
const
|
|
1309
|
+
exports.de_GetDataRetrievalPolicyCommand = de_GetDataRetrievalPolicyCommand;
|
|
1310
|
+
const de_GetDataRetrievalPolicyCommandError = async (output, context) => {
|
|
1311
1311
|
const parsedOutput = {
|
|
1312
1312
|
...output,
|
|
1313
1313
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1316,13 +1316,13 @@ const deserializeAws_restJson1GetDataRetrievalPolicyCommandError = async (output
|
|
|
1316
1316
|
switch (errorCode) {
|
|
1317
1317
|
case "InvalidParameterValueException":
|
|
1318
1318
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1319
|
-
throw await
|
|
1319
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1320
1320
|
case "MissingParameterValueException":
|
|
1321
1321
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1322
|
-
throw await
|
|
1322
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1323
1323
|
case "ServiceUnavailableException":
|
|
1324
1324
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1325
|
-
throw await
|
|
1325
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1326
1326
|
default:
|
|
1327
1327
|
const parsedBody = parsedOutput.body;
|
|
1328
1328
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1333,9 +1333,9 @@ const deserializeAws_restJson1GetDataRetrievalPolicyCommandError = async (output
|
|
|
1333
1333
|
});
|
|
1334
1334
|
}
|
|
1335
1335
|
};
|
|
1336
|
-
const
|
|
1336
|
+
const de_GetJobOutputCommand = async (output, context) => {
|
|
1337
1337
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1338
|
-
return
|
|
1338
|
+
return de_GetJobOutputCommandError(output, context);
|
|
1339
1339
|
}
|
|
1340
1340
|
const contents = map({
|
|
1341
1341
|
$metadata: deserializeMetadata(output),
|
|
@@ -1353,8 +1353,8 @@ const deserializeAws_restJson1GetJobOutputCommand = async (output, context) => {
|
|
|
1353
1353
|
});
|
|
1354
1354
|
return contents;
|
|
1355
1355
|
};
|
|
1356
|
-
exports.
|
|
1357
|
-
const
|
|
1356
|
+
exports.de_GetJobOutputCommand = de_GetJobOutputCommand;
|
|
1357
|
+
const de_GetJobOutputCommandError = async (output, context) => {
|
|
1358
1358
|
const parsedOutput = {
|
|
1359
1359
|
...output,
|
|
1360
1360
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1363,16 +1363,16 @@ const deserializeAws_restJson1GetJobOutputCommandError = async (output, context)
|
|
|
1363
1363
|
switch (errorCode) {
|
|
1364
1364
|
case "InvalidParameterValueException":
|
|
1365
1365
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1366
|
-
throw await
|
|
1366
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1367
1367
|
case "MissingParameterValueException":
|
|
1368
1368
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1369
|
-
throw await
|
|
1369
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1370
1370
|
case "ResourceNotFoundException":
|
|
1371
1371
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1372
|
-
throw await
|
|
1372
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1373
1373
|
case "ServiceUnavailableException":
|
|
1374
1374
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1375
|
-
throw await
|
|
1375
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1376
1376
|
default:
|
|
1377
1377
|
const parsedBody = parsedOutput.body;
|
|
1378
1378
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1383,19 +1383,19 @@ const deserializeAws_restJson1GetJobOutputCommandError = async (output, context)
|
|
|
1383
1383
|
});
|
|
1384
1384
|
}
|
|
1385
1385
|
};
|
|
1386
|
-
const
|
|
1386
|
+
const de_GetVaultAccessPolicyCommand = async (output, context) => {
|
|
1387
1387
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1388
|
-
return
|
|
1388
|
+
return de_GetVaultAccessPolicyCommandError(output, context);
|
|
1389
1389
|
}
|
|
1390
1390
|
const contents = map({
|
|
1391
1391
|
$metadata: deserializeMetadata(output),
|
|
1392
1392
|
});
|
|
1393
1393
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
1394
|
-
contents.policy =
|
|
1394
|
+
contents.policy = de_VaultAccessPolicy(data, context);
|
|
1395
1395
|
return contents;
|
|
1396
1396
|
};
|
|
1397
|
-
exports.
|
|
1398
|
-
const
|
|
1397
|
+
exports.de_GetVaultAccessPolicyCommand = de_GetVaultAccessPolicyCommand;
|
|
1398
|
+
const de_GetVaultAccessPolicyCommandError = async (output, context) => {
|
|
1399
1399
|
const parsedOutput = {
|
|
1400
1400
|
...output,
|
|
1401
1401
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1404,16 +1404,16 @@ const deserializeAws_restJson1GetVaultAccessPolicyCommandError = async (output,
|
|
|
1404
1404
|
switch (errorCode) {
|
|
1405
1405
|
case "InvalidParameterValueException":
|
|
1406
1406
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1407
|
-
throw await
|
|
1407
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1408
1408
|
case "MissingParameterValueException":
|
|
1409
1409
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1410
|
-
throw await
|
|
1410
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1411
1411
|
case "ResourceNotFoundException":
|
|
1412
1412
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1413
|
-
throw await
|
|
1413
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1414
1414
|
case "ServiceUnavailableException":
|
|
1415
1415
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1416
|
-
throw await
|
|
1416
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1417
1417
|
default:
|
|
1418
1418
|
const parsedBody = parsedOutput.body;
|
|
1419
1419
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1424,9 +1424,9 @@ const deserializeAws_restJson1GetVaultAccessPolicyCommandError = async (output,
|
|
|
1424
1424
|
});
|
|
1425
1425
|
}
|
|
1426
1426
|
};
|
|
1427
|
-
const
|
|
1427
|
+
const de_GetVaultLockCommand = async (output, context) => {
|
|
1428
1428
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1429
|
-
return
|
|
1429
|
+
return de_GetVaultLockCommandError(output, context);
|
|
1430
1430
|
}
|
|
1431
1431
|
const contents = map({
|
|
1432
1432
|
$metadata: deserializeMetadata(output),
|
|
@@ -1446,8 +1446,8 @@ const deserializeAws_restJson1GetVaultLockCommand = async (output, context) => {
|
|
|
1446
1446
|
}
|
|
1447
1447
|
return contents;
|
|
1448
1448
|
};
|
|
1449
|
-
exports.
|
|
1450
|
-
const
|
|
1449
|
+
exports.de_GetVaultLockCommand = de_GetVaultLockCommand;
|
|
1450
|
+
const de_GetVaultLockCommandError = async (output, context) => {
|
|
1451
1451
|
const parsedOutput = {
|
|
1452
1452
|
...output,
|
|
1453
1453
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1456,16 +1456,16 @@ const deserializeAws_restJson1GetVaultLockCommandError = async (output, context)
|
|
|
1456
1456
|
switch (errorCode) {
|
|
1457
1457
|
case "InvalidParameterValueException":
|
|
1458
1458
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1459
|
-
throw await
|
|
1459
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1460
1460
|
case "MissingParameterValueException":
|
|
1461
1461
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1462
|
-
throw await
|
|
1462
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1463
1463
|
case "ResourceNotFoundException":
|
|
1464
1464
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1465
|
-
throw await
|
|
1465
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1466
1466
|
case "ServiceUnavailableException":
|
|
1467
1467
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1468
|
-
throw await
|
|
1468
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1469
1469
|
default:
|
|
1470
1470
|
const parsedBody = parsedOutput.body;
|
|
1471
1471
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1476,19 +1476,19 @@ const deserializeAws_restJson1GetVaultLockCommandError = async (output, context)
|
|
|
1476
1476
|
});
|
|
1477
1477
|
}
|
|
1478
1478
|
};
|
|
1479
|
-
const
|
|
1479
|
+
const de_GetVaultNotificationsCommand = async (output, context) => {
|
|
1480
1480
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1481
|
-
return
|
|
1481
|
+
return de_GetVaultNotificationsCommandError(output, context);
|
|
1482
1482
|
}
|
|
1483
1483
|
const contents = map({
|
|
1484
1484
|
$metadata: deserializeMetadata(output),
|
|
1485
1485
|
});
|
|
1486
1486
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
1487
|
-
contents.vaultNotificationConfig =
|
|
1487
|
+
contents.vaultNotificationConfig = de_VaultNotificationConfig(data, context);
|
|
1488
1488
|
return contents;
|
|
1489
1489
|
};
|
|
1490
|
-
exports.
|
|
1491
|
-
const
|
|
1490
|
+
exports.de_GetVaultNotificationsCommand = de_GetVaultNotificationsCommand;
|
|
1491
|
+
const de_GetVaultNotificationsCommandError = async (output, context) => {
|
|
1492
1492
|
const parsedOutput = {
|
|
1493
1493
|
...output,
|
|
1494
1494
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1497,16 +1497,16 @@ const deserializeAws_restJson1GetVaultNotificationsCommandError = async (output,
|
|
|
1497
1497
|
switch (errorCode) {
|
|
1498
1498
|
case "InvalidParameterValueException":
|
|
1499
1499
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1500
|
-
throw await
|
|
1500
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1501
1501
|
case "MissingParameterValueException":
|
|
1502
1502
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1503
|
-
throw await
|
|
1503
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1504
1504
|
case "ResourceNotFoundException":
|
|
1505
1505
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1506
|
-
throw await
|
|
1506
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1507
1507
|
case "ServiceUnavailableException":
|
|
1508
1508
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1509
|
-
throw await
|
|
1509
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1510
1510
|
default:
|
|
1511
1511
|
const parsedBody = parsedOutput.body;
|
|
1512
1512
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1517,9 +1517,9 @@ const deserializeAws_restJson1GetVaultNotificationsCommandError = async (output,
|
|
|
1517
1517
|
});
|
|
1518
1518
|
}
|
|
1519
1519
|
};
|
|
1520
|
-
const
|
|
1520
|
+
const de_InitiateJobCommand = async (output, context) => {
|
|
1521
1521
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1522
|
-
return
|
|
1522
|
+
return de_InitiateJobCommandError(output, context);
|
|
1523
1523
|
}
|
|
1524
1524
|
const contents = map({
|
|
1525
1525
|
$metadata: deserializeMetadata(output),
|
|
@@ -1530,8 +1530,8 @@ const deserializeAws_restJson1InitiateJobCommand = async (output, context) => {
|
|
|
1530
1530
|
await collectBody(output.body, context);
|
|
1531
1531
|
return contents;
|
|
1532
1532
|
};
|
|
1533
|
-
exports.
|
|
1534
|
-
const
|
|
1533
|
+
exports.de_InitiateJobCommand = de_InitiateJobCommand;
|
|
1534
|
+
const de_InitiateJobCommandError = async (output, context) => {
|
|
1535
1535
|
const parsedOutput = {
|
|
1536
1536
|
...output,
|
|
1537
1537
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1540,22 +1540,22 @@ const deserializeAws_restJson1InitiateJobCommandError = async (output, context)
|
|
|
1540
1540
|
switch (errorCode) {
|
|
1541
1541
|
case "InsufficientCapacityException":
|
|
1542
1542
|
case "com.amazonaws.glacier#InsufficientCapacityException":
|
|
1543
|
-
throw await
|
|
1543
|
+
throw await de_InsufficientCapacityExceptionRes(parsedOutput, context);
|
|
1544
1544
|
case "InvalidParameterValueException":
|
|
1545
1545
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1546
|
-
throw await
|
|
1546
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1547
1547
|
case "MissingParameterValueException":
|
|
1548
1548
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1549
|
-
throw await
|
|
1549
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1550
1550
|
case "PolicyEnforcedException":
|
|
1551
1551
|
case "com.amazonaws.glacier#PolicyEnforcedException":
|
|
1552
|
-
throw await
|
|
1552
|
+
throw await de_PolicyEnforcedExceptionRes(parsedOutput, context);
|
|
1553
1553
|
case "ResourceNotFoundException":
|
|
1554
1554
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1555
|
-
throw await
|
|
1555
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1556
1556
|
case "ServiceUnavailableException":
|
|
1557
1557
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1558
|
-
throw await
|
|
1558
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1559
1559
|
default:
|
|
1560
1560
|
const parsedBody = parsedOutput.body;
|
|
1561
1561
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1566,9 +1566,9 @@ const deserializeAws_restJson1InitiateJobCommandError = async (output, context)
|
|
|
1566
1566
|
});
|
|
1567
1567
|
}
|
|
1568
1568
|
};
|
|
1569
|
-
const
|
|
1569
|
+
const de_InitiateMultipartUploadCommand = async (output, context) => {
|
|
1570
1570
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1571
|
-
return
|
|
1571
|
+
return de_InitiateMultipartUploadCommandError(output, context);
|
|
1572
1572
|
}
|
|
1573
1573
|
const contents = map({
|
|
1574
1574
|
$metadata: deserializeMetadata(output),
|
|
@@ -1578,8 +1578,8 @@ const deserializeAws_restJson1InitiateMultipartUploadCommand = async (output, co
|
|
|
1578
1578
|
await collectBody(output.body, context);
|
|
1579
1579
|
return contents;
|
|
1580
1580
|
};
|
|
1581
|
-
exports.
|
|
1582
|
-
const
|
|
1581
|
+
exports.de_InitiateMultipartUploadCommand = de_InitiateMultipartUploadCommand;
|
|
1582
|
+
const de_InitiateMultipartUploadCommandError = async (output, context) => {
|
|
1583
1583
|
const parsedOutput = {
|
|
1584
1584
|
...output,
|
|
1585
1585
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1588,16 +1588,16 @@ const deserializeAws_restJson1InitiateMultipartUploadCommandError = async (outpu
|
|
|
1588
1588
|
switch (errorCode) {
|
|
1589
1589
|
case "InvalidParameterValueException":
|
|
1590
1590
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1591
|
-
throw await
|
|
1591
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1592
1592
|
case "MissingParameterValueException":
|
|
1593
1593
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1594
|
-
throw await
|
|
1594
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1595
1595
|
case "ResourceNotFoundException":
|
|
1596
1596
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1597
|
-
throw await
|
|
1597
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1598
1598
|
case "ServiceUnavailableException":
|
|
1599
1599
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1600
|
-
throw await
|
|
1600
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1601
1601
|
default:
|
|
1602
1602
|
const parsedBody = parsedOutput.body;
|
|
1603
1603
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1608,9 +1608,9 @@ const deserializeAws_restJson1InitiateMultipartUploadCommandError = async (outpu
|
|
|
1608
1608
|
});
|
|
1609
1609
|
}
|
|
1610
1610
|
};
|
|
1611
|
-
const
|
|
1611
|
+
const de_InitiateVaultLockCommand = async (output, context) => {
|
|
1612
1612
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1613
|
-
return
|
|
1613
|
+
return de_InitiateVaultLockCommandError(output, context);
|
|
1614
1614
|
}
|
|
1615
1615
|
const contents = map({
|
|
1616
1616
|
$metadata: deserializeMetadata(output),
|
|
@@ -1619,8 +1619,8 @@ const deserializeAws_restJson1InitiateVaultLockCommand = async (output, context)
|
|
|
1619
1619
|
await collectBody(output.body, context);
|
|
1620
1620
|
return contents;
|
|
1621
1621
|
};
|
|
1622
|
-
exports.
|
|
1623
|
-
const
|
|
1622
|
+
exports.de_InitiateVaultLockCommand = de_InitiateVaultLockCommand;
|
|
1623
|
+
const de_InitiateVaultLockCommandError = async (output, context) => {
|
|
1624
1624
|
const parsedOutput = {
|
|
1625
1625
|
...output,
|
|
1626
1626
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1629,16 +1629,16 @@ const deserializeAws_restJson1InitiateVaultLockCommandError = async (output, con
|
|
|
1629
1629
|
switch (errorCode) {
|
|
1630
1630
|
case "InvalidParameterValueException":
|
|
1631
1631
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1632
|
-
throw await
|
|
1632
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1633
1633
|
case "MissingParameterValueException":
|
|
1634
1634
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1635
|
-
throw await
|
|
1635
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1636
1636
|
case "ResourceNotFoundException":
|
|
1637
1637
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1638
|
-
throw await
|
|
1638
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1639
1639
|
case "ServiceUnavailableException":
|
|
1640
1640
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1641
|
-
throw await
|
|
1641
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1642
1642
|
default:
|
|
1643
1643
|
const parsedBody = parsedOutput.body;
|
|
1644
1644
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1649,24 +1649,24 @@ const deserializeAws_restJson1InitiateVaultLockCommandError = async (output, con
|
|
|
1649
1649
|
});
|
|
1650
1650
|
}
|
|
1651
1651
|
};
|
|
1652
|
-
const
|
|
1652
|
+
const de_ListJobsCommand = async (output, context) => {
|
|
1653
1653
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1654
|
-
return
|
|
1654
|
+
return de_ListJobsCommandError(output, context);
|
|
1655
1655
|
}
|
|
1656
1656
|
const contents = map({
|
|
1657
1657
|
$metadata: deserializeMetadata(output),
|
|
1658
1658
|
});
|
|
1659
1659
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1660
1660
|
if (data.JobList != null) {
|
|
1661
|
-
contents.JobList =
|
|
1661
|
+
contents.JobList = de_JobList(data.JobList, context);
|
|
1662
1662
|
}
|
|
1663
1663
|
if (data.Marker != null) {
|
|
1664
1664
|
contents.Marker = (0, smithy_client_1.expectString)(data.Marker);
|
|
1665
1665
|
}
|
|
1666
1666
|
return contents;
|
|
1667
1667
|
};
|
|
1668
|
-
exports.
|
|
1669
|
-
const
|
|
1668
|
+
exports.de_ListJobsCommand = de_ListJobsCommand;
|
|
1669
|
+
const de_ListJobsCommandError = async (output, context) => {
|
|
1670
1670
|
const parsedOutput = {
|
|
1671
1671
|
...output,
|
|
1672
1672
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1675,16 +1675,16 @@ const deserializeAws_restJson1ListJobsCommandError = async (output, context) =>
|
|
|
1675
1675
|
switch (errorCode) {
|
|
1676
1676
|
case "InvalidParameterValueException":
|
|
1677
1677
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1678
|
-
throw await
|
|
1678
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1679
1679
|
case "MissingParameterValueException":
|
|
1680
1680
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1681
|
-
throw await
|
|
1681
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1682
1682
|
case "ResourceNotFoundException":
|
|
1683
1683
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1684
|
-
throw await
|
|
1684
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1685
1685
|
case "ServiceUnavailableException":
|
|
1686
1686
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1687
|
-
throw await
|
|
1687
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1688
1688
|
default:
|
|
1689
1689
|
const parsedBody = parsedOutput.body;
|
|
1690
1690
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1695,9 +1695,9 @@ const deserializeAws_restJson1ListJobsCommandError = async (output, context) =>
|
|
|
1695
1695
|
});
|
|
1696
1696
|
}
|
|
1697
1697
|
};
|
|
1698
|
-
const
|
|
1698
|
+
const de_ListMultipartUploadsCommand = async (output, context) => {
|
|
1699
1699
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1700
|
-
return
|
|
1700
|
+
return de_ListMultipartUploadsCommandError(output, context);
|
|
1701
1701
|
}
|
|
1702
1702
|
const contents = map({
|
|
1703
1703
|
$metadata: deserializeMetadata(output),
|
|
@@ -1707,12 +1707,12 @@ const deserializeAws_restJson1ListMultipartUploadsCommand = async (output, conte
|
|
|
1707
1707
|
contents.Marker = (0, smithy_client_1.expectString)(data.Marker);
|
|
1708
1708
|
}
|
|
1709
1709
|
if (data.UploadsList != null) {
|
|
1710
|
-
contents.UploadsList =
|
|
1710
|
+
contents.UploadsList = de_UploadsList(data.UploadsList, context);
|
|
1711
1711
|
}
|
|
1712
1712
|
return contents;
|
|
1713
1713
|
};
|
|
1714
|
-
exports.
|
|
1715
|
-
const
|
|
1714
|
+
exports.de_ListMultipartUploadsCommand = de_ListMultipartUploadsCommand;
|
|
1715
|
+
const de_ListMultipartUploadsCommandError = async (output, context) => {
|
|
1716
1716
|
const parsedOutput = {
|
|
1717
1717
|
...output,
|
|
1718
1718
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1721,16 +1721,16 @@ const deserializeAws_restJson1ListMultipartUploadsCommandError = async (output,
|
|
|
1721
1721
|
switch (errorCode) {
|
|
1722
1722
|
case "InvalidParameterValueException":
|
|
1723
1723
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1724
|
-
throw await
|
|
1724
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1725
1725
|
case "MissingParameterValueException":
|
|
1726
1726
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1727
|
-
throw await
|
|
1727
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1728
1728
|
case "ResourceNotFoundException":
|
|
1729
1729
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1730
|
-
throw await
|
|
1730
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1731
1731
|
case "ServiceUnavailableException":
|
|
1732
1732
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1733
|
-
throw await
|
|
1733
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1734
1734
|
default:
|
|
1735
1735
|
const parsedBody = parsedOutput.body;
|
|
1736
1736
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1741,9 +1741,9 @@ const deserializeAws_restJson1ListMultipartUploadsCommandError = async (output,
|
|
|
1741
1741
|
});
|
|
1742
1742
|
}
|
|
1743
1743
|
};
|
|
1744
|
-
const
|
|
1744
|
+
const de_ListPartsCommand = async (output, context) => {
|
|
1745
1745
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1746
|
-
return
|
|
1746
|
+
return de_ListPartsCommandError(output, context);
|
|
1747
1747
|
}
|
|
1748
1748
|
const contents = map({
|
|
1749
1749
|
$metadata: deserializeMetadata(output),
|
|
@@ -1765,15 +1765,15 @@ const deserializeAws_restJson1ListPartsCommand = async (output, context) => {
|
|
|
1765
1765
|
contents.PartSizeInBytes = (0, smithy_client_1.expectLong)(data.PartSizeInBytes);
|
|
1766
1766
|
}
|
|
1767
1767
|
if (data.Parts != null) {
|
|
1768
|
-
contents.Parts =
|
|
1768
|
+
contents.Parts = de_PartList(data.Parts, context);
|
|
1769
1769
|
}
|
|
1770
1770
|
if (data.VaultARN != null) {
|
|
1771
1771
|
contents.VaultARN = (0, smithy_client_1.expectString)(data.VaultARN);
|
|
1772
1772
|
}
|
|
1773
1773
|
return contents;
|
|
1774
1774
|
};
|
|
1775
|
-
exports.
|
|
1776
|
-
const
|
|
1775
|
+
exports.de_ListPartsCommand = de_ListPartsCommand;
|
|
1776
|
+
const de_ListPartsCommandError = async (output, context) => {
|
|
1777
1777
|
const parsedOutput = {
|
|
1778
1778
|
...output,
|
|
1779
1779
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1782,16 +1782,16 @@ const deserializeAws_restJson1ListPartsCommandError = async (output, context) =>
|
|
|
1782
1782
|
switch (errorCode) {
|
|
1783
1783
|
case "InvalidParameterValueException":
|
|
1784
1784
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1785
|
-
throw await
|
|
1785
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1786
1786
|
case "MissingParameterValueException":
|
|
1787
1787
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1788
|
-
throw await
|
|
1788
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1789
1789
|
case "ResourceNotFoundException":
|
|
1790
1790
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1791
|
-
throw await
|
|
1791
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1792
1792
|
case "ServiceUnavailableException":
|
|
1793
1793
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1794
|
-
throw await
|
|
1794
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1795
1795
|
default:
|
|
1796
1796
|
const parsedBody = parsedOutput.body;
|
|
1797
1797
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1802,21 +1802,21 @@ const deserializeAws_restJson1ListPartsCommandError = async (output, context) =>
|
|
|
1802
1802
|
});
|
|
1803
1803
|
}
|
|
1804
1804
|
};
|
|
1805
|
-
const
|
|
1805
|
+
const de_ListProvisionedCapacityCommand = async (output, context) => {
|
|
1806
1806
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1807
|
-
return
|
|
1807
|
+
return de_ListProvisionedCapacityCommandError(output, context);
|
|
1808
1808
|
}
|
|
1809
1809
|
const contents = map({
|
|
1810
1810
|
$metadata: deserializeMetadata(output),
|
|
1811
1811
|
});
|
|
1812
1812
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1813
1813
|
if (data.ProvisionedCapacityList != null) {
|
|
1814
|
-
contents.ProvisionedCapacityList =
|
|
1814
|
+
contents.ProvisionedCapacityList = de_ProvisionedCapacityList(data.ProvisionedCapacityList, context);
|
|
1815
1815
|
}
|
|
1816
1816
|
return contents;
|
|
1817
1817
|
};
|
|
1818
|
-
exports.
|
|
1819
|
-
const
|
|
1818
|
+
exports.de_ListProvisionedCapacityCommand = de_ListProvisionedCapacityCommand;
|
|
1819
|
+
const de_ListProvisionedCapacityCommandError = async (output, context) => {
|
|
1820
1820
|
const parsedOutput = {
|
|
1821
1821
|
...output,
|
|
1822
1822
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1825,13 +1825,13 @@ const deserializeAws_restJson1ListProvisionedCapacityCommandError = async (outpu
|
|
|
1825
1825
|
switch (errorCode) {
|
|
1826
1826
|
case "InvalidParameterValueException":
|
|
1827
1827
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1828
|
-
throw await
|
|
1828
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1829
1829
|
case "MissingParameterValueException":
|
|
1830
1830
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1831
|
-
throw await
|
|
1831
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1832
1832
|
case "ServiceUnavailableException":
|
|
1833
1833
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1834
|
-
throw await
|
|
1834
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1835
1835
|
default:
|
|
1836
1836
|
const parsedBody = parsedOutput.body;
|
|
1837
1837
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1842,21 +1842,21 @@ const deserializeAws_restJson1ListProvisionedCapacityCommandError = async (outpu
|
|
|
1842
1842
|
});
|
|
1843
1843
|
}
|
|
1844
1844
|
};
|
|
1845
|
-
const
|
|
1845
|
+
const de_ListTagsForVaultCommand = async (output, context) => {
|
|
1846
1846
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1847
|
-
return
|
|
1847
|
+
return de_ListTagsForVaultCommandError(output, context);
|
|
1848
1848
|
}
|
|
1849
1849
|
const contents = map({
|
|
1850
1850
|
$metadata: deserializeMetadata(output),
|
|
1851
1851
|
});
|
|
1852
1852
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1853
1853
|
if (data.Tags != null) {
|
|
1854
|
-
contents.Tags =
|
|
1854
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
1855
1855
|
}
|
|
1856
1856
|
return contents;
|
|
1857
1857
|
};
|
|
1858
|
-
exports.
|
|
1859
|
-
const
|
|
1858
|
+
exports.de_ListTagsForVaultCommand = de_ListTagsForVaultCommand;
|
|
1859
|
+
const de_ListTagsForVaultCommandError = async (output, context) => {
|
|
1860
1860
|
const parsedOutput = {
|
|
1861
1861
|
...output,
|
|
1862
1862
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1865,16 +1865,16 @@ const deserializeAws_restJson1ListTagsForVaultCommandError = async (output, cont
|
|
|
1865
1865
|
switch (errorCode) {
|
|
1866
1866
|
case "InvalidParameterValueException":
|
|
1867
1867
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1868
|
-
throw await
|
|
1868
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1869
1869
|
case "MissingParameterValueException":
|
|
1870
1870
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1871
|
-
throw await
|
|
1871
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1872
1872
|
case "ResourceNotFoundException":
|
|
1873
1873
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1874
|
-
throw await
|
|
1874
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1875
1875
|
case "ServiceUnavailableException":
|
|
1876
1876
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1877
|
-
throw await
|
|
1877
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1878
1878
|
default:
|
|
1879
1879
|
const parsedBody = parsedOutput.body;
|
|
1880
1880
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1885,9 +1885,9 @@ const deserializeAws_restJson1ListTagsForVaultCommandError = async (output, cont
|
|
|
1885
1885
|
});
|
|
1886
1886
|
}
|
|
1887
1887
|
};
|
|
1888
|
-
const
|
|
1888
|
+
const de_ListVaultsCommand = async (output, context) => {
|
|
1889
1889
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1890
|
-
return
|
|
1890
|
+
return de_ListVaultsCommandError(output, context);
|
|
1891
1891
|
}
|
|
1892
1892
|
const contents = map({
|
|
1893
1893
|
$metadata: deserializeMetadata(output),
|
|
@@ -1897,12 +1897,12 @@ const deserializeAws_restJson1ListVaultsCommand = async (output, context) => {
|
|
|
1897
1897
|
contents.Marker = (0, smithy_client_1.expectString)(data.Marker);
|
|
1898
1898
|
}
|
|
1899
1899
|
if (data.VaultList != null) {
|
|
1900
|
-
contents.VaultList =
|
|
1900
|
+
contents.VaultList = de_VaultList(data.VaultList, context);
|
|
1901
1901
|
}
|
|
1902
1902
|
return contents;
|
|
1903
1903
|
};
|
|
1904
|
-
exports.
|
|
1905
|
-
const
|
|
1904
|
+
exports.de_ListVaultsCommand = de_ListVaultsCommand;
|
|
1905
|
+
const de_ListVaultsCommandError = async (output, context) => {
|
|
1906
1906
|
const parsedOutput = {
|
|
1907
1907
|
...output,
|
|
1908
1908
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1911,16 +1911,16 @@ const deserializeAws_restJson1ListVaultsCommandError = async (output, context) =
|
|
|
1911
1911
|
switch (errorCode) {
|
|
1912
1912
|
case "InvalidParameterValueException":
|
|
1913
1913
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1914
|
-
throw await
|
|
1914
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1915
1915
|
case "MissingParameterValueException":
|
|
1916
1916
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1917
|
-
throw await
|
|
1917
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1918
1918
|
case "ResourceNotFoundException":
|
|
1919
1919
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
1920
|
-
throw await
|
|
1920
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1921
1921
|
case "ServiceUnavailableException":
|
|
1922
1922
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1923
|
-
throw await
|
|
1923
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1924
1924
|
default:
|
|
1925
1925
|
const parsedBody = parsedOutput.body;
|
|
1926
1926
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1931,9 +1931,9 @@ const deserializeAws_restJson1ListVaultsCommandError = async (output, context) =
|
|
|
1931
1931
|
});
|
|
1932
1932
|
}
|
|
1933
1933
|
};
|
|
1934
|
-
const
|
|
1934
|
+
const de_PurchaseProvisionedCapacityCommand = async (output, context) => {
|
|
1935
1935
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1936
|
-
return
|
|
1936
|
+
return de_PurchaseProvisionedCapacityCommandError(output, context);
|
|
1937
1937
|
}
|
|
1938
1938
|
const contents = map({
|
|
1939
1939
|
$metadata: deserializeMetadata(output),
|
|
@@ -1942,8 +1942,8 @@ const deserializeAws_restJson1PurchaseProvisionedCapacityCommand = async (output
|
|
|
1942
1942
|
await collectBody(output.body, context);
|
|
1943
1943
|
return contents;
|
|
1944
1944
|
};
|
|
1945
|
-
exports.
|
|
1946
|
-
const
|
|
1945
|
+
exports.de_PurchaseProvisionedCapacityCommand = de_PurchaseProvisionedCapacityCommand;
|
|
1946
|
+
const de_PurchaseProvisionedCapacityCommandError = async (output, context) => {
|
|
1947
1947
|
const parsedOutput = {
|
|
1948
1948
|
...output,
|
|
1949
1949
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1952,16 +1952,16 @@ const deserializeAws_restJson1PurchaseProvisionedCapacityCommandError = async (o
|
|
|
1952
1952
|
switch (errorCode) {
|
|
1953
1953
|
case "InvalidParameterValueException":
|
|
1954
1954
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1955
|
-
throw await
|
|
1955
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1956
1956
|
case "LimitExceededException":
|
|
1957
1957
|
case "com.amazonaws.glacier#LimitExceededException":
|
|
1958
|
-
throw await
|
|
1958
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1959
1959
|
case "MissingParameterValueException":
|
|
1960
1960
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1961
|
-
throw await
|
|
1961
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1962
1962
|
case "ServiceUnavailableException":
|
|
1963
1963
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
1964
|
-
throw await
|
|
1964
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1965
1965
|
default:
|
|
1966
1966
|
const parsedBody = parsedOutput.body;
|
|
1967
1967
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1972,9 +1972,9 @@ const deserializeAws_restJson1PurchaseProvisionedCapacityCommandError = async (o
|
|
|
1972
1972
|
});
|
|
1973
1973
|
}
|
|
1974
1974
|
};
|
|
1975
|
-
const
|
|
1975
|
+
const de_RemoveTagsFromVaultCommand = async (output, context) => {
|
|
1976
1976
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1977
|
-
return
|
|
1977
|
+
return de_RemoveTagsFromVaultCommandError(output, context);
|
|
1978
1978
|
}
|
|
1979
1979
|
const contents = map({
|
|
1980
1980
|
$metadata: deserializeMetadata(output),
|
|
@@ -1982,8 +1982,8 @@ const deserializeAws_restJson1RemoveTagsFromVaultCommand = async (output, contex
|
|
|
1982
1982
|
await collectBody(output.body, context);
|
|
1983
1983
|
return contents;
|
|
1984
1984
|
};
|
|
1985
|
-
exports.
|
|
1986
|
-
const
|
|
1985
|
+
exports.de_RemoveTagsFromVaultCommand = de_RemoveTagsFromVaultCommand;
|
|
1986
|
+
const de_RemoveTagsFromVaultCommandError = async (output, context) => {
|
|
1987
1987
|
const parsedOutput = {
|
|
1988
1988
|
...output,
|
|
1989
1989
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1992,16 +1992,16 @@ const deserializeAws_restJson1RemoveTagsFromVaultCommandError = async (output, c
|
|
|
1992
1992
|
switch (errorCode) {
|
|
1993
1993
|
case "InvalidParameterValueException":
|
|
1994
1994
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
1995
|
-
throw await
|
|
1995
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1996
1996
|
case "MissingParameterValueException":
|
|
1997
1997
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
1998
|
-
throw await
|
|
1998
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1999
1999
|
case "ResourceNotFoundException":
|
|
2000
2000
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
2001
|
-
throw await
|
|
2001
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2002
2002
|
case "ServiceUnavailableException":
|
|
2003
2003
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
2004
|
-
throw await
|
|
2004
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2005
2005
|
default:
|
|
2006
2006
|
const parsedBody = parsedOutput.body;
|
|
2007
2007
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2012,9 +2012,9 @@ const deserializeAws_restJson1RemoveTagsFromVaultCommandError = async (output, c
|
|
|
2012
2012
|
});
|
|
2013
2013
|
}
|
|
2014
2014
|
};
|
|
2015
|
-
const
|
|
2015
|
+
const de_SetDataRetrievalPolicyCommand = async (output, context) => {
|
|
2016
2016
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2017
|
-
return
|
|
2017
|
+
return de_SetDataRetrievalPolicyCommandError(output, context);
|
|
2018
2018
|
}
|
|
2019
2019
|
const contents = map({
|
|
2020
2020
|
$metadata: deserializeMetadata(output),
|
|
@@ -2022,8 +2022,8 @@ const deserializeAws_restJson1SetDataRetrievalPolicyCommand = async (output, con
|
|
|
2022
2022
|
await collectBody(output.body, context);
|
|
2023
2023
|
return contents;
|
|
2024
2024
|
};
|
|
2025
|
-
exports.
|
|
2026
|
-
const
|
|
2025
|
+
exports.de_SetDataRetrievalPolicyCommand = de_SetDataRetrievalPolicyCommand;
|
|
2026
|
+
const de_SetDataRetrievalPolicyCommandError = async (output, context) => {
|
|
2027
2027
|
const parsedOutput = {
|
|
2028
2028
|
...output,
|
|
2029
2029
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2032,13 +2032,13 @@ const deserializeAws_restJson1SetDataRetrievalPolicyCommandError = async (output
|
|
|
2032
2032
|
switch (errorCode) {
|
|
2033
2033
|
case "InvalidParameterValueException":
|
|
2034
2034
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
2035
|
-
throw await
|
|
2035
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2036
2036
|
case "MissingParameterValueException":
|
|
2037
2037
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
2038
|
-
throw await
|
|
2038
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2039
2039
|
case "ServiceUnavailableException":
|
|
2040
2040
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
2041
|
-
throw await
|
|
2041
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2042
2042
|
default:
|
|
2043
2043
|
const parsedBody = parsedOutput.body;
|
|
2044
2044
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2049,9 +2049,9 @@ const deserializeAws_restJson1SetDataRetrievalPolicyCommandError = async (output
|
|
|
2049
2049
|
});
|
|
2050
2050
|
}
|
|
2051
2051
|
};
|
|
2052
|
-
const
|
|
2052
|
+
const de_SetVaultAccessPolicyCommand = async (output, context) => {
|
|
2053
2053
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2054
|
-
return
|
|
2054
|
+
return de_SetVaultAccessPolicyCommandError(output, context);
|
|
2055
2055
|
}
|
|
2056
2056
|
const contents = map({
|
|
2057
2057
|
$metadata: deserializeMetadata(output),
|
|
@@ -2059,8 +2059,8 @@ const deserializeAws_restJson1SetVaultAccessPolicyCommand = async (output, conte
|
|
|
2059
2059
|
await collectBody(output.body, context);
|
|
2060
2060
|
return contents;
|
|
2061
2061
|
};
|
|
2062
|
-
exports.
|
|
2063
|
-
const
|
|
2062
|
+
exports.de_SetVaultAccessPolicyCommand = de_SetVaultAccessPolicyCommand;
|
|
2063
|
+
const de_SetVaultAccessPolicyCommandError = async (output, context) => {
|
|
2064
2064
|
const parsedOutput = {
|
|
2065
2065
|
...output,
|
|
2066
2066
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2069,16 +2069,16 @@ const deserializeAws_restJson1SetVaultAccessPolicyCommandError = async (output,
|
|
|
2069
2069
|
switch (errorCode) {
|
|
2070
2070
|
case "InvalidParameterValueException":
|
|
2071
2071
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
2072
|
-
throw await
|
|
2072
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2073
2073
|
case "MissingParameterValueException":
|
|
2074
2074
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
2075
|
-
throw await
|
|
2075
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2076
2076
|
case "ResourceNotFoundException":
|
|
2077
2077
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
2078
|
-
throw await
|
|
2078
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2079
2079
|
case "ServiceUnavailableException":
|
|
2080
2080
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
2081
|
-
throw await
|
|
2081
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2082
2082
|
default:
|
|
2083
2083
|
const parsedBody = parsedOutput.body;
|
|
2084
2084
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2089,9 +2089,9 @@ const deserializeAws_restJson1SetVaultAccessPolicyCommandError = async (output,
|
|
|
2089
2089
|
});
|
|
2090
2090
|
}
|
|
2091
2091
|
};
|
|
2092
|
-
const
|
|
2092
|
+
const de_SetVaultNotificationsCommand = async (output, context) => {
|
|
2093
2093
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2094
|
-
return
|
|
2094
|
+
return de_SetVaultNotificationsCommandError(output, context);
|
|
2095
2095
|
}
|
|
2096
2096
|
const contents = map({
|
|
2097
2097
|
$metadata: deserializeMetadata(output),
|
|
@@ -2099,8 +2099,8 @@ const deserializeAws_restJson1SetVaultNotificationsCommand = async (output, cont
|
|
|
2099
2099
|
await collectBody(output.body, context);
|
|
2100
2100
|
return contents;
|
|
2101
2101
|
};
|
|
2102
|
-
exports.
|
|
2103
|
-
const
|
|
2102
|
+
exports.de_SetVaultNotificationsCommand = de_SetVaultNotificationsCommand;
|
|
2103
|
+
const de_SetVaultNotificationsCommandError = async (output, context) => {
|
|
2104
2104
|
const parsedOutput = {
|
|
2105
2105
|
...output,
|
|
2106
2106
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2109,16 +2109,16 @@ const deserializeAws_restJson1SetVaultNotificationsCommandError = async (output,
|
|
|
2109
2109
|
switch (errorCode) {
|
|
2110
2110
|
case "InvalidParameterValueException":
|
|
2111
2111
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
2112
|
-
throw await
|
|
2112
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2113
2113
|
case "MissingParameterValueException":
|
|
2114
2114
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
2115
|
-
throw await
|
|
2115
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2116
2116
|
case "ResourceNotFoundException":
|
|
2117
2117
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
2118
|
-
throw await
|
|
2118
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2119
2119
|
case "ServiceUnavailableException":
|
|
2120
2120
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
2121
|
-
throw await
|
|
2121
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2122
2122
|
default:
|
|
2123
2123
|
const parsedBody = parsedOutput.body;
|
|
2124
2124
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2129,9 +2129,9 @@ const deserializeAws_restJson1SetVaultNotificationsCommandError = async (output,
|
|
|
2129
2129
|
});
|
|
2130
2130
|
}
|
|
2131
2131
|
};
|
|
2132
|
-
const
|
|
2132
|
+
const de_UploadArchiveCommand = async (output, context) => {
|
|
2133
2133
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2134
|
-
return
|
|
2134
|
+
return de_UploadArchiveCommandError(output, context);
|
|
2135
2135
|
}
|
|
2136
2136
|
const contents = map({
|
|
2137
2137
|
$metadata: deserializeMetadata(output),
|
|
@@ -2142,8 +2142,8 @@ const deserializeAws_restJson1UploadArchiveCommand = async (output, context) =>
|
|
|
2142
2142
|
await collectBody(output.body, context);
|
|
2143
2143
|
return contents;
|
|
2144
2144
|
};
|
|
2145
|
-
exports.
|
|
2146
|
-
const
|
|
2145
|
+
exports.de_UploadArchiveCommand = de_UploadArchiveCommand;
|
|
2146
|
+
const de_UploadArchiveCommandError = async (output, context) => {
|
|
2147
2147
|
const parsedOutput = {
|
|
2148
2148
|
...output,
|
|
2149
2149
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2152,19 +2152,19 @@ const deserializeAws_restJson1UploadArchiveCommandError = async (output, context
|
|
|
2152
2152
|
switch (errorCode) {
|
|
2153
2153
|
case "InvalidParameterValueException":
|
|
2154
2154
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
2155
|
-
throw await
|
|
2155
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2156
2156
|
case "MissingParameterValueException":
|
|
2157
2157
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
2158
|
-
throw await
|
|
2158
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2159
2159
|
case "RequestTimeoutException":
|
|
2160
2160
|
case "com.amazonaws.glacier#RequestTimeoutException":
|
|
2161
|
-
throw await
|
|
2161
|
+
throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
|
|
2162
2162
|
case "ResourceNotFoundException":
|
|
2163
2163
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
2164
|
-
throw await
|
|
2164
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2165
2165
|
case "ServiceUnavailableException":
|
|
2166
2166
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
2167
|
-
throw await
|
|
2167
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2168
2168
|
default:
|
|
2169
2169
|
const parsedBody = parsedOutput.body;
|
|
2170
2170
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2175,9 +2175,9 @@ const deserializeAws_restJson1UploadArchiveCommandError = async (output, context
|
|
|
2175
2175
|
});
|
|
2176
2176
|
}
|
|
2177
2177
|
};
|
|
2178
|
-
const
|
|
2178
|
+
const de_UploadMultipartPartCommand = async (output, context) => {
|
|
2179
2179
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2180
|
-
return
|
|
2180
|
+
return de_UploadMultipartPartCommandError(output, context);
|
|
2181
2181
|
}
|
|
2182
2182
|
const contents = map({
|
|
2183
2183
|
$metadata: deserializeMetadata(output),
|
|
@@ -2186,8 +2186,8 @@ const deserializeAws_restJson1UploadMultipartPartCommand = async (output, contex
|
|
|
2186
2186
|
await collectBody(output.body, context);
|
|
2187
2187
|
return contents;
|
|
2188
2188
|
};
|
|
2189
|
-
exports.
|
|
2190
|
-
const
|
|
2189
|
+
exports.de_UploadMultipartPartCommand = de_UploadMultipartPartCommand;
|
|
2190
|
+
const de_UploadMultipartPartCommandError = async (output, context) => {
|
|
2191
2191
|
const parsedOutput = {
|
|
2192
2192
|
...output,
|
|
2193
2193
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2196,19 +2196,19 @@ const deserializeAws_restJson1UploadMultipartPartCommandError = async (output, c
|
|
|
2196
2196
|
switch (errorCode) {
|
|
2197
2197
|
case "InvalidParameterValueException":
|
|
2198
2198
|
case "com.amazonaws.glacier#InvalidParameterValueException":
|
|
2199
|
-
throw await
|
|
2199
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2200
2200
|
case "MissingParameterValueException":
|
|
2201
2201
|
case "com.amazonaws.glacier#MissingParameterValueException":
|
|
2202
|
-
throw await
|
|
2202
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2203
2203
|
case "RequestTimeoutException":
|
|
2204
2204
|
case "com.amazonaws.glacier#RequestTimeoutException":
|
|
2205
|
-
throw await
|
|
2205
|
+
throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
|
|
2206
2206
|
case "ResourceNotFoundException":
|
|
2207
2207
|
case "com.amazonaws.glacier#ResourceNotFoundException":
|
|
2208
|
-
throw await
|
|
2208
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2209
2209
|
case "ServiceUnavailableException":
|
|
2210
2210
|
case "com.amazonaws.glacier#ServiceUnavailableException":
|
|
2211
|
-
throw await
|
|
2211
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2212
2212
|
default:
|
|
2213
2213
|
const parsedBody = parsedOutput.body;
|
|
2214
2214
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2220,7 +2220,7 @@ const deserializeAws_restJson1UploadMultipartPartCommandError = async (output, c
|
|
|
2220
2220
|
}
|
|
2221
2221
|
};
|
|
2222
2222
|
const map = smithy_client_1.map;
|
|
2223
|
-
const
|
|
2223
|
+
const de_InsufficientCapacityExceptionRes = async (parsedOutput, context) => {
|
|
2224
2224
|
const contents = map({});
|
|
2225
2225
|
const data = parsedOutput.body;
|
|
2226
2226
|
if (data.code != null) {
|
|
@@ -2238,7 +2238,7 @@ const deserializeAws_restJson1InsufficientCapacityExceptionResponse = async (par
|
|
|
2238
2238
|
});
|
|
2239
2239
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2240
2240
|
};
|
|
2241
|
-
const
|
|
2241
|
+
const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
|
|
2242
2242
|
const contents = map({});
|
|
2243
2243
|
const data = parsedOutput.body;
|
|
2244
2244
|
if (data.code != null) {
|
|
@@ -2256,7 +2256,7 @@ const deserializeAws_restJson1InvalidParameterValueExceptionResponse = async (pa
|
|
|
2256
2256
|
});
|
|
2257
2257
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2258
2258
|
};
|
|
2259
|
-
const
|
|
2259
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2260
2260
|
const contents = map({});
|
|
2261
2261
|
const data = parsedOutput.body;
|
|
2262
2262
|
if (data.code != null) {
|
|
@@ -2274,7 +2274,7 @@ const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutp
|
|
|
2274
2274
|
});
|
|
2275
2275
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2276
2276
|
};
|
|
2277
|
-
const
|
|
2277
|
+
const de_MissingParameterValueExceptionRes = async (parsedOutput, context) => {
|
|
2278
2278
|
const contents = map({});
|
|
2279
2279
|
const data = parsedOutput.body;
|
|
2280
2280
|
if (data.code != null) {
|
|
@@ -2292,7 +2292,7 @@ const deserializeAws_restJson1MissingParameterValueExceptionResponse = async (pa
|
|
|
2292
2292
|
});
|
|
2293
2293
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2294
2294
|
};
|
|
2295
|
-
const
|
|
2295
|
+
const de_PolicyEnforcedExceptionRes = async (parsedOutput, context) => {
|
|
2296
2296
|
const contents = map({});
|
|
2297
2297
|
const data = parsedOutput.body;
|
|
2298
2298
|
if (data.code != null) {
|
|
@@ -2310,7 +2310,7 @@ const deserializeAws_restJson1PolicyEnforcedExceptionResponse = async (parsedOut
|
|
|
2310
2310
|
});
|
|
2311
2311
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2312
2312
|
};
|
|
2313
|
-
const
|
|
2313
|
+
const de_RequestTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
2314
2314
|
const contents = map({});
|
|
2315
2315
|
const data = parsedOutput.body;
|
|
2316
2316
|
if (data.code != null) {
|
|
@@ -2328,7 +2328,7 @@ const deserializeAws_restJson1RequestTimeoutExceptionResponse = async (parsedOut
|
|
|
2328
2328
|
});
|
|
2329
2329
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2330
2330
|
};
|
|
2331
|
-
const
|
|
2331
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2332
2332
|
const contents = map({});
|
|
2333
2333
|
const data = parsedOutput.body;
|
|
2334
2334
|
if (data.code != null) {
|
|
@@ -2346,7 +2346,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
2346
2346
|
});
|
|
2347
2347
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2348
2348
|
};
|
|
2349
|
-
const
|
|
2349
|
+
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
2350
2350
|
const contents = map({});
|
|
2351
2351
|
const data = parsedOutput.body;
|
|
2352
2352
|
if (data.code != null) {
|
|
@@ -2364,14 +2364,14 @@ const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parse
|
|
|
2364
2364
|
});
|
|
2365
2365
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2366
2366
|
};
|
|
2367
|
-
const
|
|
2367
|
+
const se_AccessControlPolicyList = (input, context) => {
|
|
2368
2368
|
return input
|
|
2369
2369
|
.filter((e) => e != null)
|
|
2370
2370
|
.map((entry) => {
|
|
2371
|
-
return
|
|
2371
|
+
return se_Grant(entry, context);
|
|
2372
2372
|
});
|
|
2373
2373
|
};
|
|
2374
|
-
const
|
|
2374
|
+
const se_CSVInput = (input, context) => {
|
|
2375
2375
|
return {
|
|
2376
2376
|
...(input.Comments != null && { Comments: input.Comments }),
|
|
2377
2377
|
...(input.FieldDelimiter != null && { FieldDelimiter: input.FieldDelimiter }),
|
|
@@ -2381,7 +2381,7 @@ const serializeAws_restJson1CSVInput = (input, context) => {
|
|
|
2381
2381
|
...(input.RecordDelimiter != null && { RecordDelimiter: input.RecordDelimiter }),
|
|
2382
2382
|
};
|
|
2383
2383
|
};
|
|
2384
|
-
const
|
|
2384
|
+
const se_CSVOutput = (input, context) => {
|
|
2385
2385
|
return {
|
|
2386
2386
|
...(input.FieldDelimiter != null && { FieldDelimiter: input.FieldDelimiter }),
|
|
2387
2387
|
...(input.QuoteCharacter != null && { QuoteCharacter: input.QuoteCharacter }),
|
|
@@ -2390,38 +2390,38 @@ const serializeAws_restJson1CSVOutput = (input, context) => {
|
|
|
2390
2390
|
...(input.RecordDelimiter != null && { RecordDelimiter: input.RecordDelimiter }),
|
|
2391
2391
|
};
|
|
2392
2392
|
};
|
|
2393
|
-
const
|
|
2393
|
+
const se_DataRetrievalPolicy = (input, context) => {
|
|
2394
2394
|
return {
|
|
2395
|
-
...(input.Rules != null && { Rules:
|
|
2395
|
+
...(input.Rules != null && { Rules: se_DataRetrievalRulesList(input.Rules, context) }),
|
|
2396
2396
|
};
|
|
2397
2397
|
};
|
|
2398
|
-
const
|
|
2398
|
+
const se_DataRetrievalRule = (input, context) => {
|
|
2399
2399
|
return {
|
|
2400
2400
|
...(input.BytesPerHour != null && { BytesPerHour: input.BytesPerHour }),
|
|
2401
2401
|
...(input.Strategy != null && { Strategy: input.Strategy }),
|
|
2402
2402
|
};
|
|
2403
2403
|
};
|
|
2404
|
-
const
|
|
2404
|
+
const se_DataRetrievalRulesList = (input, context) => {
|
|
2405
2405
|
return input
|
|
2406
2406
|
.filter((e) => e != null)
|
|
2407
2407
|
.map((entry) => {
|
|
2408
|
-
return
|
|
2408
|
+
return se_DataRetrievalRule(entry, context);
|
|
2409
2409
|
});
|
|
2410
2410
|
};
|
|
2411
|
-
const
|
|
2411
|
+
const se_Encryption = (input, context) => {
|
|
2412
2412
|
return {
|
|
2413
2413
|
...(input.EncryptionType != null && { EncryptionType: input.EncryptionType }),
|
|
2414
2414
|
...(input.KMSContext != null && { KMSContext: input.KMSContext }),
|
|
2415
2415
|
...(input.KMSKeyId != null && { KMSKeyId: input.KMSKeyId }),
|
|
2416
2416
|
};
|
|
2417
2417
|
};
|
|
2418
|
-
const
|
|
2418
|
+
const se_Grant = (input, context) => {
|
|
2419
2419
|
return {
|
|
2420
|
-
...(input.Grantee != null && { Grantee:
|
|
2420
|
+
...(input.Grantee != null && { Grantee: se_Grantee(input.Grantee, context) }),
|
|
2421
2421
|
...(input.Permission != null && { Permission: input.Permission }),
|
|
2422
2422
|
};
|
|
2423
2423
|
};
|
|
2424
|
-
const
|
|
2424
|
+
const se_Grantee = (input, context) => {
|
|
2425
2425
|
return {
|
|
2426
2426
|
...(input.DisplayName != null && { DisplayName: input.DisplayName }),
|
|
2427
2427
|
...(input.EmailAddress != null && { EmailAddress: input.EmailAddress }),
|
|
@@ -2430,7 +2430,7 @@ const serializeAws_restJson1Grantee = (input, context) => {
|
|
|
2430
2430
|
...(input.URI != null && { URI: input.URI }),
|
|
2431
2431
|
};
|
|
2432
2432
|
};
|
|
2433
|
-
const
|
|
2433
|
+
const se_hashmap = (input, context) => {
|
|
2434
2434
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2435
2435
|
if (value === null) {
|
|
2436
2436
|
return acc;
|
|
@@ -2439,12 +2439,12 @@ const serializeAws_restJson1hashmap = (input, context) => {
|
|
|
2439
2439
|
return acc;
|
|
2440
2440
|
}, {});
|
|
2441
2441
|
};
|
|
2442
|
-
const
|
|
2442
|
+
const se_InputSerialization = (input, context) => {
|
|
2443
2443
|
return {
|
|
2444
|
-
...(input.csv != null && { csv:
|
|
2444
|
+
...(input.csv != null && { csv: se_CSVInput(input.csv, context) }),
|
|
2445
2445
|
};
|
|
2446
2446
|
};
|
|
2447
|
-
const
|
|
2447
|
+
const se_InventoryRetrievalJobInput = (input, context) => {
|
|
2448
2448
|
return {
|
|
2449
2449
|
...(input.EndDate != null && { EndDate: input.EndDate }),
|
|
2450
2450
|
...(input.Limit != null && { Limit: input.Limit }),
|
|
@@ -2452,77 +2452,73 @@ const serializeAws_restJson1InventoryRetrievalJobInput = (input, context) => {
|
|
|
2452
2452
|
...(input.StartDate != null && { StartDate: input.StartDate }),
|
|
2453
2453
|
};
|
|
2454
2454
|
};
|
|
2455
|
-
const
|
|
2455
|
+
const se_JobParameters = (input, context) => {
|
|
2456
2456
|
return {
|
|
2457
2457
|
...(input.ArchiveId != null && { ArchiveId: input.ArchiveId }),
|
|
2458
2458
|
...(input.Description != null && { Description: input.Description }),
|
|
2459
2459
|
...(input.Format != null && { Format: input.Format }),
|
|
2460
2460
|
...(input.InventoryRetrievalParameters != null && {
|
|
2461
|
-
InventoryRetrievalParameters:
|
|
2462
|
-
}),
|
|
2463
|
-
...(input.OutputLocation != null && {
|
|
2464
|
-
OutputLocation: serializeAws_restJson1OutputLocation(input.OutputLocation, context),
|
|
2461
|
+
InventoryRetrievalParameters: se_InventoryRetrievalJobInput(input.InventoryRetrievalParameters, context),
|
|
2465
2462
|
}),
|
|
2463
|
+
...(input.OutputLocation != null && { OutputLocation: se_OutputLocation(input.OutputLocation, context) }),
|
|
2466
2464
|
...(input.RetrievalByteRange != null && { RetrievalByteRange: input.RetrievalByteRange }),
|
|
2467
2465
|
...(input.SNSTopic != null && { SNSTopic: input.SNSTopic }),
|
|
2468
|
-
...(input.SelectParameters != null && {
|
|
2469
|
-
SelectParameters: serializeAws_restJson1SelectParameters(input.SelectParameters, context),
|
|
2470
|
-
}),
|
|
2466
|
+
...(input.SelectParameters != null && { SelectParameters: se_SelectParameters(input.SelectParameters, context) }),
|
|
2471
2467
|
...(input.Tier != null && { Tier: input.Tier }),
|
|
2472
2468
|
...(input.Type != null && { Type: input.Type }),
|
|
2473
2469
|
};
|
|
2474
2470
|
};
|
|
2475
|
-
const
|
|
2471
|
+
const se_NotificationEventList = (input, context) => {
|
|
2476
2472
|
return input
|
|
2477
2473
|
.filter((e) => e != null)
|
|
2478
2474
|
.map((entry) => {
|
|
2479
2475
|
return entry;
|
|
2480
2476
|
});
|
|
2481
2477
|
};
|
|
2482
|
-
const
|
|
2478
|
+
const se_OutputLocation = (input, context) => {
|
|
2483
2479
|
return {
|
|
2484
|
-
...(input.S3 != null && { S3:
|
|
2480
|
+
...(input.S3 != null && { S3: se_S3Location(input.S3, context) }),
|
|
2485
2481
|
};
|
|
2486
2482
|
};
|
|
2487
|
-
const
|
|
2483
|
+
const se_OutputSerialization = (input, context) => {
|
|
2488
2484
|
return {
|
|
2489
|
-
...(input.csv != null && { csv:
|
|
2485
|
+
...(input.csv != null && { csv: se_CSVOutput(input.csv, context) }),
|
|
2490
2486
|
};
|
|
2491
2487
|
};
|
|
2492
|
-
const
|
|
2488
|
+
const se_S3Location = (input, context) => {
|
|
2493
2489
|
return {
|
|
2494
2490
|
...(input.AccessControlList != null && {
|
|
2495
|
-
AccessControlList:
|
|
2491
|
+
AccessControlList: se_AccessControlPolicyList(input.AccessControlList, context),
|
|
2496
2492
|
}),
|
|
2497
2493
|
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
2498
2494
|
...(input.CannedACL != null && { CannedACL: input.CannedACL }),
|
|
2499
|
-
...(input.Encryption != null && { Encryption:
|
|
2495
|
+
...(input.Encryption != null && { Encryption: se_Encryption(input.Encryption, context) }),
|
|
2500
2496
|
...(input.Prefix != null && { Prefix: input.Prefix }),
|
|
2501
2497
|
...(input.StorageClass != null && { StorageClass: input.StorageClass }),
|
|
2502
|
-
...(input.Tagging != null && { Tagging:
|
|
2503
|
-
...(input.UserMetadata != null && { UserMetadata:
|
|
2498
|
+
...(input.Tagging != null && { Tagging: se_hashmap(input.Tagging, context) }),
|
|
2499
|
+
...(input.UserMetadata != null && { UserMetadata: se_hashmap(input.UserMetadata, context) }),
|
|
2504
2500
|
};
|
|
2505
2501
|
};
|
|
2506
|
-
const
|
|
2502
|
+
const se_SelectParameters = (input, context) => {
|
|
2507
2503
|
return {
|
|
2508
2504
|
...(input.Expression != null && { Expression: input.Expression }),
|
|
2509
2505
|
...(input.ExpressionType != null && { ExpressionType: input.ExpressionType }),
|
|
2510
2506
|
...(input.InputSerialization != null && {
|
|
2511
|
-
InputSerialization:
|
|
2507
|
+
InputSerialization: se_InputSerialization(input.InputSerialization, context),
|
|
2512
2508
|
}),
|
|
2513
2509
|
...(input.OutputSerialization != null && {
|
|
2514
|
-
OutputSerialization:
|
|
2510
|
+
OutputSerialization: se_OutputSerialization(input.OutputSerialization, context),
|
|
2515
2511
|
}),
|
|
2516
2512
|
};
|
|
2517
2513
|
};
|
|
2518
|
-
const
|
|
2514
|
+
const se_TagKeyList = (input, context) => {
|
|
2519
2515
|
return input
|
|
2520
2516
|
.filter((e) => e != null)
|
|
2521
2517
|
.map((entry) => {
|
|
2522
2518
|
return entry;
|
|
2523
2519
|
});
|
|
2524
2520
|
};
|
|
2525
|
-
const
|
|
2521
|
+
const se_TagMap = (input, context) => {
|
|
2526
2522
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2527
2523
|
if (value === null) {
|
|
2528
2524
|
return acc;
|
|
@@ -2531,34 +2527,34 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
2531
2527
|
return acc;
|
|
2532
2528
|
}, {});
|
|
2533
2529
|
};
|
|
2534
|
-
const
|
|
2530
|
+
const se_VaultAccessPolicy = (input, context) => {
|
|
2535
2531
|
return {
|
|
2536
2532
|
...(input.Policy != null && { Policy: input.Policy }),
|
|
2537
2533
|
};
|
|
2538
2534
|
};
|
|
2539
|
-
const
|
|
2535
|
+
const se_VaultLockPolicy = (input, context) => {
|
|
2540
2536
|
return {
|
|
2541
2537
|
...(input.Policy != null && { Policy: input.Policy }),
|
|
2542
2538
|
};
|
|
2543
2539
|
};
|
|
2544
|
-
const
|
|
2540
|
+
const se_VaultNotificationConfig = (input, context) => {
|
|
2545
2541
|
return {
|
|
2546
|
-
...(input.Events != null && { Events:
|
|
2542
|
+
...(input.Events != null && { Events: se_NotificationEventList(input.Events, context) }),
|
|
2547
2543
|
...(input.SNSTopic != null && { SNSTopic: input.SNSTopic }),
|
|
2548
2544
|
};
|
|
2549
2545
|
};
|
|
2550
|
-
const
|
|
2546
|
+
const de_AccessControlPolicyList = (output, context) => {
|
|
2551
2547
|
const retVal = (output || [])
|
|
2552
2548
|
.filter((e) => e != null)
|
|
2553
2549
|
.map((entry) => {
|
|
2554
2550
|
if (entry === null) {
|
|
2555
2551
|
return null;
|
|
2556
2552
|
}
|
|
2557
|
-
return
|
|
2553
|
+
return de_Grant(entry, context);
|
|
2558
2554
|
});
|
|
2559
2555
|
return retVal;
|
|
2560
2556
|
};
|
|
2561
|
-
const
|
|
2557
|
+
const de_CSVInput = (output, context) => {
|
|
2562
2558
|
return {
|
|
2563
2559
|
Comments: (0, smithy_client_1.expectString)(output.Comments),
|
|
2564
2560
|
FieldDelimiter: (0, smithy_client_1.expectString)(output.FieldDelimiter),
|
|
@@ -2568,7 +2564,7 @@ const deserializeAws_restJson1CSVInput = (output, context) => {
|
|
|
2568
2564
|
RecordDelimiter: (0, smithy_client_1.expectString)(output.RecordDelimiter),
|
|
2569
2565
|
};
|
|
2570
2566
|
};
|
|
2571
|
-
const
|
|
2567
|
+
const de_CSVOutput = (output, context) => {
|
|
2572
2568
|
return {
|
|
2573
2569
|
FieldDelimiter: (0, smithy_client_1.expectString)(output.FieldDelimiter),
|
|
2574
2570
|
QuoteCharacter: (0, smithy_client_1.expectString)(output.QuoteCharacter),
|
|
@@ -2577,29 +2573,29 @@ const deserializeAws_restJson1CSVOutput = (output, context) => {
|
|
|
2577
2573
|
RecordDelimiter: (0, smithy_client_1.expectString)(output.RecordDelimiter),
|
|
2578
2574
|
};
|
|
2579
2575
|
};
|
|
2580
|
-
const
|
|
2576
|
+
const de_DataRetrievalPolicy = (output, context) => {
|
|
2581
2577
|
return {
|
|
2582
|
-
Rules: output.Rules != null ?
|
|
2578
|
+
Rules: output.Rules != null ? de_DataRetrievalRulesList(output.Rules, context) : undefined,
|
|
2583
2579
|
};
|
|
2584
2580
|
};
|
|
2585
|
-
const
|
|
2581
|
+
const de_DataRetrievalRule = (output, context) => {
|
|
2586
2582
|
return {
|
|
2587
2583
|
BytesPerHour: (0, smithy_client_1.expectLong)(output.BytesPerHour),
|
|
2588
2584
|
Strategy: (0, smithy_client_1.expectString)(output.Strategy),
|
|
2589
2585
|
};
|
|
2590
2586
|
};
|
|
2591
|
-
const
|
|
2587
|
+
const de_DataRetrievalRulesList = (output, context) => {
|
|
2592
2588
|
const retVal = (output || [])
|
|
2593
2589
|
.filter((e) => e != null)
|
|
2594
2590
|
.map((entry) => {
|
|
2595
2591
|
if (entry === null) {
|
|
2596
2592
|
return null;
|
|
2597
2593
|
}
|
|
2598
|
-
return
|
|
2594
|
+
return de_DataRetrievalRule(entry, context);
|
|
2599
2595
|
});
|
|
2600
2596
|
return retVal;
|
|
2601
2597
|
};
|
|
2602
|
-
const
|
|
2598
|
+
const de_DescribeVaultOutput = (output, context) => {
|
|
2603
2599
|
return {
|
|
2604
2600
|
CreationDate: (0, smithy_client_1.expectString)(output.CreationDate),
|
|
2605
2601
|
LastInventoryDate: (0, smithy_client_1.expectString)(output.LastInventoryDate),
|
|
@@ -2609,14 +2605,14 @@ const deserializeAws_restJson1DescribeVaultOutput = (output, context) => {
|
|
|
2609
2605
|
VaultName: (0, smithy_client_1.expectString)(output.VaultName),
|
|
2610
2606
|
};
|
|
2611
2607
|
};
|
|
2612
|
-
const
|
|
2608
|
+
const de_Encryption = (output, context) => {
|
|
2613
2609
|
return {
|
|
2614
2610
|
EncryptionType: (0, smithy_client_1.expectString)(output.EncryptionType),
|
|
2615
2611
|
KMSContext: (0, smithy_client_1.expectString)(output.KMSContext),
|
|
2616
2612
|
KMSKeyId: (0, smithy_client_1.expectString)(output.KMSKeyId),
|
|
2617
2613
|
};
|
|
2618
2614
|
};
|
|
2619
|
-
const
|
|
2615
|
+
const de_GlacierJobDescription = (output, context) => {
|
|
2620
2616
|
return {
|
|
2621
2617
|
Action: (0, smithy_client_1.expectString)(output.Action),
|
|
2622
2618
|
ArchiveId: (0, smithy_client_1.expectString)(output.ArchiveId),
|
|
@@ -2626,34 +2622,30 @@ const deserializeAws_restJson1GlacierJobDescription = (output, context) => {
|
|
|
2626
2622
|
CompletionDate: (0, smithy_client_1.expectString)(output.CompletionDate),
|
|
2627
2623
|
CreationDate: (0, smithy_client_1.expectString)(output.CreationDate),
|
|
2628
2624
|
InventoryRetrievalParameters: output.InventoryRetrievalParameters != null
|
|
2629
|
-
?
|
|
2625
|
+
? de_InventoryRetrievalJobDescription(output.InventoryRetrievalParameters, context)
|
|
2630
2626
|
: undefined,
|
|
2631
2627
|
InventorySizeInBytes: (0, smithy_client_1.expectLong)(output.InventorySizeInBytes),
|
|
2632
2628
|
JobDescription: (0, smithy_client_1.expectString)(output.JobDescription),
|
|
2633
2629
|
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
2634
2630
|
JobOutputPath: (0, smithy_client_1.expectString)(output.JobOutputPath),
|
|
2635
|
-
OutputLocation: output.OutputLocation != null
|
|
2636
|
-
? deserializeAws_restJson1OutputLocation(output.OutputLocation, context)
|
|
2637
|
-
: undefined,
|
|
2631
|
+
OutputLocation: output.OutputLocation != null ? de_OutputLocation(output.OutputLocation, context) : undefined,
|
|
2638
2632
|
RetrievalByteRange: (0, smithy_client_1.expectString)(output.RetrievalByteRange),
|
|
2639
2633
|
SHA256TreeHash: (0, smithy_client_1.expectString)(output.SHA256TreeHash),
|
|
2640
2634
|
SNSTopic: (0, smithy_client_1.expectString)(output.SNSTopic),
|
|
2641
|
-
SelectParameters: output.SelectParameters != null
|
|
2642
|
-
? deserializeAws_restJson1SelectParameters(output.SelectParameters, context)
|
|
2643
|
-
: undefined,
|
|
2635
|
+
SelectParameters: output.SelectParameters != null ? de_SelectParameters(output.SelectParameters, context) : undefined,
|
|
2644
2636
|
StatusCode: (0, smithy_client_1.expectString)(output.StatusCode),
|
|
2645
2637
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
2646
2638
|
Tier: (0, smithy_client_1.expectString)(output.Tier),
|
|
2647
2639
|
VaultARN: (0, smithy_client_1.expectString)(output.VaultARN),
|
|
2648
2640
|
};
|
|
2649
2641
|
};
|
|
2650
|
-
const
|
|
2642
|
+
const de_Grant = (output, context) => {
|
|
2651
2643
|
return {
|
|
2652
|
-
Grantee: output.Grantee != null ?
|
|
2644
|
+
Grantee: output.Grantee != null ? de_Grantee(output.Grantee, context) : undefined,
|
|
2653
2645
|
Permission: (0, smithy_client_1.expectString)(output.Permission),
|
|
2654
2646
|
};
|
|
2655
2647
|
};
|
|
2656
|
-
const
|
|
2648
|
+
const de_Grantee = (output, context) => {
|
|
2657
2649
|
return {
|
|
2658
2650
|
DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
|
|
2659
2651
|
EmailAddress: (0, smithy_client_1.expectString)(output.EmailAddress),
|
|
@@ -2662,7 +2654,7 @@ const deserializeAws_restJson1Grantee = (output, context) => {
|
|
|
2662
2654
|
URI: (0, smithy_client_1.expectString)(output.URI),
|
|
2663
2655
|
};
|
|
2664
2656
|
};
|
|
2665
|
-
const
|
|
2657
|
+
const de_hashmap = (output, context) => {
|
|
2666
2658
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2667
2659
|
if (value === null) {
|
|
2668
2660
|
return acc;
|
|
@@ -2671,12 +2663,12 @@ const deserializeAws_restJson1hashmap = (output, context) => {
|
|
|
2671
2663
|
return acc;
|
|
2672
2664
|
}, {});
|
|
2673
2665
|
};
|
|
2674
|
-
const
|
|
2666
|
+
const de_InputSerialization = (output, context) => {
|
|
2675
2667
|
return {
|
|
2676
|
-
csv: output.csv != null ?
|
|
2668
|
+
csv: output.csv != null ? de_CSVInput(output.csv, context) : undefined,
|
|
2677
2669
|
};
|
|
2678
2670
|
};
|
|
2679
|
-
const
|
|
2671
|
+
const de_InventoryRetrievalJobDescription = (output, context) => {
|
|
2680
2672
|
return {
|
|
2681
2673
|
EndDate: (0, smithy_client_1.expectString)(output.EndDate),
|
|
2682
2674
|
Format: (0, smithy_client_1.expectString)(output.Format),
|
|
@@ -2685,18 +2677,18 @@ const deserializeAws_restJson1InventoryRetrievalJobDescription = (output, contex
|
|
|
2685
2677
|
StartDate: (0, smithy_client_1.expectString)(output.StartDate),
|
|
2686
2678
|
};
|
|
2687
2679
|
};
|
|
2688
|
-
const
|
|
2680
|
+
const de_JobList = (output, context) => {
|
|
2689
2681
|
const retVal = (output || [])
|
|
2690
2682
|
.filter((e) => e != null)
|
|
2691
2683
|
.map((entry) => {
|
|
2692
2684
|
if (entry === null) {
|
|
2693
2685
|
return null;
|
|
2694
2686
|
}
|
|
2695
|
-
return
|
|
2687
|
+
return de_GlacierJobDescription(entry, context);
|
|
2696
2688
|
});
|
|
2697
2689
|
return retVal;
|
|
2698
2690
|
};
|
|
2699
|
-
const
|
|
2691
|
+
const de_NotificationEventList = (output, context) => {
|
|
2700
2692
|
const retVal = (output || [])
|
|
2701
2693
|
.filter((e) => e != null)
|
|
2702
2694
|
.map((entry) => {
|
|
@@ -2707,78 +2699,72 @@ const deserializeAws_restJson1NotificationEventList = (output, context) => {
|
|
|
2707
2699
|
});
|
|
2708
2700
|
return retVal;
|
|
2709
2701
|
};
|
|
2710
|
-
const
|
|
2702
|
+
const de_OutputLocation = (output, context) => {
|
|
2711
2703
|
return {
|
|
2712
|
-
S3: output.S3 != null ?
|
|
2704
|
+
S3: output.S3 != null ? de_S3Location(output.S3, context) : undefined,
|
|
2713
2705
|
};
|
|
2714
2706
|
};
|
|
2715
|
-
const
|
|
2707
|
+
const de_OutputSerialization = (output, context) => {
|
|
2716
2708
|
return {
|
|
2717
|
-
csv: output.csv != null ?
|
|
2709
|
+
csv: output.csv != null ? de_CSVOutput(output.csv, context) : undefined,
|
|
2718
2710
|
};
|
|
2719
2711
|
};
|
|
2720
|
-
const
|
|
2712
|
+
const de_PartList = (output, context) => {
|
|
2721
2713
|
const retVal = (output || [])
|
|
2722
2714
|
.filter((e) => e != null)
|
|
2723
2715
|
.map((entry) => {
|
|
2724
2716
|
if (entry === null) {
|
|
2725
2717
|
return null;
|
|
2726
2718
|
}
|
|
2727
|
-
return
|
|
2719
|
+
return de_PartListElement(entry, context);
|
|
2728
2720
|
});
|
|
2729
2721
|
return retVal;
|
|
2730
2722
|
};
|
|
2731
|
-
const
|
|
2723
|
+
const de_PartListElement = (output, context) => {
|
|
2732
2724
|
return {
|
|
2733
2725
|
RangeInBytes: (0, smithy_client_1.expectString)(output.RangeInBytes),
|
|
2734
2726
|
SHA256TreeHash: (0, smithy_client_1.expectString)(output.SHA256TreeHash),
|
|
2735
2727
|
};
|
|
2736
2728
|
};
|
|
2737
|
-
const
|
|
2729
|
+
const de_ProvisionedCapacityDescription = (output, context) => {
|
|
2738
2730
|
return {
|
|
2739
2731
|
CapacityId: (0, smithy_client_1.expectString)(output.CapacityId),
|
|
2740
2732
|
ExpirationDate: (0, smithy_client_1.expectString)(output.ExpirationDate),
|
|
2741
2733
|
StartDate: (0, smithy_client_1.expectString)(output.StartDate),
|
|
2742
2734
|
};
|
|
2743
2735
|
};
|
|
2744
|
-
const
|
|
2736
|
+
const de_ProvisionedCapacityList = (output, context) => {
|
|
2745
2737
|
const retVal = (output || [])
|
|
2746
2738
|
.filter((e) => e != null)
|
|
2747
2739
|
.map((entry) => {
|
|
2748
2740
|
if (entry === null) {
|
|
2749
2741
|
return null;
|
|
2750
2742
|
}
|
|
2751
|
-
return
|
|
2743
|
+
return de_ProvisionedCapacityDescription(entry, context);
|
|
2752
2744
|
});
|
|
2753
2745
|
return retVal;
|
|
2754
2746
|
};
|
|
2755
|
-
const
|
|
2747
|
+
const de_S3Location = (output, context) => {
|
|
2756
2748
|
return {
|
|
2757
|
-
AccessControlList: output.AccessControlList != null
|
|
2758
|
-
? deserializeAws_restJson1AccessControlPolicyList(output.AccessControlList, context)
|
|
2759
|
-
: undefined,
|
|
2749
|
+
AccessControlList: output.AccessControlList != null ? de_AccessControlPolicyList(output.AccessControlList, context) : undefined,
|
|
2760
2750
|
BucketName: (0, smithy_client_1.expectString)(output.BucketName),
|
|
2761
2751
|
CannedACL: (0, smithy_client_1.expectString)(output.CannedACL),
|
|
2762
|
-
Encryption: output.Encryption != null ?
|
|
2752
|
+
Encryption: output.Encryption != null ? de_Encryption(output.Encryption, context) : undefined,
|
|
2763
2753
|
Prefix: (0, smithy_client_1.expectString)(output.Prefix),
|
|
2764
2754
|
StorageClass: (0, smithy_client_1.expectString)(output.StorageClass),
|
|
2765
|
-
Tagging: output.Tagging != null ?
|
|
2766
|
-
UserMetadata: output.UserMetadata != null ?
|
|
2755
|
+
Tagging: output.Tagging != null ? de_hashmap(output.Tagging, context) : undefined,
|
|
2756
|
+
UserMetadata: output.UserMetadata != null ? de_hashmap(output.UserMetadata, context) : undefined,
|
|
2767
2757
|
};
|
|
2768
2758
|
};
|
|
2769
|
-
const
|
|
2759
|
+
const de_SelectParameters = (output, context) => {
|
|
2770
2760
|
return {
|
|
2771
2761
|
Expression: (0, smithy_client_1.expectString)(output.Expression),
|
|
2772
2762
|
ExpressionType: (0, smithy_client_1.expectString)(output.ExpressionType),
|
|
2773
|
-
InputSerialization: output.InputSerialization != null
|
|
2774
|
-
|
|
2775
|
-
: undefined,
|
|
2776
|
-
OutputSerialization: output.OutputSerialization != null
|
|
2777
|
-
? deserializeAws_restJson1OutputSerialization(output.OutputSerialization, context)
|
|
2778
|
-
: undefined,
|
|
2763
|
+
InputSerialization: output.InputSerialization != null ? de_InputSerialization(output.InputSerialization, context) : undefined,
|
|
2764
|
+
OutputSerialization: output.OutputSerialization != null ? de_OutputSerialization(output.OutputSerialization, context) : undefined,
|
|
2779
2765
|
};
|
|
2780
2766
|
};
|
|
2781
|
-
const
|
|
2767
|
+
const de_TagMap = (output, context) => {
|
|
2782
2768
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2783
2769
|
if (value === null) {
|
|
2784
2770
|
return acc;
|
|
@@ -2787,7 +2773,7 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
2787
2773
|
return acc;
|
|
2788
2774
|
}, {});
|
|
2789
2775
|
};
|
|
2790
|
-
const
|
|
2776
|
+
const de_UploadListElement = (output, context) => {
|
|
2791
2777
|
return {
|
|
2792
2778
|
ArchiveDescription: (0, smithy_client_1.expectString)(output.ArchiveDescription),
|
|
2793
2779
|
CreationDate: (0, smithy_client_1.expectString)(output.CreationDate),
|
|
@@ -2796,36 +2782,36 @@ const deserializeAws_restJson1UploadListElement = (output, context) => {
|
|
|
2796
2782
|
VaultARN: (0, smithy_client_1.expectString)(output.VaultARN),
|
|
2797
2783
|
};
|
|
2798
2784
|
};
|
|
2799
|
-
const
|
|
2785
|
+
const de_UploadsList = (output, context) => {
|
|
2800
2786
|
const retVal = (output || [])
|
|
2801
2787
|
.filter((e) => e != null)
|
|
2802
2788
|
.map((entry) => {
|
|
2803
2789
|
if (entry === null) {
|
|
2804
2790
|
return null;
|
|
2805
2791
|
}
|
|
2806
|
-
return
|
|
2792
|
+
return de_UploadListElement(entry, context);
|
|
2807
2793
|
});
|
|
2808
2794
|
return retVal;
|
|
2809
2795
|
};
|
|
2810
|
-
const
|
|
2796
|
+
const de_VaultAccessPolicy = (output, context) => {
|
|
2811
2797
|
return {
|
|
2812
2798
|
Policy: (0, smithy_client_1.expectString)(output.Policy),
|
|
2813
2799
|
};
|
|
2814
2800
|
};
|
|
2815
|
-
const
|
|
2801
|
+
const de_VaultList = (output, context) => {
|
|
2816
2802
|
const retVal = (output || [])
|
|
2817
2803
|
.filter((e) => e != null)
|
|
2818
2804
|
.map((entry) => {
|
|
2819
2805
|
if (entry === null) {
|
|
2820
2806
|
return null;
|
|
2821
2807
|
}
|
|
2822
|
-
return
|
|
2808
|
+
return de_DescribeVaultOutput(entry, context);
|
|
2823
2809
|
});
|
|
2824
2810
|
return retVal;
|
|
2825
2811
|
};
|
|
2826
|
-
const
|
|
2812
|
+
const de_VaultNotificationConfig = (output, context) => {
|
|
2827
2813
|
return {
|
|
2828
|
-
Events: output.Events != null ?
|
|
2814
|
+
Events: output.Events != null ? de_NotificationEventList(output.Events, context) : undefined,
|
|
2829
2815
|
SNSTopic: (0, smithy_client_1.expectString)(output.SNSTopic),
|
|
2830
2816
|
};
|
|
2831
2817
|
};
|