@aws-sdk/client-network-firewall 3.78.0 → 3.81.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 CHANGED
@@ -3,6 +3,33 @@
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.81.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.80.0...v3.81.0) (2022-04-29)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-network-firewall
9
+
10
+
11
+
12
+
13
+
14
+ # [3.80.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.79.0...v3.80.0) (2022-04-28)
15
+
16
+
17
+ ### Features
18
+
19
+ * **client-network-firewall:** AWS Network Firewall adds support for stateful threat signature AWS managed rule groups. ([790c085](https://github.com/aws/aws-sdk-js-v3/commit/790c085ed85d1154cffc6aced1f32ed9f6e3e66b))
20
+
21
+
22
+
23
+
24
+
25
+ # [3.79.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.78.0...v3.79.0) (2022-04-27)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-network-firewall
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.78.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.77.0...v3.78.0) (2022-04-26)
7
34
 
8
35
 
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
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;
4
+ exports.FirewallPolicyMetadata = exports.FirewallMetadata = exports.DisassociateSubnetsResponse = exports.DisassociateSubnetsRequest = exports.DescribeRuleGroupMetadataResponse = exports.DescribeRuleGroupMetadataRequest = exports.DescribeRuleGroupResponse = exports.DescribeRuleGroupRequest = exports.DescribeResourcePolicyResponse = exports.DescribeResourcePolicyRequest = exports.DescribeLoggingConfigurationResponse = exports.LoggingConfiguration = exports.LogDestinationConfig = exports.LogType = exports.LogDestinationType = exports.DescribeLoggingConfigurationRequest = exports.DescribeFirewallPolicyResponse = exports.DescribeFirewallPolicyRequest = exports.DescribeFirewallResponse = exports.DescribeFirewallRequest = exports.DeleteRuleGroupResponse = exports.DeleteRuleGroupRequest = exports.InvalidResourcePolicyException = exports.DeleteResourcePolicyResponse = exports.DeleteResourcePolicyRequest = exports.DeleteFirewallPolicyResponse = exports.DeleteFirewallPolicyRequest = exports.UnsupportedOperationException = exports.DeleteFirewallResponse = exports.DeleteFirewallRequest = exports.CreateRuleGroupResponse = exports.RuleGroupResponse = exports.CreateRuleGroupRequest = exports.RuleGroupType = exports.SourceMetadata = exports.RuleGroup = exports.StatefulRuleOptions = exports.RuleVariables = exports.PortSet = exports.IPSet = exports.RulesSource = exports.StatelessRulesAndCustomActions = exports.StatelessRule = exports.RuleDefinition = exports.MatchAttributes = exports.TCPFlagField = exports.TCPFlag = exports.PortRange = exports.StatefulRule = exports.RuleOption = void 0;
5
+ exports.UpdateSubnetChangeProtectionResponse = exports.UpdateSubnetChangeProtectionRequest = exports.UpdateRuleGroupResponse = exports.UpdateRuleGroupRequest = exports.UpdateLoggingConfigurationResponse = exports.UpdateLoggingConfigurationRequest = exports.UpdateFirewallPolicyChangeProtectionResponse = exports.UpdateFirewallPolicyChangeProtectionRequest = exports.UpdateFirewallPolicyResponse = exports.UpdateFirewallPolicyRequest = exports.UpdateFirewallEncryptionConfigurationResponse = exports.UpdateFirewallEncryptionConfigurationRequest = exports.UpdateFirewallDescriptionResponse = exports.UpdateFirewallDescriptionRequest = exports.UpdateFirewallDeleteProtectionResponse = exports.UpdateFirewallDeleteProtectionRequest = exports.ResourceOwnerCheckException = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.PutResourcePolicyResponse = exports.PutResourcePolicyRequest = exports.LogDestinationPermissionException = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListRuleGroupsResponse = exports.RuleGroupMetadata = exports.ListRuleGroupsRequest = exports.ResourceManagedStatus = exports.ResourceManagedType = exports.ListFirewallsResponse = exports.ListFirewallsRequest = exports.ListFirewallPoliciesResponse = exports.ListFirewallPoliciesRequest = void 0;
6
6
  const NetworkFirewallServiceException_1 = require("./NetworkFirewallServiceException");
7
7
  var Dimension;
8
8
  (function (Dimension) {
@@ -470,6 +470,12 @@ var RuleGroup;
470
470
  ...obj,
471
471
  });
472
472
  })(RuleGroup = exports.RuleGroup || (exports.RuleGroup = {}));
473
+ var SourceMetadata;
474
+ (function (SourceMetadata) {
475
+ SourceMetadata.filterSensitiveLog = (obj) => ({
476
+ ...obj,
477
+ });
478
+ })(SourceMetadata = exports.SourceMetadata || (exports.SourceMetadata = {}));
473
479
  var RuleGroupType;
