@aws-sdk/client-accessanalyzer 3.141.0 → 3.150.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/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +362 -652
- package/dist-es/protocols/Aws_restJson1.js +462 -634
- package/package.json +11 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, map as __map, parseRfc3339DateTime as __parseRfc3339DateTime, resolvedPath as __resolvedPath, strictParseInt32 as __strictParseInt32, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { AccessAnalyzerServiceException as __BaseException } from "../models/AccessAnalyzerServiceException";
|
|
6
6
|
import { AccessDeniedException, AclGrantee, Configuration, ConflictException, InternalServerException, NetworkOriginConfiguration, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
@@ -30,7 +30,7 @@ export var serializeAws_restJson1ApplyArchiveRuleCommand = function (input, cont
|
|
|
30
30
|
});
|
|
31
31
|
}); };
|
|
32
32
|
export var serializeAws_restJson1CancelPolicyGenerationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
33
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
33
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
34
34
|
return __generator(this, function (_c) {
|
|
35
35
|
switch (_c.label) {
|
|
36
36
|
case 0: return [4, context.endpoint()];
|
|
@@ -38,16 +38,7 @@ export var serializeAws_restJson1CancelPolicyGenerationCommand = function (input
|
|
|
38
38
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
39
39
|
headers = {};
|
|
40
40
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/policy/generation/{jobId}";
|
|
41
|
-
|
|
42
|
-
labelValue = input.jobId;
|
|
43
|
-
if (labelValue.length <= 0) {
|
|
44
|
-
throw new Error("Empty value provided for input HTTP label: jobId.");
|
|
45
|
-
}
|
|
46
|
-
resolvedPath = resolvedPath.replace("{jobId}", __extendedEncodeURIComponent(labelValue));
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
throw new Error("No value provided for input HTTP label: jobId.");
|
|
50
|
-
}
|
|
41
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "jobId", function () { return input.jobId; }, "{jobId}", false);
|
|
51
42
|
return [2, new __HttpRequest({
|
|
52
43
|
protocol: protocol,
|
|
53
44
|
hostname: hostname,
|
|
@@ -115,7 +106,7 @@ export var serializeAws_restJson1CreateAnalyzerCommand = function (input, contex
|
|
|
115
106
|
});
|
|
116
107
|
}); };
|
|
117
108
|
export var serializeAws_restJson1CreateArchiveRuleCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
118
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
109
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
119
110
|
var _c;
|
|
120
111
|
return __generator(this, function (_d) {
|
|
121
112
|
switch (_d.label) {
|
|
@@ -126,16 +117,7 @@ export var serializeAws_restJson1CreateArchiveRuleCommand = function (input, con
|
|
|
126
117
|
"content-type": "application/json",
|
|
127
118
|
};
|
|
128
119
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/analyzer/{analyzerName}/archive-rule";
|
|
129
|
-
|
|
130
|
-
labelValue = input.analyzerName;
|
|
131
|
-
if (labelValue.length <= 0) {
|
|
132
|
-
throw new Error("Empty value provided for input HTTP label: analyzerName.");
|
|
133
|
-
}
|
|
134
|
-
resolvedPath = resolvedPath.replace("{analyzerName}", __extendedEncodeURIComponent(labelValue));
|
|
135
|
-
}
|
|
136
|
-
else {
|
|
137
|
-
throw new Error("No value provided for input HTTP label: analyzerName.");
|
|
138
|
-
}
|
|
120
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "analyzerName", function () { return input.analyzerName; }, "{analyzerName}", false);
|
|
139
121
|
body = JSON.stringify(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.filter != null && { filter: serializeAws_restJson1FilterCriteriaMap(input.filter, context) })), (input.ruleName != null && { ruleName: input.ruleName })));
|
|
140
122
|
return [2, new __HttpRequest({
|
|
141
123
|
protocol: protocol,
|
|
@@ -150,7 +132,7 @@ export var serializeAws_restJson1CreateArchiveRuleCommand = function (input, con
|
|
|
150
132
|
});
|
|
151
133
|
}); };
|
|
152
134
|
export var serializeAws_restJson1DeleteAnalyzerCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
153
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
135
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
154
136
|
return __generator(this, function (_c) {
|
|
155
137
|
switch (_c.label) {
|
|
156
138
|
case 0: return [4, context.endpoint()];
|
|
@@ -158,17 +140,10 @@ export var serializeAws_restJson1DeleteAnalyzerCommand = function (input, contex
|
|
|
158
140
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
159
141
|
headers = {};
|
|
160
142
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/analyzer/{analyzerName}";
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
}
|
|
166
|
-
resolvedPath = resolvedPath.replace("{analyzerName}", __extendedEncodeURIComponent(labelValue));
|
|
167
|
-
}
|
|
168
|
-
else {
|
|
169
|
-
throw new Error("No value provided for input HTTP label: analyzerName.");
|
|
170
|
-
}
|
|
171
|
-
query = __assign({}, (input.clientToken !== undefined && { clientToken: input.clientToken }));
|
|
143
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "analyzerName", function () { return input.analyzerName; }, "{analyzerName}", false);
|
|
144
|
+
query = map({
|
|
145
|
+
clientToken: [, input.clientToken],
|
|
146
|
+
});
|
|
172
147
|
return [2, new __HttpRequest({
|
|
173
148
|
protocol: protocol,
|
|
174
149
|
hostname: hostname,
|
|
@@ -183,7 +158,7 @@ export var serializeAws_restJson1DeleteAnalyzerCommand = function (input, contex
|
|
|
183
158
|
});
|
|
184
159
|
}); };
|
|
185
160
|
export var serializeAws_restJson1DeleteArchiveRuleCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
186
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
161
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
187
162
|
return __generator(this, function (_c) {
|
|
188
163
|
switch (_c.label) {
|
|
189
164
|
case 0: return [4, context.endpoint()];
|
|
@@ -192,27 +167,11 @@ export var serializeAws_restJson1DeleteArchiveRuleCommand = function (input, con
|
|
|
192
167
|
headers = {};
|
|
193
168
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
194
169
|
"/analyzer/{analyzerName}/archive-rule/{ruleName}";
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
resolvedPath = resolvedPath.replace("{analyzerName}", __extendedEncodeURIComponent(labelValue));
|
|
201
|
-
}
|
|
202
|
-
else {
|
|
203
|
-
throw new Error("No value provided for input HTTP label: analyzerName.");
|
|
204
|
-
}
|
|
205
|
-
if (input.ruleName !== undefined) {
|
|
206
|
-
labelValue = input.ruleName;
|
|
207
|
-
if (labelValue.length <= 0) {
|
|
208
|
-
throw new Error("Empty value provided for input HTTP label: ruleName.");
|
|
209
|
-
}
|
|
210
|
-
resolvedPath = resolvedPath.replace("{ruleName}", __extendedEncodeURIComponent(labelValue));
|
|
211
|
-
}
|
|
212
|
-
else {
|
|
213
|
-
throw new Error("No value provided for input HTTP label: ruleName.");
|
|
214
|
-
}
|
|
215
|
-
query = __assign({}, (input.clientToken !== undefined && { clientToken: input.clientToken }));
|
|
170
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "analyzerName", function () { return input.analyzerName; }, "{analyzerName}", false);
|
|
171
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ruleName", function () { return input.ruleName; }, "{ruleName}", false);
|
|
172
|
+
query = map({
|
|
173
|
+
clientToken: [, input.clientToken],
|
|
174
|
+
});
|
|
216
175
|
return [2, new __HttpRequest({
|
|
217
176
|
protocol: protocol,
|
|
218
177
|
hostname: hostname,
|
|
@@ -227,7 +186,7 @@ export var serializeAws_restJson1DeleteArchiveRuleCommand = function (input, con
|
|
|
227
186
|
});
|
|
228
187
|
}); };
|
|
229
188
|
export var serializeAws_restJson1GetAccessPreviewCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
230
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
189
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
231
190
|
return __generator(this, function (_c) {
|
|
232
191
|
switch (_c.label) {
|
|
233
192
|
case 0: return [4, context.endpoint()];
|
|
@@ -235,17 +194,10 @@ export var serializeAws_restJson1GetAccessPreviewCommand = function (input, cont
|
|
|
235
194
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
236
195
|
headers = {};
|
|
237
196
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/access-preview/{accessPreviewId}";
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
}
|
|
243
|
-
resolvedPath = resolvedPath.replace("{accessPreviewId}", __extendedEncodeURIComponent(labelValue));
|
|
244
|
-
}
|
|
245
|
-
else {
|
|
246
|
-
throw new Error("No value provided for input HTTP label: accessPreviewId.");
|
|
247
|
-
}
|
|
248
|
-
query = __assign({}, (input.analyzerArn !== undefined && { analyzerArn: input.analyzerArn }));
|
|
197
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "accessPreviewId", function () { return input.accessPreviewId; }, "{accessPreviewId}", false);
|
|
198
|
+
query = map({
|
|
199
|
+
analyzerArn: [, input.analyzerArn],
|
|
200
|
+
});
|
|
249
201
|
return [2, new __HttpRequest({
|
|
250
202
|
protocol: protocol,
|
|
251
203
|
hostname: hostname,
|
|
@@ -268,7 +220,10 @@ export var serializeAws_restJson1GetAnalyzedResourceCommand = function (input, c
|
|
|
268
220
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
269
221
|
headers = {};
|
|
270
222
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/analyzed-resource";
|
|
271
|
-
query =
|
|
223
|
+
query = map({
|
|
224
|
+
analyzerArn: [, input.analyzerArn],
|
|
225
|
+
resourceArn: [, input.resourceArn],
|
|
226
|
+
});
|
|
272
227
|
return [2, new __HttpRequest({
|
|
273
228
|
protocol: protocol,
|
|
274
229
|
hostname: hostname,
|
|
@@ -283,7 +238,7 @@ export var serializeAws_restJson1GetAnalyzedResourceCommand = function (input, c
|
|
|
283
238
|
});
|
|
284
239
|
}); };
|
|
285
240
|
export var serializeAws_restJson1GetAnalyzerCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
286
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
241
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
287
242
|
return __generator(this, function (_c) {
|
|
288
243
|
switch (_c.label) {
|
|
289
244
|
case 0: return [4, context.endpoint()];
|
|
@@ -291,16 +246,7 @@ export var serializeAws_restJson1GetAnalyzerCommand = function (input, context)
|
|
|
291
246
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
292
247
|
headers = {};
|
|
293
248
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/analyzer/{analyzerName}";
|
|
294
|
-
|
|
295
|
-
labelValue = input.analyzerName;
|
|
296
|
-
if (labelValue.length <= 0) {
|
|
297
|
-
throw new Error("Empty value provided for input HTTP label: analyzerName.");
|
|
298
|
-
}
|
|
299
|
-
resolvedPath = resolvedPath.replace("{analyzerName}", __extendedEncodeURIComponent(labelValue));
|
|
300
|
-
}
|
|
301
|
-
else {
|
|
302
|
-
throw new Error("No value provided for input HTTP label: analyzerName.");
|
|
303
|
-
}
|
|
249
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "analyzerName", function () { return input.analyzerName; }, "{analyzerName}", false);
|
|
304
250
|
return [2, new __HttpRequest({
|
|
305
251
|
protocol: protocol,
|
|
306
252
|
hostname: hostname,
|
|
@@ -314,7 +260,7 @@ export var serializeAws_restJson1GetAnalyzerCommand = function (input, context)
|
|
|
314
260
|
});
|
|
315
261
|
}); };
|
|
316
262
|
export var serializeAws_restJson1GetArchiveRuleCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
317
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
263
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
318
264
|
return __generator(this, function (_c) {
|
|
319
265
|
switch (_c.label) {
|
|
320
266
|
case 0: return [4, context.endpoint()];
|
|
@@ -323,26 +269,8 @@ export var serializeAws_restJson1GetArchiveRuleCommand = function (input, contex
|
|
|
323
269
|
headers = {};
|
|
324
270
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
325
271
|
"/analyzer/{analyzerName}/archive-rule/{ruleName}";
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
if (labelValue.length <= 0) {
|
|
329
|
-
throw new Error("Empty value provided for input HTTP label: analyzerName.");
|
|
330
|
-
}
|
|
331
|
-
resolvedPath = resolvedPath.replace("{analyzerName}", __extendedEncodeURIComponent(labelValue));
|
|
332
|
-
}
|
|
333
|
-
else {
|
|
334
|
-
throw new Error("No value provided for input HTTP label: analyzerName.");
|
|
335
|
-
}
|
|
336
|
-
if (input.ruleName !== undefined) {
|
|
337
|
-
labelValue = input.ruleName;
|
|
338
|
-
if (labelValue.length <= 0) {
|
|
339
|
-
throw new Error("Empty value provided for input HTTP label: ruleName.");
|
|
340
|
-
}
|
|
341
|
-
resolvedPath = resolvedPath.replace("{ruleName}", __extendedEncodeURIComponent(labelValue));
|
|
342
|
-
}
|
|
343
|
-
else {
|
|
344
|
-
throw new Error("No value provided for input HTTP label: ruleName.");
|
|
345
|
-
}
|
|
272
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "analyzerName", function () { return input.analyzerName; }, "{analyzerName}", false);
|
|
273
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ruleName", function () { return input.ruleName; }, "{ruleName}", false);
|
|
346
274
|
return [2, new __HttpRequest({
|
|
347
275
|
protocol: protocol,
|
|
348
276
|
hostname: hostname,
|
|
@@ -356,7 +284,7 @@ export var serializeAws_restJson1GetArchiveRuleCommand = function (input, contex
|
|
|
356
284
|
});
|
|
357
285
|
}); };
|
|
358
286
|
export var serializeAws_restJson1GetFindingCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
359
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
287
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
360
288
|
return __generator(this, function (_c) {
|
|
361
289
|
switch (_c.label) {
|
|
362
290
|
case 0: return [4, context.endpoint()];
|
|
@@ -364,17 +292,10 @@ export var serializeAws_restJson1GetFindingCommand = function (input, context) {
|
|
|
364
292
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
365
293
|
headers = {};
|
|
366
294
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/finding/{id}";
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
}
|
|
372
|
-
resolvedPath = resolvedPath.replace("{id}", __extendedEncodeURIComponent(labelValue));
|
|
373
|
-
}
|
|
374
|
-
else {
|
|
375
|
-
throw new Error("No value provided for input HTTP label: id.");
|
|
376
|
-
}
|
|
377
|
-
query = __assign({}, (input.analyzerArn !== undefined && { analyzerArn: input.analyzerArn }));
|
|
295
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "id", function () { return input.id; }, "{id}", false);
|
|
296
|
+
query = map({
|
|
297
|
+
analyzerArn: [, input.analyzerArn],
|
|
298
|
+
});
|
|
378
299
|
return [2, new __HttpRequest({
|
|
379
300
|
protocol: protocol,
|
|
380
301
|
hostname: hostname,
|
|
@@ -389,7 +310,7 @@ export var serializeAws_restJson1GetFindingCommand = function (input, context) {
|
|
|
389
310
|
});
|
|
390
311
|
}); };
|
|
391
312
|
export var serializeAws_restJson1GetGeneratedPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
392
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
313
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
393
314
|
return __generator(this, function (_c) {
|
|
394
315
|
switch (_c.label) {
|
|
395
316
|
case 0: return [4, context.endpoint()];
|
|
@@ -397,21 +318,17 @@ export var serializeAws_restJson1GetGeneratedPolicyCommand = function (input, co
|
|
|
397
318
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
398
319
|
headers = {};
|
|
399
320
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/policy/generation/{jobId}";
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
includeResourcePlaceholders: input.includeResourcePlaceholders.toString(),
|
|
412
|
-
})), (input.includeServiceLevelTemplate !== undefined && {
|
|
413
|
-
includeServiceLevelTemplate: input.includeServiceLevelTemplate.toString(),
|
|
414
|
-
}));
|
|
321
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "jobId", function () { return input.jobId; }, "{jobId}", false);
|
|
322
|
+
query = map({
|
|
323
|
+
includeResourcePlaceholders: [
|
|
324
|
+
function () { return input.includeResourcePlaceholders !== void 0; },
|
|
325
|
+
function () { return input.includeResourcePlaceholders.toString(); },
|
|
326
|
+
],
|
|
327
|
+
includeServiceLevelTemplate: [
|
|
328
|
+
function () { return input.includeServiceLevelTemplate !== void 0; },
|
|
329
|
+
function () { return input.includeServiceLevelTemplate.toString(); },
|
|
330
|
+
],
|
|
331
|
+
});
|
|
415
332
|
return [2, new __HttpRequest({
|
|
416
333
|
protocol: protocol,
|
|
417
334
|
hostname: hostname,
|
|
@@ -426,7 +343,7 @@ export var serializeAws_restJson1GetGeneratedPolicyCommand = function (input, co
|
|
|
426
343
|
});
|
|
427
344
|
}); };
|
|
428
345
|
export var serializeAws_restJson1ListAccessPreviewFindingsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
429
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
346
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
430
347
|
return __generator(this, function (_c) {
|
|
431
348
|
switch (_c.label) {
|
|
432
349
|
case 0: return [4, context.endpoint()];
|
|
@@ -436,16 +353,7 @@ export var serializeAws_restJson1ListAccessPreviewFindingsCommand = function (in
|
|
|
436
353
|
"content-type": "application/json",
|
|
437
354
|
};
|
|
438
355
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/access-preview/{accessPreviewId}";
|
|
439
|
-
|
|
440
|
-
labelValue = input.accessPreviewId;
|
|
441
|
-
if (labelValue.length <= 0) {
|
|
442
|
-
throw new Error("Empty value provided for input HTTP label: accessPreviewId.");
|
|
443
|
-
}
|
|
444
|
-
resolvedPath = resolvedPath.replace("{accessPreviewId}", __extendedEncodeURIComponent(labelValue));
|
|
445
|
-
}
|
|
446
|
-
else {
|
|
447
|
-
throw new Error("No value provided for input HTTP label: accessPreviewId.");
|
|
448
|
-
}
|
|
356
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "accessPreviewId", function () { return input.accessPreviewId; }, "{accessPreviewId}", false);
|
|
449
357
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.analyzerArn != null && { analyzerArn: input.analyzerArn })), (input.filter != null && { filter: serializeAws_restJson1FilterCriteriaMap(input.filter, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
450
358
|
return [2, new __HttpRequest({
|
|
451
359
|
protocol: protocol,
|
|
@@ -468,7 +376,11 @@ export var serializeAws_restJson1ListAccessPreviewsCommand = function (input, co
|
|
|
468
376
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
469
377
|
headers = {};
|
|
470
378
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/access-preview";
|
|
471
|
-
query =
|
|
379
|
+
query = map({
|
|
380
|
+
analyzerArn: [, input.analyzerArn],
|
|
381
|
+
nextToken: [, input.nextToken],
|
|
382
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
383
|
+
});
|
|
472
384
|
return [2, new __HttpRequest({
|
|
473
385
|
protocol: protocol,
|
|
474
386
|
hostname: hostname,
|
|
@@ -515,7 +427,11 @@ export var serializeAws_restJson1ListAnalyzersCommand = function (input, context
|
|
|
515
427
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
516
428
|
headers = {};
|
|
517
429
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/analyzer";
|
|
518
|
-
query =
|
|
430
|
+
query = map({
|
|
431
|
+
nextToken: [, input.nextToken],
|
|
432
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
433
|
+
type: [, input.type],
|
|
434
|
+
});
|
|
519
435
|
return [2, new __HttpRequest({
|
|
520
436
|
protocol: protocol,
|
|
521
437
|
hostname: hostname,
|
|
@@ -530,7 +446,7 @@ export var serializeAws_restJson1ListAnalyzersCommand = function (input, context
|
|
|
530
446
|
});
|
|
531
447
|
}); };
|
|
532
448
|
export var serializeAws_restJson1ListArchiveRulesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
533
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
449
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
534
450
|
return __generator(this, function (_c) {
|
|
535
451
|
switch (_c.label) {
|
|
536
452
|
case 0: return [4, context.endpoint()];
|
|
@@ -538,17 +454,11 @@ export var serializeAws_restJson1ListArchiveRulesCommand = function (input, cont
|
|
|
538
454
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
539
455
|
headers = {};
|
|
540
456
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/analyzer/{analyzerName}/archive-rule";
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
resolvedPath = resolvedPath.replace("{analyzerName}", __extendedEncodeURIComponent(labelValue));
|
|
547
|
-
}
|
|
548
|
-
else {
|
|
549
|
-
throw new Error("No value provided for input HTTP label: analyzerName.");
|
|
550
|
-
}
|
|
551
|
-
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
457
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "analyzerName", function () { return input.analyzerName; }, "{analyzerName}", false);
|
|
458
|
+
query = map({
|
|
459
|
+
nextToken: [, input.nextToken],
|
|
460
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
461
|
+
});
|
|
552
462
|
return [2, new __HttpRequest({
|
|
553
463
|
protocol: protocol,
|
|
554
464
|
hostname: hostname,
|
|
@@ -595,7 +505,11 @@ export var serializeAws_restJson1ListPolicyGenerationsCommand = function (input,
|
|
|
595
505
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
596
506
|
headers = {};
|
|
597
507
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/policy/generation";
|
|
598
|
-
query =
|
|
508
|
+
query = map({
|
|
509
|
+
principalArn: [, input.principalArn],
|
|
510
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
511
|
+
nextToken: [, input.nextToken],
|
|
512
|
+
});
|
|
599
513
|
return [2, new __HttpRequest({
|
|
600
514
|
protocol: protocol,
|
|
601
515
|
hostname: hostname,
|
|
@@ -610,7 +524,7 @@ export var serializeAws_restJson1ListPolicyGenerationsCommand = function (input,
|
|
|
610
524
|
});
|
|
611
525
|
}); };
|
|
612
526
|
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
613
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
527
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
614
528
|
return __generator(this, function (_c) {
|
|
615
529
|
switch (_c.label) {
|
|
616
530
|
case 0: return [4, context.endpoint()];
|
|
@@ -618,16 +532,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
618
532
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
619
533
|
headers = {};
|
|
620
534
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
621
|
-
|
|
622
|
-
labelValue = input.resourceArn;
|
|
623
|
-
if (labelValue.length <= 0) {
|
|
624
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
625
|
-
}
|
|
626
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
627
|
-
}
|
|
628
|
-
else {
|
|
629
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
630
|
-
}
|
|
535
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
631
536
|
return [2, new __HttpRequest({
|
|
632
537
|
protocol: protocol,
|
|
633
538
|
hostname: hostname,
|
|
@@ -694,7 +599,7 @@ export var serializeAws_restJson1StartResourceScanCommand = function (input, con
|
|
|
694
599
|
});
|
|
695
600
|
}); };
|
|
696
601
|
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
697
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
602
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
698
603
|
return __generator(this, function (_c) {
|
|
699
604
|
switch (_c.label) {
|
|
700
605
|
case 0: return [4, context.endpoint()];
|
|
@@ -704,16 +609,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
704
609
|
"content-type": "application/json",
|
|
705
610
|
};
|
|
706
611
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
707
|
-
|
|
708
|
-
labelValue = input.resourceArn;
|
|
709
|
-
if (labelValue.length <= 0) {
|
|
710
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
711
|
-
}
|
|
712
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
713
|
-
}
|
|
714
|
-
else {
|
|
715
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
716
|
-
}
|
|
612
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
717
613
|
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
|
|
718
614
|
return [2, new __HttpRequest({
|
|
719
615
|
protocol: protocol,
|
|
@@ -728,7 +624,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
728
624
|
});
|
|
729
625
|
}); };
|
|
730
626
|
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
731
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
627
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
732
628
|
return __generator(this, function (_c) {
|
|
733
629
|
switch (_c.label) {
|
|
734
630
|
case 0: return [4, context.endpoint()];
|
|
@@ -736,17 +632,10 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
736
632
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
737
633
|
headers = {};
|
|
738
634
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
}
|
|
744
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
745
|
-
}
|
|
746
|
-
else {
|
|
747
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
748
|
-
}
|
|
749
|
-
query = __assign({}, (input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
635
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
636
|
+
query = map({
|
|
637
|
+
tagKeys: [function () { return input.tagKeys !== void 0; }, function () { return (input.tagKeys || []).map(function (_entry) { return _entry; }); }],
|
|
638
|
+
});
|
|
750
639
|
return [2, new __HttpRequest({
|
|
751
640
|
protocol: protocol,
|
|
752
641
|
hostname: hostname,
|
|
@@ -761,7 +650,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
761
650
|
});
|
|
762
651
|
}); };
|
|
763
652
|
export var serializeAws_restJson1UpdateArchiveRuleCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
764
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
653
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
765
654
|
var _c;
|
|
766
655
|
return __generator(this, function (_d) {
|
|
767
656
|
switch (_d.label) {
|
|
@@ -773,26 +662,8 @@ export var serializeAws_restJson1UpdateArchiveRuleCommand = function (input, con
|
|
|
773
662
|
};
|
|
774
663
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
775
664
|
"/analyzer/{analyzerName}/archive-rule/{ruleName}";
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
if (labelValue.length <= 0) {
|
|
779
|
-
throw new Error("Empty value provided for input HTTP label: analyzerName.");
|
|
780
|
-
}
|
|
781
|
-
resolvedPath = resolvedPath.replace("{analyzerName}", __extendedEncodeURIComponent(labelValue));
|
|
782
|
-
}
|
|
783
|
-
else {
|
|
784
|
-
throw new Error("No value provided for input HTTP label: analyzerName.");
|
|
785
|
-
}
|
|
786
|
-
if (input.ruleName !== undefined) {
|
|
787
|
-
labelValue = input.ruleName;
|
|
788
|
-
if (labelValue.length <= 0) {
|
|
789
|
-
throw new Error("Empty value provided for input HTTP label: ruleName.");
|
|
790
|
-
}
|
|
791
|
-
resolvedPath = resolvedPath.replace("{ruleName}", __extendedEncodeURIComponent(labelValue));
|
|
792
|
-
}
|
|
793
|
-
else {
|
|
794
|
-
throw new Error("No value provided for input HTTP label: ruleName.");
|
|
795
|
-
}
|
|
665
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "analyzerName", function () { return input.analyzerName; }, "{analyzerName}", false);
|
|
666
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ruleName", function () { return input.ruleName; }, "{ruleName}", false);
|
|
796
667
|
body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.filter != null && { filter: serializeAws_restJson1FilterCriteriaMap(input.filter, context) })));
|
|
797
668
|
return [2, new __HttpRequest({
|
|
798
669
|
protocol: protocol,
|
|
@@ -842,7 +713,10 @@ export var serializeAws_restJson1ValidatePolicyCommand = function (input, contex
|
|
|
842
713
|
"content-type": "application/json",
|
|
843
714
|
};
|
|
844
715
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/policy/validation";
|
|
845
|
-
query =
|
|
716
|
+
query = map({
|
|
717
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
718
|
+
nextToken: [, input.nextToken],
|
|
719
|
+
});
|
|
846
720
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.locale != null && { locale: input.locale })), (input.policyDocument != null && { policyDocument: input.policyDocument })), (input.policyType != null && { policyType: input.policyType })), (input.validatePolicyResourceType != null && { validatePolicyResourceType: input.validatePolicyResourceType })));
|
|
847
721
|
return [2, new __HttpRequest({
|
|
848
722
|
protocol: protocol,
|
|
@@ -865,18 +739,18 @@ export var deserializeAws_restJson1ApplyArchiveRuleCommand = function (output, c
|
|
|
865
739
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
866
740
|
return [2, deserializeAws_restJson1ApplyArchiveRuleCommandError(output, context)];
|
|
867
741
|
}
|
|
868
|
-
contents = {
|
|
742
|
+
contents = map({
|
|
869
743
|
$metadata: deserializeMetadata(output),
|
|
870
|
-
};
|
|
744
|
+
});
|
|
871
745
|
return [4, collectBody(output.body, context)];
|
|
872
746
|
case 1:
|
|
873
747
|
_a.sent();
|
|
874
|
-
return [2,
|
|
748
|
+
return [2, contents];
|
|
875
749
|
}
|
|
876
750
|
});
|
|
877
751
|
}); };
|
|
878
752
|
var deserializeAws_restJson1ApplyArchiveRuleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
879
|
-
var parsedOutput, _a,
|
|
753
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
880
754
|
var _c;
|
|
881
755
|
return __generator(this, function (_d) {
|
|
882
756
|
switch (_d.label) {
|
|
@@ -913,14 +787,14 @@ var deserializeAws_restJson1ApplyArchiveRuleCommandError = function (output, con
|
|
|
913
787
|
case 11: throw _d.sent();
|
|
914
788
|
case 12:
|
|
915
789
|
parsedBody = parsedOutput.body;
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
$metadata: $metadata,
|
|
790
|
+
throwDefaultError({
|
|
791
|
+
output: output,
|
|
792
|
+
parsedBody: parsedBody,
|
|
793
|
+
exceptionCtor: __BaseException,
|
|
794
|
+
errorCode: errorCode,
|
|
922
795
|
});
|
|
923
|
-
|
|
796
|
+
_d.label = 13;
|
|
797
|
+
case 13: return [2];
|
|
924
798
|
}
|
|
925
799
|
});
|
|
926
800
|
}); };
|
|
@@ -932,18 +806,18 @@ export var deserializeAws_restJson1CancelPolicyGenerationCommand = function (out
|
|
|
932
806
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
933
807
|
return [2, deserializeAws_restJson1CancelPolicyGenerationCommandError(output, context)];
|
|
934
808
|
}
|
|
935
|
-
contents = {
|
|
809
|
+
contents = map({
|
|
936
810
|
$metadata: deserializeMetadata(output),
|
|
937
|
-
};
|
|
811
|
+
});
|
|
938
812
|
return [4, collectBody(output.body, context)];
|
|
939
813
|
case 1:
|
|
940
814
|
_a.sent();
|
|
941
|
-
return [2,
|
|
815
|
+
return [2, contents];
|
|
942
816
|
}
|
|
943
817
|
});
|
|
944
818
|
}); };
|
|
945
819
|
var deserializeAws_restJson1CancelPolicyGenerationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
946
|
-
var parsedOutput, _a,
|
|
820
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
947
821
|
var _c;
|
|
948
822
|
return __generator(this, function (_d) {
|
|
949
823
|
switch (_d.label) {
|
|
@@ -976,14 +850,14 @@ var deserializeAws_restJson1CancelPolicyGenerationCommandError = function (outpu
|
|
|
976
850
|
case 9: throw _d.sent();
|
|
977
851
|
case 10:
|
|
978
852
|
parsedBody = parsedOutput.body;
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
$metadata: $metadata,
|
|
853
|
+
throwDefaultError({
|
|
854
|
+
output: output,
|
|
855
|
+
parsedBody: parsedBody,
|
|
856
|
+
exceptionCtor: __BaseException,
|
|
857
|
+
errorCode: errorCode,
|
|
985
858
|
});
|
|
986
|
-
|
|
859
|
+
_d.label = 11;
|
|
860
|
+
case 11: return [2];
|
|
987
861
|
}
|
|
988
862
|
});
|
|
989
863
|
}); };
|
|
@@ -995,24 +869,23 @@ export var deserializeAws_restJson1CreateAccessPreviewCommand = function (output
|
|
|
995
869
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
996
870
|
return [2, deserializeAws_restJson1CreateAccessPreviewCommandError(output, context)];
|
|
997
871
|
}
|
|
998
|
-
contents = {
|
|
872
|
+
contents = map({
|
|
999
873
|
$metadata: deserializeMetadata(output),
|
|
1000
|
-
|
|
1001
|
-
};
|
|
874
|
+
});
|
|
1002
875
|
_a = __expectNonNull;
|
|
1003
876
|
_b = __expectObject;
|
|
1004
877
|
return [4, parseBody(output.body, context)];
|
|
1005
878
|
case 1:
|
|
1006
879
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1007
|
-
if (data.id
|
|
880
|
+
if (data.id != null) {
|
|
1008
881
|
contents.id = __expectString(data.id);
|
|
1009
882
|
}
|
|
1010
|
-
return [2,
|
|
883
|
+
return [2, contents];
|
|
1011
884
|
}
|
|
1012
885
|
});
|
|
1013
886
|
}); };
|
|
1014
887
|
var deserializeAws_restJson1CreateAccessPreviewCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1015
|
-
var parsedOutput, _a,
|
|
888
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1016
889
|
var _c;
|
|
1017
890
|
return __generator(this, function (_d) {
|
|
1018
891
|
switch (_d.label) {
|
|
@@ -1057,14 +930,14 @@ var deserializeAws_restJson1CreateAccessPreviewCommandError = function (output,
|
|
|
1057
930
|
case 15: throw _d.sent();
|
|
1058
931
|
case 16:
|
|
1059
932
|
parsedBody = parsedOutput.body;
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
$metadata: $metadata,
|
|
933
|
+
throwDefaultError({
|
|
934
|
+
output: output,
|
|
935
|
+
parsedBody: parsedBody,
|
|
936
|
+
exceptionCtor: __BaseException,
|
|
937
|
+
errorCode: errorCode,
|
|
1066
938
|
});
|
|
1067
|
-
|
|
939
|
+
_d.label = 17;
|
|
940
|
+
case 17: return [2];
|
|
1068
941
|
}
|
|
1069
942
|
});
|
|
1070
943
|
}); };
|
|
@@ -1076,24 +949,23 @@ export var deserializeAws_restJson1CreateAnalyzerCommand = function (output, con
|
|
|
1076
949
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1077
950
|
return [2, deserializeAws_restJson1CreateAnalyzerCommandError(output, context)];
|
|
1078
951
|
}
|
|
1079
|
-
contents = {
|
|
952
|
+
contents = map({
|
|
1080
953
|
$metadata: deserializeMetadata(output),
|
|
1081
|
-
|
|
1082
|
-
};
|
|
954
|
+
});
|
|
1083
955
|
_a = __expectNonNull;
|
|
1084
956
|
_b = __expectObject;
|
|
1085
957
|
return [4, parseBody(output.body, context)];
|
|
1086
958
|
case 1:
|
|
1087
959
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1088
|
-
if (data.arn
|
|
960
|
+
if (data.arn != null) {
|
|
1089
961
|
contents.arn = __expectString(data.arn);
|
|
1090
962
|
}
|
|
1091
|
-
return [2,
|
|
963
|
+
return [2, contents];
|
|
1092
964
|
}
|
|
1093
965
|
});
|
|
1094
966
|
}); };
|
|
1095
967
|
var deserializeAws_restJson1CreateAnalyzerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1096
|
-
var parsedOutput, _a,
|
|
968
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1097
969
|
var _c;
|
|
1098
970
|
return __generator(this, function (_d) {
|
|
1099
971
|
switch (_d.label) {
|
|
@@ -1134,14 +1006,14 @@ var deserializeAws_restJson1CreateAnalyzerCommandError = function (output, conte
|
|
|
1134
1006
|
case 13: throw _d.sent();
|
|
1135
1007
|
case 14:
|
|
1136
1008
|
parsedBody = parsedOutput.body;
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
$metadata: $metadata,
|
|
1009
|
+
throwDefaultError({
|
|
1010
|
+
output: output,
|
|
1011
|
+
parsedBody: parsedBody,
|
|
1012
|
+
exceptionCtor: __BaseException,
|
|
1013
|
+
errorCode: errorCode,
|
|
1143
1014
|
});
|
|
1144
|
-
|
|
1015
|
+
_d.label = 15;
|
|
1016
|
+
case 15: return [2];
|
|
1145
1017
|
}
|
|
1146
1018
|
});
|
|
1147
1019
|
}); };
|
|
@@ -1153,18 +1025,18 @@ export var deserializeAws_restJson1CreateArchiveRuleCommand = function (output,
|
|
|
1153
1025
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1154
1026
|
return [2, deserializeAws_restJson1CreateArchiveRuleCommandError(output, context)];
|
|
1155
1027
|
}
|
|
1156
|
-
contents = {
|
|
1028
|
+
contents = map({
|
|
1157
1029
|
$metadata: deserializeMetadata(output),
|
|
1158
|
-
};
|
|
1030
|
+
});
|
|
1159
1031
|
return [4, collectBody(output.body, context)];
|
|
1160
1032
|
case 1:
|
|
1161
1033
|
_a.sent();
|
|
1162
|
-
return [2,
|
|
1034
|
+
return [2, contents];
|
|
1163
1035
|
}
|
|
1164
1036
|
});
|
|
1165
1037
|
}); };
|
|
1166
1038
|
var deserializeAws_restJson1CreateArchiveRuleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1167
|
-
var parsedOutput, _a,
|
|
1039
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1168
1040
|
var _c;
|
|
1169
1041
|
return __generator(this, function (_d) {
|
|
1170
1042
|
switch (_d.label) {
|
|
@@ -1209,14 +1081,14 @@ var deserializeAws_restJson1CreateArchiveRuleCommandError = function (output, co
|
|
|
1209
1081
|
case 15: throw _d.sent();
|
|
1210
1082
|
case 16:
|
|
1211
1083
|
parsedBody = parsedOutput.body;
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
$metadata: $metadata,
|
|
1084
|
+
throwDefaultError({
|
|
1085
|
+
output: output,
|
|
1086
|
+
parsedBody: parsedBody,
|
|
1087
|
+
exceptionCtor: __BaseException,
|
|
1088
|
+
errorCode: errorCode,
|
|
1218
1089
|
});
|
|
1219
|
-
|
|
1090
|
+
_d.label = 17;
|
|
1091
|
+
case 17: return [2];
|
|
1220
1092
|
}
|
|
1221
1093
|
});
|
|
1222
1094
|
}); };
|
|
@@ -1228,18 +1100,18 @@ export var deserializeAws_restJson1DeleteAnalyzerCommand = function (output, con
|
|
|
1228
1100
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1229
1101
|
return [2, deserializeAws_restJson1DeleteAnalyzerCommandError(output, context)];
|
|
1230
1102
|
}
|
|
1231
|
-
contents = {
|
|
1103
|
+
contents = map({
|
|
1232
1104
|
$metadata: deserializeMetadata(output),
|
|
1233
|
-
};
|
|
1105
|
+
});
|
|
1234
1106
|
return [4, collectBody(output.body, context)];
|
|
1235
1107
|
case 1:
|
|
1236
1108
|
_a.sent();
|
|
1237
|
-
return [2,
|
|
1109
|
+
return [2, contents];
|
|
1238
1110
|
}
|
|
1239
1111
|
});
|
|
1240
1112
|
}); };
|
|
1241
1113
|
var deserializeAws_restJson1DeleteAnalyzerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1242
|
-
var parsedOutput, _a,
|
|
1114
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1243
1115
|
var _c;
|
|
1244
1116
|
return __generator(this, function (_d) {
|
|
1245
1117
|
switch (_d.label) {
|
|
@@ -1276,14 +1148,14 @@ var deserializeAws_restJson1DeleteAnalyzerCommandError = function (output, conte
|
|
|
1276
1148
|
case 11: throw _d.sent();
|
|
1277
1149
|
case 12:
|
|
1278
1150
|
parsedBody = parsedOutput.body;
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
$metadata: $metadata,
|
|
1151
|
+
throwDefaultError({
|
|
1152
|
+
output: output,
|
|
1153
|
+
parsedBody: parsedBody,
|
|
1154
|
+
exceptionCtor: __BaseException,
|
|
1155
|
+
errorCode: errorCode,
|
|
1285
1156
|
});
|
|
1286
|
-
|
|
1157
|
+
_d.label = 13;
|
|
1158
|
+
case 13: return [2];
|
|
1287
1159
|
}
|
|
1288
1160
|
});
|
|
1289
1161
|
}); };
|
|
@@ -1295,18 +1167,18 @@ export var deserializeAws_restJson1DeleteArchiveRuleCommand = function (output,
|
|
|
1295
1167
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1296
1168
|
return [2, deserializeAws_restJson1DeleteArchiveRuleCommandError(output, context)];
|
|
1297
1169
|
}
|
|
1298
|
-
contents = {
|
|
1170
|
+
contents = map({
|
|
1299
1171
|
$metadata: deserializeMetadata(output),
|
|
1300
|
-
};
|
|
1172
|
+
});
|
|
1301
1173
|
return [4, collectBody(output.body, context)];
|
|
1302
1174
|
case 1:
|
|
1303
1175
|
_a.sent();
|
|
1304
|
-
return [2,
|
|
1176
|
+
return [2, contents];
|
|
1305
1177
|
}
|
|
1306
1178
|
});
|
|
1307
1179
|
}); };
|
|
1308
1180
|
var deserializeAws_restJson1DeleteArchiveRuleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1309
|
-
var parsedOutput, _a,
|
|
1181
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1310
1182
|
var _c;
|
|
1311
1183
|
return __generator(this, function (_d) {
|
|
1312
1184
|
switch (_d.label) {
|
|
@@ -1343,14 +1215,14 @@ var deserializeAws_restJson1DeleteArchiveRuleCommandError = function (output, co
|
|
|
1343
1215
|
case 11: throw _d.sent();
|
|
1344
1216
|
case 12:
|
|
1345
1217
|
parsedBody = parsedOutput.body;
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
$metadata: $metadata,
|
|
1218
|
+
throwDefaultError({
|
|
1219
|
+
output: output,
|
|
1220
|
+
parsedBody: parsedBody,
|
|
1221
|
+
exceptionCtor: __BaseException,
|
|
1222
|
+
errorCode: errorCode,
|
|
1352
1223
|
});
|
|
1353
|
-
|
|
1224
|
+
_d.label = 13;
|
|
1225
|
+
case 13: return [2];
|
|
1354
1226
|
}
|
|
1355
1227
|
});
|
|
1356
1228
|
}); };
|
|
@@ -1362,24 +1234,23 @@ export var deserializeAws_restJson1GetAccessPreviewCommand = function (output, c
|
|
|
1362
1234
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1363
1235
|
return [2, deserializeAws_restJson1GetAccessPreviewCommandError(output, context)];
|
|
1364
1236
|
}
|
|
1365
|
-
contents = {
|
|
1237
|
+
contents = map({
|
|
1366
1238
|
$metadata: deserializeMetadata(output),
|
|
1367
|
-
|
|
1368
|
-
};
|
|
1239
|
+
});
|
|
1369
1240
|
_a = __expectNonNull;
|
|
1370
1241
|
_b = __expectObject;
|
|
1371
1242
|
return [4, parseBody(output.body, context)];
|
|
1372
1243
|
case 1:
|
|
1373
1244
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1374
|
-
if (data.accessPreview
|
|
1245
|
+
if (data.accessPreview != null) {
|
|
1375
1246
|
contents.accessPreview = deserializeAws_restJson1AccessPreview(data.accessPreview, context);
|
|
1376
1247
|
}
|
|
1377
|
-
return [2,
|
|
1248
|
+
return [2, contents];
|
|
1378
1249
|
}
|
|
1379
1250
|
});
|
|
1380
1251
|
}); };
|
|
1381
1252
|
var deserializeAws_restJson1GetAccessPreviewCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1382
|
-
var parsedOutput, _a,
|
|
1253
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1383
1254
|
var _c;
|
|
1384
1255
|
return __generator(this, function (_d) {
|
|
1385
1256
|
switch (_d.label) {
|
|
@@ -1416,14 +1287,14 @@ var deserializeAws_restJson1GetAccessPreviewCommandError = function (output, con
|
|
|
1416
1287
|
case 11: throw _d.sent();
|
|
1417
1288
|
case 12:
|
|
1418
1289
|
parsedBody = parsedOutput.body;
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
$metadata: $metadata,
|
|
1290
|
+
throwDefaultError({
|
|
1291
|
+
output: output,
|
|
1292
|
+
parsedBody: parsedBody,
|
|
1293
|
+
exceptionCtor: __BaseException,
|
|
1294
|
+
errorCode: errorCode,
|
|
1425
1295
|
});
|
|
1426
|
-
|
|
1296
|
+
_d.label = 13;
|
|
1297
|
+
case 13: return [2];
|
|
1427
1298
|
}
|
|
1428
1299
|
});
|
|
1429
1300
|
}); };
|
|
@@ -1435,24 +1306,23 @@ export var deserializeAws_restJson1GetAnalyzedResourceCommand = function (output
|
|
|
1435
1306
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1436
1307
|
return [2, deserializeAws_restJson1GetAnalyzedResourceCommandError(output, context)];
|
|
1437
1308
|
}
|
|
1438
|
-
contents = {
|
|
1309
|
+
contents = map({
|
|
1439
1310
|
$metadata: deserializeMetadata(output),
|
|
1440
|
-
|
|
1441
|
-
};
|
|
1311
|
+
});
|
|
1442
1312
|
_a = __expectNonNull;
|
|
1443
1313
|
_b = __expectObject;
|
|
1444
1314
|
return [4, parseBody(output.body, context)];
|
|
1445
1315
|
case 1:
|
|
1446
1316
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1447
|
-
if (data.resource
|
|
1317
|
+
if (data.resource != null) {
|
|
1448
1318
|
contents.resource = deserializeAws_restJson1AnalyzedResource(data.resource, context);
|
|
1449
1319
|
}
|
|
1450
|
-
return [2,
|
|
1320
|
+
return [2, contents];
|
|
1451
1321
|
}
|
|
1452
1322
|
});
|
|
1453
1323
|
}); };
|
|
1454
1324
|
var deserializeAws_restJson1GetAnalyzedResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1455
|
-
var parsedOutput, _a,
|
|
1325
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1456
1326
|
var _c;
|
|
1457
1327
|
return __generator(this, function (_d) {
|
|
1458
1328
|
switch (_d.label) {
|
|
@@ -1489,14 +1359,14 @@ var deserializeAws_restJson1GetAnalyzedResourceCommandError = function (output,
|
|
|
1489
1359
|
case 11: throw _d.sent();
|
|
1490
1360
|
case 12:
|
|
1491
1361
|
parsedBody = parsedOutput.body;
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
$metadata: $metadata,
|
|
1362
|
+
throwDefaultError({
|
|
1363
|
+
output: output,
|
|
1364
|
+
parsedBody: parsedBody,
|
|
1365
|
+
exceptionCtor: __BaseException,
|
|
1366
|
+
errorCode: errorCode,
|
|
1498
1367
|
});
|
|
1499
|
-
|
|
1368
|
+
_d.label = 13;
|
|
1369
|
+
case 13: return [2];
|
|
1500
1370
|
}
|
|
1501
1371
|
});
|
|
1502
1372
|
}); };
|
|
@@ -1508,24 +1378,23 @@ export var deserializeAws_restJson1GetAnalyzerCommand = function (output, contex
|
|
|
1508
1378
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1509
1379
|
return [2, deserializeAws_restJson1GetAnalyzerCommandError(output, context)];
|
|
1510
1380
|
}
|
|
1511
|
-
contents = {
|
|
1381
|
+
contents = map({
|
|
1512
1382
|
$metadata: deserializeMetadata(output),
|
|
1513
|
-
|
|
1514
|
-
};
|
|
1383
|
+
});
|
|
1515
1384
|
_a = __expectNonNull;
|
|
1516
1385
|
_b = __expectObject;
|
|
1517
1386
|
return [4, parseBody(output.body, context)];
|
|
1518
1387
|
case 1:
|
|
1519
1388
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1520
|
-
if (data.analyzer
|
|
1389
|
+
if (data.analyzer != null) {
|
|
1521
1390
|
contents.analyzer = deserializeAws_restJson1AnalyzerSummary(data.analyzer, context);
|
|
1522
1391
|
}
|
|
1523
|
-
return [2,
|
|
1392
|
+
return [2, contents];
|
|
1524
1393
|
}
|
|
1525
1394
|
});
|
|
1526
1395
|
}); };
|
|
1527
1396
|
var deserializeAws_restJson1GetAnalyzerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1528
|
-
var parsedOutput, _a,
|
|
1397
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1529
1398
|
var _c;
|
|
1530
1399
|
return __generator(this, function (_d) {
|
|
1531
1400
|
switch (_d.label) {
|
|
@@ -1562,14 +1431,14 @@ var deserializeAws_restJson1GetAnalyzerCommandError = function (output, context)
|
|
|
1562
1431
|
case 11: throw _d.sent();
|
|
1563
1432
|
case 12:
|
|
1564
1433
|
parsedBody = parsedOutput.body;
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
$metadata: $metadata,
|
|
1434
|
+
throwDefaultError({
|
|
1435
|
+
output: output,
|
|
1436
|
+
parsedBody: parsedBody,
|
|
1437
|
+
exceptionCtor: __BaseException,
|
|
1438
|
+
errorCode: errorCode,
|
|
1571
1439
|
});
|
|
1572
|
-
|
|
1440
|
+
_d.label = 13;
|
|
1441
|
+
case 13: return [2];
|
|
1573
1442
|
}
|
|
1574
1443
|
});
|
|
1575
1444
|
}); };
|
|
@@ -1581,24 +1450,23 @@ export var deserializeAws_restJson1GetArchiveRuleCommand = function (output, con
|
|
|
1581
1450
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1582
1451
|
return [2, deserializeAws_restJson1GetArchiveRuleCommandError(output, context)];
|
|
1583
1452
|
}
|
|
1584
|
-
contents = {
|
|
1453
|
+
contents = map({
|
|
1585
1454
|
$metadata: deserializeMetadata(output),
|
|
1586
|
-
|
|
1587
|
-
};
|
|
1455
|
+
});
|
|
1588
1456
|
_a = __expectNonNull;
|
|
1589
1457
|
_b = __expectObject;
|
|
1590
1458
|
return [4, parseBody(output.body, context)];
|
|
1591
1459
|
case 1:
|
|
1592
1460
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1593
|
-
if (data.archiveRule
|
|
1461
|
+
if (data.archiveRule != null) {
|
|
1594
1462
|
contents.archiveRule = deserializeAws_restJson1ArchiveRuleSummary(data.archiveRule, context);
|
|
1595
1463
|
}
|
|
1596
|
-
return [2,
|
|
1464
|
+
return [2, contents];
|
|
1597
1465
|
}
|
|
1598
1466
|
});
|
|
1599
1467
|
}); };
|
|
1600
1468
|
var deserializeAws_restJson1GetArchiveRuleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1601
|
-
var parsedOutput, _a,
|
|
1469
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1602
1470
|
var _c;
|
|
1603
1471
|
return __generator(this, function (_d) {
|
|
1604
1472
|
switch (_d.label) {
|
|
@@ -1635,14 +1503,14 @@ var deserializeAws_restJson1GetArchiveRuleCommandError = function (output, conte
|
|
|
1635
1503
|
case 11: throw _d.sent();
|
|
1636
1504
|
case 12:
|
|
1637
1505
|
parsedBody = parsedOutput.body;
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
$metadata: $metadata,
|
|
1506
|
+
throwDefaultError({
|
|
1507
|
+
output: output,
|
|
1508
|
+
parsedBody: parsedBody,
|
|
1509
|
+
exceptionCtor: __BaseException,
|
|
1510
|
+
errorCode: errorCode,
|
|
1644
1511
|
});
|
|
1645
|
-
|
|
1512
|
+
_d.label = 13;
|
|
1513
|
+
case 13: return [2];
|
|
1646
1514
|
}
|
|
1647
1515
|
});
|
|
1648
1516
|
}); };
|
|
@@ -1654,24 +1522,23 @@ export var deserializeAws_restJson1GetFindingCommand = function (output, context
|
|
|
1654
1522
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1655
1523
|
return [2, deserializeAws_restJson1GetFindingCommandError(output, context)];
|
|
1656
1524
|
}
|
|
1657
|
-
contents = {
|
|
1525
|
+
contents = map({
|
|
1658
1526
|
$metadata: deserializeMetadata(output),
|
|
1659
|
-
|
|
1660
|
-
};
|
|
1527
|
+
});
|
|
1661
1528
|
_a = __expectNonNull;
|
|
1662
1529
|
_b = __expectObject;
|
|
1663
1530
|
return [4, parseBody(output.body, context)];
|
|
1664
1531
|
case 1:
|
|
1665
1532
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1666
|
-
if (data.finding
|
|
1533
|
+
if (data.finding != null) {
|
|
1667
1534
|
contents.finding = deserializeAws_restJson1Finding(data.finding, context);
|
|
1668
1535
|
}
|
|
1669
|
-
return [2,
|
|
1536
|
+
return [2, contents];
|
|
1670
1537
|
}
|
|
1671
1538
|
});
|
|
1672
1539
|
}); };
|
|
1673
1540
|
var deserializeAws_restJson1GetFindingCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1674
|
-
var parsedOutput, _a,
|
|
1541
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1675
1542
|
var _c;
|
|
1676
1543
|
return __generator(this, function (_d) {
|
|
1677
1544
|
switch (_d.label) {
|
|
@@ -1708,14 +1575,14 @@ var deserializeAws_restJson1GetFindingCommandError = function (output, context)
|
|
|
1708
1575
|
case 11: throw _d.sent();
|
|
1709
1576
|
case 12:
|
|
1710
1577
|
parsedBody = parsedOutput.body;
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
$metadata: $metadata,
|
|
1578
|
+
throwDefaultError({
|
|
1579
|
+
output: output,
|
|
1580
|
+
parsedBody: parsedBody,
|
|
1581
|
+
exceptionCtor: __BaseException,
|
|
1582
|
+
errorCode: errorCode,
|
|
1717
1583
|
});
|
|
1718
|
-
|
|
1584
|
+
_d.label = 13;
|
|
1585
|
+
case 13: return [2];
|
|
1719
1586
|
}
|
|
1720
1587
|
});
|
|
1721
1588
|
}); };
|
|
@@ -1727,28 +1594,26 @@ export var deserializeAws_restJson1GetGeneratedPolicyCommand = function (output,
|
|
|
1727
1594
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1728
1595
|
return [2, deserializeAws_restJson1GetGeneratedPolicyCommandError(output, context)];
|
|
1729
1596
|
}
|
|
1730
|
-
contents = {
|
|
1597
|
+
contents = map({
|
|
1731
1598
|
$metadata: deserializeMetadata(output),
|
|
1732
|
-
|
|
1733
|
-
jobDetails: undefined,
|
|
1734
|
-
};
|
|
1599
|
+
});
|
|
1735
1600
|
_a = __expectNonNull;
|
|
1736
1601
|
_b = __expectObject;
|
|
1737
1602
|
return [4, parseBody(output.body, context)];
|
|
1738
1603
|
case 1:
|
|
1739
1604
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1740
|
-
if (data.generatedPolicyResult
|
|
1605
|
+
if (data.generatedPolicyResult != null) {
|
|
1741
1606
|
contents.generatedPolicyResult = deserializeAws_restJson1GeneratedPolicyResult(data.generatedPolicyResult, context);
|
|
1742
1607
|
}
|
|
1743
|
-
if (data.jobDetails
|
|
1608
|
+
if (data.jobDetails != null) {
|
|
1744
1609
|
contents.jobDetails = deserializeAws_restJson1JobDetails(data.jobDetails, context);
|
|
1745
1610
|
}
|
|
1746
|
-
return [2,
|
|
1611
|
+
return [2, contents];
|
|
1747
1612
|
}
|
|
1748
1613
|
});
|
|
1749
1614
|
}); };
|
|
1750
1615
|
var deserializeAws_restJson1GetGeneratedPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1751
|
-
var parsedOutput, _a,
|
|
1616
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1752
1617
|
var _c;
|
|
1753
1618
|
return __generator(this, function (_d) {
|
|
1754
1619
|
switch (_d.label) {
|
|
@@ -1781,14 +1646,14 @@ var deserializeAws_restJson1GetGeneratedPolicyCommandError = function (output, c
|
|
|
1781
1646
|
case 9: throw _d.sent();
|
|
1782
1647
|
case 10:
|
|
1783
1648
|
parsedBody = parsedOutput.body;
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
$metadata: $metadata,
|
|
1649
|
+
throwDefaultError({
|
|
1650
|
+
output: output,
|
|
1651
|
+
parsedBody: parsedBody,
|
|
1652
|
+
exceptionCtor: __BaseException,
|
|
1653
|
+
errorCode: errorCode,
|
|
1790
1654
|
});
|
|
1791
|
-
|
|
1655
|
+
_d.label = 11;
|
|
1656
|
+
case 11: return [2];
|
|
1792
1657
|
}
|
|
1793
1658
|
});
|
|
1794
1659
|
}); };
|
|
@@ -1800,28 +1665,26 @@ export var deserializeAws_restJson1ListAccessPreviewFindingsCommand = function (
|
|
|
1800
1665
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1801
1666
|
return [2, deserializeAws_restJson1ListAccessPreviewFindingsCommandError(output, context)];
|
|
1802
1667
|
}
|
|
1803
|
-
contents = {
|
|
1668
|
+
contents = map({
|
|
1804
1669
|
$metadata: deserializeMetadata(output),
|
|
1805
|
-
|
|
1806
|
-
nextToken: undefined,
|
|
1807
|
-
};
|
|
1670
|
+
});
|
|
1808
1671
|
_a = __expectNonNull;
|
|
1809
1672
|
_b = __expectObject;
|
|
1810
1673
|
return [4, parseBody(output.body, context)];
|
|
1811
1674
|
case 1:
|
|
1812
1675
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1813
|
-
if (data.findings
|
|
1676
|
+
if (data.findings != null) {
|
|
1814
1677
|
contents.findings = deserializeAws_restJson1AccessPreviewFindingsList(data.findings, context);
|
|
1815
1678
|
}
|
|
1816
|
-
if (data.nextToken
|
|
1679
|
+
if (data.nextToken != null) {
|
|
1817
1680
|
contents.nextToken = __expectString(data.nextToken);
|
|
1818
1681
|
}
|
|
1819
|
-
return [2,
|
|
1682
|
+
return [2, contents];
|
|
1820
1683
|
}
|
|
1821
1684
|
});
|
|
1822
1685
|
}); };
|
|
1823
1686
|
var deserializeAws_restJson1ListAccessPreviewFindingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1824
|
-
var parsedOutput, _a,
|
|
1687
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1825
1688
|
var _c;
|
|
1826
1689
|
return __generator(this, function (_d) {
|
|
1827
1690
|
switch (_d.label) {
|
|
@@ -1862,14 +1725,14 @@ var deserializeAws_restJson1ListAccessPreviewFindingsCommandError = function (ou
|
|
|
1862
1725
|
case 13: throw _d.sent();
|
|
1863
1726
|
case 14:
|
|
1864
1727
|
parsedBody = parsedOutput.body;
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
$metadata: $metadata,
|
|
1728
|
+
throwDefaultError({
|
|
1729
|
+
output: output,
|
|
1730
|
+
parsedBody: parsedBody,
|
|
1731
|
+
exceptionCtor: __BaseException,
|
|
1732
|
+
errorCode: errorCode,
|
|
1871
1733
|
});
|
|
1872
|
-
|
|
1734
|
+
_d.label = 15;
|
|
1735
|
+
case 15: return [2];
|
|
1873
1736
|
}
|
|
1874
1737
|
});
|
|
1875
1738
|
}); };
|
|
@@ -1881,28 +1744,26 @@ export var deserializeAws_restJson1ListAccessPreviewsCommand = function (output,
|
|
|
1881
1744
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1882
1745
|
return [2, deserializeAws_restJson1ListAccessPreviewsCommandError(output, context)];
|
|
1883
1746
|
}
|
|
1884
|
-
contents = {
|
|
1747
|
+
contents = map({
|
|
1885
1748
|
$metadata: deserializeMetadata(output),
|
|
1886
|
-
|
|
1887
|
-
nextToken: undefined,
|
|
1888
|
-
};
|
|
1749
|
+
});
|
|
1889
1750
|
_a = __expectNonNull;
|
|
1890
1751
|
_b = __expectObject;
|
|
1891
1752
|
return [4, parseBody(output.body, context)];
|
|
1892
1753
|
case 1:
|
|
1893
1754
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1894
|
-
if (data.accessPreviews
|
|
1755
|
+
if (data.accessPreviews != null) {
|
|
1895
1756
|
contents.accessPreviews = deserializeAws_restJson1AccessPreviewsList(data.accessPreviews, context);
|
|
1896
1757
|
}
|
|
1897
|
-
if (data.nextToken
|
|
1758
|
+
if (data.nextToken != null) {
|
|
1898
1759
|
contents.nextToken = __expectString(data.nextToken);
|
|
1899
1760
|
}
|
|
1900
|
-
return [2,
|
|
1761
|
+
return [2, contents];
|
|
1901
1762
|
}
|
|
1902
1763
|
});
|
|
1903
1764
|
}); };
|
|
1904
1765
|
var deserializeAws_restJson1ListAccessPreviewsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1905
|
-
var parsedOutput, _a,
|
|
1766
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1906
1767
|
var _c;
|
|
1907
1768
|
return __generator(this, function (_d) {
|
|
1908
1769
|
switch (_d.label) {
|
|
@@ -1939,14 +1800,14 @@ var deserializeAws_restJson1ListAccessPreviewsCommandError = function (output, c
|
|
|
1939
1800
|
case 11: throw _d.sent();
|
|
1940
1801
|
case 12:
|
|
1941
1802
|
parsedBody = parsedOutput.body;
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
$metadata: $metadata,
|
|
1803
|
+
throwDefaultError({
|
|
1804
|
+
output: output,
|
|
1805
|
+
parsedBody: parsedBody,
|
|
1806
|
+
exceptionCtor: __BaseException,
|
|
1807
|
+
errorCode: errorCode,
|
|
1948
1808
|
});
|
|
1949
|
-
|
|
1809
|
+
_d.label = 13;
|
|
1810
|
+
case 13: return [2];
|
|
1950
1811
|
}
|
|
1951
1812
|
});
|
|
1952
1813
|
}); };
|
|
@@ -1958,28 +1819,26 @@ export var deserializeAws_restJson1ListAnalyzedResourcesCommand = function (outp
|
|
|
1958
1819
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1959
1820
|
return [2, deserializeAws_restJson1ListAnalyzedResourcesCommandError(output, context)];
|
|
1960
1821
|
}
|
|
1961
|
-
contents = {
|
|
1822
|
+
contents = map({
|
|
1962
1823
|
$metadata: deserializeMetadata(output),
|
|
1963
|
-
|
|
1964
|
-
nextToken: undefined,
|
|
1965
|
-
};
|
|
1824
|
+
});
|
|
1966
1825
|
_a = __expectNonNull;
|
|
1967
1826
|
_b = __expectObject;
|
|
1968
1827
|
return [4, parseBody(output.body, context)];
|
|
1969
1828
|
case 1:
|
|
1970
1829
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1971
|
-
if (data.analyzedResources
|
|
1830
|
+
if (data.analyzedResources != null) {
|
|
1972
1831
|
contents.analyzedResources = deserializeAws_restJson1AnalyzedResourcesList(data.analyzedResources, context);
|
|
1973
1832
|
}
|
|
1974
|
-
if (data.nextToken
|
|
1833
|
+
if (data.nextToken != null) {
|
|
1975
1834
|
contents.nextToken = __expectString(data.nextToken);
|
|
1976
1835
|
}
|
|
1977
|
-
return [2,
|
|
1836
|
+
return [2, contents];
|
|
1978
1837
|
}
|
|
1979
1838
|
});
|
|
1980
1839
|
}); };
|
|
1981
1840
|
var deserializeAws_restJson1ListAnalyzedResourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1982
|
-
var parsedOutput, _a,
|
|
1841
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1983
1842
|
var _c;
|
|
1984
1843
|
return __generator(this, function (_d) {
|
|
1985
1844
|
switch (_d.label) {
|
|
@@ -2016,14 +1875,14 @@ var deserializeAws_restJson1ListAnalyzedResourcesCommandError = function (output
|
|
|
2016
1875
|
case 11: throw _d.sent();
|
|
2017
1876
|
case 12:
|
|
2018
1877
|
parsedBody = parsedOutput.body;
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
$metadata: $metadata,
|
|
1878
|
+
throwDefaultError({
|
|
1879
|
+
output: output,
|
|
1880
|
+
parsedBody: parsedBody,
|
|
1881
|
+
exceptionCtor: __BaseException,
|
|
1882
|
+
errorCode: errorCode,
|
|
2025
1883
|
});
|
|
2026
|
-
|
|
1884
|
+
_d.label = 13;
|
|
1885
|
+
case 13: return [2];
|
|
2027
1886
|
}
|
|
2028
1887
|
});
|
|
2029
1888
|
}); };
|
|
@@ -2035,28 +1894,26 @@ export var deserializeAws_restJson1ListAnalyzersCommand = function (output, cont
|
|
|
2035
1894
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2036
1895
|
return [2, deserializeAws_restJson1ListAnalyzersCommandError(output, context)];
|
|
2037
1896
|
}
|
|
2038
|
-
contents = {
|
|
1897
|
+
contents = map({
|
|
2039
1898
|
$metadata: deserializeMetadata(output),
|
|
2040
|
-
|
|
2041
|
-
nextToken: undefined,
|
|
2042
|
-
};
|
|
1899
|
+
});
|
|
2043
1900
|
_a = __expectNonNull;
|
|
2044
1901
|
_b = __expectObject;
|
|
2045
1902
|
return [4, parseBody(output.body, context)];
|
|
2046
1903
|
case 1:
|
|
2047
1904
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2048
|
-
if (data.analyzers
|
|
1905
|
+
if (data.analyzers != null) {
|
|
2049
1906
|
contents.analyzers = deserializeAws_restJson1AnalyzersList(data.analyzers, context);
|
|
2050
1907
|
}
|
|
2051
|
-
if (data.nextToken
|
|
1908
|
+
if (data.nextToken != null) {
|
|
2052
1909
|
contents.nextToken = __expectString(data.nextToken);
|
|
2053
1910
|
}
|
|
2054
|
-
return [2,
|
|
1911
|
+
return [2, contents];
|
|
2055
1912
|
}
|
|
2056
1913
|
});
|
|
2057
1914
|
}); };
|
|
2058
1915
|
var deserializeAws_restJson1ListAnalyzersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2059
|
-
var parsedOutput, _a,
|
|
1916
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2060
1917
|
var _c;
|
|
2061
1918
|
return __generator(this, function (_d) {
|
|
2062
1919
|
switch (_d.label) {
|
|
@@ -2089,14 +1946,14 @@ var deserializeAws_restJson1ListAnalyzersCommandError = function (output, contex
|
|
|
2089
1946
|
case 9: throw _d.sent();
|
|
2090
1947
|
case 10:
|
|
2091
1948
|
parsedBody = parsedOutput.body;
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
$metadata: $metadata,
|
|
1949
|
+
throwDefaultError({
|
|
1950
|
+
output: output,
|
|
1951
|
+
parsedBody: parsedBody,
|
|
1952
|
+
exceptionCtor: __BaseException,
|
|
1953
|
+
errorCode: errorCode,
|
|
2098
1954
|
});
|
|
2099
|
-
|
|
1955
|
+
_d.label = 11;
|
|
1956
|
+
case 11: return [2];
|
|
2100
1957
|
}
|
|
2101
1958
|
});
|
|
2102
1959
|
}); };
|
|
@@ -2108,28 +1965,26 @@ export var deserializeAws_restJson1ListArchiveRulesCommand = function (output, c
|
|
|
2108
1965
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2109
1966
|
return [2, deserializeAws_restJson1ListArchiveRulesCommandError(output, context)];
|
|
2110
1967
|
}
|
|
2111
|
-
contents = {
|
|
1968
|
+
contents = map({
|
|
2112
1969
|
$metadata: deserializeMetadata(output),
|
|
2113
|
-
|
|
2114
|
-
nextToken: undefined,
|
|
2115
|
-
};
|
|
1970
|
+
});
|
|
2116
1971
|
_a = __expectNonNull;
|
|
2117
1972
|
_b = __expectObject;
|
|
2118
1973
|
return [4, parseBody(output.body, context)];
|
|
2119
1974
|
case 1:
|
|
2120
1975
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2121
|
-
if (data.archiveRules
|
|
1976
|
+
if (data.archiveRules != null) {
|
|
2122
1977
|
contents.archiveRules = deserializeAws_restJson1ArchiveRulesList(data.archiveRules, context);
|
|
2123
1978
|
}
|
|
2124
|
-
if (data.nextToken
|
|
1979
|
+
if (data.nextToken != null) {
|
|
2125
1980
|
contents.nextToken = __expectString(data.nextToken);
|
|
2126
1981
|
}
|
|
2127
|
-
return [2,
|
|
1982
|
+
return [2, contents];
|
|
2128
1983
|
}
|
|
2129
1984
|
});
|
|
2130
1985
|
}); };
|
|
2131
1986
|
var deserializeAws_restJson1ListArchiveRulesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2132
|
-
var parsedOutput, _a,
|
|
1987
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2133
1988
|
var _c;
|
|
2134
1989
|
return __generator(this, function (_d) {
|
|
2135
1990
|
switch (_d.label) {
|
|
@@ -2162,14 +2017,14 @@ var deserializeAws_restJson1ListArchiveRulesCommandError = function (output, con
|
|
|
2162
2017
|
case 9: throw _d.sent();
|
|
2163
2018
|
case 10:
|
|
2164
2019
|
parsedBody = parsedOutput.body;
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
$metadata: $metadata,
|
|
2020
|
+
throwDefaultError({
|
|
2021
|
+
output: output,
|
|
2022
|
+
parsedBody: parsedBody,
|
|
2023
|
+
exceptionCtor: __BaseException,
|
|
2024
|
+
errorCode: errorCode,
|
|
2171
2025
|
});
|
|
2172
|
-
|
|
2026
|
+
_d.label = 11;
|
|
2027
|
+
case 11: return [2];
|
|
2173
2028
|
}
|
|
2174
2029
|
});
|
|
2175
2030
|
}); };
|
|
@@ -2181,28 +2036,26 @@ export var deserializeAws_restJson1ListFindingsCommand = function (output, conte
|
|
|
2181
2036
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2182
2037
|
return [2, deserializeAws_restJson1ListFindingsCommandError(output, context)];
|
|
2183
2038
|
}
|
|
2184
|
-
contents = {
|
|
2039
|
+
contents = map({
|
|
2185
2040
|
$metadata: deserializeMetadata(output),
|
|
2186
|
-
|
|
2187
|
-
nextToken: undefined,
|
|
2188
|
-
};
|
|
2041
|
+
});
|
|
2189
2042
|
_a = __expectNonNull;
|
|
2190
2043
|
_b = __expectObject;
|
|
2191
2044
|
return [4, parseBody(output.body, context)];
|
|
2192
2045
|
case 1:
|
|
2193
2046
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2194
|
-
if (data.findings
|
|
2047
|
+
if (data.findings != null) {
|
|
2195
2048
|
contents.findings = deserializeAws_restJson1FindingsList(data.findings, context);
|
|
2196
2049
|
}
|
|
2197
|
-
if (data.nextToken
|
|
2050
|
+
if (data.nextToken != null) {
|
|
2198
2051
|
contents.nextToken = __expectString(data.nextToken);
|
|
2199
2052
|
}
|
|
2200
|
-
return [2,
|
|
2053
|
+
return [2, contents];
|
|
2201
2054
|
}
|
|
2202
2055
|
});
|
|
2203
2056
|
}); };
|
|
2204
2057
|
var deserializeAws_restJson1ListFindingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2205
|
-
var parsedOutput, _a,
|
|
2058
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2206
2059
|
var _c;
|
|
2207
2060
|
return __generator(this, function (_d) {
|
|
2208
2061
|
switch (_d.label) {
|
|
@@ -2239,14 +2092,14 @@ var deserializeAws_restJson1ListFindingsCommandError = function (output, context
|
|
|
2239
2092
|
case 11: throw _d.sent();
|
|
2240
2093
|
case 12:
|
|
2241
2094
|
parsedBody = parsedOutput.body;
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
$metadata: $metadata,
|
|
2095
|
+
throwDefaultError({
|
|
2096
|
+
output: output,
|
|
2097
|
+
parsedBody: parsedBody,
|
|
2098
|
+
exceptionCtor: __BaseException,
|
|
2099
|
+
errorCode: errorCode,
|
|
2248
2100
|
});
|
|
2249
|
-
|
|
2101
|
+
_d.label = 13;
|
|
2102
|
+
case 13: return [2];
|
|
2250
2103
|
}
|
|
2251
2104
|
});
|
|
2252
2105
|
}); };
|
|
@@ -2258,28 +2111,26 @@ export var deserializeAws_restJson1ListPolicyGenerationsCommand = function (outp
|
|
|
2258
2111
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2259
2112
|
return [2, deserializeAws_restJson1ListPolicyGenerationsCommandError(output, context)];
|
|
2260
2113
|
}
|
|
2261
|
-
contents = {
|
|
2114
|
+
contents = map({
|
|
2262
2115
|
$metadata: deserializeMetadata(output),
|
|
2263
|
-
|
|
2264
|
-
policyGenerations: undefined,
|
|
2265
|
-
};
|
|
2116
|
+
});
|
|
2266
2117
|
_a = __expectNonNull;
|
|
2267
2118
|
_b = __expectObject;
|
|
2268
2119
|
return [4, parseBody(output.body, context)];
|
|
2269
2120
|
case 1:
|
|
2270
2121
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2271
|
-
if (data.nextToken
|
|
2122
|
+
if (data.nextToken != null) {
|
|
2272
2123
|
contents.nextToken = __expectString(data.nextToken);
|
|
2273
2124
|
}
|
|
2274
|
-
if (data.policyGenerations
|
|
2125
|
+
if (data.policyGenerations != null) {
|
|
2275
2126
|
contents.policyGenerations = deserializeAws_restJson1PolicyGenerationList(data.policyGenerations, context);
|
|
2276
2127
|
}
|
|
2277
|
-
return [2,
|
|
2128
|
+
return [2, contents];
|
|
2278
2129
|
}
|
|
2279
2130
|
});
|
|
2280
2131
|
}); };
|
|
2281
2132
|
var deserializeAws_restJson1ListPolicyGenerationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2282
|
-
var parsedOutput, _a,
|
|
2133
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2283
2134
|
var _c;
|
|
2284
2135
|
return __generator(this, function (_d) {
|
|
2285
2136
|
switch (_d.label) {
|
|
@@ -2312,14 +2163,14 @@ var deserializeAws_restJson1ListPolicyGenerationsCommandError = function (output
|
|
|
2312
2163
|
case 9: throw _d.sent();
|
|
2313
2164
|
case 10:
|
|
2314
2165
|
parsedBody = parsedOutput.body;
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
$metadata: $metadata,
|
|
2166
|
+
throwDefaultError({
|
|
2167
|
+
output: output,
|
|
2168
|
+
parsedBody: parsedBody,
|
|
2169
|
+
exceptionCtor: __BaseException,
|
|
2170
|
+
errorCode: errorCode,
|
|
2321
2171
|
});
|
|
2322
|
-
|
|
2172
|
+
_d.label = 11;
|
|
2173
|
+
case 11: return [2];
|
|
2323
2174
|
}
|
|
2324
2175
|
});
|
|
2325
2176
|
}); };
|
|
@@ -2331,24 +2182,23 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2331
2182
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2332
2183
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
2333
2184
|
}
|
|
2334
|
-
contents = {
|
|
2185
|
+
contents = map({
|
|
2335
2186
|
$metadata: deserializeMetadata(output),
|
|
2336
|
-
|
|
2337
|
-
};
|
|
2187
|
+
});
|
|
2338
2188
|
_a = __expectNonNull;
|
|
2339
2189
|
_b = __expectObject;
|
|
2340
2190
|
return [4, parseBody(output.body, context)];
|
|
2341
2191
|
case 1:
|
|
2342
2192
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2343
|
-
if (data.tags
|
|
2193
|
+
if (data.tags != null) {
|
|
2344
2194
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
2345
2195
|
}
|
|
2346
|
-
return [2,
|
|
2196
|
+
return [2, contents];
|
|
2347
2197
|
}
|
|
2348
2198
|
});
|
|
2349
2199
|
}); };
|
|
2350
2200
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2351
|
-
var parsedOutput, _a,
|
|
2201
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2352
2202
|
var _c;
|
|
2353
2203
|
return __generator(this, function (_d) {
|
|
2354
2204
|
switch (_d.label) {
|
|
@@ -2385,14 +2235,14 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2385
2235
|
case 11: throw _d.sent();
|
|
2386
2236
|
case 12:
|
|
2387
2237
|
parsedBody = parsedOutput.body;
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
$metadata: $metadata,
|
|
2238
|
+
throwDefaultError({
|
|
2239
|
+
output: output,
|
|
2240
|
+
parsedBody: parsedBody,
|
|
2241
|
+
exceptionCtor: __BaseException,
|
|
2242
|
+
errorCode: errorCode,
|
|
2394
2243
|
});
|
|
2395
|
-
|
|
2244
|
+
_d.label = 13;
|
|
2245
|
+
case 13: return [2];
|
|
2396
2246
|
}
|
|
2397
2247
|
});
|
|
2398
2248
|
}); };
|
|
@@ -2404,24 +2254,23 @@ export var deserializeAws_restJson1StartPolicyGenerationCommand = function (outp
|
|
|
2404
2254
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2405
2255
|
return [2, deserializeAws_restJson1StartPolicyGenerationCommandError(output, context)];
|
|
2406
2256
|
}
|
|
2407
|
-
contents = {
|
|
2257
|
+
contents = map({
|
|
2408
2258
|
$metadata: deserializeMetadata(output),
|
|
2409
|
-
|
|
2410
|
-
};
|
|
2259
|
+
});
|
|
2411
2260
|
_a = __expectNonNull;
|
|
2412
2261
|
_b = __expectObject;
|
|
2413
2262
|
return [4, parseBody(output.body, context)];
|
|
2414
2263
|
case 1:
|
|
2415
2264
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2416
|
-
if (data.jobId
|
|
2265
|
+
if (data.jobId != null) {
|
|
2417
2266
|
contents.jobId = __expectString(data.jobId);
|
|
2418
2267
|
}
|
|
2419
|
-
return [2,
|
|
2268
|
+
return [2, contents];
|
|
2420
2269
|
}
|
|
2421
2270
|
});
|
|
2422
2271
|
}); };
|
|
2423
2272
|
var deserializeAws_restJson1StartPolicyGenerationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2424
|
-
var parsedOutput, _a,
|
|
2273
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2425
2274
|
var _c;
|
|
2426
2275
|
return __generator(this, function (_d) {
|
|
2427
2276
|
switch (_d.label) {
|
|
@@ -2462,14 +2311,14 @@ var deserializeAws_restJson1StartPolicyGenerationCommandError = function (output
|
|
|
2462
2311
|
case 13: throw _d.sent();
|
|
2463
2312
|
case 14:
|
|
2464
2313
|
parsedBody = parsedOutput.body;
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
$metadata: $metadata,
|
|
2314
|
+
throwDefaultError({
|
|
2315
|
+
output: output,
|
|
2316
|
+
parsedBody: parsedBody,
|
|
2317
|
+
exceptionCtor: __BaseException,
|
|
2318
|
+
errorCode: errorCode,
|
|
2471
2319
|
});
|
|
2472
|
-
|
|
2320
|
+
_d.label = 15;
|
|
2321
|
+
case 15: return [2];
|
|
2473
2322
|
}
|
|
2474
2323
|
});
|
|
2475
2324
|
}); };
|
|
@@ -2481,18 +2330,18 @@ export var deserializeAws_restJson1StartResourceScanCommand = function (output,
|
|
|
2481
2330
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2482
2331
|
return [2, deserializeAws_restJson1StartResourceScanCommandError(output, context)];
|
|
2483
2332
|
}
|
|
2484
|
-
contents = {
|
|
2333
|
+
contents = map({
|
|
2485
2334
|
$metadata: deserializeMetadata(output),
|
|
2486
|
-
};
|
|
2335
|
+
});
|
|
2487
2336
|
return [4, collectBody(output.body, context)];
|
|
2488
2337
|
case 1:
|
|
2489
2338
|
_a.sent();
|
|
2490
|
-
return [2,
|
|
2339
|
+
return [2, contents];
|
|
2491
2340
|
}
|
|
2492
2341
|
});
|
|
2493
2342
|
}); };
|
|
2494
2343
|
var deserializeAws_restJson1StartResourceScanCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2495
|
-
var parsedOutput, _a,
|
|
2344
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2496
2345
|
var _c;
|
|
2497
2346
|
return __generator(this, function (_d) {
|
|
2498
2347
|
switch (_d.label) {
|
|
@@ -2529,14 +2378,14 @@ var deserializeAws_restJson1StartResourceScanCommandError = function (output, co
|
|
|
2529
2378
|
case 11: throw _d.sent();
|
|
2530
2379
|
case 12:
|
|
2531
2380
|
parsedBody = parsedOutput.body;
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
$metadata: $metadata,
|
|
2381
|
+
throwDefaultError({
|
|
2382
|
+
output: output,
|
|
2383
|
+
parsedBody: parsedBody,
|
|
2384
|
+
exceptionCtor: __BaseException,
|
|
2385
|
+
errorCode: errorCode,
|
|
2538
2386
|
});
|
|
2539
|
-
|
|
2387
|
+
_d.label = 13;
|
|
2388
|
+
case 13: return [2];
|
|
2540
2389
|
}
|
|
2541
2390
|
});
|
|
2542
2391
|
}); };
|
|
@@ -2548,18 +2397,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
2548
2397
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2549
2398
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
2550
2399
|
}
|
|
2551
|
-
contents = {
|
|
2400
|
+
contents = map({
|
|
2552
2401
|
$metadata: deserializeMetadata(output),
|
|
2553
|
-
};
|
|
2402
|
+
});
|
|
2554
2403
|
return [4, collectBody(output.body, context)];
|
|
2555
2404
|
case 1:
|
|
2556
2405
|
_a.sent();
|
|
2557
|
-
return [2,
|
|
2406
|
+
return [2, contents];
|
|
2558
2407
|
}
|
|
2559
2408
|
});
|
|
2560
2409
|
}); };
|
|
2561
2410
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2562
|
-
var parsedOutput, _a,
|
|
2411
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2563
2412
|
var _c;
|
|
2564
2413
|
return __generator(this, function (_d) {
|
|
2565
2414
|
switch (_d.label) {
|
|
@@ -2596,14 +2445,14 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2596
2445
|
case 11: throw _d.sent();
|
|
2597
2446
|
case 12:
|
|
2598
2447
|
parsedBody = parsedOutput.body;
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
$metadata: $metadata,
|
|
2448
|
+
throwDefaultError({
|
|
2449
|
+
output: output,
|
|
2450
|
+
parsedBody: parsedBody,
|
|
2451
|
+
exceptionCtor: __BaseException,
|
|
2452
|
+
errorCode: errorCode,
|
|
2605
2453
|
});
|
|
2606
|
-
|
|
2454
|
+
_d.label = 13;
|
|
2455
|
+
case 13: return [2];
|
|
2607
2456
|
}
|
|
2608
2457
|
});
|
|
2609
2458
|
}); };
|
|
@@ -2615,18 +2464,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
2615
2464
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2616
2465
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
2617
2466
|
}
|
|
2618
|
-
contents = {
|
|
2467
|
+
contents = map({
|
|
2619
2468
|
$metadata: deserializeMetadata(output),
|
|
2620
|
-
};
|
|
2469
|
+
});
|
|
2621
2470
|
return [4, collectBody(output.body, context)];
|
|
2622
2471
|
case 1:
|
|
2623
2472
|
_a.sent();
|
|
2624
|
-
return [2,
|
|
2473
|
+
return [2, contents];
|
|
2625
2474
|
}
|
|
2626
2475
|
});
|
|
2627
2476
|
}); };
|
|
2628
2477
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2629
|
-
var parsedOutput, _a,
|
|
2478
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2630
2479
|
var _c;
|
|
2631
2480
|
return __generator(this, function (_d) {
|
|
2632
2481
|
switch (_d.label) {
|
|
@@ -2663,14 +2512,14 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2663
2512
|
case 11: throw _d.sent();
|
|
2664
2513
|
case 12:
|
|
2665
2514
|
parsedBody = parsedOutput.body;
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
$metadata: $metadata,
|
|
2515
|
+
throwDefaultError({
|
|
2516
|
+
output: output,
|
|
2517
|
+
parsedBody: parsedBody,
|
|
2518
|
+
exceptionCtor: __BaseException,
|
|
2519
|
+
errorCode: errorCode,
|
|
2672
2520
|
});
|
|
2673
|
-
|
|
2521
|
+
_d.label = 13;
|
|
2522
|
+
case 13: return [2];
|
|
2674
2523
|
}
|
|
2675
2524
|
});
|
|
2676
2525
|
}); };
|
|
@@ -2682,18 +2531,18 @@ export var deserializeAws_restJson1UpdateArchiveRuleCommand = function (output,
|
|
|
2682
2531
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2683
2532
|
return [2, deserializeAws_restJson1UpdateArchiveRuleCommandError(output, context)];
|
|
2684
2533
|
}
|
|
2685
|
-
contents = {
|
|
2534
|
+
contents = map({
|
|
2686
2535
|
$metadata: deserializeMetadata(output),
|
|
2687
|
-
};
|
|
2536
|
+
});
|
|
2688
2537
|
return [4, collectBody(output.body, context)];
|
|
2689
2538
|
case 1:
|
|
2690
2539
|
_a.sent();
|
|
2691
|
-
return [2,
|
|
2540
|
+
return [2, contents];
|
|
2692
2541
|
}
|
|
2693
2542
|
});
|
|
2694
2543
|
}); };
|
|
2695
2544
|
var deserializeAws_restJson1UpdateArchiveRuleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2696
|
-
var parsedOutput, _a,
|
|
2545
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2697
2546
|
var _c;
|
|
2698
2547
|
return __generator(this, function (_d) {
|
|
2699
2548
|
switch (_d.label) {
|
|
@@ -2730,14 +2579,14 @@ var deserializeAws_restJson1UpdateArchiveRuleCommandError = function (output, co
|
|
|
2730
2579
|
case 11: throw _d.sent();
|
|
2731
2580
|
case 12:
|
|
2732
2581
|
parsedBody = parsedOutput.body;
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
$metadata: $metadata,
|
|
2582
|
+
throwDefaultError({
|
|
2583
|
+
output: output,
|
|
2584
|
+
parsedBody: parsedBody,
|
|
2585
|
+
exceptionCtor: __BaseException,
|
|
2586
|
+
errorCode: errorCode,
|
|
2739
2587
|
});
|
|
2740
|
-
|
|
2588
|
+
_d.label = 13;
|
|
2589
|
+
case 13: return [2];
|
|
2741
2590
|
}
|
|
2742
2591
|
});
|
|
2743
2592
|
}); };
|
|
@@ -2749,18 +2598,18 @@ export var deserializeAws_restJson1UpdateFindingsCommand = function (output, con
|
|
|
2749
2598
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2750
2599
|
return [2, deserializeAws_restJson1UpdateFindingsCommandError(output, context)];
|
|
2751
2600
|
}
|
|
2752
|
-
contents = {
|
|
2601
|
+
contents = map({
|
|
2753
2602
|
$metadata: deserializeMetadata(output),
|
|
2754
|
-
};
|
|
2603
|
+
});
|
|
2755
2604
|
return [4, collectBody(output.body, context)];
|
|
2756
2605
|
case 1:
|
|
2757
2606
|
_a.sent();
|
|
2758
|
-
return [2,
|
|
2607
|
+
return [2, contents];
|
|
2759
2608
|
}
|
|
2760
2609
|
});
|
|
2761
2610
|
}); };
|
|
2762
2611
|
var deserializeAws_restJson1UpdateFindingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2763
|
-
var parsedOutput, _a,
|
|
2612
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2764
2613
|
var _c;
|
|
2765
2614
|
return __generator(this, function (_d) {
|
|
2766
2615
|
switch (_d.label) {
|
|
@@ -2797,14 +2646,14 @@ var deserializeAws_restJson1UpdateFindingsCommandError = function (output, conte
|
|
|
2797
2646
|
case 11: throw _d.sent();
|
|
2798
2647
|
case 12:
|
|
2799
2648
|
parsedBody = parsedOutput.body;
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
$metadata: $metadata,
|
|
2649
|
+
throwDefaultError({
|
|
2650
|
+
output: output,
|
|
2651
|
+
parsedBody: parsedBody,
|
|
2652
|
+
exceptionCtor: __BaseException,
|
|
2653
|
+
errorCode: errorCode,
|
|
2806
2654
|
});
|
|
2807
|
-
|
|
2655
|
+
_d.label = 13;
|
|
2656
|
+
case 13: return [2];
|
|
2808
2657
|
}
|
|
2809
2658
|
});
|
|
2810
2659
|
}); };
|
|
@@ -2816,28 +2665,26 @@ export var deserializeAws_restJson1ValidatePolicyCommand = function (output, con
|
|
|
2816
2665
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2817
2666
|
return [2, deserializeAws_restJson1ValidatePolicyCommandError(output, context)];
|
|
2818
2667
|
}
|
|
2819
|
-
contents = {
|
|
2668
|
+
contents = map({
|
|
2820
2669
|
$metadata: deserializeMetadata(output),
|
|
2821
|
-
|
|
2822
|
-
nextToken: undefined,
|
|
2823
|
-
};
|
|
2670
|
+
});
|
|
2824
2671
|
_a = __expectNonNull;
|
|
2825
2672
|
_b = __expectObject;
|
|
2826
2673
|
return [4, parseBody(output.body, context)];
|
|
2827
2674
|
case 1:
|
|
2828
2675
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2829
|
-
if (data.findings
|
|
2676
|
+
if (data.findings != null) {
|
|
2830
2677
|
contents.findings = deserializeAws_restJson1ValidatePolicyFindingList(data.findings, context);
|
|
2831
2678
|
}
|
|
2832
|
-
if (data.nextToken
|
|
2679
|
+
if (data.nextToken != null) {
|
|
2833
2680
|
contents.nextToken = __expectString(data.nextToken);
|
|
2834
2681
|
}
|
|
2835
|
-
return [2,
|
|
2682
|
+
return [2, contents];
|
|
2836
2683
|
}
|
|
2837
2684
|
});
|
|
2838
2685
|
}); };
|
|
2839
2686
|
var deserializeAws_restJson1ValidatePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2840
|
-
var parsedOutput, _a,
|
|
2687
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2841
2688
|
var _c;
|
|
2842
2689
|
return __generator(this, function (_d) {
|
|
2843
2690
|
switch (_d.label) {
|
|
@@ -2870,23 +2717,24 @@ var deserializeAws_restJson1ValidatePolicyCommandError = function (output, conte
|
|
|
2870
2717
|
case 9: throw _d.sent();
|
|
2871
2718
|
case 10:
|
|
2872
2719
|
parsedBody = parsedOutput.body;
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
$metadata: $metadata,
|
|
2720
|
+
throwDefaultError({
|
|
2721
|
+
output: output,
|
|
2722
|
+
parsedBody: parsedBody,
|
|
2723
|
+
exceptionCtor: __BaseException,
|
|
2724
|
+
errorCode: errorCode,
|
|
2879
2725
|
});
|
|
2880
|
-
|
|
2726
|
+
_d.label = 11;
|
|
2727
|
+
case 11: return [2];
|
|
2881
2728
|
}
|
|
2882
2729
|
});
|
|
2883
2730
|
}); };
|
|
2731
|
+
var map = __map;
|
|
2884
2732
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2885
2733
|
var contents, data, exception;
|
|
2886
2734
|
return __generator(this, function (_a) {
|
|
2887
|
-
contents = {};
|
|
2735
|
+
contents = map({});
|
|
2888
2736
|
data = parsedOutput.body;
|
|
2889
|
-
if (data.message
|
|
2737
|
+
if (data.message != null) {
|
|
2890
2738
|
contents.message = __expectString(data.message);
|
|
2891
2739
|
}
|
|
2892
2740
|
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2896,15 +2744,15 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
2896
2744
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2897
2745
|
var contents, data, exception;
|
|
2898
2746
|
return __generator(this, function (_a) {
|
|
2899
|
-
contents = {};
|
|
2747
|
+
contents = map({});
|
|
2900
2748
|
data = parsedOutput.body;
|
|
2901
|
-
if (data.message
|
|
2749
|
+
if (data.message != null) {
|
|
2902
2750
|
contents.message = __expectString(data.message);
|
|
2903
2751
|
}
|
|
2904
|
-
if (data.resourceId
|
|
2752
|
+
if (data.resourceId != null) {
|
|
2905
2753
|
contents.resourceId = __expectString(data.resourceId);
|
|
2906
2754
|
}
|
|
2907
|
-
if (data.resourceType
|
|
2755
|
+
if (data.resourceType != null) {
|
|
2908
2756
|
contents.resourceType = __expectString(data.resourceType);
|
|
2909
2757
|
}
|
|
2910
2758
|
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2914,12 +2762,14 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
2914
2762
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2915
2763
|
var contents, data, exception;
|
|
2916
2764
|
return __generator(this, function (_a) {
|
|
2917
|
-
contents = {
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2765
|
+
contents = map({
|
|
2766
|
+
retryAfterSeconds: [
|
|
2767
|
+
function () { return void 0 !== parsedOutput.headers["retry-after"]; },
|
|
2768
|
+
function () { return __strictParseInt32(parsedOutput.headers["retry-after"]); },
|
|
2769
|
+
],
|
|
2770
|
+
});
|
|
2921
2771
|
data = parsedOutput.body;
|
|
2922
|
-
if (data.message
|
|
2772
|
+
if (data.message != null) {
|
|
2923
2773
|
contents.message = __expectString(data.message);
|
|
2924
2774
|
}
|
|
2925
2775
|
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2929,15 +2779,15 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
2929
2779
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2930
2780
|
var contents, data, exception;
|
|
2931
2781
|
return __generator(this, function (_a) {
|
|
2932
|
-
contents = {};
|
|
2782
|
+
contents = map({});
|
|
2933
2783
|
data = parsedOutput.body;
|
|
2934
|
-
if (data.message
|
|
2784
|
+
if (data.message != null) {
|
|
2935
2785
|
contents.message = __expectString(data.message);
|
|
2936
2786
|
}
|
|
2937
|
-
if (data.resourceId
|
|
2787
|
+
if (data.resourceId != null) {
|
|
2938
2788
|
contents.resourceId = __expectString(data.resourceId);
|
|
2939
2789
|
}
|
|
2940
|
-
if (data.resourceType
|
|
2790
|
+
if (data.resourceType != null) {
|
|
2941
2791
|
contents.resourceType = __expectString(data.resourceType);
|
|
2942
2792
|
}
|
|
2943
2793
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2947,15 +2797,15 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
2947
2797
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2948
2798
|
var contents, data, exception;
|
|
2949
2799
|
return __generator(this, function (_a) {
|
|
2950
|
-
contents = {};
|
|
2800
|
+
contents = map({});
|
|
2951
2801
|
data = parsedOutput.body;
|
|
2952
|
-
if (data.message
|
|
2802
|
+
if (data.message != null) {
|
|
2953
2803
|
contents.message = __expectString(data.message);
|
|
2954
2804
|
}
|
|
2955
|
-
if (data.resourceId
|
|
2805
|
+
if (data.resourceId != null) {
|
|
2956
2806
|
contents.resourceId = __expectString(data.resourceId);
|
|
2957
2807
|
}
|
|
2958
|
-
if (data.resourceType
|
|
2808
|
+
if (data.resourceType != null) {
|
|
2959
2809
|
contents.resourceType = __expectString(data.resourceType);
|
|
2960
2810
|
}
|
|
2961
2811
|
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2965,12 +2815,14 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
2965
2815
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2966
2816
|
var contents, data, exception;
|
|
2967
2817
|
return __generator(this, function (_a) {
|
|
2968
|
-
contents = {
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2818
|
+
contents = map({
|
|
2819
|
+
retryAfterSeconds: [
|
|
2820
|
+
function () { return void 0 !== parsedOutput.headers["retry-after"]; },
|
|
2821
|
+
function () { return __strictParseInt32(parsedOutput.headers["retry-after"]); },
|
|
2822
|
+
],
|
|
2823
|
+
});
|
|
2972
2824
|
data = parsedOutput.body;
|
|
2973
|
-
if (data.message
|
|
2825
|
+
if (data.message != null) {
|
|
2974
2826
|
contents.message = __expectString(data.message);
|
|
2975
2827
|
}
|
|
2976
2828
|
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2980,15 +2832,15 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
|
|
|
2980
2832
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2981
2833
|
var contents, data, exception;
|
|
2982
2834
|
return __generator(this, function (_a) {
|
|
2983
|
-
contents = {};
|
|
2835
|
+
contents = map({});
|
|
2984
2836
|
data = parsedOutput.body;
|
|
2985
|
-
if (data.fieldList
|
|
2837
|
+
if (data.fieldList != null) {
|
|
2986
2838
|
contents.fieldList = deserializeAws_restJson1ValidationExceptionFieldList(data.fieldList, context);
|
|
2987
2839
|
}
|
|
2988
|
-
if (data.message
|
|
2840
|
+
if (data.message != null) {
|
|
2989
2841
|
contents.message = __expectString(data.message);
|
|
2990
2842
|
}
|
|
2991
|
-
if (data.reason
|
|
2843
|
+
if (data.reason != null) {
|
|
2992
2844
|
contents.reason = __expectString(data.reason);
|
|
2993
2845
|
}
|
|
2994
2846
|
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3044,9 +2896,6 @@ var serializeAws_restJson1FindingIdList = function (input, context) {
|
|
|
3044
2896
|
return input
|
|
3045
2897
|
.filter(function (e) { return e != null; })
|
|
3046
2898
|
.map(function (entry) {
|
|
3047
|
-
if (entry === null) {
|
|
3048
|
-
return null;
|
|
3049
|
-
}
|
|
3050
2899
|
return entry;
|
|
3051
2900
|
});
|
|
3052
2901
|
};
|
|
@@ -3060,9 +2909,6 @@ var serializeAws_restJson1InlineArchiveRulesList = function (input, context) {
|
|
|
3060
2909
|
return input
|
|
3061
2910
|
.filter(function (e) { return e != null; })
|
|
3062
2911
|
.map(function (entry) {
|
|
3063
|
-
if (entry === null) {
|
|
3064
|
-
return null;
|
|
3065
|
-
}
|
|
3066
2912
|
return serializeAws_restJson1InlineArchiveRule(entry, context);
|
|
3067
2913
|
});
|
|
3068
2914
|
};
|
|
@@ -3090,9 +2936,6 @@ var serializeAws_restJson1KmsGrantConfigurationsList = function (input, context)
|
|
|
3090
2936
|
return input
|
|
3091
2937
|
.filter(function (e) { return e != null; })
|
|
3092
2938
|
.map(function (entry) {
|
|
3093
|
-
if (entry === null) {
|
|
3094
|
-
return null;
|
|
3095
|
-
}
|
|
3096
2939
|
return serializeAws_restJson1KmsGrantConfiguration(entry, context);
|
|
3097
2940
|
});
|
|
3098
2941
|
};
|
|
@@ -3107,9 +2950,6 @@ var serializeAws_restJson1KmsGrantOperationsList = function (input, context) {
|
|
|
3107
2950
|
return input
|
|
3108
2951
|
.filter(function (e) { return e != null; })
|
|
3109
2952
|
.map(function (entry) {
|
|
3110
|
-
if (entry === null) {
|
|
3111
|
-
return null;
|
|
3112
|
-
}
|
|
3113
2953
|
return entry;
|
|
3114
2954
|
});
|
|
3115
2955
|
};
|
|
@@ -3144,9 +2984,6 @@ var serializeAws_restJson1RegionList = function (input, context) {
|
|
|
3144
2984
|
return input
|
|
3145
2985
|
.filter(function (e) { return e != null; })
|
|
3146
2986
|
.map(function (entry) {
|
|
3147
|
-
if (entry === null) {
|
|
3148
|
-
return null;
|
|
3149
|
-
}
|
|
3150
2987
|
return entry;
|
|
3151
2988
|
});
|
|
3152
2989
|
};
|
|
@@ -3174,9 +3011,6 @@ var serializeAws_restJson1S3BucketAclGrantConfigurationsList = function (input,
|
|
|
3174
3011
|
return input
|
|
3175
3012
|
.filter(function (e) { return e != null; })
|
|
3176
3013
|
.map(function (entry) {
|
|
3177
|
-
if (entry === null) {
|
|
3178
|
-
return null;
|
|
3179
|
-
}
|
|
3180
3014
|
return serializeAws_restJson1S3BucketAclGrantConfiguration(entry, context);
|
|
3181
3015
|
});
|
|
3182
3016
|
};
|
|
@@ -3218,9 +3052,6 @@ var serializeAws_restJson1TrailList = function (input, context) {
|
|
|
3218
3052
|
return input
|
|
3219
3053
|
.filter(function (e) { return e != null; })
|
|
3220
3054
|
.map(function (entry) {
|
|
3221
|
-
if (entry === null) {
|
|
3222
|
-
return null;
|
|
3223
|
-
}
|
|
3224
3055
|
return serializeAws_restJson1Trail(entry, context);
|
|
3225
3056
|
});
|
|
3226
3057
|
};
|
|
@@ -3228,9 +3059,6 @@ var serializeAws_restJson1ValueList = function (input, context) {
|
|
|
3228
3059
|
return input
|
|
3229
3060
|
.filter(function (e) { return e != null; })
|
|
3230
3061
|
.map(function (entry) {
|
|
3231
|
-
if (entry === null) {
|
|
3232
|
-
return null;
|
|
3233
|
-
}
|
|
3234
3062
|
return entry;
|
|
3235
3063
|
});
|
|
3236
3064
|
};
|
|
@@ -3426,27 +3254,27 @@ var deserializeAws_restJson1ConditionKeyMap = function (output, context) {
|
|
|
3426
3254
|
}, {});
|
|
3427
3255
|
};
|
|
3428
3256
|
var deserializeAws_restJson1Configuration = function (output, context) {
|
|
3429
|
-
if (output.iamRole
|
|
3257
|
+
if (output.iamRole != null) {
|
|
3430
3258
|
return {
|
|
3431
3259
|
iamRole: deserializeAws_restJson1IamRoleConfiguration(output.iamRole, context),
|
|
3432
3260
|
};
|
|
3433
3261
|
}
|
|
3434
|
-
if (output.kmsKey
|
|
3262
|
+
if (output.kmsKey != null) {
|
|
3435
3263
|
return {
|
|
3436
3264
|
kmsKey: deserializeAws_restJson1KmsKeyConfiguration(output.kmsKey, context),
|
|
3437
3265
|
};
|
|
3438
3266
|
}
|
|
3439
|
-
if (output.s3Bucket
|
|
3267
|
+
if (output.s3Bucket != null) {
|
|
3440
3268
|
return {
|
|
3441
3269
|
s3Bucket: deserializeAws_restJson1S3BucketConfiguration(output.s3Bucket, context),
|
|
3442
3270
|
};
|
|
3443
3271
|
}
|
|
3444
|
-
if (output.secretsManagerSecret
|
|
3272
|
+
if (output.secretsManagerSecret != null) {
|
|
3445
3273
|
return {
|
|
3446
3274
|
secretsManagerSecret: deserializeAws_restJson1SecretsManagerSecretConfiguration(output.secretsManagerSecret, context),
|
|
3447
3275
|
};
|
|
3448
3276
|
}
|
|
3449
|
-
if (output.sqsQueue
|
|
3277
|
+
if (output.sqsQueue != null) {
|
|
3450
3278
|
return {
|
|
3451
3279
|
sqsQueue: deserializeAws_restJson1SqsQueueConfiguration(output.sqsQueue, context),
|
|
3452
3280
|
};
|
|
@@ -3695,12 +3523,12 @@ var deserializeAws_restJson1LocationList = function (output, context) {
|
|
|
3695
3523
|
return retVal;
|
|
3696
3524
|
};
|
|
3697
3525
|
var deserializeAws_restJson1NetworkOriginConfiguration = function (output, context) {
|
|
3698
|
-
if (output.internetConfiguration
|
|
3526
|
+
if (output.internetConfiguration != null) {
|
|
3699
3527
|
return {
|
|
3700
3528
|
internetConfiguration: deserializeAws_restJson1InternetConfiguration(output.internetConfiguration, context),
|
|
3701
3529
|
};
|
|
3702
3530
|
}
|
|
3703
|
-
if (output.vpcConfiguration
|
|
3531
|
+
if (output.vpcConfiguration != null) {
|
|
3704
3532
|
return {
|
|
3705
3533
|
vpcConfiguration: deserializeAws_restJson1VpcConfiguration(output.vpcConfiguration, context),
|
|
3706
3534
|
};
|
|
@@ -3714,7 +3542,7 @@ var deserializeAws_restJson1PathElement = function (output, context) {
|
|
|
3714
3542
|
if (__expectString(output.key) !== undefined) {
|
|
3715
3543
|
return { key: __expectString(output.key) };
|
|
3716
3544
|
}
|
|
3717
|
-
if (output.substring
|
|
3545
|
+
if (output.substring != null) {
|
|
3718
3546
|
return {
|
|
3719
3547
|
substring: deserializeAws_restJson1Substring(output.substring, context),
|
|
3720
3548
|
};
|