@aws-sdk/client-fms 3.58.0 → 3.72.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/README.md +8 -8
- package/dist-cjs/FMS.js +60 -0
- package/dist-cjs/commands/AssociateThirdPartyFirewallCommand.js +36 -0
- package/dist-cjs/commands/DisassociateThirdPartyFirewallCommand.js +36 -0
- package/dist-cjs/commands/GetThirdPartyFirewallAssociationStatusCommand.js +36 -0
- package/dist-cjs/commands/ListThirdPartyFirewallFirewallPoliciesCommand.js +36 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/models/models_0.js +108 -3
- package/dist-cjs/pagination/ListThirdPartyFirewallFirewallPoliciesPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +356 -2
- package/dist-es/FMS.js +60 -0
- package/dist-es/commands/AssociateThirdPartyFirewallCommand.js +39 -0
- package/dist-es/commands/DisassociateThirdPartyFirewallCommand.js +39 -0
- package/dist-es/commands/GetThirdPartyFirewallAssociationStatusCommand.js +39 -0
- package/dist-es/commands/ListThirdPartyFirewallFirewallPoliciesCommand.js +39 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +77 -0
- package/dist-es/pagination/ListThirdPartyFirewallFirewallPoliciesPaginator.js +74 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +414 -1
- package/dist-types/FMS.d.ts +84 -59
- package/dist-types/FMSClient.d.ts +12 -8
- package/dist-types/commands/AssociateAdminAccountCommand.d.ts +4 -5
- package/dist-types/commands/AssociateThirdPartyFirewallCommand.d.ts +35 -0
- package/dist-types/commands/DeleteNotificationChannelCommand.d.ts +2 -2
- package/dist-types/commands/DisassociateAdminAccountCommand.d.ts +3 -3
- package/dist-types/commands/DisassociateThirdPartyFirewallCommand.d.ts +35 -0
- package/dist-types/commands/GetAdminAccountCommand.d.ts +2 -2
- package/dist-types/commands/GetComplianceDetailCommand.d.ts +13 -13
- package/dist-types/commands/GetNotificationChannelCommand.d.ts +2 -2
- package/dist-types/commands/GetProtectionStatusCommand.d.ts +1 -2
- package/dist-types/commands/GetThirdPartyFirewallAssociationStatusCommand.d.ts +35 -0
- package/dist-types/commands/GetViolationDetailsCommand.d.ts +1 -2
- package/dist-types/commands/ListComplianceStatusCommand.d.ts +2 -2
- package/dist-types/commands/ListMemberAccountsCommand.d.ts +2 -2
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/ListThirdPartyFirewallFirewallPoliciesCommand.d.ts +35 -0
- package/dist-types/commands/PutNotificationChannelCommand.d.ts +5 -6
- package/dist-types/commands/PutPolicyCommand.d.ts +12 -11
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +808 -518
- package/dist-types/pagination/ListThirdPartyFirewallFirewallPoliciesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +12 -0
- package/dist-types/ts3.4/FMS.d.ts +20 -0
- package/dist-types/ts3.4/FMSClient.d.ts +6 -2
- package/dist-types/ts3.4/commands/AssociateThirdPartyFirewallCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisassociateThirdPartyFirewallCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetThirdPartyFirewallAssociationStatusCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListThirdPartyFirewallFirewallPoliciesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +183 -1
- package/dist-types/ts3.4/pagination/ListThirdPartyFirewallFirewallPoliciesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
- package/package.json +6 -6
|
@@ -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 = void 0;
|
|
3
|
+
exports.deserializeAws_json1_1ListMemberAccountsCommand = exports.deserializeAws_json1_1ListComplianceStatusCommand = exports.deserializeAws_json1_1ListAppsListsCommand = exports.deserializeAws_json1_1GetViolationDetailsCommand = exports.deserializeAws_json1_1GetThirdPartyFirewallAssociationStatusCommand = exports.deserializeAws_json1_1GetProtocolsListCommand = exports.deserializeAws_json1_1GetProtectionStatusCommand = exports.deserializeAws_json1_1GetPolicyCommand = exports.deserializeAws_json1_1GetNotificationChannelCommand = exports.deserializeAws_json1_1GetComplianceDetailCommand = exports.deserializeAws_json1_1GetAppsListCommand = exports.deserializeAws_json1_1GetAdminAccountCommand = exports.deserializeAws_json1_1DisassociateThirdPartyFirewallCommand = exports.deserializeAws_json1_1DisassociateAdminAccountCommand = exports.deserializeAws_json1_1DeleteProtocolsListCommand = exports.deserializeAws_json1_1DeletePolicyCommand = exports.deserializeAws_json1_1DeleteNotificationChannelCommand = exports.deserializeAws_json1_1DeleteAppsListCommand = exports.deserializeAws_json1_1AssociateThirdPartyFirewallCommand = exports.deserializeAws_json1_1AssociateAdminAccountCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = 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_1ListProtocolsListsCommand = exports.serializeAws_json1_1ListPoliciesCommand = exports.serializeAws_json1_1ListMemberAccountsCommand = exports.serializeAws_json1_1ListComplianceStatusCommand = exports.serializeAws_json1_1ListAppsListsCommand = exports.serializeAws_json1_1GetViolationDetailsCommand = exports.serializeAws_json1_1GetThirdPartyFirewallAssociationStatusCommand = 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_1DeleteProtocolsListCommand = exports.serializeAws_json1_1DeletePolicyCommand = exports.serializeAws_json1_1DeleteNotificationChannelCommand = exports.serializeAws_json1_1DeleteAppsListCommand = exports.serializeAws_json1_1AssociateThirdPartyFirewallCommand = exports.serializeAws_json1_1AssociateAdminAccountCommand = void 0;
|
|
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;
|
|
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");
|
|
@@ -16,6 +16,16 @@ const serializeAws_json1_1AssociateAdminAccountCommand = async (input, context)
|
|
|
16
16
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
17
|
};
|
|
18
18
|
exports.serializeAws_json1_1AssociateAdminAccountCommand = serializeAws_json1_1AssociateAdminAccountCommand;
|
|
19
|
+
const serializeAws_json1_1AssociateThirdPartyFirewallCommand = async (input, context) => {
|
|
20
|
+
const headers = {
|
|
21
|
+
"content-type": "application/x-amz-json-1.1",
|
|
22
|
+
"x-amz-target": "AWSFMS_20180101.AssociateThirdPartyFirewall",
|
|
23
|
+
};
|
|
24
|
+
let body;
|
|
25
|
+
body = JSON.stringify(serializeAws_json1_1AssociateThirdPartyFirewallRequest(input, context));
|
|
26
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
|
+
};
|
|
28
|
+
exports.serializeAws_json1_1AssociateThirdPartyFirewallCommand = serializeAws_json1_1AssociateThirdPartyFirewallCommand;
|
|
19
29
|
const serializeAws_json1_1DeleteAppsListCommand = async (input, context) => {
|
|
20
30
|
const headers = {
|
|
21
31
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -66,6 +76,16 @@ const serializeAws_json1_1DisassociateAdminAccountCommand = async (input, contex
|
|
|
66
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
77
|
};
|
|
68
78
|
exports.serializeAws_json1_1DisassociateAdminAccountCommand = serializeAws_json1_1DisassociateAdminAccountCommand;
|
|
79
|
+
const serializeAws_json1_1DisassociateThirdPartyFirewallCommand = async (input, context) => {
|
|
80
|
+
const headers = {
|
|
81
|
+
"content-type": "application/x-amz-json-1.1",
|
|
82
|
+
"x-amz-target": "AWSFMS_20180101.DisassociateThirdPartyFirewall",
|
|
83
|
+
};
|
|
84
|
+
let body;
|
|
85
|
+
body = JSON.stringify(serializeAws_json1_1DisassociateThirdPartyFirewallRequest(input, context));
|
|
86
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
87
|
+
};
|
|
88
|
+
exports.serializeAws_json1_1DisassociateThirdPartyFirewallCommand = serializeAws_json1_1DisassociateThirdPartyFirewallCommand;
|
|
69
89
|
const serializeAws_json1_1GetAdminAccountCommand = async (input, context) => {
|
|
70
90
|
const headers = {
|
|
71
91
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -136,6 +156,16 @@ const serializeAws_json1_1GetProtocolsListCommand = async (input, context) => {
|
|
|
136
156
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
157
|
};
|
|
138
158
|
exports.serializeAws_json1_1GetProtocolsListCommand = serializeAws_json1_1GetProtocolsListCommand;
|
|
159
|
+
const serializeAws_json1_1GetThirdPartyFirewallAssociationStatusCommand = async (input, context) => {
|
|
160
|
+
const headers = {
|
|
161
|
+
"content-type": "application/x-amz-json-1.1",
|
|
162
|
+
"x-amz-target": "AWSFMS_20180101.GetThirdPartyFirewallAssociationStatus",
|
|
163
|
+
};
|
|
164
|
+
let body;
|
|
165
|
+
body = JSON.stringify(serializeAws_json1_1GetThirdPartyFirewallAssociationStatusRequest(input, context));
|
|
166
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
|
+
};
|
|
168
|
+
exports.serializeAws_json1_1GetThirdPartyFirewallAssociationStatusCommand = serializeAws_json1_1GetThirdPartyFirewallAssociationStatusCommand;
|
|
139
169
|
const serializeAws_json1_1GetViolationDetailsCommand = async (input, context) => {
|
|
140
170
|
const headers = {
|
|
141
171
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -206,6 +236,16 @@ const serializeAws_json1_1ListTagsForResourceCommand = async (input, context) =>
|
|
|
206
236
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
207
237
|
};
|
|
208
238
|
exports.serializeAws_json1_1ListTagsForResourceCommand = serializeAws_json1_1ListTagsForResourceCommand;
|
|
239
|
+
const serializeAws_json1_1ListThirdPartyFirewallFirewallPoliciesCommand = async (input, context) => {
|
|
240
|
+
const headers = {
|
|
241
|
+
"content-type": "application/x-amz-json-1.1",
|
|
242
|
+
"x-amz-target": "AWSFMS_20180101.ListThirdPartyFirewallFirewallPolicies",
|
|
243
|
+
};
|
|
244
|
+
let body;
|
|
245
|
+
body = JSON.stringify(serializeAws_json1_1ListThirdPartyFirewallFirewallPoliciesRequest(input, context));
|
|
246
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
|
+
};
|
|
248
|
+
exports.serializeAws_json1_1ListThirdPartyFirewallFirewallPoliciesCommand = serializeAws_json1_1ListThirdPartyFirewallFirewallPoliciesCommand;
|
|
209
249
|
const serializeAws_json1_1PutAppsListCommand = async (input, context) => {
|
|
210
250
|
const headers = {
|
|
211
251
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -311,6 +351,51 @@ const deserializeAws_json1_1AssociateAdminAccountCommandError = async (output, c
|
|
|
311
351
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
312
352
|
}
|
|
313
353
|
};
|
|
354
|
+
const deserializeAws_json1_1AssociateThirdPartyFirewallCommand = async (output, context) => {
|
|
355
|
+
if (output.statusCode >= 300) {
|
|
356
|
+
return deserializeAws_json1_1AssociateThirdPartyFirewallCommandError(output, context);
|
|
357
|
+
}
|
|
358
|
+
const data = await parseBody(output.body, context);
|
|
359
|
+
let contents = {};
|
|
360
|
+
contents = deserializeAws_json1_1AssociateThirdPartyFirewallResponse(data, context);
|
|
361
|
+
const response = {
|
|
362
|
+
$metadata: deserializeMetadata(output),
|
|
363
|
+
...contents,
|
|
364
|
+
};
|
|
365
|
+
return Promise.resolve(response);
|
|
366
|
+
};
|
|
367
|
+
exports.deserializeAws_json1_1AssociateThirdPartyFirewallCommand = deserializeAws_json1_1AssociateThirdPartyFirewallCommand;
|
|
368
|
+
const deserializeAws_json1_1AssociateThirdPartyFirewallCommandError = async (output, context) => {
|
|
369
|
+
const parsedOutput = {
|
|
370
|
+
...output,
|
|
371
|
+
body: await parseBody(output.body, context),
|
|
372
|
+
};
|
|
373
|
+
let response;
|
|
374
|
+
let errorCode = "UnknownError";
|
|
375
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
376
|
+
switch (errorCode) {
|
|
377
|
+
case "InternalErrorException":
|
|
378
|
+
case "com.amazonaws.fms#InternalErrorException":
|
|
379
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
380
|
+
case "InvalidInputException":
|
|
381
|
+
case "com.amazonaws.fms#InvalidInputException":
|
|
382
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
383
|
+
case "InvalidOperationException":
|
|
384
|
+
case "com.amazonaws.fms#InvalidOperationException":
|
|
385
|
+
throw await deserializeAws_json1_1InvalidOperationExceptionResponse(parsedOutput, context);
|
|
386
|
+
case "ResourceNotFoundException":
|
|
387
|
+
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
388
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
389
|
+
default:
|
|
390
|
+
const parsedBody = parsedOutput.body;
|
|
391
|
+
response = new FMSServiceException_1.FMSServiceException({
|
|
392
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
393
|
+
$fault: "client",
|
|
394
|
+
$metadata: deserializeMetadata(output),
|
|
395
|
+
});
|
|
396
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
397
|
+
}
|
|
398
|
+
};
|
|
314
399
|
const deserializeAws_json1_1DeleteAppsListCommand = async (output, context) => {
|
|
315
400
|
if (output.statusCode >= 300) {
|
|
316
401
|
return deserializeAws_json1_1DeleteAppsListCommandError(output, context);
|
|
@@ -512,6 +597,51 @@ const deserializeAws_json1_1DisassociateAdminAccountCommandError = async (output
|
|
|
512
597
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
513
598
|
}
|
|
514
599
|
};
|
|
600
|
+
const deserializeAws_json1_1DisassociateThirdPartyFirewallCommand = async (output, context) => {
|
|
601
|
+
if (output.statusCode >= 300) {
|
|
602
|
+
return deserializeAws_json1_1DisassociateThirdPartyFirewallCommandError(output, context);
|
|
603
|
+
}
|
|
604
|
+
const data = await parseBody(output.body, context);
|
|
605
|
+
let contents = {};
|
|
606
|
+
contents = deserializeAws_json1_1DisassociateThirdPartyFirewallResponse(data, context);
|
|
607
|
+
const response = {
|
|
608
|
+
$metadata: deserializeMetadata(output),
|
|
609
|
+
...contents,
|
|
610
|
+
};
|
|
611
|
+
return Promise.resolve(response);
|
|
612
|
+
};
|
|
613
|
+
exports.deserializeAws_json1_1DisassociateThirdPartyFirewallCommand = deserializeAws_json1_1DisassociateThirdPartyFirewallCommand;
|
|
614
|
+
const deserializeAws_json1_1DisassociateThirdPartyFirewallCommandError = async (output, context) => {
|
|
615
|
+
const parsedOutput = {
|
|
616
|
+
...output,
|
|
617
|
+
body: await parseBody(output.body, context),
|
|
618
|
+
};
|
|
619
|
+
let response;
|
|
620
|
+
let errorCode = "UnknownError";
|
|
621
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
622
|
+
switch (errorCode) {
|
|
623
|
+
case "InternalErrorException":
|
|
624
|
+
case "com.amazonaws.fms#InternalErrorException":
|
|
625
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
626
|
+
case "InvalidInputException":
|
|
627
|
+
case "com.amazonaws.fms#InvalidInputException":
|
|
628
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
629
|
+
case "InvalidOperationException":
|
|
630
|
+
case "com.amazonaws.fms#InvalidOperationException":
|
|
631
|
+
throw await deserializeAws_json1_1InvalidOperationExceptionResponse(parsedOutput, context);
|
|
632
|
+
case "ResourceNotFoundException":
|
|
633
|
+
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
634
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
635
|
+
default:
|
|
636
|
+
const parsedBody = parsedOutput.body;
|
|
637
|
+
response = new FMSServiceException_1.FMSServiceException({
|
|
638
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
639
|
+
$fault: "client",
|
|
640
|
+
$metadata: deserializeMetadata(output),
|
|
641
|
+
});
|
|
642
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
643
|
+
}
|
|
644
|
+
};
|
|
515
645
|
const deserializeAws_json1_1GetAdminAccountCommand = async (output, context) => {
|
|
516
646
|
if (output.statusCode >= 300) {
|
|
517
647
|
return deserializeAws_json1_1GetAdminAccountCommandError(output, context);
|
|
@@ -812,6 +942,51 @@ const deserializeAws_json1_1GetProtocolsListCommandError = async (output, contex
|
|
|
812
942
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
813
943
|
}
|
|
814
944
|
};
|
|
945
|
+
const deserializeAws_json1_1GetThirdPartyFirewallAssociationStatusCommand = async (output, context) => {
|
|
946
|
+
if (output.statusCode >= 300) {
|
|
947
|
+
return deserializeAws_json1_1GetThirdPartyFirewallAssociationStatusCommandError(output, context);
|
|
948
|
+
}
|
|
949
|
+
const data = await parseBody(output.body, context);
|
|
950
|
+
let contents = {};
|
|
951
|
+
contents = deserializeAws_json1_1GetThirdPartyFirewallAssociationStatusResponse(data, context);
|
|
952
|
+
const response = {
|
|
953
|
+
$metadata: deserializeMetadata(output),
|
|
954
|
+
...contents,
|
|
955
|
+
};
|
|
956
|
+
return Promise.resolve(response);
|
|
957
|
+
};
|
|
958
|
+
exports.deserializeAws_json1_1GetThirdPartyFirewallAssociationStatusCommand = deserializeAws_json1_1GetThirdPartyFirewallAssociationStatusCommand;
|
|
959
|
+
const deserializeAws_json1_1GetThirdPartyFirewallAssociationStatusCommandError = async (output, context) => {
|
|
960
|
+
const parsedOutput = {
|
|
961
|
+
...output,
|
|
962
|
+
body: await parseBody(output.body, context),
|
|
963
|
+
};
|
|
964
|
+
let response;
|
|
965
|
+
let errorCode = "UnknownError";
|
|
966
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
967
|
+
switch (errorCode) {
|
|
968
|
+
case "InternalErrorException":
|
|
969
|
+
case "com.amazonaws.fms#InternalErrorException":
|
|
970
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
971
|
+
case "InvalidInputException":
|
|
972
|
+
case "com.amazonaws.fms#InvalidInputException":
|
|
973
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
974
|
+
case "InvalidOperationException":
|
|
975
|
+
case "com.amazonaws.fms#InvalidOperationException":
|
|
976
|
+
throw await deserializeAws_json1_1InvalidOperationExceptionResponse(parsedOutput, context);
|
|
977
|
+
case "ResourceNotFoundException":
|
|
978
|
+
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
979
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
980
|
+
default:
|
|
981
|
+
const parsedBody = parsedOutput.body;
|
|
982
|
+
response = new FMSServiceException_1.FMSServiceException({
|
|
983
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
984
|
+
$fault: "client",
|
|
985
|
+
$metadata: deserializeMetadata(output),
|
|
986
|
+
});
|
|
987
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
988
|
+
}
|
|
989
|
+
};
|
|
815
990
|
const deserializeAws_json1_1GetViolationDetailsCommand = async (output, context) => {
|
|
816
991
|
if (output.statusCode >= 300) {
|
|
817
992
|
return deserializeAws_json1_1GetViolationDetailsCommandError(output, context);
|
|
@@ -1109,6 +1284,51 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1109
1284
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1110
1285
|
}
|
|
1111
1286
|
};
|
|
1287
|
+
const deserializeAws_json1_1ListThirdPartyFirewallFirewallPoliciesCommand = async (output, context) => {
|
|
1288
|
+
if (output.statusCode >= 300) {
|
|
1289
|
+
return deserializeAws_json1_1ListThirdPartyFirewallFirewallPoliciesCommandError(output, context);
|
|
1290
|
+
}
|
|
1291
|
+
const data = await parseBody(output.body, context);
|
|
1292
|
+
let contents = {};
|
|
1293
|
+
contents = deserializeAws_json1_1ListThirdPartyFirewallFirewallPoliciesResponse(data, context);
|
|
1294
|
+
const response = {
|
|
1295
|
+
$metadata: deserializeMetadata(output),
|
|
1296
|
+
...contents,
|
|
1297
|
+
};
|
|
1298
|
+
return Promise.resolve(response);
|
|
1299
|
+
};
|
|
1300
|
+
exports.deserializeAws_json1_1ListThirdPartyFirewallFirewallPoliciesCommand = deserializeAws_json1_1ListThirdPartyFirewallFirewallPoliciesCommand;
|
|
1301
|
+
const deserializeAws_json1_1ListThirdPartyFirewallFirewallPoliciesCommandError = async (output, context) => {
|
|
1302
|
+
const parsedOutput = {
|
|
1303
|
+
...output,
|
|
1304
|
+
body: await parseBody(output.body, context),
|
|
1305
|
+
};
|
|
1306
|
+
let response;
|
|
1307
|
+
let errorCode = "UnknownError";
|
|
1308
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1309
|
+
switch (errorCode) {
|
|
1310
|
+
case "InternalErrorException":
|
|
1311
|
+
case "com.amazonaws.fms#InternalErrorException":
|
|
1312
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
1313
|
+
case "InvalidInputException":
|
|
1314
|
+
case "com.amazonaws.fms#InvalidInputException":
|
|
1315
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1316
|
+
case "InvalidOperationException":
|
|
1317
|
+
case "com.amazonaws.fms#InvalidOperationException":
|
|
1318
|
+
throw await deserializeAws_json1_1InvalidOperationExceptionResponse(parsedOutput, context);
|
|
1319
|
+
case "ResourceNotFoundException":
|
|
1320
|
+
case "com.amazonaws.fms#ResourceNotFoundException":
|
|
1321
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1322
|
+
default:
|
|
1323
|
+
const parsedBody = parsedOutput.body;
|
|
1324
|
+
response = new FMSServiceException_1.FMSServiceException({
|
|
1325
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1326
|
+
$fault: "client",
|
|
1327
|
+
$metadata: deserializeMetadata(output),
|
|
1328
|
+
});
|
|
1329
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1330
|
+
}
|
|
1331
|
+
};
|
|
1112
1332
|
const deserializeAws_json1_1PutAppsListCommand = async (output, context) => {
|
|
1113
1333
|
if (output.statusCode >= 300) {
|
|
1114
1334
|
return deserializeAws_json1_1PutAppsListCommandError(output, context);
|
|
@@ -1482,6 +1702,12 @@ const serializeAws_json1_1AssociateAdminAccountRequest = (input, context) => {
|
|
|
1482
1702
|
...(input.AdminAccount !== undefined && input.AdminAccount !== null && { AdminAccount: input.AdminAccount }),
|
|
1483
1703
|
};
|
|
1484
1704
|
};
|
|
1705
|
+
const serializeAws_json1_1AssociateThirdPartyFirewallRequest = (input, context) => {
|
|
1706
|
+
return {
|
|
1707
|
+
...(input.ThirdPartyFirewall !== undefined &&
|
|
1708
|
+
input.ThirdPartyFirewall !== null && { ThirdPartyFirewall: input.ThirdPartyFirewall }),
|
|
1709
|
+
};
|
|
1710
|
+
};
|
|
1485
1711
|
const serializeAws_json1_1CustomerPolicyScopeIdList = (input, context) => {
|
|
1486
1712
|
return input
|
|
1487
1713
|
.filter((e) => e != null)
|
|
@@ -1526,6 +1752,12 @@ const serializeAws_json1_1DeleteProtocolsListRequest = (input, context) => {
|
|
|
1526
1752
|
const serializeAws_json1_1DisassociateAdminAccountRequest = (input, context) => {
|
|
1527
1753
|
return {};
|
|
1528
1754
|
};
|
|
1755
|
+
const serializeAws_json1_1DisassociateThirdPartyFirewallRequest = (input, context) => {
|
|
1756
|
+
return {
|
|
1757
|
+
...(input.ThirdPartyFirewall !== undefined &&
|
|
1758
|
+
input.ThirdPartyFirewall !== null && { ThirdPartyFirewall: input.ThirdPartyFirewall }),
|
|
1759
|
+
};
|
|
1760
|
+
};
|
|
1529
1761
|
const serializeAws_json1_1GetAdminAccountRequest = (input, context) => {
|
|
1530
1762
|
return {};
|
|
1531
1763
|
};
|
|
@@ -1568,6 +1800,12 @@ const serializeAws_json1_1GetProtocolsListRequest = (input, context) => {
|
|
|
1568
1800
|
...(input.ListId !== undefined && input.ListId !== null && { ListId: input.ListId }),
|
|
1569
1801
|
};
|
|
1570
1802
|
};
|
|
1803
|
+
const serializeAws_json1_1GetThirdPartyFirewallAssociationStatusRequest = (input, context) => {
|
|
1804
|
+
return {
|
|
1805
|
+
...(input.ThirdPartyFirewall !== undefined &&
|
|
1806
|
+
input.ThirdPartyFirewall !== null && { ThirdPartyFirewall: input.ThirdPartyFirewall }),
|
|
1807
|
+
};
|
|
1808
|
+
};
|
|
1571
1809
|
const serializeAws_json1_1GetViolationDetailsRequest = (input, context) => {
|
|
1572
1810
|
return {
|
|
1573
1811
|
...(input.MemberAccount !== undefined && input.MemberAccount !== null && { MemberAccount: input.MemberAccount }),
|
|
@@ -1614,6 +1852,14 @@ const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
|
1614
1852
|
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
1615
1853
|
};
|
|
1616
1854
|
};
|
|
1855
|
+
const serializeAws_json1_1ListThirdPartyFirewallFirewallPoliciesRequest = (input, context) => {
|
|
1856
|
+
return {
|
|
1857
|
+
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
1858
|
+
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
1859
|
+
...(input.ThirdPartyFirewall !== undefined &&
|
|
1860
|
+
input.ThirdPartyFirewall !== null && { ThirdPartyFirewall: input.ThirdPartyFirewall }),
|
|
1861
|
+
};
|
|
1862
|
+
};
|
|
1617
1863
|
const serializeAws_json1_1NetworkFirewallPolicy = (input, context) => {
|
|
1618
1864
|
return {
|
|
1619
1865
|
...(input.FirewallDeploymentModel !== undefined &&
|
|
@@ -1661,6 +1907,10 @@ const serializeAws_json1_1PolicyOption = (input, context) => {
|
|
|
1661
1907
|
input.NetworkFirewallPolicy !== null && {
|
|
1662
1908
|
NetworkFirewallPolicy: serializeAws_json1_1NetworkFirewallPolicy(input.NetworkFirewallPolicy, context),
|
|
1663
1909
|
}),
|
|
1910
|
+
...(input.ThirdPartyFirewallPolicy !== undefined &&
|
|
1911
|
+
input.ThirdPartyFirewallPolicy !== null && {
|
|
1912
|
+
ThirdPartyFirewallPolicy: serializeAws_json1_1ThirdPartyFirewallPolicy(input.ThirdPartyFirewallPolicy, context),
|
|
1913
|
+
}),
|
|
1664
1914
|
};
|
|
1665
1915
|
};
|
|
1666
1916
|
const serializeAws_json1_1PreviousAppsList = (input, context) => {
|
|
@@ -1815,6 +2065,12 @@ const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
|
1815
2065
|
input.TagList !== null && { TagList: serializeAws_json1_1TagList(input.TagList, context) }),
|
|
1816
2066
|
};
|
|
1817
2067
|
};
|
|
2068
|
+
const serializeAws_json1_1ThirdPartyFirewallPolicy = (input, context) => {
|
|
2069
|
+
return {
|
|
2070
|
+
...(input.FirewallDeploymentModel !== undefined &&
|
|
2071
|
+
input.FirewallDeploymentModel !== null && { FirewallDeploymentModel: input.FirewallDeploymentModel }),
|
|
2072
|
+
};
|
|
2073
|
+
};
|
|
1818
2074
|
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
1819
2075
|
return {
|
|
1820
2076
|
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
@@ -1886,6 +2142,11 @@ const deserializeAws_json1_1AppsListsData = (output, context) => {
|
|
|
1886
2142
|
});
|
|
1887
2143
|
return retVal;
|
|
1888
2144
|
};
|
|
2145
|
+
const deserializeAws_json1_1AssociateThirdPartyFirewallResponse = (output, context) => {
|
|
2146
|
+
return {
|
|
2147
|
+
ThirdPartyFirewallStatus: (0, smithy_client_1.expectString)(output.ThirdPartyFirewallStatus),
|
|
2148
|
+
};
|
|
2149
|
+
};
|
|
1889
2150
|
const deserializeAws_json1_1AwsEc2InstanceViolation = (output, context) => {
|
|
1890
2151
|
return {
|
|
1891
2152
|
AwsEc2NetworkInterfaceViolations: output.AwsEc2NetworkInterfaceViolations !== undefined && output.AwsEc2NetworkInterfaceViolations !== null
|
|
@@ -1980,6 +2241,11 @@ const deserializeAws_json1_1CustomerPolicyScopeMap = (output, context) => {
|
|
|
1980
2241
|
};
|
|
1981
2242
|
}, {});
|
|
1982
2243
|
};
|
|
2244
|
+
const deserializeAws_json1_1DisassociateThirdPartyFirewallResponse = (output, context) => {
|
|
2245
|
+
return {
|
|
2246
|
+
ThirdPartyFirewallStatus: (0, smithy_client_1.expectString)(output.ThirdPartyFirewallStatus),
|
|
2247
|
+
};
|
|
2248
|
+
};
|
|
1983
2249
|
const deserializeAws_json1_1DnsDuplicateRuleGroupViolation = (output, context) => {
|
|
1984
2250
|
return {
|
|
1985
2251
|
ViolationTarget: (0, smithy_client_1.expectString)(output.ViolationTarget),
|
|
@@ -2153,6 +2419,14 @@ const deserializeAws_json1_1FirewallSubnetIsOutOfScopeViolation = (output, conte
|
|
|
2153
2419
|
VpcId: (0, smithy_client_1.expectString)(output.VpcId),
|
|
2154
2420
|
};
|
|
2155
2421
|
};
|
|
2422
|
+
const deserializeAws_json1_1FirewallSubnetMissingVPCEndpointViolation = (output, context) => {
|
|
2423
|
+
return {
|
|
2424
|
+
FirewallSubnetId: (0, smithy_client_1.expectString)(output.FirewallSubnetId),
|
|
2425
|
+
SubnetAvailabilityZone: (0, smithy_client_1.expectString)(output.SubnetAvailabilityZone),
|
|
2426
|
+
SubnetAvailabilityZoneId: (0, smithy_client_1.expectString)(output.SubnetAvailabilityZoneId),
|
|
2427
|
+
VpcId: (0, smithy_client_1.expectString)(output.VpcId),
|
|
2428
|
+
};
|
|
2429
|
+
};
|
|
2156
2430
|
const deserializeAws_json1_1FMSPolicyUpdateFirewallCreationConfigAction = (output, context) => {
|
|
2157
2431
|
return {
|
|
2158
2432
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
@@ -2210,6 +2484,12 @@ const deserializeAws_json1_1GetProtocolsListResponse = (output, context) => {
|
|
|
2210
2484
|
ProtocolsListArn: (0, smithy_client_1.expectString)(output.ProtocolsListArn),
|
|
2211
2485
|
};
|
|
2212
2486
|
};
|
|
2487
|
+
const deserializeAws_json1_1GetThirdPartyFirewallAssociationStatusResponse = (output, context) => {
|
|
2488
|
+
return {
|
|
2489
|
+
MarketplaceOnboardingStatus: (0, smithy_client_1.expectString)(output.MarketplaceOnboardingStatus),
|
|
2490
|
+
ThirdPartyFirewallStatus: (0, smithy_client_1.expectString)(output.ThirdPartyFirewallStatus),
|
|
2491
|
+
};
|
|
2492
|
+
};
|
|
2213
2493
|
const deserializeAws_json1_1GetViolationDetailsResponse = (output, context) => {
|
|
2214
2494
|
return {
|
|
2215
2495
|
ViolationDetail: output.ViolationDetail !== undefined && output.ViolationDetail !== null
|
|
@@ -2311,6 +2591,14 @@ const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
|
2311
2591
|
: undefined,
|
|
2312
2592
|
};
|
|
2313
2593
|
};
|
|
2594
|
+
const deserializeAws_json1_1ListThirdPartyFirewallFirewallPoliciesResponse = (output, context) => {
|
|
2595
|
+
return {
|
|
2596
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2597
|
+
ThirdPartyFirewallFirewallPolicies: output.ThirdPartyFirewallFirewallPolicies !== undefined && output.ThirdPartyFirewallFirewallPolicies !== null
|
|
2598
|
+
? deserializeAws_json1_1ThirdPartyFirewallFirewallPolicies(output.ThirdPartyFirewallFirewallPolicies, context)
|
|
2599
|
+
: undefined,
|
|
2600
|
+
};
|
|
2601
|
+
};
|
|
2314
2602
|
const deserializeAws_json1_1MemberAccounts = (output, context) => {
|
|
2315
2603
|
const retVal = (output || [])
|
|
2316
2604
|
.filter((e) => e != null)
|
|
@@ -2600,6 +2888,9 @@ const deserializeAws_json1_1PolicyOption = (output, context) => {
|
|
|
2600
2888
|
NetworkFirewallPolicy: output.NetworkFirewallPolicy !== undefined && output.NetworkFirewallPolicy !== null
|
|
2601
2889
|
? deserializeAws_json1_1NetworkFirewallPolicy(output.NetworkFirewallPolicy, context)
|
|
2602
2890
|
: undefined,
|
|
2891
|
+
ThirdPartyFirewallPolicy: output.ThirdPartyFirewallPolicy !== undefined && output.ThirdPartyFirewallPolicy !== null
|
|
2892
|
+
? deserializeAws_json1_1ThirdPartyFirewallPolicy(output.ThirdPartyFirewallPolicy, context)
|
|
2893
|
+
: undefined,
|
|
2603
2894
|
};
|
|
2604
2895
|
};
|
|
2605
2896
|
const deserializeAws_json1_1PolicySummary = (output, context) => {
|
|
@@ -2856,6 +3147,10 @@ const deserializeAws_json1_1ResourceViolation = (output, context) => {
|
|
|
2856
3147
|
FirewallSubnetIsOutOfScopeViolation: output.FirewallSubnetIsOutOfScopeViolation !== undefined && output.FirewallSubnetIsOutOfScopeViolation !== null
|
|
2857
3148
|
? deserializeAws_json1_1FirewallSubnetIsOutOfScopeViolation(output.FirewallSubnetIsOutOfScopeViolation, context)
|
|
2858
3149
|
: undefined,
|
|
3150
|
+
FirewallSubnetMissingVPCEndpointViolation: output.FirewallSubnetMissingVPCEndpointViolation !== undefined &&
|
|
3151
|
+
output.FirewallSubnetMissingVPCEndpointViolation !== null
|
|
3152
|
+
? deserializeAws_json1_1FirewallSubnetMissingVPCEndpointViolation(output.FirewallSubnetMissingVPCEndpointViolation, context)
|
|
3153
|
+
: undefined,
|
|
2859
3154
|
NetworkFirewallBlackHoleRouteDetectedViolation: output.NetworkFirewallBlackHoleRouteDetectedViolation !== undefined &&
|
|
2860
3155
|
output.NetworkFirewallBlackHoleRouteDetectedViolation !== null
|
|
2861
3156
|
? deserializeAws_json1_1NetworkFirewallBlackHoleRouteDetectedViolation(output.NetworkFirewallBlackHoleRouteDetectedViolation, context)
|
|
@@ -2902,6 +3197,18 @@ const deserializeAws_json1_1ResourceViolation = (output, context) => {
|
|
|
2902
3197
|
RouteHasOutOfScopeEndpointViolation: output.RouteHasOutOfScopeEndpointViolation !== undefined && output.RouteHasOutOfScopeEndpointViolation !== null
|
|
2903
3198
|
? deserializeAws_json1_1RouteHasOutOfScopeEndpointViolation(output.RouteHasOutOfScopeEndpointViolation, context)
|
|
2904
3199
|
: undefined,
|
|
3200
|
+
ThirdPartyFirewallMissingExpectedRouteTableViolation: output.ThirdPartyFirewallMissingExpectedRouteTableViolation !== undefined &&
|
|
3201
|
+
output.ThirdPartyFirewallMissingExpectedRouteTableViolation !== null
|
|
3202
|
+
? deserializeAws_json1_1ThirdPartyFirewallMissingExpectedRouteTableViolation(output.ThirdPartyFirewallMissingExpectedRouteTableViolation, context)
|
|
3203
|
+
: undefined,
|
|
3204
|
+
ThirdPartyFirewallMissingFirewallViolation: output.ThirdPartyFirewallMissingFirewallViolation !== undefined &&
|
|
3205
|
+
output.ThirdPartyFirewallMissingFirewallViolation !== null
|
|
3206
|
+
? deserializeAws_json1_1ThirdPartyFirewallMissingFirewallViolation(output.ThirdPartyFirewallMissingFirewallViolation, context)
|
|
3207
|
+
: undefined,
|
|
3208
|
+
ThirdPartyFirewallMissingSubnetViolation: output.ThirdPartyFirewallMissingSubnetViolation !== undefined &&
|
|
3209
|
+
output.ThirdPartyFirewallMissingSubnetViolation !== null
|
|
3210
|
+
? deserializeAws_json1_1ThirdPartyFirewallMissingSubnetViolation(output.ThirdPartyFirewallMissingSubnetViolation, context)
|
|
3211
|
+
: undefined,
|
|
2905
3212
|
};
|
|
2906
3213
|
};
|
|
2907
3214
|
const deserializeAws_json1_1ResourceViolations = (output, context) => {
|
|
@@ -3062,6 +3369,53 @@ const deserializeAws_json1_1TargetViolationReasons = (output, context) => {
|
|
|
3062
3369
|
});
|
|
3063
3370
|
return retVal;
|
|
3064
3371
|
};
|
|
3372
|
+
const deserializeAws_json1_1ThirdPartyFirewallFirewallPolicies = (output, context) => {
|
|
3373
|
+
const retVal = (output || [])
|
|
3374
|
+
.filter((e) => e != null)
|
|
3375
|
+
.map((entry) => {
|
|
3376
|
+
if (entry === null) {
|
|
3377
|
+
return null;
|
|
3378
|
+
}
|
|
3379
|
+
return deserializeAws_json1_1ThirdPartyFirewallFirewallPolicy(entry, context);
|
|
3380
|
+
});
|
|
3381
|
+
return retVal;
|
|
3382
|
+
};
|
|
3383
|
+
const deserializeAws_json1_1ThirdPartyFirewallFirewallPolicy = (output, context) => {
|
|
3384
|
+
return {
|
|
3385
|
+
FirewallPolicyId: (0, smithy_client_1.expectString)(output.FirewallPolicyId),
|
|
3386
|
+
FirewallPolicyName: (0, smithy_client_1.expectString)(output.FirewallPolicyName),
|
|
3387
|
+
};
|
|
3388
|
+
};
|
|
3389
|
+
const deserializeAws_json1_1ThirdPartyFirewallMissingExpectedRouteTableViolation = (output, context) => {
|
|
3390
|
+
return {
|
|
3391
|
+
AvailabilityZone: (0, smithy_client_1.expectString)(output.AvailabilityZone),
|
|
3392
|
+
CurrentRouteTable: (0, smithy_client_1.expectString)(output.CurrentRouteTable),
|
|
3393
|
+
ExpectedRouteTable: (0, smithy_client_1.expectString)(output.ExpectedRouteTable),
|
|
3394
|
+
VPC: (0, smithy_client_1.expectString)(output.VPC),
|
|
3395
|
+
ViolationTarget: (0, smithy_client_1.expectString)(output.ViolationTarget),
|
|
3396
|
+
};
|
|
3397
|
+
};
|
|
3398
|
+
const deserializeAws_json1_1ThirdPartyFirewallMissingFirewallViolation = (output, context) => {
|
|
3399
|
+
return {
|
|
3400
|
+
AvailabilityZone: (0, smithy_client_1.expectString)(output.AvailabilityZone),
|
|
3401
|
+
TargetViolationReason: (0, smithy_client_1.expectString)(output.TargetViolationReason),
|
|
3402
|
+
VPC: (0, smithy_client_1.expectString)(output.VPC),
|
|
3403
|
+
ViolationTarget: (0, smithy_client_1.expectString)(output.ViolationTarget),
|
|
3404
|
+
};
|
|
3405
|
+
};
|
|
3406
|
+
const deserializeAws_json1_1ThirdPartyFirewallMissingSubnetViolation = (output, context) => {
|
|
3407
|
+
return {
|
|
3408
|
+
AvailabilityZone: (0, smithy_client_1.expectString)(output.AvailabilityZone),
|
|
3409
|
+
TargetViolationReason: (0, smithy_client_1.expectString)(output.TargetViolationReason),
|
|
3410
|
+
VPC: (0, smithy_client_1.expectString)(output.VPC),
|
|
3411
|
+
ViolationTarget: (0, smithy_client_1.expectString)(output.ViolationTarget),
|
|
3412
|
+
};
|
|
3413
|
+
};
|
|
3414
|
+
const deserializeAws_json1_1ThirdPartyFirewallPolicy = (output, context) => {
|
|
3415
|
+
return {
|
|
3416
|
+
FirewallDeploymentModel: (0, smithy_client_1.expectString)(output.FirewallDeploymentModel),
|
|
3417
|
+
};
|
|
3418
|
+
};
|
|
3065
3419
|
const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
3066
3420
|
return {};
|
|
3067
3421
|
};
|
package/dist-es/FMS.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { AssociateAdminAccountCommand, } from "./commands/AssociateAdminAccountCommand";
|
|
3
|
+
import { AssociateThirdPartyFirewallCommand, } from "./commands/AssociateThirdPartyFirewallCommand";
|
|
3
4
|
import { DeleteAppsListCommand, } from "./commands/DeleteAppsListCommand";
|
|
4
5
|
import { DeleteNotificationChannelCommand, } from "./commands/DeleteNotificationChannelCommand";
|
|
5
6
|
import { DeletePolicyCommand, } from "./commands/DeletePolicyCommand";
|
|
6
7
|
import { DeleteProtocolsListCommand, } from "./commands/DeleteProtocolsListCommand";
|
|
7
8
|
import { DisassociateAdminAccountCommand, } from "./commands/DisassociateAdminAccountCommand";
|
|
9
|
+
import { DisassociateThirdPartyFirewallCommand, } from "./commands/DisassociateThirdPartyFirewallCommand";
|
|
8
10
|
import { GetAdminAccountCommand, } from "./commands/GetAdminAccountCommand";
|
|
9
11
|
import { GetAppsListCommand } from "./commands/GetAppsListCommand";
|
|
10
12
|
import { GetComplianceDetailCommand, } from "./commands/GetComplianceDetailCommand";
|
|
@@ -12,6 +14,7 @@ import { GetNotificationChannelCommand, } from "./commands/GetNotificationChanne
|
|
|
12
14
|
import { GetPolicyCommand } from "./commands/GetPolicyCommand";
|
|
13
15
|
import { GetProtectionStatusCommand, } from "./commands/GetProtectionStatusCommand";
|
|
14
16
|
import { GetProtocolsListCommand, } from "./commands/GetProtocolsListCommand";
|
|
17
|
+
import { GetThirdPartyFirewallAssociationStatusCommand, } from "./commands/GetThirdPartyFirewallAssociationStatusCommand";
|
|
15
18
|
import { GetViolationDetailsCommand, } from "./commands/GetViolationDetailsCommand";
|
|
16
19
|
import { ListAppsListsCommand, } from "./commands/ListAppsListsCommand";
|
|
17
20
|
import { ListComplianceStatusCommand, } from "./commands/ListComplianceStatusCommand";
|
|
@@ -19,6 +22,7 @@ import { ListMemberAccountsCommand, } from "./commands/ListMemberAccountsCommand
|
|
|
19
22
|
import { ListPoliciesCommand, } from "./commands/ListPoliciesCommand";
|
|
20
23
|
import { ListProtocolsListsCommand, } from "./commands/ListProtocolsListsCommand";
|
|
21
24
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
25
|
+
import { ListThirdPartyFirewallFirewallPoliciesCommand, } from "./commands/ListThirdPartyFirewallFirewallPoliciesCommand";
|
|
22
26
|
import { PutAppsListCommand } from "./commands/PutAppsListCommand";
|
|
23
27
|
import { PutNotificationChannelCommand, } from "./commands/PutNotificationChannelCommand";
|
|
24
28
|
import { PutPolicyCommand } from "./commands/PutPolicyCommand";
|
|
@@ -45,6 +49,20 @@ var FMS = (function (_super) {
|
|
|
45
49
|
return this.send(command, optionsOrCb);
|
|
46
50
|
}
|
|
47
51
|
};
|
|
52
|
+
FMS.prototype.associateThirdPartyFirewall = function (args, optionsOrCb, cb) {
|
|
53
|
+
var command = new AssociateThirdPartyFirewallCommand(args);
|
|
54
|
+
if (typeof optionsOrCb === "function") {
|
|
55
|
+
this.send(command, optionsOrCb);
|
|
56
|
+
}
|
|
57
|
+
else if (typeof cb === "function") {
|
|
58
|
+
if (typeof optionsOrCb !== "object")
|
|
59
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
60
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
return this.send(command, optionsOrCb);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
48
66
|
FMS.prototype.deleteAppsList = function (args, optionsOrCb, cb) {
|
|
49
67
|
var command = new DeleteAppsListCommand(args);
|
|
50
68
|
if (typeof optionsOrCb === "function") {
|
|
@@ -115,6 +133,20 @@ var FMS = (function (_super) {
|
|
|
115
133
|
return this.send(command, optionsOrCb);
|
|
116
134
|
}
|
|
117
135
|
};
|
|
136
|
+
FMS.prototype.disassociateThirdPartyFirewall = function (args, optionsOrCb, cb) {
|
|
137
|
+
var command = new DisassociateThirdPartyFirewallCommand(args);
|
|
138
|
+
if (typeof optionsOrCb === "function") {
|
|
139
|
+
this.send(command, optionsOrCb);
|
|
140
|
+
}
|
|
141
|
+
else if (typeof cb === "function") {
|
|
142
|
+
if (typeof optionsOrCb !== "object")
|
|
143
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
144
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
return this.send(command, optionsOrCb);
|
|
148
|
+
}
|
|
149
|
+
};
|
|
118
150
|
FMS.prototype.getAdminAccount = function (args, optionsOrCb, cb) {
|
|
119
151
|
var command = new GetAdminAccountCommand(args);
|
|
120
152
|
if (typeof optionsOrCb === "function") {
|
|
@@ -213,6 +245,20 @@ var FMS = (function (_super) {
|
|
|
213
245
|
return this.send(command, optionsOrCb);
|
|
214
246
|
}
|
|
215
247
|
};
|
|
248
|
+
FMS.prototype.getThirdPartyFirewallAssociationStatus = function (args, optionsOrCb, cb) {
|
|
249
|
+
var command = new GetThirdPartyFirewallAssociationStatusCommand(args);
|
|
250
|
+
if (typeof optionsOrCb === "function") {
|
|
251
|
+
this.send(command, optionsOrCb);
|
|
252
|
+
}
|
|
253
|
+
else if (typeof cb === "function") {
|
|
254
|
+
if (typeof optionsOrCb !== "object")
|
|
255
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
256
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
257
|
+
}
|
|
258
|
+
else {
|
|
259
|
+
return this.send(command, optionsOrCb);
|
|
260
|
+
}
|
|
261
|
+
};
|
|
216
262
|
FMS.prototype.getViolationDetails = function (args, optionsOrCb, cb) {
|
|
217
263
|
var command = new GetViolationDetailsCommand(args);
|
|
218
264
|
if (typeof optionsOrCb === "function") {
|
|
@@ -311,6 +357,20 @@ var FMS = (function (_super) {
|
|
|
311
357
|
return this.send(command, optionsOrCb);
|
|
312
358
|
}
|
|
313
359
|
};
|
|
360
|
+
FMS.prototype.listThirdPartyFirewallFirewallPolicies = function (args, optionsOrCb, cb) {
|
|
361
|
+
var command = new ListThirdPartyFirewallFirewallPoliciesCommand(args);
|
|
362
|
+
if (typeof optionsOrCb === "function") {
|
|
363
|
+
this.send(command, optionsOrCb);
|
|
364
|
+
}
|
|
365
|
+
else if (typeof cb === "function") {
|
|
366
|
+
if (typeof optionsOrCb !== "object")
|
|
367
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
368
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
369
|
+
}
|
|
370
|
+
else {
|
|
371
|
+
return this.send(command, optionsOrCb);
|
|
372
|
+
}
|
|
373
|
+
};
|
|
314
374
|
FMS.prototype.putAppsList = function (args, optionsOrCb, cb) {
|
|
315
375
|
var command = new PutAppsListCommand(args);
|
|
316
376
|
if (typeof optionsOrCb === "function") {
|