474
480
  (function (RuleGroupType) {
475
481
  RuleGroupType["STATEFUL"] = "STATEFUL";
@@ -712,6 +718,11 @@ var ListFirewallsResponse;
712
718
  ...obj,
713
719
  });
714
720
  })(ListFirewallsResponse = exports.ListFirewallsResponse || (exports.ListFirewallsResponse = {}));
721
+ var ResourceManagedType;
722
+ (function (ResourceManagedType) {
723
+ ResourceManagedType["AWS_MANAGED_DOMAIN_LISTS"] = "AWS_MANAGED_DOMAIN_LISTS";
724
+ ResourceManagedType["AWS_MANAGED_THREAT_SIGNATURES"] = "AWS_MANAGED_THREAT_SIGNATURES";
725
+ })(ResourceManagedType = exports.ResourceManagedType || (exports.ResourceManagedType = {}));
715
726
  var ResourceManagedStatus;
716
727
  (function (ResourceManagedStatus) {
717
728
  ResourceManagedStatus["ACCOUNT"] = "ACCOUNT";
@@ -2016,6 +2016,10 @@ const serializeAws_json1_0CreateRuleGroupRequest = (input, context) => {
2016
2016
  input.RuleGroup !== null && { RuleGroup: serializeAws_json1_0RuleGroup(input.RuleGroup, context) }),
2017
2017
  ...(input.RuleGroupName !== undefined && input.RuleGroupName !== null && { RuleGroupName: input.RuleGroupName }),
2018
2018
  ...(input.Rules !== undefined && input.Rules !== null && { Rules: input.Rules }),
2019
+ ...(input.SourceMetadata !== undefined &&
2020
+ input.SourceMetadata !== null && {
2021
+ SourceMetadata: serializeAws_json1_0SourceMetadata(input.SourceMetadata, context),
2022
+ }),
2019
2023
  ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
2020
2024
  ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
2021
2025
  };
@@ -2222,9 +2226,11 @@ const serializeAws_json1_0ListFirewallsRequest = (input, context) => {
2222
2226
  };
2223
2227
  const serializeAws_json1_0ListRuleGroupsRequest = (input, context) => {
2224
2228
  return {
2229
+ ...(input.ManagedType !== undefined && input.ManagedType !== null && { ManagedType: input.ManagedType }),
2225
2230
  ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
2226
2231
  ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
2227
2232
  ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
2233
+ ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
2228
2234
  };
2229
2235
  };
2230
2236
  const serializeAws_json1_0ListTagsForResourceRequest = (input, context) => {
@@ -2445,6 +2451,13 @@ const serializeAws_json1_0Settings = (input, context) => {
2445
2451
  return entry;
2446
2452
  });
2447
2453
  };
