@aws-sdk/client-network-firewall 3.76.0 → 3.80.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 +31 -0
- package/README.md +7 -7
- package/dist-cjs/NetworkFirewall.js +15 -0
- package/dist-cjs/commands/UpdateFirewallEncryptionConfigurationCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +37 -3
- package/dist-cjs/pagination/ListFirewallPoliciesPaginator.js +2 -1
- package/dist-cjs/pagination/ListFirewallsPaginator.js +2 -1
- package/dist-cjs/pagination/ListRuleGroupsPaginator.js +2 -1
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js +2 -1
- package/dist-cjs/protocols/Aws_json1_0.js +161 -2
- package/dist-es/NetworkFirewall.js +15 -0
- package/dist-es/commands/UpdateFirewallEncryptionConfigurationCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +26 -0
- package/dist-es/pagination/ListFirewallPoliciesPaginator.js +3 -2
- package/dist-es/pagination/ListFirewallsPaginator.js +3 -2
- package/dist-es/pagination/ListRuleGroupsPaginator.js +3 -2
- package/dist-es/pagination/ListTagsForResourcePaginator.js +3 -2
- package/dist-es/protocols/Aws_json1_0.js +169 -10
- package/dist-types/NetworkFirewall.d.ts +27 -20
- package/dist-types/NetworkFirewallClient.d.ts +10 -9
- package/dist-types/commands/AssociateSubnetsCommand.d.ts +1 -1
- package/dist-types/commands/CreateFirewallCommand.d.ts +3 -3
- package/dist-types/commands/CreateFirewallPolicyCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +2 -2
- package/dist-types/commands/TagResourceCommand.d.ts +2 -2
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
- package/dist-types/commands/UpdateFirewallEncryptionConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +193 -24
- package/dist-types/protocols/Aws_json1_0.d.ts +3 -0
- package/dist-types/ts3.4/NetworkFirewall.d.ts +5 -0
- package/dist-types/ts3.4/NetworkFirewallClient.d.ts +3 -2
- package/dist-types/ts3.4/commands/UpdateFirewallEncryptionConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +92 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +3 -0
- package/package.json +25 -25
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,37 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.80.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.79.0...v3.80.0) (2022-04-28)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-network-firewall:** AWS Network Firewall adds support for stateful threat signature AWS managed rule groups. ([790c085](https://github.com/aws/aws-sdk-js-v3/commit/790c085ed85d1154cffc6aced1f32ed9f6e3e66b))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.79.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.78.0...v3.79.0) (2022-04-27)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-network-firewall
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.78.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.77.0...v3.78.0) (2022-04-26)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* **client-network-firewall:** AWS Network Firewall now enables customers to use a customer managed AWS KMS key for the encryption of their firewall resources. ([ba3e251](https://github.com/aws/aws-sdk-js-v3/commit/ba3e251ad993f3af46a182143ebe392dc20becab))
|
|
31
|
+
* **types:** add pagination stopOnSameToken option ([#3524](https://github.com/aws/aws-sdk-js-v3/issues/3524)) ([9bf73e8](https://github.com/aws/aws-sdk-js-v3/commit/9bf73e81b8d9be9f12c72cbefbe26c502d1873c6))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
6
37
|
# [3.76.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.75.0...v3.76.0) (2022-04-22)
|
|
7
38
|
|
|
8
39
|
**Note:** Version bump only for package @aws-sdk/client-network-firewall
|
package/README.md
CHANGED
|
@@ -7,21 +7,21 @@
|
|
|
7
7
|
|
|
8
8
|
AWS SDK for JavaScript NetworkFirewall Client for Node.js, Browser and React Native.
|
|
9
9
|
|
|
10
|
-
<p>This is the API Reference for
|
|
10
|
+
<p>This is the API Reference for Network Firewall. This guide is for developers who need
|
|
11
11
|
detailed information about the Network Firewall API actions, data types, and errors. </p>
|
|
12
12
|
<ul>
|
|
13
13
|
<li>
|
|
14
14
|
<p>The REST API requires you to handle connection details, such as calculating
|
|
15
15
|
signatures, handling request retries, and error handling. For general information
|
|
16
|
-
about using the
|
|
16
|
+
about using the Amazon Web Services REST APIs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-apis.html">Amazon Web Services APIs</a>. </p>
|
|
17
17
|
<p>To access Network Firewall using the REST API endpoint:
|
|
18
18
|
<code>https://network-firewall.<region>.amazonaws.com </code>
|
|
19
19
|
</p>
|
|
20
20
|
</li>
|
|
21
21
|
<li>
|
|
22
|
-
<p>Alternatively, you can use one of the
|
|
22
|
+
<p>Alternatively, you can use one of the Amazon Web Services SDKs to access an API that's tailored to
|
|
23
23
|
the programming language or platform that you're using. For more information, see
|
|
24
|
-
<a href="http://aws.amazon.com/tools/#SDKs">
|
|
24
|
+
<a href="http://aws.amazon.com/tools/#SDKs">Amazon Web Services SDKs</a>.</p>
|
|
25
25
|
</li>
|
|
26
26
|
<li>
|
|
27
27
|
<p>For descriptions of Network Firewall features, including and step-by-step
|
|
@@ -32,15 +32,15 @@ Guide</a>.</p>
|
|
|
32
32
|
<p>Network Firewall is a stateful, managed, network firewall and intrusion detection and
|
|
33
33
|
prevention service for Amazon Virtual Private Cloud (Amazon VPC). With Network Firewall, you can filter traffic at the
|
|
34
34
|
perimeter of your VPC. This includes filtering traffic going to and coming from an internet
|
|
35
|
-
gateway, NAT gateway, or over VPN or
|
|
35
|
+
gateway, NAT gateway, or over VPN or Direct Connect. Network Firewall uses rules that are compatible
|
|
36
36
|
with Suricata, a free, open source intrusion detection system (IDS) engine.
|
|
37
|
-
|
|
37
|
+
Network Firewall supports Suricata version 5.0.2. For information about Suricata,
|
|
38
38
|
see the <a href="https://suricata-ids.org/">Suricata website</a>.</p>
|
|
39
39
|
<p>You can use Network Firewall to monitor and protect your VPC traffic in a number of ways.
|
|
40
40
|
The following are just a few examples: </p>
|
|
41
41
|
<ul>
|
|
42
42
|
<li>
|
|
43
|
-
<p>Allow domains or IP addresses for known
|
|
43
|
+
<p>Allow domains or IP addresses for known Amazon Web Services service endpoints, such as Amazon S3, and
|
|
44
44
|
block all other forms of traffic.</p>
|
|
45
45
|
</li>
|
|
46
46
|
<li>
|
|
@@ -26,6 +26,7 @@ const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
|
26
26
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
27
27
|
const UpdateFirewallDeleteProtectionCommand_1 = require("./commands/UpdateFirewallDeleteProtectionCommand");
|
|
28
28
|
const UpdateFirewallDescriptionCommand_1 = require("./commands/UpdateFirewallDescriptionCommand");
|
|
29
|
+
const UpdateFirewallEncryptionConfigurationCommand_1 = require("./commands/UpdateFirewallEncryptionConfigurationCommand");
|
|
29
30
|
const UpdateFirewallPolicyChangeProtectionCommand_1 = require("./commands/UpdateFirewallPolicyChangeProtectionCommand");
|
|
30
31
|
const UpdateFirewallPolicyCommand_1 = require("./commands/UpdateFirewallPolicyCommand");
|
|
31
32
|
const UpdateLoggingConfigurationCommand_1 = require("./commands/UpdateLoggingConfigurationCommand");
|
|
@@ -383,6 +384,20 @@ class NetworkFirewall extends NetworkFirewallClient_1.NetworkFirewallClient {
|
|
|
383
384
|
return this.send(command, optionsOrCb);
|
|
384
385
|
}
|
|
385
386
|
}
|
|
387
|
+
updateFirewallEncryptionConfiguration(args, optionsOrCb, cb) {
|
|
388
|
+
const command = new UpdateFirewallEncryptionConfigurationCommand_1.UpdateFirewallEncryptionConfigurationCommand(args);
|
|
389
|
+
if (typeof optionsOrCb === "function") {
|
|
390
|
+
this.send(command, optionsOrCb);
|
|
391
|
+
}
|
|
392
|
+
else if (typeof cb === "function") {
|
|
393
|
+
if (typeof optionsOrCb !== "object")
|
|
394
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
395
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
396
|
+
}
|
|
397
|
+
else {
|
|
398
|
+
return this.send(command, optionsOrCb);
|
|
399
|
+
}
|
|
400
|
+
}
|
|
386
401
|
updateFirewallPolicy(args, optionsOrCb, cb) {
|
|
387
402
|
const command = new UpdateFirewallPolicyCommand_1.UpdateFirewallPolicyCommand(args);
|
|
388
403
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateFirewallEncryptionConfigurationCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
8
|
+
class UpdateFirewallEncryptionConfigurationCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "NetworkFirewallClient";
|
|
18
|
+
const commandName = "UpdateFirewallEncryptionConfigurationCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.UpdateFirewallEncryptionConfigurationRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.UpdateFirewallEncryptionConfigurationResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_json1_0_1.serializeAws_json1_0UpdateFirewallEncryptionConfigurationCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateFirewallEncryptionConfigurationCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.UpdateFirewallEncryptionConfigurationCommand = UpdateFirewallEncryptionConfigurationCommand;
|
|
@@ -26,6 +26,7 @@ tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
|
26
26
|
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
|
27
27
|
tslib_1.__exportStar(require("./UpdateFirewallDeleteProtectionCommand"), exports);
|
|
28
28
|
tslib_1.__exportStar(require("./UpdateFirewallDescriptionCommand"), exports);
|
|
29
|
+
tslib_1.__exportStar(require("./UpdateFirewallEncryptionConfigurationCommand"), exports);
|
|
29
30
|
tslib_1.__exportStar(require("./UpdateFirewallPolicyChangeProtectionCommand"), exports);
|
|
30
31
|
tslib_1.__exportStar(require("./UpdateFirewallPolicyCommand"), exports);
|
|
31
32
|
tslib_1.__exportStar(require("./UpdateLoggingConfigurationCommand"), exports);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.UpdateSubnetChangeProtectionResponse = exports.UpdateSubnetChangeProtectionRequest = exports.UpdateRuleGroupResponse = exports.UpdateRuleGroupRequest = exports.UpdateLoggingConfigurationResponse = exports.UpdateLoggingConfigurationRequest = exports.UpdateFirewallPolicyChangeProtectionResponse = exports.UpdateFirewallPolicyChangeProtectionRequest = exports.UpdateFirewallPolicyResponse = exports.UpdateFirewallPolicyRequest = exports.UpdateFirewallDescriptionResponse = exports.UpdateFirewallDescriptionRequest = exports.UpdateFirewallDeleteProtectionResponse = exports.UpdateFirewallDeleteProtectionRequest = exports.ResourceOwnerCheckException = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.PutResourcePolicyResponse = exports.PutResourcePolicyRequest = exports.LogDestinationPermissionException = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListRuleGroupsResponse = exports.RuleGroupMetadata = exports.ListRuleGroupsRequest = exports.ResourceManagedStatus = exports.ListFirewallsResponse = void 0;
|
|
3
|
+
exports.Header = exports.StatefulRuleProtocol = exports.StatefulRuleDirection = exports.StatefulAction = exports.RulesSourceList = exports.TargetType = exports.GeneratedRulesType = exports.CreateFirewallPolicyResponse = exports.FirewallPolicyResponse = exports.ResourceStatus = exports.CreateFirewallPolicyRequest = exports.FirewallPolicy = exports.StatelessRuleGroupReference = exports.CustomAction = exports.StatefulRuleGroupReference = exports.StatefulRuleGroupOverride = exports.OverrideAction = exports.StatefulEngineOptions = exports.RuleOrder = exports.LimitExceededException = exports.CreateFirewallResponse = exports.FirewallStatus = exports.SyncState = exports.PerObjectStatus = exports.PerObjectSyncStatus = exports.FirewallStatusValue = exports.Firewall = exports.CreateFirewallRequest = exports.Tag = exports.EncryptionConfiguration = exports.EncryptionType = exports.ConfigurationSyncState = exports.Attachment = exports.AttachmentStatus = exports.InsufficientCapacityException = exports.AssociateSubnetsResponse = exports.AssociateSubnetsRequest = exports.SubnetMapping = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InvalidTokenException = exports.InvalidRequestException = exports.InvalidOperationException = exports.InternalServerError = exports.AssociateFirewallPolicyResponse = exports.AssociateFirewallPolicyRequest = exports.Address = exports.ActionDefinition = exports.PublishMetricAction = exports.Dimension = void 0;
|
|
4
|
+
exports.FirewallPolicyMetadata = exports.FirewallMetadata = exports.DisassociateSubnetsResponse = exports.DisassociateSubnetsRequest = exports.DescribeRuleGroupMetadataResponse = exports.DescribeRuleGroupMetadataRequest = exports.DescribeRuleGroupResponse = exports.DescribeRuleGroupRequest = exports.DescribeResourcePolicyResponse = exports.DescribeResourcePolicyRequest = exports.DescribeLoggingConfigurationResponse = exports.LoggingConfiguration = exports.LogDestinationConfig = exports.LogType = exports.LogDestinationType = exports.DescribeLoggingConfigurationRequest = exports.DescribeFirewallPolicyResponse = exports.DescribeFirewallPolicyRequest = exports.DescribeFirewallResponse = exports.DescribeFirewallRequest = exports.DeleteRuleGroupResponse = exports.DeleteRuleGroupRequest = exports.InvalidResourcePolicyException = exports.DeleteResourcePolicyResponse = exports.DeleteResourcePolicyRequest = exports.DeleteFirewallPolicyResponse = exports.DeleteFirewallPolicyRequest = exports.UnsupportedOperationException = exports.DeleteFirewallResponse = exports.DeleteFirewallRequest = exports.CreateRuleGroupResponse = exports.RuleGroupResponse = exports.CreateRuleGroupRequest = exports.RuleGroupType = exports.SourceMetadata = exports.RuleGroup = exports.StatefulRuleOptions = exports.RuleVariables = exports.PortSet = exports.IPSet = exports.RulesSource = exports.StatelessRulesAndCustomActions = exports.StatelessRule = exports.RuleDefinition = exports.MatchAttributes = exports.TCPFlagField = exports.TCPFlag = exports.PortRange = exports.StatefulRule = exports.RuleOption = void 0;
|
|
5
|
+
exports.UpdateSubnetChangeProtectionResponse = exports.UpdateSubnetChangeProtectionRequest = exports.UpdateRuleGroupResponse = exports.UpdateRuleGroupRequest = exports.UpdateLoggingConfigurationResponse = exports.UpdateLoggingConfigurationRequest = exports.UpdateFirewallPolicyChangeProtectionResponse = exports.UpdateFirewallPolicyChangeProtectionRequest = exports.UpdateFirewallPolicyResponse = exports.UpdateFirewallPolicyRequest = exports.UpdateFirewallEncryptionConfigurationResponse = exports.UpdateFirewallEncryptionConfigurationRequest = exports.UpdateFirewallDescriptionResponse = exports.UpdateFirewallDescriptionRequest = exports.UpdateFirewallDeleteProtectionResponse = exports.UpdateFirewallDeleteProtectionRequest = exports.ResourceOwnerCheckException = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.PutResourcePolicyResponse = exports.PutResourcePolicyRequest = exports.LogDestinationPermissionException = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListRuleGroupsResponse = exports.RuleGroupMetadata = exports.ListRuleGroupsRequest = exports.ResourceManagedStatus = exports.ResourceManagedType = exports.ListFirewallsResponse = exports.ListFirewallsRequest = exports.ListFirewallPoliciesResponse = exports.ListFirewallPoliciesRequest = void 0;
|
|
6
6
|
const NetworkFirewallServiceException_1 = require("./NetworkFirewallServiceException");
|
|
7
7
|
var Dimension;
|
|
8
8
|
(function (Dimension) {
|
|
@@ -174,6 +174,17 @@ var ConfigurationSyncState;
|
|
|
174
174
|
ConfigurationSyncState["IN_SYNC"] = "IN_SYNC";
|
|
175
175
|
ConfigurationSyncState["PENDING"] = "PENDING";
|
|
176
176
|
})(ConfigurationSyncState = exports.ConfigurationSyncState || (exports.ConfigurationSyncState = {}));
|
|
177
|
+
var EncryptionType;
|
|
178
|
+
(function (EncryptionType) {
|
|
179
|
+
EncryptionType["AWS_OWNED_KMS_KEY"] = "AWS_OWNED_KMS_KEY";
|
|
180
|
+
EncryptionType["CUSTOMER_KMS"] = "CUSTOMER_KMS";
|
|
181
|
+
})(EncryptionType = exports.EncryptionType || (exports.EncryptionType = {}));
|
|
182
|
+
var EncryptionConfiguration;
|
|
183
|
+
(function (EncryptionConfiguration) {
|
|
184
|
+
EncryptionConfiguration.filterSensitiveLog = (obj) => ({
|
|
185
|
+
...obj,
|
|
186
|
+
});
|
|
187
|
+
})(EncryptionConfiguration = exports.EncryptionConfiguration || (exports.EncryptionConfiguration = {}));
|
|
177
188
|
var Tag;
|
|
178
189
|
(function (Tag) {
|
|
179
190
|
Tag.filterSensitiveLog = (obj) => ({
|
|
@@ -459,6 +470,12 @@ var RuleGroup;
|
|
|
459
470
|
...obj,
|
|
460
471
|
});
|
|
461
472
|
})(RuleGroup = exports.RuleGroup || (exports.RuleGroup = {}));
|
|
473
|
+
var SourceMetadata;
|
|
474
|
+
(function (SourceMetadata) {
|
|
475
|
+
SourceMetadata.filterSensitiveLog = (obj) => ({
|
|
476
|
+
...obj,
|
|
477
|
+
});
|
|
478
|
+
})(SourceMetadata = exports.SourceMetadata || (exports.SourceMetadata = {}));
|
|
462
479
|
var RuleGroupType;
|
|
463
480
|
(function (RuleGroupType) {
|
|
464
481
|
RuleGroupType["STATEFUL"] = "STATEFUL";
|
|
@@ -701,6 +718,11 @@ var ListFirewallsResponse;
|
|
|
701
718
|
...obj,
|
|
702
719
|
});
|
|
703
720
|
})(ListFirewallsResponse = exports.ListFirewallsResponse || (exports.ListFirewallsResponse = {}));
|
|
721
|
+
var ResourceManagedType;
|
|
722
|
+
(function (ResourceManagedType) {
|
|
723
|
+
ResourceManagedType["AWS_MANAGED_DOMAIN_LISTS"] = "AWS_MANAGED_DOMAIN_LISTS";
|
|
724
|
+
ResourceManagedType["AWS_MANAGED_THREAT_SIGNATURES"] = "AWS_MANAGED_THREAT_SIGNATURES";
|
|
725
|
+
})(ResourceManagedType = exports.ResourceManagedType || (exports.ResourceManagedType = {}));
|
|
704
726
|
var ResourceManagedStatus;
|
|
705
727
|
(function (ResourceManagedStatus) {
|
|
706
728
|
ResourceManagedStatus["ACCOUNT"] = "ACCOUNT";
|
|
@@ -824,6 +846,18 @@ var UpdateFirewallDescriptionResponse;
|
|
|
824
846
|
...obj,
|
|
825
847
|
});
|
|
826
848
|
})(UpdateFirewallDescriptionResponse = exports.UpdateFirewallDescriptionResponse || (exports.UpdateFirewallDescriptionResponse = {}));
|
|
849
|
+
var UpdateFirewallEncryptionConfigurationRequest;
|
|
850
|
+
(function (UpdateFirewallEncryptionConfigurationRequest) {
|
|
851
|
+
UpdateFirewallEncryptionConfigurationRequest.filterSensitiveLog = (obj) => ({
|
|
852
|
+
...obj,
|
|
853
|
+
});
|
|
854
|
+
})(UpdateFirewallEncryptionConfigurationRequest = exports.UpdateFirewallEncryptionConfigurationRequest || (exports.UpdateFirewallEncryptionConfigurationRequest = {}));
|
|
855
|
+
var UpdateFirewallEncryptionConfigurationResponse;
|
|
856
|
+
(function (UpdateFirewallEncryptionConfigurationResponse) {
|
|
857
|
+
UpdateFirewallEncryptionConfigurationResponse.filterSensitiveLog = (obj) => ({
|
|
858
|
+
...obj,
|
|
859
|
+
});
|
|
860
|
+
})(UpdateFirewallEncryptionConfigurationResponse = exports.UpdateFirewallEncryptionConfigurationResponse || (exports.UpdateFirewallEncryptionConfigurationResponse = {}));
|
|
827
861
|
var UpdateFirewallPolicyRequest;
|
|
828
862
|
(function (UpdateFirewallPolicyRequest) {
|
|
829
863
|
UpdateFirewallPolicyRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -27,8 +27,9 @@ async function* paginateListFirewallPolicies(config, input, ...additionalArgumen
|
|
|
27
27
|
throw new Error("Invalid client, expected NetworkFirewall | NetworkFirewallClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateListFirewalls(config, input, ...additionalArguments) {
|
|
|
27
27
|
throw new Error("Invalid client, expected NetworkFirewall | NetworkFirewallClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateListRuleGroups(config, input, ...additionalArguments) {
|
|
|
27
27
|
throw new Error("Invalid client, expected NetworkFirewall | NetworkFirewallClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateListTagsForResource(config, input, ...additionalArgument
|
|
|
27
27
|
throw new Error("Invalid client, expected NetworkFirewall | NetworkFirewallClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.NextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_json1_0UpdateSubnetChangeProtectionCommand = exports.deserializeAws_json1_0UpdateRuleGroupCommand = exports.deserializeAws_json1_0UpdateLoggingConfigurationCommand = exports.deserializeAws_json1_0UpdateFirewallPolicyChangeProtectionCommand = exports.deserializeAws_json1_0UpdateFirewallPolicyCommand = exports.deserializeAws_json1_0UpdateFirewallDescriptionCommand = exports.deserializeAws_json1_0UpdateFirewallDeleteProtectionCommand = exports.deserializeAws_json1_0UntagResourceCommand = exports.deserializeAws_json1_0TagResourceCommand = exports.deserializeAws_json1_0PutResourcePolicyCommand = void 0;
|
|
3
|
+
exports.deserializeAws_json1_0ListRuleGroupsCommand = exports.deserializeAws_json1_0ListFirewallsCommand = exports.deserializeAws_json1_0ListFirewallPoliciesCommand = exports.deserializeAws_json1_0DisassociateSubnetsCommand = exports.deserializeAws_json1_0DescribeRuleGroupMetadataCommand = exports.deserializeAws_json1_0DescribeRuleGroupCommand = exports.deserializeAws_json1_0DescribeResourcePolicyCommand = exports.deserializeAws_json1_0DescribeLoggingConfigurationCommand = exports.deserializeAws_json1_0DescribeFirewallPolicyCommand = exports.deserializeAws_json1_0DescribeFirewallCommand = exports.deserializeAws_json1_0DeleteRuleGroupCommand = exports.deserializeAws_json1_0DeleteResourcePolicyCommand = exports.deserializeAws_json1_0DeleteFirewallPolicyCommand = exports.deserializeAws_json1_0DeleteFirewallCommand = exports.deserializeAws_json1_0CreateRuleGroupCommand = exports.deserializeAws_json1_0CreateFirewallPolicyCommand = exports.deserializeAws_json1_0CreateFirewallCommand = exports.deserializeAws_json1_0AssociateSubnetsCommand = exports.deserializeAws_json1_0AssociateFirewallPolicyCommand = exports.serializeAws_json1_0UpdateSubnetChangeProtectionCommand = exports.serializeAws_json1_0UpdateRuleGroupCommand = exports.serializeAws_json1_0UpdateLoggingConfigurationCommand = exports.serializeAws_json1_0UpdateFirewallPolicyChangeProtectionCommand = exports.serializeAws_json1_0UpdateFirewallPolicyCommand = exports.serializeAws_json1_0UpdateFirewallEncryptionConfigurationCommand = exports.serializeAws_json1_0UpdateFirewallDescriptionCommand = exports.serializeAws_json1_0UpdateFirewallDeleteProtectionCommand = exports.serializeAws_json1_0UntagResourceCommand = exports.serializeAws_json1_0TagResourceCommand = exports.serializeAws_json1_0PutResourcePolicyCommand = exports.serializeAws_json1_0ListTagsForResourceCommand = exports.serializeAws_json1_0ListRuleGroupsCommand = exports.serializeAws_json1_0ListFirewallsCommand = exports.serializeAws_json1_0ListFirewallPoliciesCommand = exports.serializeAws_json1_0DisassociateSubnetsCommand = exports.serializeAws_json1_0DescribeRuleGroupMetadataCommand = exports.serializeAws_json1_0DescribeRuleGroupCommand = exports.serializeAws_json1_0DescribeResourcePolicyCommand = exports.serializeAws_json1_0DescribeLoggingConfigurationCommand = exports.serializeAws_json1_0DescribeFirewallPolicyCommand = exports.serializeAws_json1_0DescribeFirewallCommand = exports.serializeAws_json1_0DeleteRuleGroupCommand = exports.serializeAws_json1_0DeleteResourcePolicyCommand = exports.serializeAws_json1_0DeleteFirewallPolicyCommand = exports.serializeAws_json1_0DeleteFirewallCommand = exports.serializeAws_json1_0CreateRuleGroupCommand = exports.serializeAws_json1_0CreateFirewallPolicyCommand = exports.serializeAws_json1_0CreateFirewallCommand = exports.serializeAws_json1_0AssociateSubnetsCommand = exports.serializeAws_json1_0AssociateFirewallPolicyCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_0UpdateSubnetChangeProtectionCommand = exports.deserializeAws_json1_0UpdateRuleGroupCommand = exports.deserializeAws_json1_0UpdateLoggingConfigurationCommand = exports.deserializeAws_json1_0UpdateFirewallPolicyChangeProtectionCommand = exports.deserializeAws_json1_0UpdateFirewallPolicyCommand = exports.deserializeAws_json1_0UpdateFirewallEncryptionConfigurationCommand = exports.deserializeAws_json1_0UpdateFirewallDescriptionCommand = exports.deserializeAws_json1_0UpdateFirewallDeleteProtectionCommand = exports.deserializeAws_json1_0UntagResourceCommand = exports.deserializeAws_json1_0TagResourceCommand = exports.deserializeAws_json1_0PutResourcePolicyCommand = exports.deserializeAws_json1_0ListTagsForResourceCommand = 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 models_0_1 = require("../models/models_0");
|
|
@@ -256,6 +256,16 @@ const serializeAws_json1_0UpdateFirewallDescriptionCommand = async (input, conte
|
|
|
256
256
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
257
|
};
|
|
258
258
|
exports.serializeAws_json1_0UpdateFirewallDescriptionCommand = serializeAws_json1_0UpdateFirewallDescriptionCommand;
|
|
259
|
+
const serializeAws_json1_0UpdateFirewallEncryptionConfigurationCommand = async (input, context) => {
|
|
260
|
+
const headers = {
|
|
261
|
+
"content-type": "application/x-amz-json-1.0",
|
|
262
|
+
"x-amz-target": "NetworkFirewall_20201112.UpdateFirewallEncryptionConfiguration",
|
|
263
|
+
};
|
|
264
|
+
let body;
|
|
265
|
+
body = JSON.stringify(serializeAws_json1_0UpdateFirewallEncryptionConfigurationRequest(input, context));
|
|
266
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
267
|
+
};
|
|
268
|
+
exports.serializeAws_json1_0UpdateFirewallEncryptionConfigurationCommand = serializeAws_json1_0UpdateFirewallEncryptionConfigurationCommand;
|
|
259
269
|
const serializeAws_json1_0UpdateFirewallPolicyCommand = async (input, context) => {
|
|
260
270
|
const headers = {
|
|
261
271
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -1488,6 +1498,57 @@ const deserializeAws_json1_0UpdateFirewallDescriptionCommandError = async (outpu
|
|
|
1488
1498
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1489
1499
|
}
|
|
1490
1500
|
};
|
|
1501
|
+
const deserializeAws_json1_0UpdateFirewallEncryptionConfigurationCommand = async (output, context) => {
|
|
1502
|
+
if (output.statusCode >= 300) {
|
|
1503
|
+
return deserializeAws_json1_0UpdateFirewallEncryptionConfigurationCommandError(output, context);
|
|
1504
|
+
}
|
|
1505
|
+
const data = await parseBody(output.body, context);
|
|
1506
|
+
let contents = {};
|
|
1507
|
+
contents = deserializeAws_json1_0UpdateFirewallEncryptionConfigurationResponse(data, context);
|
|
1508
|
+
const response = {
|
|
1509
|
+
$metadata: deserializeMetadata(output),
|
|
1510
|
+
...contents,
|
|
1511
|
+
};
|
|
1512
|
+
return Promise.resolve(response);
|
|
1513
|
+
};
|
|
1514
|
+
exports.deserializeAws_json1_0UpdateFirewallEncryptionConfigurationCommand = deserializeAws_json1_0UpdateFirewallEncryptionConfigurationCommand;
|
|
1515
|
+
const deserializeAws_json1_0UpdateFirewallEncryptionConfigurationCommandError = async (output, context) => {
|
|
1516
|
+
const parsedOutput = {
|
|
1517
|
+
...output,
|
|
1518
|
+
body: await parseBody(output.body, context),
|
|
1519
|
+
};
|
|
1520
|
+
let response;
|
|
1521
|
+
let errorCode = "UnknownError";
|
|
1522
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1523
|
+
switch (errorCode) {
|
|
1524
|
+
case "InternalServerError":
|
|
1525
|
+
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
1526
|
+
throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context);
|
|
1527
|
+
case "InvalidRequestException":
|
|
1528
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
1529
|
+
throw await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1530
|
+
case "InvalidTokenException":
|
|
1531
|
+
case "com.amazonaws.networkfirewall#InvalidTokenException":
|
|
1532
|
+
throw await deserializeAws_json1_0InvalidTokenExceptionResponse(parsedOutput, context);
|
|
1533
|
+
case "ResourceNotFoundException":
|
|
1534
|
+
case "com.amazonaws.networkfirewall#ResourceNotFoundException":
|
|
1535
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1536
|
+
case "ResourceOwnerCheckException":
|
|
1537
|
+
case "com.amazonaws.networkfirewall#ResourceOwnerCheckException":
|
|
1538
|
+
throw await deserializeAws_json1_0ResourceOwnerCheckExceptionResponse(parsedOutput, context);
|
|
1539
|
+
case "ThrottlingException":
|
|
1540
|
+
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
1541
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1542
|
+
default:
|
|
1543
|
+
const parsedBody = parsedOutput.body;
|
|
1544
|
+
response = new NetworkFirewallServiceException_1.NetworkFirewallServiceException({
|
|
1545
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1546
|
+
$fault: "client",
|
|
1547
|
+
$metadata: deserializeMetadata(output),
|
|
1548
|
+
});
|
|
1549
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1550
|
+
}
|
|
1551
|
+
};
|
|
1491
1552
|
const deserializeAws_json1_0UpdateFirewallPolicyCommand = async (output, context) => {
|
|
1492
1553
|
if (output.statusCode >= 300) {
|
|
1493
1554
|
return deserializeAws_json1_0UpdateFirewallPolicyCommandError(output, context);
|
|
@@ -1903,6 +1964,10 @@ const serializeAws_json1_0CreateFirewallPolicyRequest = (input, context) => {
|
|
|
1903
1964
|
return {
|
|
1904
1965
|
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
1905
1966
|
...(input.DryRun !== undefined && input.DryRun !== null && { DryRun: input.DryRun }),
|
|
1967
|
+
...(input.EncryptionConfiguration !== undefined &&
|
|
1968
|
+
input.EncryptionConfiguration !== null && {
|
|
1969
|
+
EncryptionConfiguration: serializeAws_json1_0EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
1970
|
+
}),
|
|
1906
1971
|
...(input.FirewallPolicy !== undefined &&
|
|
1907
1972
|
input.FirewallPolicy !== null && {
|
|
1908
1973
|
FirewallPolicy: serializeAws_json1_0FirewallPolicy(input.FirewallPolicy, context),
|
|
@@ -1917,6 +1982,10 @@ const serializeAws_json1_0CreateFirewallRequest = (input, context) => {
|
|
|
1917
1982
|
...(input.DeleteProtection !== undefined &&
|
|
1918
1983
|
input.DeleteProtection !== null && { DeleteProtection: input.DeleteProtection }),
|
|
1919
1984
|
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
1985
|
+
...(input.EncryptionConfiguration !== undefined &&
|
|
1986
|
+
input.EncryptionConfiguration !== null && {
|
|
1987
|
+
EncryptionConfiguration: serializeAws_json1_0EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
1988
|
+
}),
|
|
1920
1989
|
...(input.FirewallName !== undefined && input.FirewallName !== null && { FirewallName: input.FirewallName }),
|
|
1921
1990
|
...(input.FirewallPolicyArn !== undefined &&
|
|
1922
1991
|
input.FirewallPolicyArn !== null && { FirewallPolicyArn: input.FirewallPolicyArn }),
|
|
@@ -1939,10 +2008,18 @@ const serializeAws_json1_0CreateRuleGroupRequest = (input, context) => {
|
|
|
1939
2008
|
...(input.Capacity !== undefined && input.Capacity !== null && { Capacity: input.Capacity }),
|
|
1940
2009
|
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
1941
2010
|
...(input.DryRun !== undefined && input.DryRun !== null && { DryRun: input.DryRun }),
|
|
2011
|
+
...(input.EncryptionConfiguration !== undefined &&
|
|
2012
|
+
input.EncryptionConfiguration !== null && {
|
|
2013
|
+
EncryptionConfiguration: serializeAws_json1_0EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2014
|
+
}),
|
|
1942
2015
|
...(input.RuleGroup !== undefined &&
|
|
1943
2016
|
input.RuleGroup !== null && { RuleGroup: serializeAws_json1_0RuleGroup(input.RuleGroup, context) }),
|
|
1944
2017
|
...(input.RuleGroupName !== undefined && input.RuleGroupName !== null && { RuleGroupName: input.RuleGroupName }),
|
|
1945
2018
|
...(input.Rules !== undefined && input.Rules !== null && { Rules: input.Rules }),
|
|
2019
|
+
...(input.SourceMetadata !== undefined &&
|
|
2020
|
+
input.SourceMetadata !== null && {
|
|
2021
|
+
SourceMetadata: serializeAws_json1_0SourceMetadata(input.SourceMetadata, context),
|
|
2022
|
+
}),
|
|
1946
2023
|
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
|
|
1947
2024
|
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
1948
2025
|
};
|
|
@@ -2055,6 +2132,12 @@ const serializeAws_json1_0DisassociateSubnetsRequest = (input, context) => {
|
|
|
2055
2132
|
...(input.UpdateToken !== undefined && input.UpdateToken !== null && { UpdateToken: input.UpdateToken }),
|
|
2056
2133
|
};
|
|
2057
2134
|
};
|
|
2135
|
+
const serializeAws_json1_0EncryptionConfiguration = (input, context) => {
|
|
2136
|
+
return {
|
|
2137
|
+
...(input.KeyId !== undefined && input.KeyId !== null && { KeyId: input.KeyId }),
|
|
2138
|
+
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
2139
|
+
};
|
|
2140
|
+
};
|
|
2058
2141
|
const serializeAws_json1_0FirewallPolicy = (input, context) => {
|
|
2059
2142
|
return {
|
|
2060
2143
|
...(input.StatefulDefaultActions !== undefined &&
|
|
@@ -2143,9 +2226,11 @@ const serializeAws_json1_0ListFirewallsRequest = (input, context) => {
|
|
|
2143
2226
|
};
|
|
2144
2227
|
const serializeAws_json1_0ListRuleGroupsRequest = (input, context) => {
|
|
2145
2228
|
return {
|
|
2229
|
+
...(input.ManagedType !== undefined && input.ManagedType !== null && { ManagedType: input.ManagedType }),
|
|
2146
2230
|
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
2147
2231
|
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
2148
2232
|
...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
|
|
2233
|
+
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
2149
2234
|
};
|
|
2150
2235
|
};
|
|
2151
2236
|
const serializeAws_json1_0ListTagsForResourceRequest = (input, context) => {
|
|
@@ -2366,6 +2451,13 @@ const serializeAws_json1_0Settings = (input, context) => {
|
|
|
2366
2451
|
return entry;
|
|
2367
2452
|
});
|
|
2368
2453
|
};
|
|
2454
|
+
const serializeAws_json1_0SourceMetadata = (input, context) => {
|
|
2455
|
+
return {
|
|
2456
|
+
...(input.SourceArn !== undefined && input.SourceArn !== null && { SourceArn: input.SourceArn }),
|
|
2457
|
+
...(input.SourceUpdateToken !== undefined &&
|
|
2458
|
+
input.SourceUpdateToken !== null && { SourceUpdateToken: input.SourceUpdateToken }),
|
|
2459
|
+
};
|
|
2460
|
+
};
|
|
2369
2461
|
const serializeAws_json1_0StatefulActions = (input, context) => {
|
|
2370
2462
|
return input
|
|
2371
2463
|
.filter((e) => e != null)
|
|
@@ -2584,6 +2676,17 @@ const serializeAws_json1_0UpdateFirewallDescriptionRequest = (input, context) =>
|
|
|
2584
2676
|
...(input.UpdateToken !== undefined && input.UpdateToken !== null && { UpdateToken: input.UpdateToken }),
|
|
2585
2677
|
};
|
|
2586
2678
|
};
|
|
2679
|
+
const serializeAws_json1_0UpdateFirewallEncryptionConfigurationRequest = (input, context) => {
|
|
2680
|
+
return {
|
|
2681
|
+
...(input.EncryptionConfiguration !== undefined &&
|
|
2682
|
+
input.EncryptionConfiguration !== null && {
|
|
2683
|
+
EncryptionConfiguration: serializeAws_json1_0EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2684
|
+
}),
|
|
2685
|
+
...(input.FirewallArn !== undefined && input.FirewallArn !== null && { FirewallArn: input.FirewallArn }),
|
|
2686
|
+
...(input.FirewallName !== undefined && input.FirewallName !== null && { FirewallName: input.FirewallName }),
|
|
2687
|
+
...(input.UpdateToken !== undefined && input.UpdateToken !== null && { UpdateToken: input.UpdateToken }),
|
|
2688
|
+
};
|
|
2689
|
+
};
|
|
2587
2690
|
const serializeAws_json1_0UpdateFirewallPolicyChangeProtectionRequest = (input, context) => {
|
|
2588
2691
|
return {
|
|
2589
2692
|
...(input.FirewallArn !== undefined && input.FirewallArn !== null && { FirewallArn: input.FirewallArn }),
|
|
@@ -2599,6 +2702,10 @@ const serializeAws_json1_0UpdateFirewallPolicyRequest = (input, context) => {
|
|
|
2599
2702
|
return {
|
|
2600
2703
|
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
2601
2704
|
...(input.DryRun !== undefined && input.DryRun !== null && { DryRun: input.DryRun }),
|
|
2705
|
+
...(input.EncryptionConfiguration !== undefined &&
|
|
2706
|
+
input.EncryptionConfiguration !== null && {
|
|
2707
|
+
EncryptionConfiguration: serializeAws_json1_0EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2708
|
+
}),
|
|
2602
2709
|
...(input.FirewallPolicy !== undefined &&
|
|
2603
2710
|
input.FirewallPolicy !== null && {
|
|
2604
2711
|
FirewallPolicy: serializeAws_json1_0FirewallPolicy(input.FirewallPolicy, context),
|
|
@@ -2624,11 +2731,19 @@ const serializeAws_json1_0UpdateRuleGroupRequest = (input, context) => {
|
|
|
2624
2731
|
return {
|
|
2625
2732
|
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
2626
2733
|
...(input.DryRun !== undefined && input.DryRun !== null && { DryRun: input.DryRun }),
|
|
2734
|
+
...(input.EncryptionConfiguration !== undefined &&
|
|
2735
|
+
input.EncryptionConfiguration !== null && {
|
|
2736
|
+
EncryptionConfiguration: serializeAws_json1_0EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2737
|
+
}),
|
|
2627
2738
|
...(input.RuleGroup !== undefined &&
|
|
2628
2739
|
input.RuleGroup !== null && { RuleGroup: serializeAws_json1_0RuleGroup(input.RuleGroup, context) }),
|
|
2629
2740
|
...(input.RuleGroupArn !== undefined && input.RuleGroupArn !== null && { RuleGroupArn: input.RuleGroupArn }),
|
|
2630
2741
|
...(input.RuleGroupName !== undefined && input.RuleGroupName !== null && { RuleGroupName: input.RuleGroupName }),
|
|
2631
2742
|
...(input.Rules !== undefined && input.Rules !== null && { Rules: input.Rules }),
|
|
2743
|
+
...(input.SourceMetadata !== undefined &&
|
|
2744
|
+
input.SourceMetadata !== null && {
|
|
2745
|
+
SourceMetadata: serializeAws_json1_0SourceMetadata(input.SourceMetadata, context),
|
|
2746
|
+
}),
|
|
2632
2747
|
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
2633
2748
|
...(input.UpdateToken !== undefined && input.UpdateToken !== null && { UpdateToken: input.UpdateToken }),
|
|
2634
2749
|
};
|
|
@@ -2821,6 +2936,9 @@ const deserializeAws_json1_0DescribeRuleGroupMetadataResponse = (output, context
|
|
|
2821
2936
|
return {
|
|
2822
2937
|
Capacity: (0, smithy_client_1.expectInt32)(output.Capacity),
|
|
2823
2938
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
2939
|
+
LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
2940
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
2941
|
+
: undefined,
|
|
2824
2942
|
RuleGroupArn: (0, smithy_client_1.expectString)(output.RuleGroupArn),
|
|
2825
2943
|
RuleGroupName: (0, smithy_client_1.expectString)(output.RuleGroupName),
|
|
2826
2944
|
StatefulRuleOptions: output.StatefulRuleOptions !== undefined && output.StatefulRuleOptions !== null
|
|
@@ -2866,10 +2984,19 @@ const deserializeAws_json1_0DisassociateSubnetsResponse = (output, context) => {
|
|
|
2866
2984
|
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
2867
2985
|
};
|
|
2868
2986
|
};
|
|
2987
|
+
const deserializeAws_json1_0EncryptionConfiguration = (output, context) => {
|
|
2988
|
+
return {
|
|
2989
|
+
KeyId: (0, smithy_client_1.expectString)(output.KeyId),
|
|
2990
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2991
|
+
};
|
|
2992
|
+
};
|
|
2869
2993
|
const deserializeAws_json1_0Firewall = (output, context) => {
|
|
2870
2994
|
return {
|
|
2871
2995
|
DeleteProtection: (0, smithy_client_1.expectBoolean)(output.DeleteProtection),
|
|
2872
2996
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
2997
|
+
EncryptionConfiguration: output.EncryptionConfiguration !== undefined && output.EncryptionConfiguration !== null
|
|
2998
|
+
? deserializeAws_json1_0EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
2999
|
+
: undefined,
|
|
2873
3000
|
FirewallArn: (0, smithy_client_1.expectString)(output.FirewallArn),
|
|
2874
3001
|
FirewallId: (0, smithy_client_1.expectString)(output.FirewallId),
|
|
2875
3002
|
FirewallName: (0, smithy_client_1.expectString)(output.FirewallName),
|
|
@@ -2938,10 +3065,16 @@ const deserializeAws_json1_0FirewallPolicyResponse = (output, context) => {
|
|
|
2938
3065
|
ConsumedStatefulRuleCapacity: (0, smithy_client_1.expectInt32)(output.ConsumedStatefulRuleCapacity),
|
|
2939
3066
|
ConsumedStatelessRuleCapacity: (0, smithy_client_1.expectInt32)(output.ConsumedStatelessRuleCapacity),
|
|
2940
3067
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
3068
|
+
EncryptionConfiguration: output.EncryptionConfiguration !== undefined && output.EncryptionConfiguration !== null
|
|
3069
|
+
? deserializeAws_json1_0EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
3070
|
+
: undefined,
|
|
2941
3071
|
FirewallPolicyArn: (0, smithy_client_1.expectString)(output.FirewallPolicyArn),
|
|
2942
3072
|
FirewallPolicyId: (0, smithy_client_1.expectString)(output.FirewallPolicyId),
|
|
2943
3073
|
FirewallPolicyName: (0, smithy_client_1.expectString)(output.FirewallPolicyName),
|
|
2944
3074
|
FirewallPolicyStatus: (0, smithy_client_1.expectString)(output.FirewallPolicyStatus),
|
|
3075
|
+
LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
3076
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
3077
|
+
: undefined,
|
|
2945
3078
|
NumberOfAssociations: (0, smithy_client_1.expectInt32)(output.NumberOfAssociations),
|
|
2946
3079
|
Tags: output.Tags !== undefined && output.Tags !== null
|
|
2947
3080
|
? deserializeAws_json1_0TagList(output.Tags, context)
|
|
@@ -3245,11 +3378,21 @@ const deserializeAws_json1_0RuleGroupResponse = (output, context) => {
|
|
|
3245
3378
|
Capacity: (0, smithy_client_1.expectInt32)(output.Capacity),
|
|
3246
3379
|
ConsumedCapacity: (0, smithy_client_1.expectInt32)(output.ConsumedCapacity),
|
|
3247
3380
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
3381
|
+
EncryptionConfiguration: output.EncryptionConfiguration !== undefined && output.EncryptionConfiguration !== null
|
|
3382
|
+
? deserializeAws_json1_0EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
3383
|
+
: undefined,
|
|
3384
|
+
LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
3385
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
3386
|
+
: undefined,
|
|
3248
3387
|
NumberOfAssociations: (0, smithy_client_1.expectInt32)(output.NumberOfAssociations),
|
|
3249
3388
|
RuleGroupArn: (0, smithy_client_1.expectString)(output.RuleGroupArn),
|
|
3250
3389
|
RuleGroupId: (0, smithy_client_1.expectString)(output.RuleGroupId),
|
|
3251
3390
|
RuleGroupName: (0, smithy_client_1.expectString)(output.RuleGroupName),
|
|
3252
3391
|
RuleGroupStatus: (0, smithy_client_1.expectString)(output.RuleGroupStatus),
|
|
3392
|
+
SnsTopic: (0, smithy_client_1.expectString)(output.SnsTopic),
|
|
3393
|
+
SourceMetadata: output.SourceMetadata !== undefined && output.SourceMetadata !== null
|
|
3394
|
+
? deserializeAws_json1_0SourceMetadata(output.SourceMetadata, context)
|
|
3395
|
+
: undefined,
|
|
3253
3396
|
Tags: output.Tags !== undefined && output.Tags !== null
|
|
3254
3397
|
? deserializeAws_json1_0TagList(output.Tags, context)
|
|
3255
3398
|
: undefined,
|
|
@@ -3343,6 +3486,12 @@ const deserializeAws_json1_0Settings = (output, context) => {
|
|
|
3343
3486
|
});
|
|
3344
3487
|
return retVal;
|
|
3345
3488
|
};
|
|
3489
|
+
const deserializeAws_json1_0SourceMetadata = (output, context) => {
|
|
3490
|
+
return {
|
|
3491
|
+
SourceArn: (0, smithy_client_1.expectString)(output.SourceArn),
|
|
3492
|
+
SourceUpdateToken: (0, smithy_client_1.expectString)(output.SourceUpdateToken),
|
|
3493
|
+
};
|
|
3494
|
+
};
|
|
3346
3495
|
const deserializeAws_json1_0StatefulActions = (output, context) => {
|
|
3347
3496
|
const retVal = (output || [])
|
|
3348
3497
|
.filter((e) => e != null)
|
|
@@ -3597,6 +3746,16 @@ const deserializeAws_json1_0UpdateFirewallDescriptionResponse = (output, context
|
|
|
3597
3746
|
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
3598
3747
|
};
|
|
3599
3748
|
};
|
|
3749
|
+
const deserializeAws_json1_0UpdateFirewallEncryptionConfigurationResponse = (output, context) => {
|
|
3750
|
+
return {
|
|
3751
|
+
EncryptionConfiguration: output.EncryptionConfiguration !== undefined && output.EncryptionConfiguration !== null
|
|
3752
|
+
? deserializeAws_json1_0EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
3753
|
+
: undefined,
|
|
3754
|
+
FirewallArn: (0, smithy_client_1.expectString)(output.FirewallArn),
|
|
3755
|
+
FirewallName: (0, smithy_client_1.expectString)(output.FirewallName),
|
|
3756
|
+
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
3757
|
+
};
|
|
3758
|
+
};
|
|
3600
3759
|
const deserializeAws_json1_0UpdateFirewallPolicyChangeProtectionResponse = (output, context) => {
|
|
3601
3760
|
return {
|
|
3602
3761
|
FirewallArn: (0, smithy_client_1.expectString)(output.FirewallArn),
|