@aws-sdk/client-fms 3.204.0 → 3.208.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/FMS.js +120 -0
- package/dist-cjs/commands/BatchAssociateResourceCommand.js +46 -0
- package/dist-cjs/commands/BatchDisassociateResourceCommand.js +46 -0
- package/dist-cjs/commands/DeleteResourceSetCommand.js +46 -0
- package/dist-cjs/commands/GetResourceSetCommand.js +46 -0
- package/dist-cjs/commands/ListDiscoveredResourcesCommand.js +46 -0
- package/dist-cjs/commands/ListResourceSetResourcesCommand.js +46 -0
- package/dist-cjs/commands/ListResourceSetsCommand.js +46 -0
- package/dist-cjs/commands/PutResourceSetCommand.js +46 -0
- package/dist-cjs/commands/index.js +8 -0
- package/dist-cjs/models/models_0.js +94 -3
- package/dist-cjs/protocols/Aws_json1_1.js +653 -2
- package/dist-es/FMS.js +120 -0
- package/dist-es/commands/BatchAssociateResourceCommand.js +42 -0
- package/dist-es/commands/BatchDisassociateResourceCommand.js +42 -0
- package/dist-es/commands/DeleteResourceSetCommand.js +42 -0
- package/dist-es/commands/GetResourceSetCommand.js +42 -0
- package/dist-es/commands/ListDiscoveredResourcesCommand.js +42 -0
- package/dist-es/commands/ListResourceSetResourcesCommand.js +42 -0
- package/dist-es/commands/ListResourceSetsCommand.js +42 -0
- package/dist-es/commands/PutResourceSetCommand.js +42 -0
- package/dist-es/commands/index.js +8 -0
- package/dist-es/models/models_0.js +70 -0
- package/dist-es/protocols/Aws_json1_1.js +635 -0
- package/dist-types/FMS.d.ts +57 -0
- package/dist-types/FMSClient.d.ts +10 -2
- package/dist-types/commands/BatchAssociateResourceCommand.d.ts +37 -0
- package/dist-types/commands/BatchDisassociateResourceCommand.d.ts +37 -0
- package/dist-types/commands/DeleteResourceSetCommand.d.ts +37 -0
- package/dist-types/commands/GetResourceSetCommand.d.ts +37 -0
- package/dist-types/commands/ListDiscoveredResourcesCommand.d.ts +37 -0
- package/dist-types/commands/ListResourceSetResourcesCommand.d.ts +37 -0
- package/dist-types/commands/ListResourceSetsCommand.d.ts +37 -0
- package/dist-types/commands/PutResourceSetCommand.d.ts +38 -0
- package/dist-types/commands/index.d.ts +8 -0
- package/dist-types/models/models_0.d.ts +375 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +24 -0
- package/dist-types/ts3.4/FMS.d.ts +136 -0
- package/dist-types/ts3.4/FMSClient.d.ts +48 -0
- package/dist-types/ts3.4/commands/BatchAssociateResourceCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/BatchDisassociateResourceCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteResourceSetCommand.d.ts +33 -0
- package/dist-types/ts3.4/commands/GetResourceSetCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/ListDiscoveredResourcesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListResourceSetResourcesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListResourceSetsCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/PutResourceSetCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/index.d.ts +8 -0
- package/dist-types/ts3.4/models/models_0.d.ts +154 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +96 -0
- package/package.json +35 -35
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1PutProtocolsListCommand = exports.deserializeAws_json1_1PutPolicyCommand = exports.deserializeAws_json1_1PutNotificationChannelCommand = exports.deserializeAws_json1_1PutAppsListCommand = exports.deserializeAws_json1_1ListThirdPartyFirewallFirewallPoliciesCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListProtocolsListsCommand = exports.deserializeAws_json1_1ListPoliciesCommand = void 0;
|
|
3
|
+
exports.deserializeAws_json1_1GetAdminAccountCommand = exports.deserializeAws_json1_1DisassociateThirdPartyFirewallCommand = exports.deserializeAws_json1_1DisassociateAdminAccountCommand = exports.deserializeAws_json1_1DeleteResourceSetCommand = exports.deserializeAws_json1_1DeleteProtocolsListCommand = exports.deserializeAws_json1_1DeletePolicyCommand = exports.deserializeAws_json1_1DeleteNotificationChannelCommand = exports.deserializeAws_json1_1DeleteAppsListCommand = exports.deserializeAws_json1_1BatchDisassociateResourceCommand = exports.deserializeAws_json1_1BatchAssociateResourceCommand = exports.deserializeAws_json1_1AssociateThirdPartyFirewallCommand = exports.deserializeAws_json1_1AssociateAdminAccountCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1PutResourceSetCommand = exports.serializeAws_json1_1PutProtocolsListCommand = exports.serializeAws_json1_1PutPolicyCommand = exports.serializeAws_json1_1PutNotificationChannelCommand = exports.serializeAws_json1_1PutAppsListCommand = exports.serializeAws_json1_1ListThirdPartyFirewallFirewallPoliciesCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListResourceSetsCommand = exports.serializeAws_json1_1ListResourceSetResourcesCommand = exports.serializeAws_json1_1ListProtocolsListsCommand = exports.serializeAws_json1_1ListPoliciesCommand = exports.serializeAws_json1_1ListMemberAccountsCommand = exports.serializeAws_json1_1ListDiscoveredResourcesCommand = exports.serializeAws_json1_1ListComplianceStatusCommand = exports.serializeAws_json1_1ListAppsListsCommand = exports.serializeAws_json1_1GetViolationDetailsCommand = exports.serializeAws_json1_1GetThirdPartyFirewallAssociationStatusCommand = exports.serializeAws_json1_1GetResourceSetCommand = exports.serializeAws_json1_1GetProtocolsListCommand = exports.serializeAws_json1_1GetProtectionStatusCommand = exports.serializeAws_json1_1GetPolicyCommand = exports.serializeAws_json1_1GetNotificationChannelCommand = exports.serializeAws_json1_1GetComplianceDetailCommand = exports.serializeAws_json1_1GetAppsListCommand = exports.serializeAws_json1_1GetAdminAccountCommand = exports.serializeAws_json1_1DisassociateThirdPartyFirewallCommand = exports.serializeAws_json1_1DisassociateAdminAccountCommand = exports.serializeAws_json1_1DeleteResourceSetCommand = exports.serializeAws_json1_1DeleteProtocolsListCommand = exports.serializeAws_json1_1DeletePolicyCommand = exports.serializeAws_json1_1DeleteNotificationChannelCommand = exports.serializeAws_json1_1DeleteAppsListCommand = exports.serializeAws_json1_1BatchDisassociateResourceCommand = exports.serializeAws_json1_1BatchAssociateResourceCommand = exports.serializeAws_json1_1AssociateThirdPartyFirewallCommand = exports.serializeAws_json1_1AssociateAdminAccountCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1PutResourceSetCommand = exports.deserializeAws_json1_1PutProtocolsListCommand = exports.deserializeAws_json1_1PutPolicyCommand = exports.deserializeAws_json1_1PutNotificationChannelCommand = exports.deserializeAws_json1_1PutAppsListCommand = exports.deserializeAws_json1_1ListThirdPartyFirewallFirewallPoliciesCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListResourceSetsCommand = exports.deserializeAws_json1_1ListResourceSetResourcesCommand = exports.deserializeAws_json1_1ListProtocolsListsCommand = exports.deserializeAws_json1_1ListPoliciesCommand = exports.deserializeAws_json1_1ListMemberAccountsCommand = exports.deserializeAws_json1_1ListDiscoveredResourcesCommand = exports.deserializeAws_json1_1ListComplianceStatusCommand = exports.deserializeAws_json1_1ListAppsListsCommand = exports.deserializeAws_json1_1GetViolationDetailsCommand = exports.deserializeAws_json1_1GetThirdPartyFirewallAssociationStatusCommand = exports.deserializeAws_json1_1GetResourceSetCommand = exports.deserializeAws_json1_1GetProtocolsListCommand = exports.deserializeAws_json1_1GetProtectionStatusCommand = exports.deserializeAws_json1_1GetPolicyCommand = exports.deserializeAws_json1_1GetNotificationChannelCommand = exports.deserializeAws_json1_1GetComplianceDetailCommand = exports.deserializeAws_json1_1GetAppsListCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const FMSServiceException_1 = require("../models/FMSServiceException");
|
|
@@ -26,6 +26,26 @@ const serializeAws_json1_1AssociateThirdPartyFirewallCommand = async (input, con
|
|
|
26
26
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
27
|
};
|
|
28
28
|
exports.serializeAws_json1_1AssociateThirdPartyFirewallCommand = serializeAws_json1_1AssociateThirdPartyFirewallCommand;
|
|
29
|
+
const serializeAws_json1_1BatchAssociateResourceCommand = async (input, context) => {
|
|
30
|
+
const headers = {
|
|
31
|
+
"content-type": "application/x-amz-json-1.1",
|
|
32
|
+
"x-amz-target": "AWSFMS_20180101.BatchAssociateResource",
|
|
33
|
+
};
|
|
34
|
+
let body;
|
|
35
|
+
body = JSON.stringify(serializeAws_json1_1BatchAssociateResourceRequest(input, context));
|
|
36
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
|
+
};
|
|
38
|
+
exports.serializeAws_json1_1BatchAssociateResourceCommand = serializeAws_json1_1BatchAssociateResourceCommand;
|
|
39
|
+
const serializeAws_json1_1BatchDisassociateResourceCommand = async (input, context) => {
|
|
40
|
+
const headers = {
|
|
41
|
+
"content-type": "application/x-amz-json-1.1",
|
|
42
|
+
"x-amz-target": "AWSFMS_20180101.BatchDisassociateResource",
|
|
43
|
+
};
|
|
44
|
+
let body;
|
|
45
|
+
body = JSON.stringify(serializeAws_json1_1BatchDisassociateResourceRequest(input, context));
|
|
46
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
|
+
};
|
|
48
|
+
exports.serializeAws_json1_1BatchDisassociateResourceCommand = serializeAws_json1_1BatchDisassociateResourceCommand;
|
|
29
49
|
const serializeAws_json1_1DeleteAppsListCommand = async (input, context) => {
|
|
30
50
|
const headers = {
|
|
31
51
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -66,6 +86,16 @@ const serializeAws_json1_1DeleteProtocolsListCommand = async (input, context) =>
|
|
|
66
86
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
87
|
};
|
|
68
88
|
exports.serializeAws_json1_1DeleteProtocolsListCommand = serializeAws_json1_1DeleteProtocolsListCommand;
|
|
89
|
+
const serializeAws_json1_1DeleteResourceSetCommand = async (input, context) => {
|
|
90
|
+
const headers = {
|
|
91
|
+
"content-type": "application/x-amz-json-1.1",
|
|
92
|
+
"x-amz-target": "AWSFMS_20180101.DeleteResourceSet",
|
|
93
|
+
};
|
|
94
|
+
let body;
|
|
95
|
+
body = JSON.stringify(serializeAws_json1_1DeleteResourceSetRequest(input, context));
|
|
96
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
|
+
};
|
|
98
|
+
exports.serializeAws_json1_1DeleteResourceSetCommand = serializeAws_json1_1DeleteResourceSetCommand;
|
|
69
99
|
const serializeAws_json1_1DisassociateAdminAccountCommand = async (input, context) => {
|
|
70
100
|
const headers = {
|
|
71
101
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -156,6 +186,16 @@ const serializeAws_json1_1GetProtocolsListCommand = async (input, context) => {
|
|
|
156
186
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
187
|
};
|
|
158
188
|
exports.serializeAws_json1_1GetProtocolsListCommand = serializeAws_json1_1GetProtocolsListCommand;
|
|
189
|
+
const serializeAws_json1_1GetResourceSetCommand = async (input, context) => {
|
|
190
|
+
const headers = {
|
|
191
|
+
"content-type": "application/x-amz-json-1.1",
|
|
192
|
+
"x-amz-target": "AWSFMS_20180101.GetResourceSet",
|
|
193
|
+
};
|
|
194
|
+
let body;
|
|
195
|
+
body = JSON.stringify(serializeAws_json1_1GetResourceSetRequest(input, context));
|
|
196
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
|
+
};
|
|
198
|
+
exports.serializeAws_json1_1GetResourceSetCommand = serializeAws_json1_1GetResourceSetCommand;
|
|
159
199
|
const serializeAws_json1_1GetThirdPartyFirewallAssociationStatusCommand = async (input, context) => {
|
|
160
200
|
const headers = {
|
|
161
201
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -196,6 +236,16 @@ const serializeAws_json1_1ListComplianceStatusCommand = async (input, context) =
|
|
|
196
236
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
237
|
};
|
|
198
238
|
exports.serializeAws_json1_1ListComplianceStatusCommand = serializeAws_json1_1ListComplianceStatusCommand;
|
|
239
|
+
const serializeAws_json1_1ListDiscoveredResourcesCommand = async (input, context) => {
|
|
240
|
+
const headers = {
|
|
241
|
+
"content-type": "application/x-amz-json-1.1",
|
|
242
|
+
"x-amz-target": "AWSFMS_20180101.ListDiscoveredResources",
|
|
243
|
+
};
|
|
244
|
+
let body;
|
|
245
|
+
body = JSON.stringify(serializeAws_json1_1ListDiscoveredResourcesRequest(input, context));
|
|
246
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
|
+
};
|
|
248
|
+
exports.serializeAws_json1_1ListDiscoveredResourcesCommand = serializeAws_json1_1ListDiscoveredResourcesCommand;
|
|
199
249
|
const serializeAws_json1_1ListMemberAccountsCommand = async (input, context) => {
|
|
200
250
|
const headers = {
|
|
201
251
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -226,6 +276,26 @@ const serializeAws_json1_1ListProtocolsListsCommand = async (input, context) =>
|
|
|
226
276
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
227
277
|
};
|
|
228
278
|
exports.serializeAws_json1_1ListProtocolsListsCommand = serializeAws_json1_1ListProtocolsListsCommand;
|
|
279
|
+
const serializeAws_json1_1ListResourceSetResourcesCommand = async (input, context) => {
|
|
280
|
+
const headers = {
|
|
281
|
+
"content-type": "application/x-amz-json-1.1",
|
|
282
|
+
"x-amz-target": "AWSFMS_20180101.ListResourceSetResources",
|
|
283
|
+
};
|
|
284
|
+
let body;
|
|
285
|
+
body = JSON.stringify(serializeAws_json1_1ListResourceSetResourcesRequest(input, context));
|
|
286
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
|
+
};
|
|
288
|
+
exports.serializeAws_json1_1ListResourceSetResourcesCommand = serializeAws_json1_1ListResourceSetResourcesCommand;
|
|
289
|
+
const serializeAws_json1_1ListResourceSetsCommand = async (input, context) => {
|
|
290
|
+
const headers = {
|
|
291
|
+
"content-type": "application/x-amz-json-1.1",
|
|
292
|
+
"x-amz-target": "AWSFMS_20180101.ListResourceSets",
|
|
293
|
+
};
|
|
294
|
+
let body;
|
|
295
|
+
body = JSON.stringify(serializeAws_json1_1ListResourceSetsRequest(input, context));
|
|
296
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
297
|
+
};
|
|
298
|
+
exports.serializeAws_json1_1ListResourceSetsCommand = serializeAws_json1_1ListResourceSetsCommand;
|
|
229
299
|
const serializeAws_json1_1ListTagsForResourceCommand = async (input, context) => {
|
|
230
300
|
const headers = {
|
|
231
301
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -286,6 +356,16 @@ const serializeAws_json1_1PutProtocolsListCommand = async (input, context) => {
|
|
|
286
356
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
357
|
};
|
|
288
358
|
exports.serializeAws_json1_1PutProtocolsListCommand = serializeAws_json1_1PutProtocolsListCommand;
|
|
359
|
+
const serializeAws_json1_1PutResourceSetCommand = async (input, context) => {
|
|
360
|
+
const headers = {
|
|
361
|
+
"content-type": "application/x-amz-json-1.1",
|
|
362
|
+
"x-amz-target": "AWSFMS_20180101.PutResourceSet",
|
|
363
|
+
};
|
|
364
|
+
let body;
|
|
365
|
+
body = JSON.stringify(serializeAws_json1_1PutResourceSetRequest(input, context));
|
|
366
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
367
|
+
};
|
|
368
|
+
exports.serializeAws_json1_1PutResourceSetCommand = serializeAws_json1_1PutResourceSetCommand;
|
|
289
369
|
const serializeAws_json1_1TagResourceCommand = async (input, context) => {
|
|
290
370
|
const headers = {
|
|
291
371
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -392,6 +472,95 @@ const deserializeAws_json1_1AssociateThirdPartyFirewallCommandError = async (out
|
|
|
392
472
|
});
|
|
393
473
|
}
|
|
394
474
|
};
|
|
475
|
+
const deserializeAws_json1_1BatchAssociateResourceCommand = async (output, context) => {
|
|
476
|
+
if (output.statusCode >= 300) {
|
|
477
|
+
return deserializeAws_json1_1BatchAssociateResourceCommandError(output, context);
|
|
478
|
+
}
|
|
479
|
+
const data = await parseBody(output.body, context);
|
|
480
|
+
let contents = {};
|
|
481
|
+
contents = deserializeAws_json1_1BatchAssociateResourceResponse(data, context);
|
|
482
|
+
const response = {
|
|
483
|
+
$metadata: deserializeMetadata(output),
|
|
484
|
+
...contents,
|
|
485
|
+
};
|
|
486
|
+
return Promise.resolve(response);
|
|
487
|
+
};
|
|
488
|
+
exports.deserializeAws_json1_1BatchAssociateResourceCommand = deserializeAws_json1_1BatchAssociateResourceCommand;
|
|
489
|
+
const deserializeAws_json1_1BatchAssociateResourceCommandError = async (output, context) => {
|
|
490
|
+
const parsedOutput = {
|
|
491
|
+
...output,
|
|
492
|
+
body: await parseErrorBody(output.body, context),
|
|
493
|
+
};
|
|
494
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
495
|
+
switch (errorCode) {
|
|
496
|
+
case "InternalErrorException":
|
|
497
|
+
case "com.amazonaws.fms#InternalErrorException":
|
|
498
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
499
|
+
case "InvalidInputException":
|
|
500
|
+
case "com.amazonaws.fms#InvalidInputException":
|
|
501
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
502
|
+
case "InvalidOperationException":
|
|
503
|
+
case "com.amazonaws.fms#InvalidOperationException":
|
|
504
|
+
throw await deserializeAws_json1_1InvalidOperationExceptionResponse(parsedOutput, context);
|
|
505
|
+
case "LimitExceededException":
|
|
506
|
+
case "com.amazonaws.fms#LimitExceededException":
|
|
507
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
508
|
+
case "ResourceNotFoundException":
|
|
509
|
+
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
510
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
511
|
+
default:
|
|
512
|
+
const parsedBody = parsedOutput.body;
|
|
513
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
514
|
+
output,
|
|
515
|
+
parsedBody,
|
|
516
|
+
exceptionCtor: FMSServiceException_1.FMSServiceException,
|
|
517
|
+
errorCode,
|
|
518
|
+
});
|
|
519
|
+
}
|
|
520
|
+
};
|
|
521
|
+
const deserializeAws_json1_1BatchDisassociateResourceCommand = async (output, context) => {
|
|
522
|
+
if (output.statusCode >= 300) {
|
|
523
|
+
return deserializeAws_json1_1BatchDisassociateResourceCommandError(output, context);
|
|
524
|
+
}
|
|
525
|
+
const data = await parseBody(output.body, context);
|
|
526
|
+
let contents = {};
|
|
527
|
+
contents = deserializeAws_json1_1BatchDisassociateResourceResponse(data, context);
|
|
528
|
+
const response = {
|
|
529
|
+
$metadata: deserializeMetadata(output),
|
|
530
|
+
...contents,
|
|
531
|
+
};
|
|
532
|
+
return Promise.resolve(response);
|
|
533
|
+
};
|
|
534
|
+
exports.deserializeAws_json1_1BatchDisassociateResourceCommand = deserializeAws_json1_1BatchDisassociateResourceCommand;
|
|
535
|
+
const deserializeAws_json1_1BatchDisassociateResourceCommandError = async (output, context) => {
|
|
536
|
+
const parsedOutput = {
|
|
537
|
+
...output,
|
|
538
|
+
body: await parseErrorBody(output.body, context),
|
|
539
|
+
};
|
|
540
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
541
|
+
switch (errorCode) {
|
|
542
|
+
case "InternalErrorException":
|
|
543
|
+
case "com.amazonaws.fms#InternalErrorException":
|
|
544
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
545
|
+
case "InvalidInputException":
|
|
546
|
+
case "com.amazonaws.fms#InvalidInputException":
|
|
547
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
548
|
+
case "InvalidOperationException":
|
|
549
|
+
case "com.amazonaws.fms#InvalidOperationException":
|
|
550
|
+
throw await deserializeAws_json1_1InvalidOperationExceptionResponse(parsedOutput, context);
|
|
551
|
+
case "ResourceNotFoundException":
|
|
552
|
+
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
553
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
554
|
+
default:
|
|
555
|
+
const parsedBody = parsedOutput.body;
|
|
556
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
557
|
+
output,
|
|
558
|
+
parsedBody,
|
|
559
|
+
exceptionCtor: FMSServiceException_1.FMSServiceException,
|
|
560
|
+
errorCode,
|
|
561
|
+
});
|
|
562
|
+
}
|
|
563
|
+
};
|
|
395
564
|
const deserializeAws_json1_1DeleteAppsListCommand = async (output, context) => {
|
|
396
565
|
if (output.statusCode >= 300) {
|
|
397
566
|
return deserializeAws_json1_1DeleteAppsListCommandError(output, context);
|
|
@@ -546,6 +715,46 @@ const deserializeAws_json1_1DeleteProtocolsListCommandError = async (output, con
|
|
|
546
715
|
});
|
|
547
716
|
}
|
|
548
717
|
};
|
|
718
|
+
const deserializeAws_json1_1DeleteResourceSetCommand = async (output, context) => {
|
|
719
|
+
if (output.statusCode >= 300) {
|
|
720
|
+
return deserializeAws_json1_1DeleteResourceSetCommandError(output, context);
|
|
721
|
+
}
|
|
722
|
+
await collectBody(output.body, context);
|
|
723
|
+
const response = {
|
|
724
|
+
$metadata: deserializeMetadata(output),
|
|
725
|
+
};
|
|
726
|
+
return Promise.resolve(response);
|
|
727
|
+
};
|
|
728
|
+
exports.deserializeAws_json1_1DeleteResourceSetCommand = deserializeAws_json1_1DeleteResourceSetCommand;
|
|
729
|
+
const deserializeAws_json1_1DeleteResourceSetCommandError = async (output, context) => {
|
|
730
|
+
const parsedOutput = {
|
|
731
|
+
...output,
|
|
732
|
+
body: await parseErrorBody(output.body, context),
|
|
733
|
+
};
|
|
734
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
735
|
+
switch (errorCode) {
|
|
736
|
+
case "InternalErrorException":
|
|
737
|
+
case "com.amazonaws.fms#InternalErrorException":
|
|
738
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
739
|
+
case "InvalidInputException":
|
|
740
|
+
case "com.amazonaws.fms#InvalidInputException":
|
|
741
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
742
|
+
case "InvalidOperationException":
|
|
743
|
+
case "com.amazonaws.fms#InvalidOperationException":
|
|
744
|
+
throw await deserializeAws_json1_1InvalidOperationExceptionResponse(parsedOutput, context);
|
|
745
|
+
case "ResourceNotFoundException":
|
|
746
|
+
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
747
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
748
|
+
default:
|
|
749
|
+
const parsedBody = parsedOutput.body;
|
|
750
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
751
|
+
output,
|
|
752
|
+
parsedBody,
|
|
753
|
+
exceptionCtor: FMSServiceException_1.FMSServiceException,
|
|
754
|
+
errorCode,
|
|
755
|
+
});
|
|
756
|
+
}
|
|
757
|
+
};
|
|
549
758
|
const deserializeAws_json1_1DisassociateAdminAccountCommand = async (output, context) => {
|
|
550
759
|
if (output.statusCode >= 300) {
|
|
551
760
|
return deserializeAws_json1_1DisassociateAdminAccountCommandError(output, context);
|
|
@@ -912,6 +1121,49 @@ const deserializeAws_json1_1GetProtocolsListCommandError = async (output, contex
|
|
|
912
1121
|
});
|
|
913
1122
|
}
|
|
914
1123
|
};
|
|
1124
|
+
const deserializeAws_json1_1GetResourceSetCommand = async (output, context) => {
|
|
1125
|
+
if (output.statusCode >= 300) {
|
|
1126
|
+
return deserializeAws_json1_1GetResourceSetCommandError(output, context);
|
|
1127
|
+
}
|
|
1128
|
+
const data = await parseBody(output.body, context);
|
|
1129
|
+
let contents = {};
|
|
1130
|
+
contents = deserializeAws_json1_1GetResourceSetResponse(data, context);
|
|
1131
|
+
const response = {
|
|
1132
|
+
$metadata: deserializeMetadata(output),
|
|
1133
|
+
...contents,
|
|
1134
|
+
};
|
|
1135
|
+
return Promise.resolve(response);
|
|
1136
|
+
};
|
|
1137
|
+
exports.deserializeAws_json1_1GetResourceSetCommand = deserializeAws_json1_1GetResourceSetCommand;
|
|
1138
|
+
const deserializeAws_json1_1GetResourceSetCommandError = async (output, context) => {
|
|
1139
|
+
const parsedOutput = {
|
|
1140
|
+
...output,
|
|
1141
|
+
body: await parseErrorBody(output.body, context),
|
|
1142
|
+
};
|
|
1143
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1144
|
+
switch (errorCode) {
|
|
1145
|
+
case "InternalErrorException":
|
|
1146
|
+
case "com.amazonaws.fms#InternalErrorException":
|
|
1147
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
1148
|
+
case "InvalidInputException":
|
|
1149
|
+
case "com.amazonaws.fms#InvalidInputException":
|
|
1150
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1151
|
+
case "InvalidOperationException":
|
|
1152
|
+
case "com.amazonaws.fms#InvalidOperationException":
|
|
1153
|
+
throw await deserializeAws_json1_1InvalidOperationExceptionResponse(parsedOutput, context);
|
|
1154
|
+
case "ResourceNotFoundException":
|
|
1155
|
+
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
1156
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1157
|
+
default:
|
|
1158
|
+
const parsedBody = parsedOutput.body;
|
|
1159
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1160
|
+
output,
|
|
1161
|
+
parsedBody,
|
|
1162
|
+
exceptionCtor: FMSServiceException_1.FMSServiceException,
|
|
1163
|
+
errorCode,
|
|
1164
|
+
});
|
|
1165
|
+
}
|
|
1166
|
+
};
|
|
915
1167
|
const deserializeAws_json1_1GetThirdPartyFirewallAssociationStatusCommand = async (output, context) => {
|
|
916
1168
|
if (output.statusCode >= 300) {
|
|
917
1169
|
return deserializeAws_json1_1GetThirdPartyFirewallAssociationStatusCommandError(output, context);
|
|
@@ -1075,6 +1327,46 @@ const deserializeAws_json1_1ListComplianceStatusCommandError = async (output, co
|
|
|
1075
1327
|
});
|
|
1076
1328
|
}
|
|
1077
1329
|
};
|
|
1330
|
+
const deserializeAws_json1_1ListDiscoveredResourcesCommand = async (output, context) => {
|
|
1331
|
+
if (output.statusCode >= 300) {
|
|
1332
|
+
return deserializeAws_json1_1ListDiscoveredResourcesCommandError(output, context);
|
|
1333
|
+
}
|
|
1334
|
+
const data = await parseBody(output.body, context);
|
|
1335
|
+
let contents = {};
|
|
1336
|
+
contents = deserializeAws_json1_1ListDiscoveredResourcesResponse(data, context);
|
|
1337
|
+
const response = {
|
|
1338
|
+
$metadata: deserializeMetadata(output),
|
|
1339
|
+
...contents,
|
|
1340
|
+
};
|
|
1341
|
+
return Promise.resolve(response);
|
|
1342
|
+
};
|
|
1343
|
+
exports.deserializeAws_json1_1ListDiscoveredResourcesCommand = deserializeAws_json1_1ListDiscoveredResourcesCommand;
|
|
1344
|
+
const deserializeAws_json1_1ListDiscoveredResourcesCommandError = async (output, context) => {
|
|
1345
|
+
const parsedOutput = {
|
|
1346
|
+
...output,
|
|
1347
|
+
body: await parseErrorBody(output.body, context),
|
|
1348
|
+
};
|
|
1349
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1350
|
+
switch (errorCode) {
|
|
1351
|
+
case "InternalErrorException":
|
|
1352
|
+
case "com.amazonaws.fms#InternalErrorException":
|
|
1353
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
1354
|
+
case "InvalidInputException":
|
|
1355
|
+
case "com.amazonaws.fms#InvalidInputException":
|
|
1356
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1357
|
+
case "InvalidOperationException":
|
|
1358
|
+
case "com.amazonaws.fms#InvalidOperationException":
|
|
1359
|
+
throw await deserializeAws_json1_1InvalidOperationExceptionResponse(parsedOutput, context);
|
|
1360
|
+
default:
|
|
1361
|
+
const parsedBody = parsedOutput.body;
|
|
1362
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1363
|
+
output,
|
|
1364
|
+
parsedBody,
|
|
1365
|
+
exceptionCtor: FMSServiceException_1.FMSServiceException,
|
|
1366
|
+
errorCode,
|
|
1367
|
+
});
|
|
1368
|
+
}
|
|
1369
|
+
};
|
|
1078
1370
|
const deserializeAws_json1_1ListMemberAccountsCommand = async (output, context) => {
|
|
1079
1371
|
if (output.statusCode >= 300) {
|
|
1080
1372
|
return deserializeAws_json1_1ListMemberAccountsCommandError(output, context);
|
|
@@ -1195,6 +1487,89 @@ const deserializeAws_json1_1ListProtocolsListsCommandError = async (output, cont
|
|
|
1195
1487
|
});
|
|
1196
1488
|
}
|
|
1197
1489
|
};
|
|
1490
|
+
const deserializeAws_json1_1ListResourceSetResourcesCommand = async (output, context) => {
|
|
1491
|
+
if (output.statusCode >= 300) {
|
|
1492
|
+
return deserializeAws_json1_1ListResourceSetResourcesCommandError(output, context);
|
|
1493
|
+
}
|
|
1494
|
+
const data = await parseBody(output.body, context);
|
|
1495
|
+
let contents = {};
|
|
1496
|
+
contents = deserializeAws_json1_1ListResourceSetResourcesResponse(data, context);
|
|
1497
|
+
const response = {
|
|
1498
|
+
$metadata: deserializeMetadata(output),
|
|
1499
|
+
...contents,
|
|
1500
|
+
};
|
|
1501
|
+
return Promise.resolve(response);
|
|
1502
|
+
};
|
|
1503
|
+
exports.deserializeAws_json1_1ListResourceSetResourcesCommand = deserializeAws_json1_1ListResourceSetResourcesCommand;
|
|
1504
|
+
const deserializeAws_json1_1ListResourceSetResourcesCommandError = async (output, context) => {
|
|
1505
|
+
const parsedOutput = {
|
|
1506
|
+
...output,
|
|
1507
|
+
body: await parseErrorBody(output.body, context),
|
|
1508
|
+
};
|
|
1509
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1510
|
+
switch (errorCode) {
|
|
1511
|
+
case "InternalErrorException":
|
|
1512
|
+
case "com.amazonaws.fms#InternalErrorException":
|
|
1513
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
1514
|
+
case "InvalidInputException":
|
|
1515
|
+
case "com.amazonaws.fms#InvalidInputException":
|
|
1516
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1517
|
+
case "InvalidOperationException":
|
|
1518
|
+
case "com.amazonaws.fms#InvalidOperationException":
|
|
1519
|
+
throw await deserializeAws_json1_1InvalidOperationExceptionResponse(parsedOutput, context);
|
|
1520
|
+
case "ResourceNotFoundException":
|
|
1521
|
+
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
1522
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1523
|
+
default:
|
|
1524
|
+
const parsedBody = parsedOutput.body;
|
|
1525
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1526
|
+
output,
|
|
1527
|
+
parsedBody,
|
|
1528
|
+
exceptionCtor: FMSServiceException_1.FMSServiceException,
|
|
1529
|
+
errorCode,
|
|
1530
|
+
});
|
|
1531
|
+
}
|
|
1532
|
+
};
|
|
1533
|
+
const deserializeAws_json1_1ListResourceSetsCommand = async (output, context) => {
|
|
1534
|
+
if (output.statusCode >= 300) {
|
|
1535
|
+
return deserializeAws_json1_1ListResourceSetsCommandError(output, context);
|
|
1536
|
+
}
|
|
1537
|
+
const data = await parseBody(output.body, context);
|
|
1538
|
+
let contents = {};
|
|
1539
|
+
contents = deserializeAws_json1_1ListResourceSetsResponse(data, context);
|
|
1540
|
+
const response = {
|
|
1541
|
+
$metadata: deserializeMetadata(output),
|
|
1542
|
+
...contents,
|
|
1543
|
+
};
|
|
1544
|
+
return Promise.resolve(response);
|
|
1545
|
+
};
|
|
1546
|
+
exports.deserializeAws_json1_1ListResourceSetsCommand = deserializeAws_json1_1ListResourceSetsCommand;
|
|
1547
|
+
const deserializeAws_json1_1ListResourceSetsCommandError = async (output, context) => {
|
|
1548
|
+
const parsedOutput = {
|
|
1549
|
+
...output,
|
|
1550
|
+
body: await parseErrorBody(output.body, context),
|
|
1551
|
+
};
|
|
1552
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1553
|
+
switch (errorCode) {
|
|
1554
|
+
case "InternalErrorException":
|
|
1555
|
+
case "com.amazonaws.fms#InternalErrorException":
|
|
1556
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
1557
|
+
case "InvalidInputException":
|
|
1558
|
+
case "com.amazonaws.fms#InvalidInputException":
|
|
1559
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1560
|
+
case "InvalidOperationException":
|
|
1561
|
+
case "com.amazonaws.fms#InvalidOperationException":
|
|
1562
|
+
throw await deserializeAws_json1_1InvalidOperationExceptionResponse(parsedOutput, context);
|
|
1563
|
+
default:
|
|
1564
|
+
const parsedBody = parsedOutput.body;
|
|
1565
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1566
|
+
output,
|
|
1567
|
+
parsedBody,
|
|
1568
|
+
exceptionCtor: FMSServiceException_1.FMSServiceException,
|
|
1569
|
+
errorCode,
|
|
1570
|
+
});
|
|
1571
|
+
}
|
|
1572
|
+
};
|
|
1198
1573
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
1199
1574
|
if (output.statusCode >= 300) {
|
|
1200
1575
|
return deserializeAws_json1_1ListTagsForResourceCommandError(output, context);
|
|
@@ -1459,6 +1834,49 @@ const deserializeAws_json1_1PutProtocolsListCommandError = async (output, contex
|
|
|
1459
1834
|
});
|
|
1460
1835
|
}
|
|
1461
1836
|
};
|
|
1837
|
+
const deserializeAws_json1_1PutResourceSetCommand = async (output, context) => {
|
|
1838
|
+
if (output.statusCode >= 300) {
|
|
1839
|
+
return deserializeAws_json1_1PutResourceSetCommandError(output, context);
|
|
1840
|
+
}
|
|
1841
|
+
const data = await parseBody(output.body, context);
|
|
1842
|
+
let contents = {};
|
|
1843
|
+
contents = deserializeAws_json1_1PutResourceSetResponse(data, context);
|
|
1844
|
+
const response = {
|
|
1845
|
+
$metadata: deserializeMetadata(output),
|
|
1846
|
+
...contents,
|
|
1847
|
+
};
|
|
1848
|
+
return Promise.resolve(response);
|
|
1849
|
+
};
|
|
1850
|
+
exports.deserializeAws_json1_1PutResourceSetCommand = deserializeAws_json1_1PutResourceSetCommand;
|
|
1851
|
+
const deserializeAws_json1_1PutResourceSetCommandError = async (output, context) => {
|
|
1852
|
+
const parsedOutput = {
|
|
1853
|
+
...output,
|
|
1854
|
+
body: await parseErrorBody(output.body, context),
|
|
1855
|
+
};
|
|
1856
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1857
|
+
switch (errorCode) {
|
|
1858
|
+
case "InternalErrorException":
|
|
1859
|
+
case "com.amazonaws.fms#InternalErrorException":
|
|
1860
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
1861
|
+
case "InvalidInputException":
|
|
1862
|
+
case "com.amazonaws.fms#InvalidInputException":
|
|
1863
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1864
|
+
case "InvalidOperationException":
|
|
1865
|
+
case "com.amazonaws.fms#InvalidOperationException":
|
|
1866
|
+
throw await deserializeAws_json1_1InvalidOperationExceptionResponse(parsedOutput, context);
|
|
1867
|
+
case "LimitExceededException":
|
|
1868
|
+
case "com.amazonaws.fms#LimitExceededException":
|
|
1869
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1870
|
+
default:
|
|
1871
|
+
const parsedBody = parsedOutput.body;
|
|
1872
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1873
|
+
output,
|
|
1874
|
+
parsedBody,
|
|
1875
|
+
exceptionCtor: FMSServiceException_1.FMSServiceException,
|
|
1876
|
+
errorCode,
|
|
1877
|
+
});
|
|
1878
|
+
}
|
|
1879
|
+
};
|
|
1462
1880
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
1463
1881
|
if (output.statusCode >= 300) {
|
|
1464
1882
|
return deserializeAws_json1_1TagResourceCommandError(output, context);
|
|
@@ -1639,6 +2057,25 @@ const serializeAws_json1_1AssociateThirdPartyFirewallRequest = (input, context)
|
|
|
1639
2057
|
...(input.ThirdPartyFirewall != null && { ThirdPartyFirewall: input.ThirdPartyFirewall }),
|
|
1640
2058
|
};
|
|
1641
2059
|
};
|
|
2060
|
+
const serializeAws_json1_1AWSAccountIdList = (input, context) => {
|
|
2061
|
+
return input
|
|
2062
|
+
.filter((e) => e != null)
|
|
2063
|
+
.map((entry) => {
|
|
2064
|
+
return entry;
|
|
2065
|
+
});
|
|
2066
|
+
};
|
|
2067
|
+
const serializeAws_json1_1BatchAssociateResourceRequest = (input, context) => {
|
|
2068
|
+
return {
|
|
2069
|
+
...(input.Items != null && { Items: serializeAws_json1_1IdentifierList(input.Items, context) }),
|
|
2070
|
+
...(input.ResourceSetIdentifier != null && { ResourceSetIdentifier: input.ResourceSetIdentifier }),
|
|
2071
|
+
};
|
|
2072
|
+
};
|
|
2073
|
+
const serializeAws_json1_1BatchDisassociateResourceRequest = (input, context) => {
|
|
2074
|
+
return {
|
|
2075
|
+
...(input.Items != null && { Items: serializeAws_json1_1IdentifierList(input.Items, context) }),
|
|
2076
|
+
...(input.ResourceSetIdentifier != null && { ResourceSetIdentifier: input.ResourceSetIdentifier }),
|
|
2077
|
+
};
|
|
2078
|
+
};
|
|
1642
2079
|
const serializeAws_json1_1CustomerPolicyScopeIdList = (input, context) => {
|
|
1643
2080
|
return input
|
|
1644
2081
|
.filter((e) => e != null)
|
|
@@ -1676,6 +2113,11 @@ const serializeAws_json1_1DeleteProtocolsListRequest = (input, context) => {
|
|
|
1676
2113
|
...(input.ListId != null && { ListId: input.ListId }),
|
|
1677
2114
|
};
|
|
1678
2115
|
};
|
|
2116
|
+
const serializeAws_json1_1DeleteResourceSetRequest = (input, context) => {
|
|
2117
|
+
return {
|
|
2118
|
+
...(input.Identifier != null && { Identifier: input.Identifier }),
|
|
2119
|
+
};
|
|
2120
|
+
};
|
|
1679
2121
|
const serializeAws_json1_1DisassociateAdminAccountRequest = (input, context) => {
|
|
1680
2122
|
return {};
|
|
1681
2123
|
};
|
|
@@ -1723,6 +2165,11 @@ const serializeAws_json1_1GetProtocolsListRequest = (input, context) => {
|
|
|
1723
2165
|
...(input.ListId != null && { ListId: input.ListId }),
|
|
1724
2166
|
};
|
|
1725
2167
|
};
|
|
2168
|
+
const serializeAws_json1_1GetResourceSetRequest = (input, context) => {
|
|
2169
|
+
return {
|
|
2170
|
+
...(input.Identifier != null && { Identifier: input.Identifier }),
|
|
2171
|
+
};
|
|
2172
|
+
};
|
|
1726
2173
|
const serializeAws_json1_1GetThirdPartyFirewallAssociationStatusRequest = (input, context) => {
|
|
1727
2174
|
return {
|
|
1728
2175
|
...(input.ThirdPartyFirewall != null && { ThirdPartyFirewall: input.ThirdPartyFirewall }),
|
|
@@ -1736,6 +2183,13 @@ const serializeAws_json1_1GetViolationDetailsRequest = (input, context) => {
|
|
|
1736
2183
|
...(input.ResourceType != null && { ResourceType: input.ResourceType }),
|
|
1737
2184
|
};
|
|
1738
2185
|
};
|
|
2186
|
+
const serializeAws_json1_1IdentifierList = (input, context) => {
|
|
2187
|
+
return input
|
|
2188
|
+
.filter((e) => e != null)
|
|
2189
|
+
.map((entry) => {
|
|
2190
|
+
return entry;
|
|
2191
|
+
});
|
|
2192
|
+
};
|
|
1739
2193
|
const serializeAws_json1_1ListAppsListsRequest = (input, context) => {
|
|
1740
2194
|
return {
|
|
1741
2195
|
...(input.DefaultLists != null && { DefaultLists: input.DefaultLists }),
|
|
@@ -1750,6 +2204,16 @@ const serializeAws_json1_1ListComplianceStatusRequest = (input, context) => {
|
|
|
1750
2204
|
...(input.PolicyId != null && { PolicyId: input.PolicyId }),
|
|
1751
2205
|
};
|
|
1752
2206
|
};
|
|
2207
|
+
const serializeAws_json1_1ListDiscoveredResourcesRequest = (input, context) => {
|
|
2208
|
+
return {
|
|
2209
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2210
|
+
...(input.MemberAccountIds != null && {
|
|
2211
|
+
MemberAccountIds: serializeAws_json1_1AWSAccountIdList(input.MemberAccountIds, context),
|
|
2212
|
+
}),
|
|
2213
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2214
|
+
...(input.ResourceType != null && { ResourceType: input.ResourceType }),
|
|
2215
|
+
};
|
|
2216
|
+
};
|
|
1753
2217
|
const serializeAws_json1_1ListMemberAccountsRequest = (input, context) => {
|
|
1754
2218
|
return {
|
|
1755
2219
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
@@ -1769,6 +2233,19 @@ const serializeAws_json1_1ListProtocolsListsRequest = (input, context) => {
|
|
|
1769
2233
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1770
2234
|
};
|
|
1771
2235
|
};
|
|
2236
|
+
const serializeAws_json1_1ListResourceSetResourcesRequest = (input, context) => {
|
|
2237
|
+
return {
|
|
2238
|
+
...(input.Identifier != null && { Identifier: input.Identifier }),
|
|
2239
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2240
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2241
|
+
};
|
|
2242
|
+
};
|
|
2243
|
+
const serializeAws_json1_1ListResourceSetsRequest = (input, context) => {
|
|
2244
|
+
return {
|
|
2245
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2246
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2247
|
+
};
|
|
2248
|
+
};
|
|
1772
2249
|
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
1773
2250
|
return {
|
|
1774
2251
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
@@ -1798,10 +2275,14 @@ const serializeAws_json1_1Policy = (input, context) => {
|
|
|
1798
2275
|
...(input.IncludeMap != null && {
|
|
1799
2276
|
IncludeMap: serializeAws_json1_1CustomerPolicyScopeMap(input.IncludeMap, context),
|
|
1800
2277
|
}),
|
|
2278
|
+
...(input.PolicyDescription != null && { PolicyDescription: input.PolicyDescription }),
|
|
1801
2279
|
...(input.PolicyId != null && { PolicyId: input.PolicyId }),
|
|
1802
2280
|
...(input.PolicyName != null && { PolicyName: input.PolicyName }),
|
|
1803
2281
|
...(input.PolicyUpdateToken != null && { PolicyUpdateToken: input.PolicyUpdateToken }),
|
|
1804
2282
|
...(input.RemediationEnabled != null && { RemediationEnabled: input.RemediationEnabled }),
|
|
2283
|
+
...(input.ResourceSetIds != null && {
|
|
2284
|
+
ResourceSetIds: serializeAws_json1_1ResourceSetIds(input.ResourceSetIds, context),
|
|
2285
|
+
}),
|
|
1805
2286
|
...(input.ResourceTags != null && { ResourceTags: serializeAws_json1_1ResourceTags(input.ResourceTags, context) }),
|
|
1806
2287
|
...(input.ResourceType != null && { ResourceType: input.ResourceType }),
|
|
1807
2288
|
...(input.ResourceTypeList != null && {
|
|
@@ -1892,6 +2373,31 @@ const serializeAws_json1_1PutProtocolsListRequest = (input, context) => {
|
|
|
1892
2373
|
...(input.TagList != null && { TagList: serializeAws_json1_1TagList(input.TagList, context) }),
|
|
1893
2374
|
};
|
|
1894
2375
|
};
|
|
2376
|
+
const serializeAws_json1_1PutResourceSetRequest = (input, context) => {
|
|
2377
|
+
return {
|
|
2378
|
+
...(input.ResourceSet != null && { ResourceSet: serializeAws_json1_1ResourceSet(input.ResourceSet, context) }),
|
|
2379
|
+
...(input.TagList != null && { TagList: serializeAws_json1_1TagList(input.TagList, context) }),
|
|
2380
|
+
};
|
|
2381
|
+
};
|
|
2382
|
+
const serializeAws_json1_1ResourceSet = (input, context) => {
|
|
2383
|
+
return {
|
|
2384
|
+
...(input.Description != null && { Description: input.Description }),
|
|
2385
|
+
...(input.Id != null && { Id: input.Id }),
|
|
2386
|
+
...(input.LastUpdateTime != null && { LastUpdateTime: Math.round(input.LastUpdateTime.getTime() / 1000) }),
|
|
2387
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2388
|
+
...(input.ResourceTypeList != null && {
|
|
2389
|
+
ResourceTypeList: serializeAws_json1_1ResourceTypeList(input.ResourceTypeList, context),
|
|
2390
|
+
}),
|
|
2391
|
+
...(input.UpdateToken != null && { UpdateToken: input.UpdateToken }),
|
|
2392
|
+
};
|
|
2393
|
+
};
|
|
2394
|
+
const serializeAws_json1_1ResourceSetIds = (input, context) => {
|
|
2395
|
+
return input
|
|
2396
|
+
.filter((e) => e != null)
|
|
2397
|
+
.map((entry) => {
|
|
2398
|
+
return entry;
|
|
2399
|
+
});
|
|
2400
|
+
};
|
|
1895
2401
|
const serializeAws_json1_1ResourceTag = (input, context) => {
|
|
1896
2402
|
return {
|
|
1897
2403
|
...(input.Key != null && { Key: input.Key }),
|
|
@@ -2056,6 +2562,18 @@ const deserializeAws_json1_1AwsVPCSecurityGroupViolation = (output, context) =>
|
|
|
2056
2562
|
ViolationTargetDescription: (0, smithy_client_1.expectString)(output.ViolationTargetDescription),
|
|
2057
2563
|
};
|
|
2058
2564
|
};
|
|
2565
|
+
const deserializeAws_json1_1BatchAssociateResourceResponse = (output, context) => {
|
|
2566
|
+
return {
|
|
2567
|
+
FailedItems: output.FailedItems != null ? deserializeAws_json1_1FailedItemList(output.FailedItems, context) : undefined,
|
|
2568
|
+
ResourceSetIdentifier: (0, smithy_client_1.expectString)(output.ResourceSetIdentifier),
|
|
2569
|
+
};
|
|
2570
|
+
};
|
|
2571
|
+
const deserializeAws_json1_1BatchDisassociateResourceResponse = (output, context) => {
|
|
2572
|
+
return {
|
|
2573
|
+
FailedItems: output.FailedItems != null ? deserializeAws_json1_1FailedItemList(output.FailedItems, context) : undefined,
|
|
2574
|
+
ResourceSetIdentifier: (0, smithy_client_1.expectString)(output.ResourceSetIdentifier),
|
|
2575
|
+
};
|
|
2576
|
+
};
|
|
2059
2577
|
const deserializeAws_json1_1ComplianceViolator = (output, context) => {
|
|
2060
2578
|
return {
|
|
2061
2579
|
Metadata: output.Metadata != null ? deserializeAws_json1_1ComplianceViolatorMetadata(output.Metadata, context) : undefined,
|
|
@@ -2113,6 +2631,25 @@ const deserializeAws_json1_1DisassociateThirdPartyFirewallResponse = (output, co
|
|
|
2113
2631
|
ThirdPartyFirewallStatus: (0, smithy_client_1.expectString)(output.ThirdPartyFirewallStatus),
|
|
2114
2632
|
};
|
|
2115
2633
|
};
|
|
2634
|
+
const deserializeAws_json1_1DiscoveredResource = (output, context) => {
|
|
2635
|
+
return {
|
|
2636
|
+
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
2637
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2638
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2639
|
+
URI: (0, smithy_client_1.expectString)(output.URI),
|
|
2640
|
+
};
|
|
2641
|
+
};
|
|
2642
|
+
const deserializeAws_json1_1DiscoveredResourceList = (output, context) => {
|
|
2643
|
+
const retVal = (output || [])
|
|
2644
|
+
.filter((e) => e != null)
|
|
2645
|
+
.map((entry) => {
|
|
2646
|
+
if (entry === null) {
|
|
2647
|
+
return null;
|
|
2648
|
+
}
|
|
2649
|
+
return deserializeAws_json1_1DiscoveredResource(entry, context);
|
|
2650
|
+
});
|
|
2651
|
+
return retVal;
|
|
2652
|
+
};
|
|
2116
2653
|
const deserializeAws_json1_1DnsDuplicateRuleGroupViolation = (output, context) => {
|
|
2117
2654
|
return {
|
|
2118
2655
|
ViolationTarget: (0, smithy_client_1.expectString)(output.ViolationTarget),
|
|
@@ -2249,6 +2786,23 @@ const deserializeAws_json1_1ExpectedRoutes = (output, context) => {
|
|
|
2249
2786
|
});
|
|
2250
2787
|
return retVal;
|
|
2251
2788
|
};
|
|
2789
|
+
const deserializeAws_json1_1FailedItem = (output, context) => {
|
|
2790
|
+
return {
|
|
2791
|
+
Reason: (0, smithy_client_1.expectString)(output.Reason),
|
|
2792
|
+
URI: (0, smithy_client_1.expectString)(output.URI),
|
|
2793
|
+
};
|
|
2794
|
+
};
|
|
2795
|
+
const deserializeAws_json1_1FailedItemList = (output, context) => {
|
|
2796
|
+
const retVal = (output || [])
|
|
2797
|
+
.filter((e) => e != null)
|
|
2798
|
+
.map((entry) => {
|
|
2799
|
+
if (entry === null) {
|
|
2800
|
+
return null;
|
|
2801
|
+
}
|
|
2802
|
+
return deserializeAws_json1_1FailedItem(entry, context);
|
|
2803
|
+
});
|
|
2804
|
+
return retVal;
|
|
2805
|
+
};
|
|
2252
2806
|
const deserializeAws_json1_1FirewallSubnetIsOutOfScopeViolation = (output, context) => {
|
|
2253
2807
|
return {
|
|
2254
2808
|
FirewallSubnetId: (0, smithy_client_1.expectString)(output.FirewallSubnetId),
|
|
@@ -2317,6 +2871,12 @@ const deserializeAws_json1_1GetProtocolsListResponse = (output, context) => {
|
|
|
2317
2871
|
ProtocolsListArn: (0, smithy_client_1.expectString)(output.ProtocolsListArn),
|
|
2318
2872
|
};
|
|
2319
2873
|
};
|
|
2874
|
+
const deserializeAws_json1_1GetResourceSetResponse = (output, context) => {
|
|
2875
|
+
return {
|
|
2876
|
+
ResourceSet: output.ResourceSet != null ? deserializeAws_json1_1ResourceSet(output.ResourceSet, context) : undefined,
|
|
2877
|
+
ResourceSetArn: (0, smithy_client_1.expectString)(output.ResourceSetArn),
|
|
2878
|
+
};
|
|
2879
|
+
};
|
|
2320
2880
|
const deserializeAws_json1_1GetThirdPartyFirewallAssociationStatusResponse = (output, context) => {
|
|
2321
2881
|
return {
|
|
2322
2882
|
MarketplaceOnboardingStatus: (0, smithy_client_1.expectString)(output.MarketplaceOnboardingStatus),
|
|
@@ -2391,6 +2951,12 @@ const deserializeAws_json1_1ListComplianceStatusResponse = (output, context) =>
|
|
|
2391
2951
|
: undefined,
|
|
2392
2952
|
};
|
|
2393
2953
|
};
|
|
2954
|
+
const deserializeAws_json1_1ListDiscoveredResourcesResponse = (output, context) => {
|
|
2955
|
+
return {
|
|
2956
|
+
Items: output.Items != null ? deserializeAws_json1_1DiscoveredResourceList(output.Items, context) : undefined,
|
|
2957
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2958
|
+
};
|
|
2959
|
+
};
|
|
2394
2960
|
const deserializeAws_json1_1ListMemberAccountsResponse = (output, context) => {
|
|
2395
2961
|
return {
|
|
2396
2962
|
MemberAccounts: output.MemberAccounts != null ? deserializeAws_json1_1MemberAccounts(output.MemberAccounts, context) : undefined,
|
|
@@ -2411,6 +2977,20 @@ const deserializeAws_json1_1ListProtocolsListsResponse = (output, context) => {
|
|
|
2411
2977
|
: undefined,
|
|
2412
2978
|
};
|
|
2413
2979
|
};
|
|
2980
|
+
const deserializeAws_json1_1ListResourceSetResourcesResponse = (output, context) => {
|
|
2981
|
+
return {
|
|
2982
|
+
Items: output.Items != null ? deserializeAws_json1_1ResourceList(output.Items, context) : undefined,
|
|
2983
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2984
|
+
};
|
|
2985
|
+
};
|
|
2986
|
+
const deserializeAws_json1_1ListResourceSetsResponse = (output, context) => {
|
|
2987
|
+
return {
|
|
2988
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2989
|
+
ResourceSets: output.ResourceSets != null
|
|
2990
|
+
? deserializeAws_json1_1ResourceSetSummaryList(output.ResourceSets, context)
|
|
2991
|
+
: undefined,
|
|
2992
|
+
};
|
|
2993
|
+
};
|
|
2414
2994
|
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
2415
2995
|
return {
|
|
2416
2996
|
TagList: output.TagList != null ? deserializeAws_json1_1TagList(output.TagList, context) : undefined,
|
|
@@ -2642,10 +3222,12 @@ const deserializeAws_json1_1Policy = (output, context) => {
|
|
|
2642
3222
|
ExcludeMap: output.ExcludeMap != null ? deserializeAws_json1_1CustomerPolicyScopeMap(output.ExcludeMap, context) : undefined,
|
|
2643
3223
|
ExcludeResourceTags: (0, smithy_client_1.expectBoolean)(output.ExcludeResourceTags),
|
|
2644
3224
|
IncludeMap: output.IncludeMap != null ? deserializeAws_json1_1CustomerPolicyScopeMap(output.IncludeMap, context) : undefined,
|
|
3225
|
+
PolicyDescription: (0, smithy_client_1.expectString)(output.PolicyDescription),
|
|
2645
3226
|
PolicyId: (0, smithy_client_1.expectString)(output.PolicyId),
|
|
2646
3227
|
PolicyName: (0, smithy_client_1.expectString)(output.PolicyName),
|
|
2647
3228
|
PolicyUpdateToken: (0, smithy_client_1.expectString)(output.PolicyUpdateToken),
|
|
2648
3229
|
RemediationEnabled: (0, smithy_client_1.expectBoolean)(output.RemediationEnabled),
|
|
3230
|
+
ResourceSetIds: output.ResourceSetIds != null ? deserializeAws_json1_1ResourceSetIds(output.ResourceSetIds, context) : undefined,
|
|
2649
3231
|
ResourceTags: output.ResourceTags != null ? deserializeAws_json1_1ResourceTags(output.ResourceTags, context) : undefined,
|
|
2650
3232
|
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
2651
3233
|
ResourceTypeList: output.ResourceTypeList != null
|
|
@@ -2836,6 +3418,12 @@ const deserializeAws_json1_1PutProtocolsListResponse = (output, context) => {
|
|
|
2836
3418
|
ProtocolsListArn: (0, smithy_client_1.expectString)(output.ProtocolsListArn),
|
|
2837
3419
|
};
|
|
2838
3420
|
};
|
|
3421
|
+
const deserializeAws_json1_1PutResourceSetResponse = (output, context) => {
|
|
3422
|
+
return {
|
|
3423
|
+
ResourceSet: output.ResourceSet != null ? deserializeAws_json1_1ResourceSet(output.ResourceSet, context) : undefined,
|
|
3424
|
+
ResourceSetArn: (0, smithy_client_1.expectString)(output.ResourceSetArn),
|
|
3425
|
+
};
|
|
3426
|
+
};
|
|
2839
3427
|
const deserializeAws_json1_1RemediationAction = (output, context) => {
|
|
2840
3428
|
return {
|
|
2841
3429
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
@@ -2873,6 +3461,12 @@ const deserializeAws_json1_1RemediationActionWithOrder = (output, context) => {
|
|
|
2873
3461
|
: undefined,
|
|
2874
3462
|
};
|
|
2875
3463
|
};
|
|
3464
|
+
const deserializeAws_json1_1Resource = (output, context) => {
|
|
3465
|
+
return {
|
|
3466
|
+
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
3467
|
+
URI: (0, smithy_client_1.expectString)(output.URI),
|
|
3468
|
+
};
|
|
3469
|
+
};
|
|
2876
3470
|
const deserializeAws_json1_1ResourceIdList = (output, context) => {
|
|
2877
3471
|
const retVal = (output || [])
|
|
2878
3472
|
.filter((e) => e != null)
|
|
@@ -2884,11 +3478,68 @@ const deserializeAws_json1_1ResourceIdList = (output, context) => {
|
|
|
2884
3478
|
});
|
|
2885
3479
|
return retVal;
|
|
2886
3480
|
};
|
|
3481
|
+
const deserializeAws_json1_1ResourceList = (output, context) => {
|
|
3482
|
+
const retVal = (output || [])
|
|
3483
|
+
.filter((e) => e != null)
|
|
3484
|
+
.map((entry) => {
|
|
3485
|
+
if (entry === null) {
|
|
3486
|
+
return null;
|
|
3487
|
+
}
|
|
3488
|
+
return deserializeAws_json1_1Resource(entry, context);
|
|
3489
|
+
});
|
|
3490
|
+
return retVal;
|
|
3491
|
+
};
|
|
2887
3492
|
const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
|
|
2888
3493
|
return {
|
|
2889
3494
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2890
3495
|
};
|
|
2891
3496
|
};
|
|
3497
|
+
const deserializeAws_json1_1ResourceSet = (output, context) => {
|
|
3498
|
+
return {
|
|
3499
|
+
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
3500
|
+
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
3501
|
+
LastUpdateTime: output.LastUpdateTime != null
|
|
3502
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateTime)))
|
|
3503
|
+
: undefined,
|
|
3504
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3505
|
+
ResourceTypeList: output.ResourceTypeList != null
|
|
3506
|
+
? deserializeAws_json1_1ResourceTypeList(output.ResourceTypeList, context)
|
|
3507
|
+
: undefined,
|
|
3508
|
+
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
3509
|
+
};
|
|
3510
|
+
};
|
|
3511
|
+
const deserializeAws_json1_1ResourceSetIds = (output, context) => {
|
|
3512
|
+
const retVal = (output || [])
|
|
3513
|
+
.filter((e) => e != null)
|
|
3514
|
+
.map((entry) => {
|
|
3515
|
+
if (entry === null) {
|
|
3516
|
+
return null;
|
|
3517
|
+
}
|
|
3518
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
3519
|
+
});
|
|
3520
|
+
return retVal;
|
|
3521
|
+
};
|
|
3522
|
+
const deserializeAws_json1_1ResourceSetSummary = (output, context) => {
|
|
3523
|
+
return {
|
|
3524
|
+
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
3525
|
+
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
3526
|
+
LastUpdateTime: output.LastUpdateTime != null
|
|
3527
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateTime)))
|
|
3528
|
+
: undefined,
|
|
3529
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3530
|
+
};
|
|
3531
|
+
};
|
|
3532
|
+
const deserializeAws_json1_1ResourceSetSummaryList = (output, context) => {
|
|
3533
|
+
const retVal = (output || [])
|
|
3534
|
+
.filter((e) => e != null)
|
|
3535
|
+
.map((entry) => {
|
|
3536
|
+
if (entry === null) {
|
|
3537
|
+
return null;
|
|
3538
|
+
}
|
|
3539
|
+
return deserializeAws_json1_1ResourceSetSummary(entry, context);
|
|
3540
|
+
});
|
|
3541
|
+
return retVal;
|
|
3542
|
+
};
|
|
2892
3543
|
const deserializeAws_json1_1ResourceTag = (output, context) => {
|
|
2893
3544
|
return {
|
|
2894
3545
|
Key: (0, smithy_client_1.expectString)(output.Key),
|