2454
+ const serializeAws_json1_0SourceMetadata = (input, context) => {
2455
+ return {
2456
+ ...(input.SourceArn !== undefined && input.SourceArn !== null && { SourceArn: input.SourceArn }),
2457
+ ...(input.SourceUpdateToken !== undefined &&
2458
+ input.SourceUpdateToken !== null && { SourceUpdateToken: input.SourceUpdateToken }),
2459
+ };
2460
+ };
2448
2461
  const serializeAws_json1_0StatefulActions = (input, context) => {
2449
2462
  return input
2450
2463
  .filter((e) => e != null)
@@ -2727,6 +2740,10 @@ const serializeAws_json1_0UpdateRuleGroupRequest = (input, context) => {
2727
2740
  ...(input.RuleGroupArn !== undefined && input.RuleGroupArn !== null && { RuleGroupArn: input.RuleGroupArn }),
2728
2741
  ...(input.RuleGroupName !== undefined && input.RuleGroupName !== null && { RuleGroupName: input.RuleGroupName }),
2729
2742
  ...(input.Rules !== undefined && input.Rules !== null && { Rules: input.Rules }),
2743
+ ...(input.SourceMetadata !== undefined &&
2744
+ input.SourceMetadata !== null && {
2745
+ SourceMetadata: serializeAws_json1_0SourceMetadata(input.SourceMetadata, context),
2746
+ }),
2730
2747
  ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
2731
2748
  ...(input.UpdateToken !== undefined && input.UpdateToken !== null && { UpdateToken: input.UpdateToken }),
2732
2749
  };
@@ -2919,6 +2936,9 @@ const deserializeAws_json1_0DescribeRuleGroupMetadataResponse = (output, context
2919
2936
  return {
2920
2937
  Capacity: (0, smithy_client_1.expectInt32)(output.Capacity),
2921
2938
  Description: (0, smithy_client_1.expectString)(output.Description),
2939
+ LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
2940
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
2941
+ : undefined,
2922
2942
  RuleGroupArn: (0, smithy_client_1.expectString)(output.RuleGroupArn),
2923
2943
  RuleGroupName: (0, smithy_client_1.expectString)(output.RuleGroupName),
2924
2944
  StatefulRuleOptions: output.StatefulRuleOptions !== undefined && output.StatefulRuleOptions !== null
@@ -3052,6 +3072,9 @@ const deserializeAws_json1_0FirewallPolicyResponse = (output, context) => {
3052
3072
  FirewallPolicyId: (0, smithy_client_1.expectString)(output.FirewallPolicyId),
3053
3073
  FirewallPolicyName: (0, smithy_client_1.expectString)(output.FirewallPolicyName),
3054
3074
  FirewallPolicyStatus: (0, smithy_client_1.expectString)(output.FirewallPolicyStatus),
3075
+ LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
3076
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
3077
+ : undefined,
3055
3078
  NumberOfAssociations: (0, smithy_client_1.expectInt32)(output.NumberOfAssociations),
3056
3079
  Tags: output.Tags !== undefined && output.Tags !== null
3057
3080
  ? deserializeAws_json1_0TagList(output.Tags, context)
@@ -3358,11 +3381,18 @@ const deserializeAws_json1_0RuleGroupResponse = (output, context) => {
3358
3381
  EncryptionConfiguration: output.EncryptionConfiguration !== undefined && output.EncryptionConfiguration !== null
3359
3382
  ? deserializeAws_json1_0EncryptionConfiguration(output.EncryptionConfiguration, context)
3360
3383
  : undefined,
3384
+ LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
3385
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
3386
+ : undefined,
3361
3387
  NumberOfAssociations: (0, smithy_client_1.expectInt32)(output.NumberOfAssociations),
3362
3388
  RuleGroupArn: (0, smithy_client_1.expectString)(output.RuleGroupArn),
3363
3389
  RuleGroupId: (0, smithy_client_1.expectString)(output.RuleGroupId),
3364
3390
  RuleGroupName: (0, smithy_client_1.expectString)(output.RuleGroupName),
3365
3391
  RuleGroupStatus: (0, smithy_client_1.expectString)(output.RuleGroupStatus),
3392
+ SnsTopic: (0, smithy_client_1.expectString)(output.SnsTopic),
3393
+ SourceMetadata: output.SourceMetadata !== undefined && output.SourceMetadata !== null
3394
+ ? deserializeAws_json1_0SourceMetadata(output.SourceMetadata, context)
3395
+ : undefined,
3366
3396
  Tags: output.Tags !== undefined && output.Tags !== null
3367
3397
  ? deserializeAws_json1_0TagList(output.Tags, context)
3368
3398
  : undefined,
@@ -3456,6 +3486,12 @@ const deserializeAws_json1_0Settings = (output, context) => {
3456
3486
  });
3457
3487
  return retVal;
3458
3488
  };
3489
+ const deserializeAws_json1_0SourceMetadata = (output, context) => {
3490
+ return {
3491
+ SourceArn: (0, smithy_client_1.expectString)(output.SourceArn),
3492
+ SourceUpdateToken: (0, smithy_client_1.expectString)(output.SourceUpdateToken),
3493
+ };
3494
+ };
3459
3495
  const deserializeAws_json1_0StatefulActions = (output, context) => {
3460
3496
  const retVal = (output || [])
3461
3497
  .filter((e) => e != null)
@@ -372,6 +372,10 @@ export var RuleGroup;
372
372
  (function (RuleGroup) {
373
373
  RuleGroup.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
374
374
  })(RuleGroup || (RuleGroup = {}));
375
+ export var SourceMetadata;
376
+ (function (SourceMetadata) {
377
+ SourceMetadata.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
378
+ })(SourceMetadata || (SourceMetadata = {}));
375
379
  export var RuleGroupType;
376
380
  (function (RuleGroupType) {
377
381
  RuleGroupType["STATEFUL"] = "STATEFUL";
@@ -546,6 +550,11 @@ export var ListFirewallsResponse;
546
550
  (function (ListFirewallsResponse) {
547
551
  ListFirewallsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
548
552
  })(ListFirewallsResponse || (ListFirewallsResponse = {}));
553
+ export var ResourceManagedType;
554
+ (function (ResourceManagedType) {
555
+ ResourceManagedType["AWS_MANAGED_DOMAIN_LISTS"] = "AWS_MANAGED_DOMAIN_LISTS";
556
+ ResourceManagedType["AWS_MANAGED_THREAT_SIGNATURES"] = "AWS_MANAGED_THREAT_SIGNATURES";
557
+ })(ResourceManagedType || (ResourceManagedType = {}));
549
558
  export var ResourceManagedStatus;
550
559
  (function (ResourceManagedStatus) {
551
560
  ResourceManagedStatus["ACCOUNT"] = "ACCOUNT";
@@ -1,6 +1,6 @@
1
1
  import { __assign, __awaiter, __generator, __read } from "tslib";
2
2
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
- import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectString as __expectString, } from "@aws-sdk/smithy-client";
3
+ import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
4
4
  import { InsufficientCapacityException, InternalServerError, InvalidOperationException, InvalidRequestException, InvalidResourcePolicyException, InvalidTokenException, LimitExceededException, LogDestinationPermissionException, ResourceNotFoundException, ResourceOwnerCheckException, ThrottlingException, UnsupportedOperationException, } from "../models/models_0";
5
5
  import { NetworkFirewallServiceException as __BaseException } from "../models/NetworkFirewallServiceException";
6
6
  export var serializeAws_json1_0AssociateFirewallPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -2556,11 +2556,14 @@ var serializeAws_json1_0CreateFirewallRequest = function (input, context) {
2556
2556
  })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) })), (input.VpcId !== undefined && input.VpcId !== null && { VpcId: input.VpcId }));
2557
2557
  };
