@aws-sdk/client-network-firewall 3.76.0 → 3.78.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 +12 -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 +26 -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 +125 -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 +17 -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 +136 -6
- 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 +131 -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 +59 -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,18 @@
|
|
|
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.78.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.77.0...v3.78.0) (2022-04-26)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **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))
|
|
12
|
+
* **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))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
# [3.76.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.75.0...v3.76.0) (2022-04-22)
|
|
7
19
|
|
|
8
20
|
**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.ListFirewallPoliciesRequest = 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.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.ListFirewallsResponse = exports.ListFirewallsRequest = exports.ListFirewallPoliciesResponse = 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) => ({
|
|
@@ -824,6 +835,18 @@ var UpdateFirewallDescriptionResponse;
|
|
|
824
835
|
...obj,
|
|
825
836
|
});
|
|
826
837
|
})(UpdateFirewallDescriptionResponse = exports.UpdateFirewallDescriptionResponse || (exports.UpdateFirewallDescriptionResponse = {}));
|
|
838
|
+
var UpdateFirewallEncryptionConfigurationRequest;
|
|
839
|
+
(function (UpdateFirewallEncryptionConfigurationRequest) {
|
|
840
|
+
UpdateFirewallEncryptionConfigurationRequest.filterSensitiveLog = (obj) => ({
|
|
841
|
+
...obj,
|
|
842
|
+
});
|
|
843
|
+
})(UpdateFirewallEncryptionConfigurationRequest = exports.UpdateFirewallEncryptionConfigurationRequest || (exports.UpdateFirewallEncryptionConfigurationRequest = {}));
|
|
844
|
+
var UpdateFirewallEncryptionConfigurationResponse;
|
|
845
|
+
(function (UpdateFirewallEncryptionConfigurationResponse) {
|
|
846
|
+
UpdateFirewallEncryptionConfigurationResponse.filterSensitiveLog = (obj) => ({
|
|
847
|
+
...obj,
|
|
848
|
+
});
|
|
849
|
+
})(UpdateFirewallEncryptionConfigurationResponse = exports.UpdateFirewallEncryptionConfigurationResponse || (exports.UpdateFirewallEncryptionConfigurationResponse = {}));
|
|
827
850
|
var UpdateFirewallPolicyRequest;
|
|
828
851
|
(function (UpdateFirewallPolicyRequest) {
|
|
829
852
|
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,6 +2008,10 @@ 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 }),
|
|
@@ -2055,6 +2128,12 @@ const serializeAws_json1_0DisassociateSubnetsRequest = (input, context) => {
|
|
|
2055
2128
|
...(input.UpdateToken !== undefined && input.UpdateToken !== null && { UpdateToken: input.UpdateToken }),
|
|
2056
2129
|
};
|
|
2057
2130
|
};
|
|
2131
|
+
const serializeAws_json1_0EncryptionConfiguration = (input, context) => {
|
|
2132
|
+
return {
|
|
2133
|
+
...(input.KeyId !== undefined && input.KeyId !== null && { KeyId: input.KeyId }),
|
|
2134
|
+
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
2135
|
+
};
|
|
2136
|
+
};
|
|
2058
2137
|
const serializeAws_json1_0FirewallPolicy = (input, context) => {
|
|
2059
2138
|
return {
|
|
2060
2139
|
...(input.StatefulDefaultActions !== undefined &&
|
|
@@ -2584,6 +2663,17 @@ const serializeAws_json1_0UpdateFirewallDescriptionRequest = (input, context) =>
|
|
|
2584
2663
|
...(input.UpdateToken !== undefined && input.UpdateToken !== null && { UpdateToken: input.UpdateToken }),
|
|
2585
2664
|
};
|
|
2586
2665
|
};
|
|
2666
|
+
const serializeAws_json1_0UpdateFirewallEncryptionConfigurationRequest = (input, context) => {
|
|
2667
|
+
return {
|
|
2668
|
+
...(input.EncryptionConfiguration !== undefined &&
|
|
2669
|
+
input.EncryptionConfiguration !== null && {
|
|
2670
|
+
EncryptionConfiguration: serializeAws_json1_0EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2671
|
+
}),
|
|
2672
|
+
...(input.FirewallArn !== undefined && input.FirewallArn !== null && { FirewallArn: input.FirewallArn }),
|
|
2673
|
+
...(input.FirewallName !== undefined && input.FirewallName !== null && { FirewallName: input.FirewallName }),
|
|
2674
|
+
...(input.UpdateToken !== undefined && input.UpdateToken !== null && { UpdateToken: input.UpdateToken }),
|
|
2675
|
+
};
|
|
2676
|
+
};
|
|
2587
2677
|
const serializeAws_json1_0UpdateFirewallPolicyChangeProtectionRequest = (input, context) => {
|
|
2588
2678
|
return {
|
|
2589
2679
|
...(input.FirewallArn !== undefined && input.FirewallArn !== null && { FirewallArn: input.FirewallArn }),
|
|
@@ -2599,6 +2689,10 @@ const serializeAws_json1_0UpdateFirewallPolicyRequest = (input, context) => {
|
|
|
2599
2689
|
return {
|
|
2600
2690
|
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
2601
2691
|
...(input.DryRun !== undefined && input.DryRun !== null && { DryRun: input.DryRun }),
|
|
2692
|
+
...(input.EncryptionConfiguration !== undefined &&
|
|
2693
|
+
input.EncryptionConfiguration !== null && {
|
|
2694
|
+
EncryptionConfiguration: serializeAws_json1_0EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2695
|
+
}),
|
|
2602
2696
|
...(input.FirewallPolicy !== undefined &&
|
|
2603
2697
|
input.FirewallPolicy !== null && {
|
|
2604
2698
|
FirewallPolicy: serializeAws_json1_0FirewallPolicy(input.FirewallPolicy, context),
|
|
@@ -2624,6 +2718,10 @@ const serializeAws_json1_0UpdateRuleGroupRequest = (input, context) => {
|
|
|
2624
2718
|
return {
|
|
2625
2719
|
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
2626
2720
|
...(input.DryRun !== undefined && input.DryRun !== null && { DryRun: input.DryRun }),
|
|
2721
|
+
...(input.EncryptionConfiguration !== undefined &&
|
|
2722
|
+
input.EncryptionConfiguration !== null && {
|
|
2723
|
+
EncryptionConfiguration: serializeAws_json1_0EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
2724
|
+
}),
|
|
2627
2725
|
...(input.RuleGroup !== undefined &&
|
|
2628
2726
|
input.RuleGroup !== null && { RuleGroup: serializeAws_json1_0RuleGroup(input.RuleGroup, context) }),
|
|
2629
2727
|
...(input.RuleGroupArn !== undefined && input.RuleGroupArn !== null && { RuleGroupArn: input.RuleGroupArn }),
|
|
@@ -2866,10 +2964,19 @@ const deserializeAws_json1_0DisassociateSubnetsResponse = (output, context) => {
|
|
|
2866
2964
|
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
2867
2965
|
};
|
|
2868
2966
|
};
|
|
2967
|
+
const deserializeAws_json1_0EncryptionConfiguration = (output, context) => {
|
|
2968
|
+
return {
|
|
2969
|
+
KeyId: (0, smithy_client_1.expectString)(output.KeyId),
|
|
2970
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2971
|
+
};
|
|
2972
|
+
};
|
|
2869
2973
|
const deserializeAws_json1_0Firewall = (output, context) => {
|
|
2870
2974
|
return {
|
|
2871
2975
|
DeleteProtection: (0, smithy_client_1.expectBoolean)(output.DeleteProtection),
|
|
2872
2976
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
2977
|
+
EncryptionConfiguration: output.EncryptionConfiguration !== undefined && output.EncryptionConfiguration !== null
|
|
2978
|
+
? deserializeAws_json1_0EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
2979
|
+
: undefined,
|
|
2873
2980
|
FirewallArn: (0, smithy_client_1.expectString)(output.FirewallArn),
|
|
2874
2981
|
FirewallId: (0, smithy_client_1.expectString)(output.FirewallId),
|
|
2875
2982
|
FirewallName: (0, smithy_client_1.expectString)(output.FirewallName),
|
|
@@ -2938,6 +3045,9 @@ const deserializeAws_json1_0FirewallPolicyResponse = (output, context) => {
|
|
|
2938
3045
|
ConsumedStatefulRuleCapacity: (0, smithy_client_1.expectInt32)(output.ConsumedStatefulRuleCapacity),
|
|
2939
3046
|
ConsumedStatelessRuleCapacity: (0, smithy_client_1.expectInt32)(output.ConsumedStatelessRuleCapacity),
|
|
2940
3047
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
3048
|
+
EncryptionConfiguration: output.EncryptionConfiguration !== undefined && output.EncryptionConfiguration !== null
|
|
3049
|
+
? deserializeAws_json1_0EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
3050
|
+
: undefined,
|
|
2941
3051
|
FirewallPolicyArn: (0, smithy_client_1.expectString)(output.FirewallPolicyArn),
|
|
2942
3052
|
FirewallPolicyId: (0, smithy_client_1.expectString)(output.FirewallPolicyId),
|
|
2943
3053
|
FirewallPolicyName: (0, smithy_client_1.expectString)(output.FirewallPolicyName),
|
|
@@ -3245,6 +3355,9 @@ const deserializeAws_json1_0RuleGroupResponse = (output, context) => {
|
|
|
3245
3355
|
Capacity: (0, smithy_client_1.expectInt32)(output.Capacity),
|
|
3246
3356
|
ConsumedCapacity: (0, smithy_client_1.expectInt32)(output.ConsumedCapacity),
|
|
3247
3357
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
3358
|
+
EncryptionConfiguration: output.EncryptionConfiguration !== undefined && output.EncryptionConfiguration !== null
|
|
3359
|
+
? deserializeAws_json1_0EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
3360
|
+
: undefined,
|
|
3248
3361
|
NumberOfAssociations: (0, smithy_client_1.expectInt32)(output.NumberOfAssociations),
|
|
3249
3362
|
RuleGroupArn: (0, smithy_client_1.expectString)(output.RuleGroupArn),
|
|
3250
3363
|
RuleGroupId: (0, smithy_client_1.expectString)(output.RuleGroupId),
|
|
@@ -3597,6 +3710,16 @@ const deserializeAws_json1_0UpdateFirewallDescriptionResponse = (output, context
|
|
|
3597
3710
|
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
3598
3711
|
};
|
|
3599
3712
|
};
|
|
3713
|
+
const deserializeAws_json1_0UpdateFirewallEncryptionConfigurationResponse = (output, context) => {
|
|
3714
|
+
return {
|
|
3715
|
+
EncryptionConfiguration: output.EncryptionConfiguration !== undefined && output.EncryptionConfiguration !== null
|
|
3716
|
+
? deserializeAws_json1_0EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
3717
|
+
: undefined,
|
|
3718
|
+
FirewallArn: (0, smithy_client_1.expectString)(output.FirewallArn),
|
|
3719
|
+
FirewallName: (0, smithy_client_1.expectString)(output.FirewallName),
|
|
3720
|
+
UpdateToken: (0, smithy_client_1.expectString)(output.UpdateToken),
|
|
3721
|
+
};
|
|
3722
|
+
};
|
|
3600
3723
|
const deserializeAws_json1_0UpdateFirewallPolicyChangeProtectionResponse = (output, context) => {
|
|
3601
3724
|
return {
|
|
3602
3725
|
FirewallArn: (0, smithy_client_1.expectString)(output.FirewallArn),
|
|
@@ -24,6 +24,7 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
|
24
24
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
25
25
|
import { UpdateFirewallDeleteProtectionCommand, } from "./commands/UpdateFirewallDeleteProtectionCommand";
|
|
26
26
|
import { UpdateFirewallDescriptionCommand, } from "./commands/UpdateFirewallDescriptionCommand";
|
|
27
|
+
import { UpdateFirewallEncryptionConfigurationCommand, } from "./commands/UpdateFirewallEncryptionConfigurationCommand";
|
|
27
28
|
import { UpdateFirewallPolicyChangeProtectionCommand, } from "./commands/UpdateFirewallPolicyChangeProtectionCommand";
|
|
28
29
|
import { UpdateFirewallPolicyCommand, } from "./commands/UpdateFirewallPolicyCommand";
|
|
29
30
|
import { UpdateLoggingConfigurationCommand, } from "./commands/UpdateLoggingConfigurationCommand";
|
|
@@ -385,6 +386,20 @@ var NetworkFirewall = (function (_super) {
|
|
|
385
386
|
return this.send(command, optionsOrCb);
|
|
386
387
|
}
|
|
387
388
|
};
|
|
389
|
+
NetworkFirewall.prototype.updateFirewallEncryptionConfiguration = function (args, optionsOrCb, cb) {
|
|
390
|
+
var command = new UpdateFirewallEncryptionConfigurationCommand(args);
|
|
391
|
+
if (typeof optionsOrCb === "function") {
|
|
392
|
+
this.send(command, optionsOrCb);
|
|
393
|
+
}
|
|
394
|
+
else if (typeof cb === "function") {
|
|
395
|
+
if (typeof optionsOrCb !== "object")
|
|
396
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
397
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
398
|
+
}
|
|
399
|
+
else {
|
|
400
|
+
return this.send(command, optionsOrCb);
|
|
401
|
+
}
|
|
402
|
+
};
|
|
388
403
|
NetworkFirewall.prototype.updateFirewallPolicy = function (args, optionsOrCb, cb) {
|
|
389
404
|
var command = new UpdateFirewallPolicyCommand(args);
|
|
390
405
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { UpdateFirewallEncryptionConfigurationRequest, UpdateFirewallEncryptionConfigurationResponse, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_0UpdateFirewallEncryptionConfigurationCommand, serializeAws_json1_0UpdateFirewallEncryptionConfigurationCommand, } from "../protocols/Aws_json1_0";
|
|
6
|
+
var UpdateFirewallEncryptionConfigurationCommand = (function (_super) {
|
|
7
|
+
__extends(UpdateFirewallEncryptionConfigurationCommand, _super);
|
|
8
|
+
function UpdateFirewallEncryptionConfigurationCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
UpdateFirewallEncryptionConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "NetworkFirewallClient";
|
|
18
|
+
var commandName = "UpdateFirewallEncryptionConfigurationCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: UpdateFirewallEncryptionConfigurationRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: UpdateFirewallEncryptionConfigurationResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
UpdateFirewallEncryptionConfigurationCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_0UpdateFirewallEncryptionConfigurationCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
UpdateFirewallEncryptionConfigurationCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_0UpdateFirewallEncryptionConfigurationCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return UpdateFirewallEncryptionConfigurationCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { UpdateFirewallEncryptionConfigurationCommand };
|
|
@@ -23,6 +23,7 @@ export * from "./TagResourceCommand";
|
|
|
23
23
|
export * from "./UntagResourceCommand";
|
|
24
24
|
export * from "./UpdateFirewallDeleteProtectionCommand";
|
|
25
25
|
export * from "./UpdateFirewallDescriptionCommand";
|
|
26
|
+
export * from "./UpdateFirewallEncryptionConfigurationCommand";
|
|
26
27
|
export * from "./UpdateFirewallPolicyChangeProtectionCommand";
|
|
27
28
|
export * from "./UpdateFirewallPolicyCommand";
|
|
28
29
|
export * from "./UpdateLoggingConfigurationCommand";
|
|
@@ -143,6 +143,15 @@ export var ConfigurationSyncState;
|
|
|
143
143
|
ConfigurationSyncState["IN_SYNC"] = "IN_SYNC";
|
|
144
144
|
ConfigurationSyncState["PENDING"] = "PENDING";
|
|
145
145
|
})(ConfigurationSyncState || (ConfigurationSyncState = {}));
|
|
146
|
+
export var EncryptionType;
|
|
147
|
+
(function (EncryptionType) {
|
|
148
|
+
EncryptionType["AWS_OWNED_KMS_KEY"] = "AWS_OWNED_KMS_KEY";
|
|
149
|
+
EncryptionType["CUSTOMER_KMS"] = "CUSTOMER_KMS";
|
|
150
|
+
})(EncryptionType || (EncryptionType = {}));
|
|
151
|
+
export var EncryptionConfiguration;
|
|
152
|
+
(function (EncryptionConfiguration) {
|
|
153
|
+
EncryptionConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
154
|
+
})(EncryptionConfiguration || (EncryptionConfiguration = {}));
|
|
146
155
|
export var Tag;
|
|
147
156
|
(function (Tag) {
|
|
148
157
|
Tag.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -628,6 +637,14 @@ export var UpdateFirewallDescriptionResponse;
|
|
|
628
637
|
(function (UpdateFirewallDescriptionResponse) {
|
|
629
638
|
UpdateFirewallDescriptionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
630
639
|
})(UpdateFirewallDescriptionResponse || (UpdateFirewallDescriptionResponse = {}));
|
|
640
|
+
export var UpdateFirewallEncryptionConfigurationRequest;
|
|
641
|
+
(function (UpdateFirewallEncryptionConfigurationRequest) {
|
|
642
|
+
UpdateFirewallEncryptionConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
643
|
+
})(UpdateFirewallEncryptionConfigurationRequest || (UpdateFirewallEncryptionConfigurationRequest = {}));
|
|
644
|
+
export var UpdateFirewallEncryptionConfigurationResponse;
|
|
645
|
+
(function (UpdateFirewallEncryptionConfigurationResponse) {
|
|
646
|
+
UpdateFirewallEncryptionConfigurationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
647
|
+
})(UpdateFirewallEncryptionConfigurationResponse || (UpdateFirewallEncryptionConfigurationResponse = {}));
|
|
631
648
|
export var UpdateFirewallPolicyRequest;
|
|
632
649
|
(function (UpdateFirewallPolicyRequest) {
|
|
633
650
|
UpdateFirewallPolicyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -36,7 +36,7 @@ export function paginateListFirewallPolicies(config, input) {
|
|
|
36
36
|
additionalArguments[_i - 2] = arguments[_i];
|
|
37
37
|
}
|
|
38
38
|
return __asyncGenerator(this, arguments, function paginateListFirewallPolicies_1() {
|
|
39
|
-
var token, hasNext, page;
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
40
|
return __generator(this, function (_a) {
|
|
41
41
|
switch (_a.label) {
|
|
42
42
|
case 0:
|
|
@@ -63,8 +63,9 @@ export function paginateListFirewallPolicies(config, input) {
|
|
|
63
63
|
case 7: return [4, _a.sent()];
|
|
64
64
|
case 8:
|
|
65
65
|
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
66
67
|
token = page.NextToken;
|
|
67
|
-
hasNext = !!token;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
68
69
|
return [3, 1];
|
|
69
70
|
case 9: return [4, __await(undefined)];
|
|
70
71
|
case 10: return [2, _a.sent()];
|