@aws-sdk/client-network-firewall 3.41.0 → 3.46.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 +44 -0
- package/dist-cjs/NetworkFirewall.js +15 -0
- package/dist-cjs/commands/DescribeRuleGroupMetadataCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/endpoints.js +1 -0
- package/dist-cjs/models/models_0.js +30 -3
- package/dist-cjs/protocols/Aws_json1_0.js +166 -2
- package/dist-cjs/runtimeConfig.js +0 -2
- package/dist-es/NetworkFirewall.js +15 -0
- package/dist-es/commands/DescribeRuleGroupMetadataCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/endpoints.js +1 -0
- package/dist-es/models/models_0.js +21 -0
- package/dist-es/protocols/Aws_json1_0.js +225 -59
- package/dist-es/runtimeConfig.js +0 -2
- package/dist-types/NetworkFirewall.d.ts +13 -1
- package/dist-types/NetworkFirewallClient.d.ts +3 -2
- package/dist-types/commands/DescribeRuleGroupMetadataCommand.d.ts +38 -0
- package/dist-types/commands/UpdateFirewallPolicyChangeProtectionCommand.d.ts +3 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +136 -13
- 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/DescribeRuleGroupMetadataCommand.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 +50 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +3 -0
- package/package.json +36 -43
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,50 @@
|
|
|
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.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
|
|
17
|
+
* end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
# [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Features
|
|
27
|
+
|
|
28
|
+
* **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
# [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
|
|
35
|
+
|
|
36
|
+
**Note:** Version bump only for package @aws-sdk/client-network-firewall
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
# [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
|
|
43
|
+
|
|
44
|
+
**Note:** Version bump only for package @aws-sdk/client-network-firewall
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
6
50
|
# [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
|
|
7
51
|
|
|
8
52
|
|
|
@@ -15,6 +15,7 @@ const DescribeFirewallPolicyCommand_1 = require("./commands/DescribeFirewallPoli
|
|
|
15
15
|
const DescribeLoggingConfigurationCommand_1 = require("./commands/DescribeLoggingConfigurationCommand");
|
|
16
16
|
const DescribeResourcePolicyCommand_1 = require("./commands/DescribeResourcePolicyCommand");
|
|
17
17
|
const DescribeRuleGroupCommand_1 = require("./commands/DescribeRuleGroupCommand");
|
|
18
|
+
const DescribeRuleGroupMetadataCommand_1 = require("./commands/DescribeRuleGroupMetadataCommand");
|
|
18
19
|
const DisassociateSubnetsCommand_1 = require("./commands/DisassociateSubnetsCommand");
|
|
19
20
|
const ListFirewallPoliciesCommand_1 = require("./commands/ListFirewallPoliciesCommand");
|
|
20
21
|
const ListFirewallsCommand_1 = require("./commands/ListFirewallsCommand");
|
|
@@ -228,6 +229,20 @@ class NetworkFirewall extends NetworkFirewallClient_1.NetworkFirewallClient {
|
|
|
228
229
|
return this.send(command, optionsOrCb);
|
|
229
230
|
}
|
|
230
231
|
}
|
|
232
|
+
describeRuleGroupMetadata(args, optionsOrCb, cb) {
|
|
233
|
+
const command = new DescribeRuleGroupMetadataCommand_1.DescribeRuleGroupMetadataCommand(args);
|
|
234
|
+
if (typeof optionsOrCb === "function") {
|
|
235
|
+
this.send(command, optionsOrCb);
|
|
236
|
+
}
|
|
237
|
+
else if (typeof cb === "function") {
|
|
238
|
+
if (typeof optionsOrCb !== "object")
|
|
239
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
240
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
241
|
+
}
|
|
242
|
+
else {
|
|
243
|
+
return this.send(command, optionsOrCb);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
231
246
|
disassociateSubnets(args, optionsOrCb, cb) {
|
|
232
247
|
const command = new DisassociateSubnetsCommand_1.DisassociateSubnetsCommand(args);
|
|
233
248
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DescribeRuleGroupMetadataCommand = 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 DescribeRuleGroupMetadataCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(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 = "DescribeRuleGroupMetadataCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.DescribeRuleGroupMetadataRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.DescribeRuleGroupMetadataResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_json1_0_1.serializeAws_json1_0DescribeRuleGroupMetadataCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_json1_0_1.deserializeAws_json1_0DescribeRuleGroupMetadataCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.DescribeRuleGroupMetadataCommand = DescribeRuleGroupMetadataCommand;
|
|
@@ -15,6 +15,7 @@ tslib_1.__exportStar(require("./DescribeFirewallPolicyCommand"), exports);
|
|
|
15
15
|
tslib_1.__exportStar(require("./DescribeLoggingConfigurationCommand"), exports);
|
|
16
16
|
tslib_1.__exportStar(require("./DescribeResourcePolicyCommand"), exports);
|
|
17
17
|
tslib_1.__exportStar(require("./DescribeRuleGroupCommand"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./DescribeRuleGroupMetadataCommand"), exports);
|
|
18
19
|
tslib_1.__exportStar(require("./DisassociateSubnetsCommand"), exports);
|
|
19
20
|
tslib_1.__exportStar(require("./ListFirewallPoliciesCommand"), exports);
|
|
20
21
|
tslib_1.__exportStar(require("./ListFirewallsCommand"), exports);
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -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 = void 0;
|
|
3
|
+
exports.StatefulRule = exports.RuleOption = 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.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.ListFirewallsRequest = exports.ListFirewallPoliciesResponse = 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 = void 0;
|
|
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;
|
|
6
6
|
var Dimension;
|
|
7
7
|
(function (Dimension) {
|
|
8
8
|
Dimension.filterSensitiveLog = (obj) => ({
|
|
@@ -187,6 +187,16 @@ var StatefulEngineOptions;
|
|
|
187
187
|
...obj,
|
|
188
188
|
});
|
|
189
189
|
})(StatefulEngineOptions = exports.StatefulEngineOptions || (exports.StatefulEngineOptions = {}));
|
|
190
|
+
var OverrideAction;
|
|
191
|
+
(function (OverrideAction) {
|
|
192
|
+
OverrideAction["DROP_TO_ALERT"] = "DROP_TO_ALERT";
|
|
193
|
+
})(OverrideAction = exports.OverrideAction || (exports.OverrideAction = {}));
|
|
194
|
+
var StatefulRuleGroupOverride;
|
|
195
|
+
(function (StatefulRuleGroupOverride) {
|
|
196
|
+
StatefulRuleGroupOverride.filterSensitiveLog = (obj) => ({
|
|
197
|
+
...obj,
|
|
198
|
+
});
|
|
199
|
+
})(StatefulRuleGroupOverride = exports.StatefulRuleGroupOverride || (exports.StatefulRuleGroupOverride = {}));
|
|
190
200
|
var StatefulRuleGroupReference;
|
|
191
201
|
(function (StatefulRuleGroupReference) {
|
|
192
202
|
StatefulRuleGroupReference.filterSensitiveLog = (obj) => ({
|
|
@@ -550,6 +560,18 @@ var DescribeRuleGroupResponse;
|
|
|
550
560
|
...obj,
|
|
551
561
|
});
|
|
552
562
|
})(DescribeRuleGroupResponse = exports.DescribeRuleGroupResponse || (exports.DescribeRuleGroupResponse = {}));
|
|
563
|
+
var DescribeRuleGroupMetadataRequest;
|
|
564
|
+
(function (DescribeRuleGroupMetadataRequest) {
|
|
565
|
+
DescribeRuleGroupMetadataRequest.filterSensitiveLog = (obj) => ({
|
|
566
|
+
...obj,
|
|
567
|
+
});
|
|
568
|
+
})(DescribeRuleGroupMetadataRequest = exports.DescribeRuleGroupMetadataRequest || (exports.DescribeRuleGroupMetadataRequest = {}));
|
|
569
|
+
var DescribeRuleGroupMetadataResponse;
|
|
570
|
+
(function (DescribeRuleGroupMetadataResponse) {
|
|
571
|
+
DescribeRuleGroupMetadataResponse.filterSensitiveLog = (obj) => ({
|
|
572
|
+
...obj,
|
|
573
|
+
});
|
|
574
|
+
})(DescribeRuleGroupMetadataResponse = exports.DescribeRuleGroupMetadataResponse || (exports.DescribeRuleGroupMetadataResponse = {}));
|
|
553
575
|
var DisassociateSubnetsRequest;
|
|
554
576
|
(function (DisassociateSubnetsRequest) {
|
|
555
577
|
DisassociateSubnetsRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -598,6 +620,11 @@ var ListFirewallsResponse;
|
|
|
598
620
|
...obj,
|
|
599
621
|
});
|
|
600
622
|
})(ListFirewallsResponse = exports.ListFirewallsResponse || (exports.ListFirewallsResponse = {}));
|
|
623
|
+
var ResourceManagedStatus;
|
|
624
|
+
(function (ResourceManagedStatus) {
|
|
625
|
+
ResourceManagedStatus["ACCOUNT"] = "ACCOUNT";
|
|
626
|
+
ResourceManagedStatus["MANAGED"] = "MANAGED";
|
|
627
|
+
})(ResourceManagedStatus = exports.ResourceManagedStatus || (exports.ResourceManagedStatus = {}));
|
|
601
628
|
var ListRuleGroupsRequest;
|
|
602
629
|
(function (ListRuleGroupsRequest) {
|
|
603
630
|
ListRuleGroupsRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -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 = void 0;
|
|
3
|
+
exports.deserializeAws_json1_0ListTagsForResourceCommand = 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_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_0UpdateFirewallDescriptionCommand = exports.deserializeAws_json1_0UpdateFirewallDeleteProtectionCommand = exports.deserializeAws_json1_0UntagResourceCommand = exports.deserializeAws_json1_0TagResourceCommand = exports.deserializeAws_json1_0PutResourcePolicyCommand = 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 serializeAws_json1_0AssociateFirewallPolicyCommand = async (input, context) => {
|
|
@@ -144,6 +144,16 @@ const serializeAws_json1_0DescribeRuleGroupCommand = async (input, context) => {
|
|
|
144
144
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
145
145
|
};
|
|
146
146
|
exports.serializeAws_json1_0DescribeRuleGroupCommand = serializeAws_json1_0DescribeRuleGroupCommand;
|
|
147
|
+
const serializeAws_json1_0DescribeRuleGroupMetadataCommand = async (input, context) => {
|
|
148
|
+
const headers = {
|
|
149
|
+
"content-type": "application/x-amz-json-1.0",
|
|
150
|
+
"x-amz-target": "NetworkFirewall_20201112.DescribeRuleGroupMetadata",
|
|
151
|
+
};
|
|
152
|
+
let body;
|
|
153
|
+
body = JSON.stringify(serializeAws_json1_0DescribeRuleGroupMetadataRequest(input, context));
|
|
154
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
155
|
+
};
|
|
156
|
+
exports.serializeAws_json1_0DescribeRuleGroupMetadataCommand = serializeAws_json1_0DescribeRuleGroupMetadataCommand;
|
|
147
157
|
const serializeAws_json1_0DisassociateSubnetsCommand = async (input, context) => {
|
|
148
158
|
const headers = {
|
|
149
159
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -1416,6 +1426,77 @@ const deserializeAws_json1_0DescribeRuleGroupCommandError = async (output, conte
|
|
|
1416
1426
|
delete response.Message;
|
|
1417
1427
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1418
1428
|
};
|
|
1429
|
+
const deserializeAws_json1_0DescribeRuleGroupMetadataCommand = async (output, context) => {
|
|
1430
|
+
if (output.statusCode >= 300) {
|
|
1431
|
+
return deserializeAws_json1_0DescribeRuleGroupMetadataCommandError(output, context);
|
|
1432
|
+
}
|
|
1433
|
+
const data = await parseBody(output.body, context);
|
|
1434
|
+
let contents = {};
|
|
1435
|
+
contents = deserializeAws_json1_0DescribeRuleGroupMetadataResponse(data, context);
|
|
1436
|
+
const response = {
|
|
1437
|
+
$metadata: deserializeMetadata(output),
|
|
1438
|
+
...contents,
|
|
1439
|
+
};
|
|
1440
|
+
return Promise.resolve(response);
|
|
1441
|
+
};
|
|
1442
|
+
exports.deserializeAws_json1_0DescribeRuleGroupMetadataCommand = deserializeAws_json1_0DescribeRuleGroupMetadataCommand;
|
|
1443
|
+
const deserializeAws_json1_0DescribeRuleGroupMetadataCommandError = async (output, context) => {
|
|
1444
|
+
const parsedOutput = {
|
|
1445
|
+
...output,
|
|
1446
|
+
body: await parseBody(output.body, context),
|
|
1447
|
+
};
|
|
1448
|
+
let response;
|
|
1449
|
+
let errorCode = "UnknownError";
|
|
1450
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1451
|
+
switch (errorCode) {
|
|
1452
|
+
case "InternalServerError":
|
|
1453
|
+
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
1454
|
+
response = {
|
|
1455
|
+
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
1456
|
+
name: errorCode,
|
|
1457
|
+
$metadata: deserializeMetadata(output),
|
|
1458
|
+
};
|
|
1459
|
+
break;
|
|
1460
|
+
case "InvalidRequestException":
|
|
1461
|
+
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
1462
|
+
response = {
|
|
1463
|
+
...(await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1464
|
+
name: errorCode,
|
|
1465
|
+
$metadata: deserializeMetadata(output),
|
|
1466
|
+
};
|
|
1467
|
+
break;
|
|
1468
|
+
case "ResourceNotFoundException":
|
|
1469
|
+
case "com.amazonaws.networkfirewall#ResourceNotFoundException":
|
|
1470
|
+
response = {
|
|
1471
|
+
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1472
|
+
name: errorCode,
|
|
1473
|
+
$metadata: deserializeMetadata(output),
|
|
1474
|
+
};
|
|
1475
|
+
break;
|
|
1476
|
+
case "ThrottlingException":
|
|
1477
|
+
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
1478
|
+
response = {
|
|
1479
|
+
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1480
|
+
name: errorCode,
|
|
1481
|
+
$metadata: deserializeMetadata(output),
|
|
1482
|
+
};
|
|
1483
|
+
break;
|
|
1484
|
+
default:
|
|
1485
|
+
const parsedBody = parsedOutput.body;
|
|
1486
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1487
|
+
response = {
|
|
1488
|
+
...parsedBody,
|
|
1489
|
+
name: `${errorCode}`,
|
|
1490
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1491
|
+
$fault: "client",
|
|
1492
|
+
$metadata: deserializeMetadata(output),
|
|
1493
|
+
};
|
|
1494
|
+
}
|
|
1495
|
+
const message = response.message || response.Message || errorCode;
|
|
1496
|
+
response.message = message;
|
|
1497
|
+
delete response.Message;
|
|
1498
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1499
|
+
};
|
|
1419
1500
|
const deserializeAws_json1_0DisassociateSubnetsCommand = async (output, context) => {
|
|
1420
1501
|
if (output.statusCode >= 300) {
|
|
1421
1502
|
return deserializeAws_json1_0DisassociateSubnetsCommandError(output, context);
|
|
@@ -1715,6 +1796,14 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
1715
1796
|
let errorCode = "UnknownError";
|
|
1716
1797
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1717
1798
|
switch (errorCode) {
|
|
1799
|
+
case "InternalServerError":
|
|
1800
|
+
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
1801
|
+
response = {
|
|
1802
|
+
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
1803
|
+
name: errorCode,
|
|
1804
|
+
$metadata: deserializeMetadata(output),
|
|
1805
|
+
};
|
|
1806
|
+
break;
|
|
1718
1807
|
case "InvalidRequestException":
|
|
1719
1808
|
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
1720
1809
|
response = {
|
|
@@ -1731,6 +1820,14 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
1731
1820
|
$metadata: deserializeMetadata(output),
|
|
1732
1821
|
};
|
|
1733
1822
|
break;
|
|
1823
|
+
case "ThrottlingException":
|
|
1824
|
+
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
1825
|
+
response = {
|
|
1826
|
+
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1827
|
+
name: errorCode,
|
|
1828
|
+
$metadata: deserializeMetadata(output),
|
|
1829
|
+
};
|
|
1830
|
+
break;
|
|
1734
1831
|
default:
|
|
1735
1832
|
const parsedBody = parsedOutput.body;
|
|
1736
1833
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1849,6 +1946,14 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
1849
1946
|
let errorCode = "UnknownError";
|
|
1850
1947
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1851
1948
|
switch (errorCode) {
|
|
1949
|
+
case "InternalServerError":
|
|
1950
|
+
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
1951
|
+
response = {
|
|
1952
|
+
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
1953
|
+
name: errorCode,
|
|
1954
|
+
$metadata: deserializeMetadata(output),
|
|
1955
|
+
};
|
|
1956
|
+
break;
|
|
1852
1957
|
case "InvalidRequestException":
|
|
1853
1958
|
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
1854
1959
|
response = {
|
|
@@ -1865,6 +1970,14 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
1865
1970
|
$metadata: deserializeMetadata(output),
|
|
1866
1971
|
};
|
|
1867
1972
|
break;
|
|
1973
|
+
case "ThrottlingException":
|
|
1974
|
+
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
1975
|
+
response = {
|
|
1976
|
+
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1977
|
+
name: errorCode,
|
|
1978
|
+
$metadata: deserializeMetadata(output),
|
|
1979
|
+
};
|
|
1980
|
+
break;
|
|
1868
1981
|
default:
|
|
1869
1982
|
const parsedBody = parsedOutput.body;
|
|
1870
1983
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1904,6 +2017,14 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
1904
2017
|
let errorCode = "UnknownError";
|
|
1905
2018
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1906
2019
|
switch (errorCode) {
|
|
2020
|
+
case "InternalServerError":
|
|
2021
|
+
case "com.amazonaws.networkfirewall#InternalServerError":
|
|
2022
|
+
response = {
|
|
2023
|
+
...(await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context)),
|
|
2024
|
+
name: errorCode,
|
|
2025
|
+
$metadata: deserializeMetadata(output),
|
|
2026
|
+
};
|
|
2027
|
+
break;
|
|
1907
2028
|
case "InvalidRequestException":
|
|
1908
2029
|
case "com.amazonaws.networkfirewall#InvalidRequestException":
|
|
1909
2030
|
response = {
|
|
@@ -1920,6 +2041,14 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
1920
2041
|
$metadata: deserializeMetadata(output),
|
|
1921
2042
|
};
|
|
1922
2043
|
break;
|
|
2044
|
+
case "ThrottlingException":
|
|
2045
|
+
case "com.amazonaws.networkfirewall#ThrottlingException":
|
|
2046
|
+
response = {
|
|
2047
|
+
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2048
|
+
name: errorCode,
|
|
2049
|
+
$metadata: deserializeMetadata(output),
|
|
2050
|
+
};
|
|
2051
|
+
break;
|
|
1923
2052
|
default:
|
|
1924
2053
|
const parsedBody = parsedOutput.body;
|
|
1925
2054
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2825,6 +2954,13 @@ const serializeAws_json1_0DescribeResourcePolicyRequest = (input, context) => {
|
|
|
2825
2954
|
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
2826
2955
|
};
|
|
2827
2956
|
};
|
|
2957
|
+
const serializeAws_json1_0DescribeRuleGroupMetadataRequest = (input, context) => {
|
|
2958
|
+
return {
|
|
2959
|
+
...(input.RuleGroupArn !== undefined && input.RuleGroupArn !== null && { RuleGroupArn: input.RuleGroupArn }),
|
|
2960
|
+
...(input.RuleGroupName !== undefined && input.RuleGroupName !== null && { RuleGroupName: input.RuleGroupName }),
|
|
2961
|
+
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
2962
|
+
};
|
|
2963
|
+
};
|
|
2828
2964
|
const serializeAws_json1_0DescribeRuleGroupRequest = (input, context) => {
|
|
2829
2965
|
return {
|
|
2830
2966
|
...(input.RuleGroupArn !== undefined && input.RuleGroupArn !== null && { RuleGroupArn: input.RuleGroupArn }),
|
|
@@ -2946,6 +3082,7 @@ const serializeAws_json1_0ListRuleGroupsRequest = (input, context) => {
|
|
|
2946
3082
|
return {
|
|
2947
3083
|
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
2948
3084
|
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
3085
|
+
...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
|
|
2949
3086
|
};
|
|
2950
3087
|
};
|
|
2951
3088
|
const serializeAws_json1_0ListTagsForResourceRequest = (input, context) => {
|
|
@@ -3190,8 +3327,15 @@ const serializeAws_json1_0StatefulRule = (input, context) => {
|
|
|
3190
3327
|
input.RuleOptions !== null && { RuleOptions: serializeAws_json1_0RuleOptions(input.RuleOptions, context) }),
|
|
3191
3328
|
};
|
|
3192
3329
|
};
|
|
3330
|
+
const serializeAws_json1_0StatefulRuleGroupOverride = (input, context) => {
|
|
3331
|
+
return {
|
|
3332
|
+
...(input.Action !== undefined && input.Action !== null && { Action: input.Action }),
|
|
3333
|
+
};
|
|
3334
|
+
};
|
|
3193
3335
|
const serializeAws_json1_0StatefulRuleGroupReference = (input, context) => {
|
|
3194
3336
|
return {
|
|
3337
|
+
...(input.Override !== undefined &&
|
|
3338
|
+
input.Override !== null && { Override: serializeAws_json1_0StatefulRuleGroupOverride(input.Override, context) }),
|
|
3195
3339
|
...(input.Priority !== undefined && input.Priority !== null && { Priority: input.Priority }),
|
|
3196
3340
|
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
3197
3341
|
};
|
|
@@ -3608,6 +3752,18 @@ const deserializeAws_json1_0DescribeResourcePolicyResponse = (output, context) =
|
|
|
3608
3752
|
Policy: smithy_client_1.expectString(output.Policy),
|
|
3609
3753
|
};
|
|
3610
3754
|
};
|
|
3755
|
+
const deserializeAws_json1_0DescribeRuleGroupMetadataResponse = (output, context) => {
|
|
3756
|
+
return {
|
|
3757
|
+
Capacity: smithy_client_1.expectInt32(output.Capacity),
|
|
3758
|
+
Description: smithy_client_1.expectString(output.Description),
|
|
3759
|
+
RuleGroupArn: smithy_client_1.expectString(output.RuleGroupArn),
|
|
3760
|
+
RuleGroupName: smithy_client_1.expectString(output.RuleGroupName),
|
|
3761
|
+
StatefulRuleOptions: output.StatefulRuleOptions !== undefined && output.StatefulRuleOptions !== null
|
|
3762
|
+
? deserializeAws_json1_0StatefulRuleOptions(output.StatefulRuleOptions, context)
|
|
3763
|
+
: undefined,
|
|
3764
|
+
Type: smithy_client_1.expectString(output.Type),
|
|
3765
|
+
};
|
|
3766
|
+
};
|
|
3611
3767
|
const deserializeAws_json1_0DescribeRuleGroupResponse = (output, context) => {
|
|
3612
3768
|
return {
|
|
3613
3769
|
RuleGroup: output.RuleGroup !== undefined && output.RuleGroup !== null
|
|
@@ -4137,8 +4293,16 @@ const deserializeAws_json1_0StatefulRule = (output, context) => {
|
|
|
4137
4293
|
: undefined,
|
|
4138
4294
|
};
|
|
4139
4295
|
};
|
|
4296
|
+
const deserializeAws_json1_0StatefulRuleGroupOverride = (output, context) => {
|
|
4297
|
+
return {
|
|
4298
|
+
Action: smithy_client_1.expectString(output.Action),
|
|
4299
|
+
};
|
|
4300
|
+
};
|
|
4140
4301
|
const deserializeAws_json1_0StatefulRuleGroupReference = (output, context) => {
|
|
4141
4302
|
return {
|
|
4303
|
+
Override: output.Override !== undefined && output.Override !== null
|
|
4304
|
+
? deserializeAws_json1_0StatefulRuleGroupOverride(output.Override, context)
|
|
4305
|
+
: undefined,
|
|
4142
4306
|
Priority: smithy_client_1.expectInt32(output.Priority),
|
|
4143
4307
|
ResourceArn: smithy_client_1.expectString(output.ResourceArn),
|
|
4144
4308
|
};
|
|
@@ -15,10 +15,8 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
|
15
15
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
|
-
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
18
|
const getRuntimeConfig = (config) => {
|
|
20
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
21
|
-
smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
|
|
22
20
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
21
|
return {
|
|
24
22
|
...clientSharedValues,
|
|
@@ -13,6 +13,7 @@ import { DescribeFirewallPolicyCommand, } from "./commands/DescribeFirewallPolic
|
|
|
13
13
|
import { DescribeLoggingConfigurationCommand, } from "./commands/DescribeLoggingConfigurationCommand";
|
|
14
14
|
import { DescribeResourcePolicyCommand, } from "./commands/DescribeResourcePolicyCommand";
|
|
15
15
|
import { DescribeRuleGroupCommand, } from "./commands/DescribeRuleGroupCommand";
|
|
16
|
+
import { DescribeRuleGroupMetadataCommand, } from "./commands/DescribeRuleGroupMetadataCommand";
|
|
16
17
|
import { DisassociateSubnetsCommand, } from "./commands/DisassociateSubnetsCommand";
|
|
17
18
|
import { ListFirewallPoliciesCommand, } from "./commands/ListFirewallPoliciesCommand";
|
|
18
19
|
import { ListFirewallsCommand, } from "./commands/ListFirewallsCommand";
|
|
@@ -230,6 +231,20 @@ var NetworkFirewall = (function (_super) {
|
|
|
230
231
|
return this.send(command, optionsOrCb);
|
|
231
232
|
}
|
|
232
233
|
};
|
|
234
|
+
NetworkFirewall.prototype.describeRuleGroupMetadata = function (args, optionsOrCb, cb) {
|
|
235
|
+
var command = new DescribeRuleGroupMetadataCommand(args);
|
|
236
|
+
if (typeof optionsOrCb === "function") {
|
|
237
|
+
this.send(command, optionsOrCb);
|
|
238
|
+
}
|
|
239
|
+
else if (typeof cb === "function") {
|
|
240
|
+
if (typeof optionsOrCb !== "object")
|
|
241
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
242
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
243
|
+
}
|
|
244
|
+
else {
|
|
245
|
+
return this.send(command, optionsOrCb);
|
|
246
|
+
}
|
|
247
|
+
};
|
|
233
248
|
NetworkFirewall.prototype.disassociateSubnets = function (args, optionsOrCb, cb) {
|
|
234
249
|
var command = new DisassociateSubnetsCommand(args);
|
|
235
250
|
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 { DescribeRuleGroupMetadataRequest, DescribeRuleGroupMetadataResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_0DescribeRuleGroupMetadataCommand, serializeAws_json1_0DescribeRuleGroupMetadataCommand, } from "../protocols/Aws_json1_0";
|
|
6
|
+
var DescribeRuleGroupMetadataCommand = (function (_super) {
|
|
7
|
+
__extends(DescribeRuleGroupMetadataCommand, _super);
|
|
8
|
+
function DescribeRuleGroupMetadataCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DescribeRuleGroupMetadataCommand.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 = "DescribeRuleGroupMetadataCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DescribeRuleGroupMetadataRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DescribeRuleGroupMetadataResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DescribeRuleGroupMetadataCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_0DescribeRuleGroupMetadataCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DescribeRuleGroupMetadataCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_0DescribeRuleGroupMetadataCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DescribeRuleGroupMetadataCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DescribeRuleGroupMetadataCommand };
|
|
@@ -12,6 +12,7 @@ export * from "./DescribeFirewallPolicyCommand";
|
|
|
12
12
|
export * from "./DescribeLoggingConfigurationCommand";
|
|
13
13
|
export * from "./DescribeResourcePolicyCommand";
|
|
14
14
|
export * from "./DescribeRuleGroupCommand";
|
|
15
|
+
export * from "./DescribeRuleGroupMetadataCommand";
|
|
15
16
|
export * from "./DisassociateSubnetsCommand";
|
|
16
17
|
export * from "./ListFirewallPoliciesCommand";
|
|
17
18
|
export * from "./ListFirewallsCommand";
|
package/dist-es/endpoints.js
CHANGED
|
@@ -131,6 +131,14 @@ export var StatefulEngineOptions;
|
|
|
131
131
|
(function (StatefulEngineOptions) {
|
|
132
132
|
StatefulEngineOptions.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
133
133
|
})(StatefulEngineOptions || (StatefulEngineOptions = {}));
|
|
134
|
+
export var OverrideAction;
|
|
135
|
+
(function (OverrideAction) {
|
|
136
|
+
OverrideAction["DROP_TO_ALERT"] = "DROP_TO_ALERT";
|
|
137
|
+
})(OverrideAction || (OverrideAction = {}));
|
|
138
|
+
export var StatefulRuleGroupOverride;
|
|
139
|
+
(function (StatefulRuleGroupOverride) {
|
|
140
|
+
StatefulRuleGroupOverride.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
141
|
+
})(StatefulRuleGroupOverride || (StatefulRuleGroupOverride = {}));
|
|
134
142
|
export var StatefulRuleGroupReference;
|
|
135
143
|
(function (StatefulRuleGroupReference) {
|
|
136
144
|
StatefulRuleGroupReference.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -398,6 +406,14 @@ export var DescribeRuleGroupResponse;
|
|
|
398
406
|
(function (DescribeRuleGroupResponse) {
|
|
399
407
|
DescribeRuleGroupResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
400
408
|
})(DescribeRuleGroupResponse || (DescribeRuleGroupResponse = {}));
|
|
409
|
+
export var DescribeRuleGroupMetadataRequest;
|
|
410
|
+
(function (DescribeRuleGroupMetadataRequest) {
|
|
411
|
+
DescribeRuleGroupMetadataRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
412
|
+
})(DescribeRuleGroupMetadataRequest || (DescribeRuleGroupMetadataRequest = {}));
|
|
413
|
+
export var DescribeRuleGroupMetadataResponse;
|
|
414
|
+
(function (DescribeRuleGroupMetadataResponse) {
|
|
415
|
+
DescribeRuleGroupMetadataResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
416
|
+
})(DescribeRuleGroupMetadataResponse || (DescribeRuleGroupMetadataResponse = {}));
|
|
401
417
|
export var DisassociateSubnetsRequest;
|
|
402
418
|
(function (DisassociateSubnetsRequest) {
|
|
403
419
|
DisassociateSubnetsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -430,6 +446,11 @@ export var ListFirewallsResponse;
|
|
|
430
446
|
(function (ListFirewallsResponse) {
|
|
431
447
|
ListFirewallsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
432
448
|
})(ListFirewallsResponse || (ListFirewallsResponse = {}));
|
|
449
|
+
export var ResourceManagedStatus;
|
|
450
|
+
(function (ResourceManagedStatus) {
|
|
451
|
+
ResourceManagedStatus["ACCOUNT"] = "ACCOUNT";
|
|
452
|
+
ResourceManagedStatus["MANAGED"] = "MANAGED";
|
|
453
|
+
})(ResourceManagedStatus || (ResourceManagedStatus = {}));
|
|
433
454
|
export var ListRuleGroupsRequest;
|
|
434
455
|
(function (ListRuleGroupsRequest) {
|
|
435
456
|
ListRuleGroupsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|