2558
2558
  var serializeAws_json1_0CreateRuleGroupRequest = function (input, context) {
2559
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Capacity !== undefined && input.Capacity !== null && { Capacity: input.Capacity })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.DryRun !== undefined && input.DryRun !== null && { DryRun: input.DryRun })), (input.EncryptionConfiguration !== undefined &&
2559
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Capacity !== undefined && input.Capacity !== null && { Capacity: input.Capacity })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.DryRun !== undefined && input.DryRun !== null && { DryRun: input.DryRun })), (input.EncryptionConfiguration !== undefined &&
2560
2560
  input.EncryptionConfiguration !== null && {
2561
2561
  EncryptionConfiguration: serializeAws_json1_0EncryptionConfiguration(input.EncryptionConfiguration, context),
2562
2562
  })), (input.RuleGroup !== undefined &&
2563
- input.RuleGroup !== null && { RuleGroup: serializeAws_json1_0RuleGroup(input.RuleGroup, context) })), (input.RuleGroupName !== undefined && input.RuleGroupName !== null && { RuleGroupName: input.RuleGroupName })), (input.Rules !== undefined && input.Rules !== null && { Rules: input.Rules })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
2563
+ input.RuleGroup !== null && { RuleGroup: serializeAws_json1_0RuleGroup(input.RuleGroup, context) })), (input.RuleGroupName !== undefined && input.RuleGroupName !== null && { RuleGroupName: input.RuleGroupName })), (input.Rules !== undefined && input.Rules !== null && { Rules: input.Rules })), (input.SourceMetadata !== undefined &&
2564
+ input.SourceMetadata !== null && {
2565
+ SourceMetadata: serializeAws_json1_0SourceMetadata(input.SourceMetadata, context),
2566
+ })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
2564
2567
  };
2565
2568
  var serializeAws_json1_0CustomAction = function (input, context) {
2566
2569
  return __assign(__assign({}, (input.ActionDefinition !== undefined &&
@@ -2694,7 +2697,7 @@ var serializeAws_json1_0ListFirewallsRequest = function (input, context) {
2694
2697
  input.VpcIds !== null && { VpcIds: serializeAws_json1_0VpcIds(input.VpcIds, context) }));
2695
2698
  };
2696
2699
  var serializeAws_json1_0ListRuleGroupsRequest = function (input, context) {
2697
- return __assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }));
2700
+ return __assign(__assign(__assign(__assign(__assign({}, (input.ManagedType !== undefined && input.ManagedType !== null && { ManagedType: input.ManagedType })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
2698
2701
  };
2699
2702
  var serializeAws_json1_0ListTagsForResourceRequest = function (input, context) {
2700
2703
  return __assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }));
@@ -2863,6 +2866,10 @@ var serializeAws_json1_0Settings = function (input, context) {
2863
2866
  return entry;
2864
2867
  });
2865
2868
  };
2869
+ var serializeAws_json1_0SourceMetadata = function (input, context) {
2870
+ return __assign(__assign({}, (input.SourceArn !== undefined && input.SourceArn !== null && { SourceArn: input.SourceArn })), (input.SourceUpdateToken !== undefined &&
2871
+ input.SourceUpdateToken !== null && { SourceUpdateToken: input.SourceUpdateToken }));
2872
+ };
2866
2873
  var serializeAws_json1_0StatefulActions = function (input, context) {
2867
2874
  return input
2868
2875
  .filter(function (e) { return e != null; })
@@ -3064,11 +3071,14 @@ var serializeAws_json1_0UpdateLoggingConfigurationRequest = function (input, con
3064
3071
  }));
3065
3072
  };
3066
3073
  var serializeAws_json1_0UpdateRuleGroupRequest = function (input, context) {
3067
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.DryRun !== undefined && input.DryRun !== null && { DryRun: input.DryRun })), (input.EncryptionConfiguration !== undefined &&
3074
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.DryRun !== undefined && input.DryRun !== null && { DryRun: input.DryRun })), (input.EncryptionConfiguration !== undefined &&
3068
3075
  input.EncryptionConfiguration !== null && {
3069
3076
  EncryptionConfiguration: serializeAws_json1_0EncryptionConfiguration(input.EncryptionConfiguration, context),
3070
3077
  })), (input.RuleGroup !== undefined &&
3071
- input.RuleGroup !== null && { RuleGroup: serializeAws_json1_0RuleGroup(input.RuleGroup, context) })), (input.RuleGroupArn !== undefined && input.RuleGroupArn !== null && { RuleGroupArn: input.RuleGroupArn })), (input.RuleGroupName !== undefined && input.RuleGroupName !== null && { RuleGroupName: input.RuleGroupName })), (input.Rules !== undefined && input.Rules !== null && { Rules: input.Rules })), (input.Type !== undefined && input.Type !== null && { Type: input.Type })), (input.UpdateToken !== undefined && input.UpdateToken !== null && { UpdateToken: input.UpdateToken }));
3078
+ input.RuleGroup !== null && { RuleGroup: serializeAws_json1_0RuleGroup(input.RuleGroup, context) })), (input.RuleGroupArn !== undefined && input.RuleGroupArn !== null && { RuleGroupArn: input.RuleGroupArn })), (input.RuleGroupName !== undefined && input.RuleGroupName !== null && { RuleGroupName: input.RuleGroupName })), (input.Rules !== undefined && input.Rules !== null && { Rules: input.Rules })), (input.SourceMetadata !== undefined &&
3079
+ input.SourceMetadata !== null && {
3080
+ SourceMetadata: serializeAws_json1_0SourceMetadata(input.SourceMetadata, context),
3081
+ })), (input.Type !== undefined && input.Type !== null && { Type: input.Type })), (input.UpdateToken !== undefined && input.UpdateToken !== null && { UpdateToken: input.UpdateToken }));
3072
3082
  };
3073
3083
  var serializeAws_json1_0UpdateSubnetChangeProtectionRequest = function (input, context) {
3074
3084
  return __assign(__assign(__assign(__assign({}, (input.FirewallArn !== undefined && input.FirewallArn !== null && { FirewallArn: input.FirewallArn })), (input.FirewallName !== undefined && input.FirewallName !== null && { FirewallName: input.FirewallName })), (input.SubnetChangeProtection !== undefined &&
@@ -3253,6 +3263,9 @@ var deserializeAws_json1_0DescribeRuleGroupMetadataResponse = function (output,
3253
3263
  return {
3254
3264
  Capacity: __expectInt32(output.Capacity),
3255
3265
  Description: __expectString(output.Description),
3266
+ LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
3267
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
3268
+ : undefined,
3256
3269
  RuleGroupArn: __expectString(output.RuleGroupArn),
3257
3270
  RuleGroupName: __expectString(output.RuleGroupName),
3258
3271
  StatefulRuleOptions: output.StatefulRuleOptions !== undefined && output.StatefulRuleOptions !== null
@@ -3386,6 +3399,9 @@ var deserializeAws_json1_0FirewallPolicyResponse = function (output, context) {
3386
3399
  FirewallPolicyId: __expectString(output.FirewallPolicyId),
3387
3400
  FirewallPolicyName: __expectString(output.FirewallPolicyName),
3388
3401
  FirewallPolicyStatus: __expectString(output.FirewallPolicyStatus),
3402
+ LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
3403
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
3404
+ : undefined,
3389
3405
  NumberOfAssociations: __expectInt32(output.NumberOfAssociations),
3390
3406
  Tags: output.Tags !== undefined && output.Tags !== null
3391
3407
  ? deserializeAws_json1_0TagList(output.Tags, context)
@@ -3689,11 +3705,18 @@ var deserializeAws_json1_0RuleGroupResponse = function (output, context) {
3689
3705
  EncryptionConfiguration: output.EncryptionConfiguration !== undefined && output.EncryptionConfiguration !== null
3690
3706
  ? deserializeAws_json1_0EncryptionConfiguration(output.EncryptionConfiguration, context)
3691
3707
  : undefined,
3708
+ LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
3709
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
3710
+ : undefined,
3692
3711
  NumberOfAssociations: __expectInt32(output.NumberOfAssociations),
3693
3712
  RuleGroupArn: __expectString(output.RuleGroupArn),
3694
3713
  RuleGroupId: __expectString(output.RuleGroupId),
3695
3714
  RuleGroupName: __expectString(output.RuleGroupName),
3696
3715
  RuleGroupStatus: __expectString(output.RuleGroupStatus),
3716
+ SnsTopic: __expectString(output.SnsTopic),
3717
+ SourceMetadata: output.SourceMetadata !== undefined && output.SourceMetadata !== null
3718
+ ? deserializeAws_json1_0SourceMetadata(output.SourceMetadata, context)
3719
+ : undefined,
3697
3720
  Tags: output.Tags !== undefined && output.Tags !== null
3698
3721
  ? deserializeAws_json1_0TagList(output.Tags, context)
3699
3722
  : undefined,
@@ -3787,6 +3810,12 @@ var deserializeAws_json1_0Settings = function (output, context) {
3787
3810
  });
3788
3811
  return retVal;
3789
3812
  };
3813
+ var deserializeAws_json1_0SourceMetadata = function (output, context) {
3814
+ return {
3815
+ SourceArn: __expectString(output.SourceArn),
3816
+ SourceUpdateToken: __expectString(output.SourceUpdateToken),
3817
+ };
3818
+ };
3790
3819
  var deserializeAws_json1_0StatefulActions = function (output, context) {
3791
3820
  var retVal = (output || [])
3792
3821
  .filter(function (e) { return e != null; })
@@ -368,7 +368,7 @@ export interface EncryptionConfiguration {
368
368
  /**
369
369
  * <p>The type of Amazon Web Services KMS key to use for encryption of your Network Firewall resources.</p>
370
370
  */
371
- Type?: EncryptionType | string;
371
+ Type: EncryptionType | string | undefined;
372
372
  }
373
373
  export declare namespace EncryptionConfiguration {
374
374
  /**
@@ -986,6 +986,10 @@ export interface FirewallPolicyResponse {
986
986
  * <p>A complex type that contains the Amazon Web Services KMS encryption configuration settings for your firewall policy.</p>
987
987
  */
988
988
  EncryptionConfiguration?: EncryptionConfiguration;
989
+ /**
990
+ * <p>The last time that the firewall policy was changed.</p>
991
+ */
992
+ LastModifiedTime?: Date;
989
993
  }
990
994
  export declare namespace FirewallPolicyResponse {
991
995
  /**
@@ -1585,6 +1589,25 @@ export declare namespace RuleGroup {
1585
1589
  */
1586
1590
  const filterSensitiveLog: (obj: RuleGroup) => any;
1587
1591
  }
1592
+ /**
1593
+ * <p>High-level information about the managed rule group that your own rule group is copied from. You can use the the metadata to track version updates made to the originating rule group. You can retrieve all objects for a rule group by calling <a href="https://docs.aws.amazon.com/network-firewall/latest/APIReference/API_DescribeRuleGroup.html">DescribeRuleGroup</a>.</p>
1594
+ */
1595
+ export interface SourceMetadata {
1596
+ /**
1597
+ * <p>The Amazon Resource Name (ARN) of the rule group that your own rule group is copied from.</p>
1598
+ */
1599
+ SourceArn?: string;
1600
+ /**
1601
+ * <p>The update token of the Amazon Web Services managed rule group that your own rule group is copied from. To determine the update token for the managed rule group, call <a href="https://docs.aws.amazon.com/network-firewall/latest/APIReference/API_DescribeRuleGroup.html#networkfirewall-DescribeRuleGroup-response-UpdateToken">DescribeRuleGroup</a>.</p>
1602
+ */
1603
+ SourceUpdateToken?: string;
1604
+ }
1605
+ export declare namespace SourceMetadata {
1606
+ /**
1607
+ * @internal
1608
+ */
1609
+ const filterSensitiveLog: (obj: SourceMetadata) => any;
1610
+ }
1588
1611
  export declare enum RuleGroupType {
1589
1612
  STATEFUL = "STATEFUL",
1590
1613
  STATELESS = "STATELESS"
@@ -1681,6 +1704,10 @@ export interface CreateRuleGroupRequest {
1681
1704
  * <p>A complex type that contains settings for encryption of your rule group resources.</p>
1682
1705
  */
1683
1706
  EncryptionConfiguration?: EncryptionConfiguration;
1707
+ /**
1708
+ * <p>A complex type that contains metadata about the rule group that your own rule group is copied from. You can use the metadata to keep track of updates made to the originating rule group.</p>
1709
+ */
1710
+ SourceMetadata?: SourceMetadata;
1684
1711
  }
1685
1712
  export declare namespace CreateRuleGroupRequest {
1686
1713
  /**
@@ -1746,6 +1773,21 @@ export interface RuleGroupResponse {
1746
1773
  * <p>A complex type that contains the Amazon Web Services KMS encryption configuration settings for your rule group.</p>
1747
1774
  */
1748
1775
  EncryptionConfiguration?: EncryptionConfiguration;
1776
+ /**
1777
+ * <p>A complex type that contains metadata about the rule group that your own rule group is copied from. You can use the metadata to track the version updates made to the originating rule group.</p>
1778
+ */
1779
+ SourceMetadata?: SourceMetadata;
1780
+ /**
1781
+ * <p>The Amazon resource name (ARN) of the Amazon Simple Notification Service SNS topic that's
1782
+ * used to record changes to the managed rule group. You can subscribe to the SNS topic to receive
1783
+ * notifications when the managed rule group is modified, such as for new versions and for version
1784
+ * expiration. For more information, see the <a href="https://docs.aws.amazon.com/sns/latest/dg/welcome.html">Amazon Simple Notification Service Developer Guide.</a>.</p>
1785
+ */
1786
+ SnsTopic?: string;
1787
+ /**
1788
+ * <p>The last time that the rule group was changed.</p>
1789
+ */
1790
+ LastModifiedTime?: Date;
1749
1791
  }
1750
1792
  export declare namespace RuleGroupResponse {
1751
1793
  /**
@@ -2258,6 +2300,10 @@ export interface DescribeRuleGroupMetadataResponse {
2258
2300
  * <p>Additional options governing how Network Firewall handles the rule group. You can only use these for stateful rule groups.</p>
2259
2301
  */
2260
2302
  StatefulRuleOptions?: StatefulRuleOptions;
2303
+ /**
2304
+ * <p>The last time that the rule group was changed.</p>
2305
+ */
2306
+ LastModifiedTime?: Date;
2261
2307
  }
2262
2308
  export declare namespace DescribeRuleGroupMetadataResponse {
2263
2309
  /**
@@ -2445,6 +2491,10 @@ export declare namespace ListFirewallsResponse {
2445
2491
  */
2446
2492
  const filterSensitiveLog: (obj: ListFirewallsResponse) => any;
2447
2493
  }
2494
+ export declare enum ResourceManagedType {
2495
+ AWS_MANAGED_DOMAIN_LISTS = "AWS_MANAGED_DOMAIN_LISTS",
2496
+ AWS_MANAGED_THREAT_SIGNATURES = "AWS_MANAGED_THREAT_SIGNATURES"
2497
+ }
2448
2498
  export declare enum ResourceManagedStatus {
2449
2499
  ACCOUNT = "ACCOUNT",
2450
2500
  MANAGED = "MANAGED"
@@ -2468,6 +2518,14 @@ export interface ListRuleGroupsRequest {
2468
2518
  * <code>MANAGED</code> returns all available managed rule groups.</p>
2469
2519
  */
2470
2520
  Scope?: ResourceManagedStatus | string;
2521
+ /**
2522
+ * <p>Indicates the general category of the Amazon Web Services managed rule group.</p>
2523
+ */
2524
+ ManagedType?: ResourceManagedType | string;
2525
+ /**
2526
+ * <p>Indicates whether the rule group is stateless or stateful. If the rule group is stateless, it contains stateless rules. If it is stateful, it contains stateful rules.</p>
2527
+ */
2528
+ Type?: RuleGroupType | string;
2471
2529
  }
2472
2530
  export declare namespace ListRuleGroupsRequest {
2473
2531
  /**
@@ -3067,6 +3125,10 @@ export interface UpdateRuleGroupRequest {
3067
3125
  * <p>A complex type that contains settings for encryption of your rule group resources.</p>
3068
3126
  */
3069
3127
  EncryptionConfiguration?: EncryptionConfiguration;
3128
+ /**
3129
+ * <p>A complex type that contains metadata about the rule group that your own rule group is copied from. You can use the metadata to keep track of updates made to the originating rule group.</p>
3130
+ */
3131
+ SourceMetadata?: SourceMetadata;
3070
3132
  }
3071
3133
  export declare namespace UpdateRuleGroupRequest {
3072
3134
  /**
@@ -189,7 +189,7 @@ export interface EncryptionConfiguration {
189
189
 
190
190
  KeyId?: string;
191
191
 
192
- Type?: EncryptionType | string;
192
+ Type: EncryptionType | string | undefined;
193
193
  }
194
194
  export declare namespace EncryptionConfiguration {
195
195
 
@@ -454,6 +454,8 @@ export interface FirewallPolicyResponse {
454
454
  NumberOfAssociations?: number;
455
455
 
456
456
  EncryptionConfiguration?: EncryptionConfiguration;
457
+
458
+ LastModifiedTime?: Date;
457
459
  }
458
460
  export declare namespace FirewallPolicyResponse {
459
461
 
@@ -717,6 +719,17 @@ export declare namespace RuleGroup {
717
719
 
718
720
  const filterSensitiveLog: (obj: RuleGroup) => any;
719
721
  }
722
+
723
+ export interface SourceMetadata {
724
+
725
+ SourceArn?: string;
726
+
727
+ SourceUpdateToken?: string;
728
+ }
729
+ export declare namespace SourceMetadata {
730
+
731
+ const filterSensitiveLog: (obj: SourceMetadata) => any;
732
+ }
720
733
  export declare enum RuleGroupType {
721
734
  STATEFUL = "STATEFUL",
722
735
  STATELESS = "STATELESS"
@@ -740,6 +753,8 @@ export interface CreateRuleGroupRequest {
740
753
  DryRun?: boolean;
741
754
 
742
755
  EncryptionConfiguration?: EncryptionConfiguration;
756
+
757
+ SourceMetadata?: SourceMetadata;
743
758
  }
744
759
  export declare namespace CreateRuleGroupRequest {
745
760
 
@@ -769,6 +784,12 @@ export interface RuleGroupResponse {
769
784
  NumberOfAssociations?: number;
770
785
 
771
786
  EncryptionConfiguration?: EncryptionConfiguration;
787
+
788
+ SourceMetadata?: SourceMetadata;
789
+
790
+ SnsTopic?: string;
791
+
792
+ LastModifiedTime?: Date;
772
793
  }
773
794
  export declare namespace RuleGroupResponse {
774
795
 
@@ -1034,6 +1055,8 @@ export interface DescribeRuleGroupMetadataResponse {
1034
1055
  Capacity?: number;
1035
1056
 
1036
1057
  StatefulRuleOptions?: StatefulRuleOptions;
1058
+
1059
+ LastModifiedTime?: Date;
1037
1060
  }
1038
1061
  export declare namespace DescribeRuleGroupMetadataResponse {
1039
1062
 
@@ -1131,6 +1154,10 @@ export declare namespace ListFirewallsResponse {
1131
1154
 
1132
1155
  const filterSensitiveLog: (obj: ListFirewallsResponse) => any;
1133
1156
  }
1157
+ export declare enum ResourceManagedType {
1158
+ AWS_MANAGED_DOMAIN_LISTS = "AWS_MANAGED_DOMAIN_LISTS",
1159
+ AWS_MANAGED_THREAT_SIGNATURES = "AWS_MANAGED_THREAT_SIGNATURES"
1160
+ }
1134
1161
  export declare enum ResourceManagedStatus {
1135
1162
  ACCOUNT = "ACCOUNT",
1136
1163
  MANAGED = "MANAGED"
@@ -1142,6 +1169,10 @@ export interface ListRuleGroupsRequest {
1142
1169
  MaxResults?: number;
1143
1170
 
1144
1171
  Scope?: ResourceManagedStatus | string;
1172
+
1173
+ ManagedType?: ResourceManagedType | string;
1174
+
1175
+ Type?: RuleGroupType | string;
1145
1176
  }
1146
1177
  export declare namespace ListRuleGroupsRequest {
1147
1178
 
@@ -1439,6 +1470,8 @@ export interface UpdateRuleGroupRequest {
1439
1470
  DryRun?: boolean;
1440
1471
 
1441
1472
  EncryptionConfiguration?: EncryptionConfiguration;
1473
+
1474
+ SourceMetadata?: SourceMetadata;
1442
1475
  }
1443
1476
  export declare namespace UpdateRuleGroupRequest {
1444
1477
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-network-firewall",
3
3
  "description": "AWS SDK for JavaScript Network Firewall Client for Node.js, Browser and React Native",
4
- "version": "3.78.0",
4
+ "version": "3.81.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,21 +18,21 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.78.0",
22
- "@aws-sdk/config-resolver": "3.78.0",
23
- "@aws-sdk/credential-provider-node": "3.78.0",
21
+ "@aws-sdk/client-sts": "3.81.0",
22
+ "@aws-sdk/config-resolver": "3.80.0",
23
+ "@aws-sdk/credential-provider-node": "3.81.0",
24
24
  "@aws-sdk/fetch-http-handler": "3.78.0",
25
25
  "@aws-sdk/hash-node": "3.78.0",
26
26
  "@aws-sdk/invalid-dependency": "3.78.0",
27
27
  "@aws-sdk/middleware-content-length": "3.78.0",
28
28
  "@aws-sdk/middleware-host-header": "3.78.0",
29
29
  "@aws-sdk/middleware-logger": "3.78.0",
30
- "@aws-sdk/middleware-retry": "3.78.0",
30
+ "@aws-sdk/middleware-retry": "3.80.0",
31
31
  "@aws-sdk/middleware-serde": "3.78.0",
32
32
  "@aws-sdk/middleware-signing": "3.78.0",
33
33
  "@aws-sdk/middleware-stack": "3.78.0",
34
34
  "@aws-sdk/middleware-user-agent": "3.78.0",
35
- "@aws-sdk/node-config-provider": "3.78.0",
35
+ "@aws-sdk/node-config-provider": "3.80.0",
36
36
  "@aws-sdk/node-http-handler": "3.78.0",
37
37
  "@aws-sdk/protocol-http": "3.78.0",
38
38
  "@aws-sdk/smithy-client": "3.78.0",
@@ -43,9 +43,9 @@
43
43
  "@aws-sdk/util-body-length-browser": "3.55.0",
44
44
  "@aws-sdk/util-body-length-node": "3.55.0",
45
45
  "@aws-sdk/util-defaults-mode-browser": "3.78.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.78.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.81.0",
47
47
  "@aws-sdk/util-user-agent-browser": "3.78.0",
48
- "@aws-sdk/util-user-agent-node": "3.78.0",
48
+ "@aws-sdk/util-user-agent-node": "3.80.0",
49
49
  "@aws-sdk/util-utf8-browser": "3.55.0",
50
50
  "@aws-sdk/util-utf8-node": "3.55.0",
51
51
  "tslib": "^2.3.1"