@aws-sdk/client-network-firewall 3.131.0 → 3.135.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,17 @@
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.135.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.134.0...v3.135.0) (2022-07-21)
7
+
8
+
9
+ ### Features
10
+
11
+ * **client-network-firewall:** Network Firewall now supports referencing dynamic IP sets from stateful rule groups, for IP sets stored in Amazon VPC prefix lists. ([7fb7490](https://github.com/aws/aws-sdk-js-v3/commit/7fb7490a4c093be17407d16f77151f3fa7c3e03a))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.131.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.130.0...v3.131.0) (2022-07-15)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-network-firewall
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Header = exports.StatefulRuleProtocol = exports.StatefulRuleDirection = exports.StatefulAction = exports.RulesSourceList = exports.TargetType = exports.GeneratedRulesType = exports.CreateFirewallPolicyResponse = exports.FirewallPolicyResponse = exports.ResourceStatus = exports.CreateFirewallPolicyRequest = exports.FirewallPolicy = exports.StatelessRuleGroupReference = exports.CustomAction = exports.StatefulRuleGroupReference = exports.StatefulRuleGroupOverride = exports.OverrideAction = exports.StatefulEngineOptions = exports.RuleOrder = exports.LimitExceededException = exports.CreateFirewallResponse = exports.FirewallStatus = exports.SyncState = exports.PerObjectStatus = exports.PerObjectSyncStatus = exports.FirewallStatusValue = exports.Firewall = exports.CreateFirewallRequest = exports.Tag = exports.EncryptionConfiguration = exports.EncryptionType = exports.ConfigurationSyncState = exports.Attachment = exports.AttachmentStatus = exports.InsufficientCapacityException = exports.AssociateSubnetsResponse = exports.AssociateSubnetsRequest = exports.SubnetMapping = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InvalidTokenException = exports.InvalidRequestException = exports.InvalidOperationException = exports.InternalServerError = exports.AssociateFirewallPolicyResponse = exports.AssociateFirewallPolicyRequest = exports.Address = exports.ActionDefinition = exports.PublishMetricAction = exports.Dimension = void 0;
4
- exports.FirewallPolicyMetadata = exports.FirewallMetadata = exports.DisassociateSubnetsResponse = exports.DisassociateSubnetsRequest = exports.DescribeRuleGroupMetadataResponse = exports.DescribeRuleGroupMetadataRequest = exports.DescribeRuleGroupResponse = exports.DescribeRuleGroupRequest = exports.DescribeResourcePolicyResponse = exports.DescribeResourcePolicyRequest = exports.DescribeLoggingConfigurationResponse = exports.LoggingConfiguration = exports.LogDestinationConfig = exports.LogType = exports.LogDestinationType = exports.DescribeLoggingConfigurationRequest = exports.DescribeFirewallPolicyResponse = exports.DescribeFirewallPolicyRequest = exports.DescribeFirewallResponse = exports.DescribeFirewallRequest = exports.DeleteRuleGroupResponse = exports.DeleteRuleGroupRequest = exports.InvalidResourcePolicyException = exports.DeleteResourcePolicyResponse = exports.DeleteResourcePolicyRequest = exports.DeleteFirewallPolicyResponse = exports.DeleteFirewallPolicyRequest = exports.UnsupportedOperationException = exports.DeleteFirewallResponse = exports.DeleteFirewallRequest = exports.CreateRuleGroupResponse = exports.RuleGroupResponse = exports.CreateRuleGroupRequest = exports.RuleGroupType = exports.SourceMetadata = exports.RuleGroup = exports.StatefulRuleOptions = exports.RuleVariables = exports.PortSet = exports.IPSet = exports.RulesSource = exports.StatelessRulesAndCustomActions = exports.StatelessRule = exports.RuleDefinition = exports.MatchAttributes = exports.TCPFlagField = exports.TCPFlag = exports.PortRange = exports.StatefulRule = exports.RuleOption = void 0;
5
- exports.UpdateSubnetChangeProtectionResponse = exports.UpdateSubnetChangeProtectionRequest = exports.UpdateRuleGroupResponse = exports.UpdateRuleGroupRequest = exports.UpdateLoggingConfigurationResponse = exports.UpdateLoggingConfigurationRequest = exports.UpdateFirewallPolicyChangeProtectionResponse = exports.UpdateFirewallPolicyChangeProtectionRequest = exports.UpdateFirewallPolicyResponse = exports.UpdateFirewallPolicyRequest = exports.UpdateFirewallEncryptionConfigurationResponse = exports.UpdateFirewallEncryptionConfigurationRequest = exports.UpdateFirewallDescriptionResponse = exports.UpdateFirewallDescriptionRequest = exports.UpdateFirewallDeleteProtectionResponse = exports.UpdateFirewallDeleteProtectionRequest = exports.ResourceOwnerCheckException = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.PutResourcePolicyResponse = exports.PutResourcePolicyRequest = exports.LogDestinationPermissionException = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListRuleGroupsResponse = exports.RuleGroupMetadata = exports.ListRuleGroupsRequest = exports.ResourceManagedStatus = exports.ResourceManagedType = exports.ListFirewallsResponse = exports.ListFirewallsRequest = exports.ListFirewallPoliciesResponse = exports.ListFirewallPoliciesRequest = void 0;
3
+ exports.TargetType = exports.GeneratedRulesType = exports.ReferenceSets = exports.IPSetReference = 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.CapacityUsageSummary = exports.CIDRSummary = exports.IPSetMetadata = 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.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 = exports.Header = exports.StatefulRuleProtocol = exports.StatefulRuleDirection = exports.StatefulAction = exports.RulesSourceList = 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 = exports.FirewallPolicyMetadata = exports.FirewallMetadata = exports.DisassociateSubnetsResponse = exports.DisassociateSubnetsRequest = exports.DescribeRuleGroupMetadataResponse = void 0;
6
6
  const NetworkFirewallServiceException_1 = require("./NetworkFirewallServiceException");
7
7
  var Dimension;
8
8
  (function (Dimension) {
@@ -169,8 +169,27 @@ var Attachment;
169
169
  ...obj,
170
170
  });
171
171
  })(Attachment = exports.Attachment || (exports.Attachment = {}));
172
+ var IPSetMetadata;
173
+ (function (IPSetMetadata) {
174
+ IPSetMetadata.filterSensitiveLog = (obj) => ({
175
+ ...obj,
176
+ });
177
+ })(IPSetMetadata = exports.IPSetMetadata || (exports.IPSetMetadata = {}));
178
+ var CIDRSummary;
179
+ (function (CIDRSummary) {
180
+ CIDRSummary.filterSensitiveLog = (obj) => ({
181
+ ...obj,
182
+ });
183
+ })(CIDRSummary = exports.CIDRSummary || (exports.CIDRSummary = {}));
184
+ var CapacityUsageSummary;
185
+ (function (CapacityUsageSummary) {
186
+ CapacityUsageSummary.filterSensitiveLog = (obj) => ({
187
+ ...obj,
188
+ });
189
+ })(CapacityUsageSummary = exports.CapacityUsageSummary || (exports.CapacityUsageSummary = {}));
172
190
  var ConfigurationSyncState;
173
191
  (function (ConfigurationSyncState) {
192
+ ConfigurationSyncState["CAPACITY_CONSTRAINED"] = "CAPACITY_CONSTRAINED";
174
193
  ConfigurationSyncState["IN_SYNC"] = "IN_SYNC";
175
194
  ConfigurationSyncState["PENDING"] = "PENDING";
176
195
  })(ConfigurationSyncState = exports.ConfigurationSyncState || (exports.ConfigurationSyncState = {}));
@@ -211,6 +230,7 @@ var FirewallStatusValue;
211
230
  })(FirewallStatusValue = exports.FirewallStatusValue || (exports.FirewallStatusValue = {}));
212
231
  var PerObjectSyncStatus;
213
232
  (function (PerObjectSyncStatus) {
233
+ PerObjectSyncStatus["CAPACITY_CONSTRAINED"] = "CAPACITY_CONSTRAINED";
214
234
  PerObjectSyncStatus["IN_SYNC"] = "IN_SYNC";
215
235
  PerObjectSyncStatus["PENDING"] = "PENDING";
216
236
  })(PerObjectSyncStatus = exports.PerObjectSyncStatus || (exports.PerObjectSyncStatus = {}));
@@ -320,6 +340,18 @@ var CreateFirewallPolicyResponse;
320
340
  ...obj,
321
341
  });
322
342
  })(CreateFirewallPolicyResponse = exports.CreateFirewallPolicyResponse || (exports.CreateFirewallPolicyResponse = {}));
343
+ var IPSetReference;
344
+ (function (IPSetReference) {
345
+ IPSetReference.filterSensitiveLog = (obj) => ({
346
+ ...obj,
347
+ });
348
+ })(IPSetReference = exports.IPSetReference || (exports.IPSetReference = {}));
349
+ var ReferenceSets;
350
+ (function (ReferenceSets) {
351
+ ReferenceSets.filterSensitiveLog = (obj) => ({
352
+ ...obj,
353
+ });
354
+ })(ReferenceSets = exports.ReferenceSets || (exports.ReferenceSets = {}));
323
355
  var GeneratedRulesType;
324
356
  (function (GeneratedRulesType) {
325
357
  GeneratedRulesType["ALLOWLIST"] = "ALLOWLIST";
@@ -2199,6 +2199,22 @@ const serializeAws_json1_0IPSet = (input, context) => {
2199
2199
  }),
2200
2200
  };
2201
2201
  };
2202
+ const serializeAws_json1_0IPSetReference = (input, context) => {
2203
+ return {
2204
+ ...(input.ReferenceArn != null && { ReferenceArn: input.ReferenceArn }),
2205
+ };
2206
+ };
2207
+ const serializeAws_json1_0IPSetReferenceMap = (input, context) => {
2208
+ return Object.entries(input).reduce((acc, [key, value]) => {
2209
+ if (value === null) {
2210
+ return acc;
2211
+ }
2212
+ return {
2213
+ ...acc,
2214
+ [key]: serializeAws_json1_0IPSetReference(value, context),
2215
+ };
2216
+ }, {});
2217
+ };
2202
2218
  const serializeAws_json1_0IPSets = (input, context) => {
2203
2219
  return Object.entries(input).reduce((acc, [key, value]) => {
2204
2220
  if (value === null) {
@@ -2343,6 +2359,13 @@ const serializeAws_json1_0PutResourcePolicyRequest = (input, context) => {
2343
2359
  ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
2344
2360
  };
2345
2361
  };
2362
+ const serializeAws_json1_0ReferenceSets = (input, context) => {
2363
+ return {
2364
+ ...(input.IPSetReferences != null && {
2365
+ IPSetReferences: serializeAws_json1_0IPSetReferenceMap(input.IPSetReferences, context),
2366
+ }),
2367
+ };
2368
+ };
2346
2369
  const serializeAws_json1_0RuleDefinition = (input, context) => {
2347
2370
  return {
2348
2371
  ...(input.Actions != null && { Actions: serializeAws_json1_0StatelessActions(input.Actions, context) }),
@@ -2353,6 +2376,9 @@ const serializeAws_json1_0RuleDefinition = (input, context) => {
2353
2376
  };
2354
2377
  const serializeAws_json1_0RuleGroup = (input, context) => {
2355
2378
  return {
2379
+ ...(input.ReferenceSets != null && {
2380
+ ReferenceSets: serializeAws_json1_0ReferenceSets(input.ReferenceSets, context),
2381
+ }),
2356
2382
  ...(input.RuleVariables != null && {
2357
2383
  RuleVariables: serializeAws_json1_0RuleVariables(input.RuleVariables, context),
2358
2384
  }),
@@ -2775,6 +2801,20 @@ const deserializeAws_json1_0Attachment = (output, context) => {
2775
2801
  SubnetId: (0, smithy_client_1.expectString)(output.SubnetId),
2776
2802
  };
2777
2803
  };
2804
+ const deserializeAws_json1_0CapacityUsageSummary = (output, context) => {
2805
+ return {
2806
+ CIDRs: output.CIDRs != null ? deserializeAws_json1_0CIDRSummary(output.CIDRs, context) : undefined,
2807
+ };
2808
+ };
2809
+ const deserializeAws_json1_0CIDRSummary = (output, context) => {
2810
+ return {
2811
+ AvailableCIDRCount: (0, smithy_client_1.expectInt32)(output.AvailableCIDRCount),
2812
+ IPSetReferences: output.IPSetReferences != null
2813
+ ? deserializeAws_json1_0IPSetMetadataMap(output.IPSetReferences, context)
2814
+ : undefined,
2815
+ UtilizedCIDRCount: (0, smithy_client_1.expectInt32)(output.UtilizedCIDRCount),
2816
+ };
2817
+ };
2778
2818
  const deserializeAws_json1_0CreateFirewallPolicyResponse = (output, context) => {
2779
2819
  return {
2780
2820
  FirewallPolicyResponse: output.FirewallPolicyResponse != null
@@ -3020,6 +3060,9 @@ const deserializeAws_json1_0Firewalls = (output, context) => {
3020
3060
  };
3021
3061
  const deserializeAws_json1_0FirewallStatus = (output, context) => {
3022
3062
  return {
3063
+ CapacityUsageSummary: output.CapacityUsageSummary != null
3064
+ ? deserializeAws_json1_0CapacityUsageSummary(output.CapacityUsageSummary, context)
3065
+ : undefined,
3023
3066
  ConfigurationSyncStateSummary: (0, smithy_client_1.expectString)(output.ConfigurationSyncStateSummary),
3024
3067
  Status: (0, smithy_client_1.expectString)(output.Status),
3025
3068
  SyncStates: output.SyncStates != null ? deserializeAws_json1_0SyncStates(output.SyncStates, context) : undefined,
@@ -3081,6 +3124,38 @@ const deserializeAws_json1_0IPSet = (output, context) => {
3081
3124
  Definition: output.Definition != null ? deserializeAws_json1_0VariableDefinitionList(output.Definition, context) : undefined,
3082
3125
  };
3083
3126
  };
3127
+ const deserializeAws_json1_0IPSetMetadata = (output, context) => {
3128
+ return {
3129
+ ResolvedCIDRCount: (0, smithy_client_1.expectInt32)(output.ResolvedCIDRCount),
3130
+ };
3131
+ };
3132
+ const deserializeAws_json1_0IPSetMetadataMap = (output, context) => {
3133
+ return Object.entries(output).reduce((acc, [key, value]) => {
3134
+ if (value === null) {
3135
+ return acc;
3136
+ }
3137
+ return {
3138
+ ...acc,
3139
+ [key]: deserializeAws_json1_0IPSetMetadata(value, context),
3140
+ };
3141
+ }, {});
3142
+ };
3143
+ const deserializeAws_json1_0IPSetReference = (output, context) => {
3144
+ return {
3145
+ ReferenceArn: (0, smithy_client_1.expectString)(output.ReferenceArn),
3146
+ };
3147
+ };
3148
+ const deserializeAws_json1_0IPSetReferenceMap = (output, context) => {
3149
+ return Object.entries(output).reduce((acc, [key, value]) => {
3150
+ if (value === null) {
3151
+ return acc;
3152
+ }
3153
+ return {
3154
+ ...acc,
3155
+ [key]: deserializeAws_json1_0IPSetReference(value, context),
3156
+ };
3157
+ }, {});
3158
+ };
3084
3159
  const deserializeAws_json1_0IPSets = (output, context) => {
3085
3160
  return Object.entries(output).reduce((acc, [key, value]) => {
3086
3161
  if (value === null) {
@@ -3234,6 +3309,13 @@ const deserializeAws_json1_0PublishMetricAction = (output, context) => {
3234
3309
  const deserializeAws_json1_0PutResourcePolicyResponse = (output, context) => {
3235
3310
  return {};
3236
3311
  };
3312
+ const deserializeAws_json1_0ReferenceSets = (output, context) => {
3313
+ return {
3314
+ IPSetReferences: output.IPSetReferences != null
3315
+ ? deserializeAws_json1_0IPSetReferenceMap(output.IPSetReferences, context)
3316
+ : undefined,
3317
+ };
3318
+ };
3237
3319
  const deserializeAws_json1_0ResourceNotFoundException = (output, context) => {
3238
3320
  return {
3239
3321
  Message: (0, smithy_client_1.expectString)(output.Message),
@@ -3254,6 +3336,7 @@ const deserializeAws_json1_0RuleDefinition = (output, context) => {
3254
3336
  };
3255
3337
  const deserializeAws_json1_0RuleGroup = (output, context) => {
3256
3338
  return {
3339
+ ReferenceSets: output.ReferenceSets != null ? deserializeAws_json1_0ReferenceSets(output.ReferenceSets, context) : undefined,
3257
3340
  RuleVariables: output.RuleVariables != null ? deserializeAws_json1_0RuleVariables(output.RuleVariables, context) : undefined,
3258
3341
  RulesSource: output.RulesSource != null ? deserializeAws_json1_0RulesSource(output.RulesSource, context) : undefined,
3259
3342
  StatefulRuleOptions: output.StatefulRuleOptions != null
@@ -138,8 +138,21 @@ export var Attachment;
138
138
  (function (Attachment) {
139
139
  Attachment.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
140
140
  })(Attachment || (Attachment = {}));
141
+ export var IPSetMetadata;
142
+ (function (IPSetMetadata) {
143
+ IPSetMetadata.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
144
+ })(IPSetMetadata || (IPSetMetadata = {}));
145
+ export var CIDRSummary;
146
+ (function (CIDRSummary) {
147
+ CIDRSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
148
+ })(CIDRSummary || (CIDRSummary = {}));
149
+ export var CapacityUsageSummary;
150
+ (function (CapacityUsageSummary) {
151
+ CapacityUsageSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
152
+ })(CapacityUsageSummary || (CapacityUsageSummary = {}));
141
153
  export var ConfigurationSyncState;
142
154
  (function (ConfigurationSyncState) {
155
+ ConfigurationSyncState["CAPACITY_CONSTRAINED"] = "CAPACITY_CONSTRAINED";
143
156
  ConfigurationSyncState["IN_SYNC"] = "IN_SYNC";
144
157
  ConfigurationSyncState["PENDING"] = "PENDING";
145
158
  })(ConfigurationSyncState || (ConfigurationSyncState = {}));
@@ -172,6 +185,7 @@ export var FirewallStatusValue;
172
185
  })(FirewallStatusValue || (FirewallStatusValue = {}));
173
186
  export var PerObjectSyncStatus;
174
187
  (function (PerObjectSyncStatus) {
188
+ PerObjectSyncStatus["CAPACITY_CONSTRAINED"] = "CAPACITY_CONSTRAINED";
175
189
  PerObjectSyncStatus["IN_SYNC"] = "IN_SYNC";
176
190
  PerObjectSyncStatus["PENDING"] = "PENDING";
177
191
  })(PerObjectSyncStatus || (PerObjectSyncStatus = {}));
@@ -254,6 +268,14 @@ export var CreateFirewallPolicyResponse;
254
268
  (function (CreateFirewallPolicyResponse) {
255
269
  CreateFirewallPolicyResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
256
270
  })(CreateFirewallPolicyResponse || (CreateFirewallPolicyResponse = {}));
271
+ export var IPSetReference;
272
+ (function (IPSetReference) {
273
+ IPSetReference.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
274
+ })(IPSetReference || (IPSetReference = {}));
275
+ export var ReferenceSets;
276
+ (function (ReferenceSets) {
277
+ ReferenceSets.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
278
+ })(ReferenceSets || (ReferenceSets = {}));
257
279
  export var GeneratedRulesType;
258
280
  (function (GeneratedRulesType) {
259
281
  GeneratedRulesType["ALLOWLIST"] = "ALLOWLIST";
@@ -2679,6 +2679,19 @@ var serializeAws_json1_0IPSet = function (input, context) {
2679
2679
  Definition: serializeAws_json1_0VariableDefinitionList(input.Definition, context),
2680
2680
  }));
2681
2681
  };
2682
+ var serializeAws_json1_0IPSetReference = function (input, context) {
2683
+ return __assign({}, (input.ReferenceArn != null && { ReferenceArn: input.ReferenceArn }));
2684
+ };
2685
+ var serializeAws_json1_0IPSetReferenceMap = function (input, context) {
2686
+ return Object.entries(input).reduce(function (acc, _a) {
2687
+ var _b;
2688
+ var _c = __read(_a, 2), key = _c[0], value = _c[1];
2689
+ if (value === null) {
2690
+ return acc;
2691
+ }
2692
+ return __assign(__assign({}, acc), (_b = {}, _b[key] = serializeAws_json1_0IPSetReference(value, context), _b));
2693
+ }, {});
2694
+ };
2682
2695
  var serializeAws_json1_0IPSets = function (input, context) {
2683
2696
  return Object.entries(input).reduce(function (acc, _a) {
2684
2697
  var _b;
@@ -2780,13 +2793,20 @@ var serializeAws_json1_0PublishMetricAction = function (input, context) {
2780
2793
  var serializeAws_json1_0PutResourcePolicyRequest = function (input, context) {
2781
2794
  return __assign(__assign({}, (input.Policy != null && { Policy: input.Policy })), (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
2782
2795
  };
2796
+ var serializeAws_json1_0ReferenceSets = function (input, context) {
2797
+ return __assign({}, (input.IPSetReferences != null && {
2798
+ IPSetReferences: serializeAws_json1_0IPSetReferenceMap(input.IPSetReferences, context),
2799
+ }));
2800
+ };
2783
2801
  var serializeAws_json1_0RuleDefinition = function (input, context) {
2784
2802
  return __assign(__assign({}, (input.Actions != null && { Actions: serializeAws_json1_0StatelessActions(input.Actions, context) })), (input.MatchAttributes != null && {
2785
2803
  MatchAttributes: serializeAws_json1_0MatchAttributes(input.MatchAttributes, context),
2786
2804
  }));
2787
2805
  };
2788
2806
  var serializeAws_json1_0RuleGroup = function (input, context) {
2789
- return __assign(__assign(__assign({}, (input.RuleVariables != null && {
2807
+ return __assign(__assign(__assign(__assign({}, (input.ReferenceSets != null && {
2808
+ ReferenceSets: serializeAws_json1_0ReferenceSets(input.ReferenceSets, context),
2809
+ })), (input.RuleVariables != null && {
2790
2810
  RuleVariables: serializeAws_json1_0RuleVariables(input.RuleVariables, context),
2791
2811
  })), (input.RulesSource != null && { RulesSource: serializeAws_json1_0RulesSource(input.RulesSource, context) })), (input.StatefulRuleOptions != null && {
2792
2812
  StatefulRuleOptions: serializeAws_json1_0StatefulRuleOptions(input.StatefulRuleOptions, context),
@@ -3102,6 +3122,20 @@ var deserializeAws_json1_0Attachment = function (output, context) {
3102
3122
  SubnetId: __expectString(output.SubnetId),
3103
3123
  };
3104
3124
  };
3125
+ var deserializeAws_json1_0CapacityUsageSummary = function (output, context) {
3126
+ return {
3127
+ CIDRs: output.CIDRs != null ? deserializeAws_json1_0CIDRSummary(output.CIDRs, context) : undefined,
3128
+ };
3129
+ };
3130
+ var deserializeAws_json1_0CIDRSummary = function (output, context) {
3131
+ return {
3132
+ AvailableCIDRCount: __expectInt32(output.AvailableCIDRCount),
3133
+ IPSetReferences: output.IPSetReferences != null
3134
+ ? deserializeAws_json1_0IPSetMetadataMap(output.IPSetReferences, context)
3135
+ : undefined,
3136
+ UtilizedCIDRCount: __expectInt32(output.UtilizedCIDRCount),
3137
+ };
3138
+ };
3105
3139
  var deserializeAws_json1_0CreateFirewallPolicyResponse = function (output, context) {
3106
3140
  return {
3107
3141
  FirewallPolicyResponse: output.FirewallPolicyResponse != null
@@ -3347,6 +3381,9 @@ var deserializeAws_json1_0Firewalls = function (output, context) {
3347
3381
  };
3348
3382
  var deserializeAws_json1_0FirewallStatus = function (output, context) {
3349
3383
  return {
3384
+ CapacityUsageSummary: output.CapacityUsageSummary != null
3385
+ ? deserializeAws_json1_0CapacityUsageSummary(output.CapacityUsageSummary, context)
3386
+ : undefined,
3350
3387
  ConfigurationSyncStateSummary: __expectString(output.ConfigurationSyncStateSummary),
3351
3388
  Status: __expectString(output.Status),
3352
3389
  SyncStates: output.SyncStates != null ? deserializeAws_json1_0SyncStates(output.SyncStates, context) : undefined,
@@ -3408,6 +3445,36 @@ var deserializeAws_json1_0IPSet = function (output, context) {
3408
3445
  Definition: output.Definition != null ? deserializeAws_json1_0VariableDefinitionList(output.Definition, context) : undefined,
3409
3446
  };
3410
3447
  };
3448
+ var deserializeAws_json1_0IPSetMetadata = function (output, context) {
3449
+ return {
3450
+ ResolvedCIDRCount: __expectInt32(output.ResolvedCIDRCount),
3451
+ };
3452
+ };
3453
+ var deserializeAws_json1_0IPSetMetadataMap = function (output, context) {
3454
+ return Object.entries(output).reduce(function (acc, _a) {
3455
+ var _b;
3456
+ var _c = __read(_a, 2), key = _c[0], value = _c[1];
3457
+ if (value === null) {
3458
+ return acc;
3459
+ }
3460
+ return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_json1_0IPSetMetadata(value, context), _b));
3461
+ }, {});
3462
+ };
3463
+ var deserializeAws_json1_0IPSetReference = function (output, context) {
3464
+ return {
3465
+ ReferenceArn: __expectString(output.ReferenceArn),
3466
+ };
3467
+ };
3468
+ var deserializeAws_json1_0IPSetReferenceMap = function (output, context) {
3469
+ return Object.entries(output).reduce(function (acc, _a) {
3470
+ var _b;
3471
+ var _c = __read(_a, 2), key = _c[0], value = _c[1];
3472
+ if (value === null) {
3473
+ return acc;
3474
+ }
3475
+ return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_json1_0IPSetReference(value, context), _b));
3476
+ }, {});
3477
+ };
3411
3478
  var deserializeAws_json1_0IPSets = function (output, context) {
3412
3479
  return Object.entries(output).reduce(function (acc, _a) {
3413
3480
  var _b;
@@ -3558,6 +3625,13 @@ var deserializeAws_json1_0PublishMetricAction = function (output, context) {
3558
3625
  var deserializeAws_json1_0PutResourcePolicyResponse = function (output, context) {
3559
3626
  return {};
3560
3627
  };
3628
+ var deserializeAws_json1_0ReferenceSets = function (output, context) {
3629
+ return {
3630
+ IPSetReferences: output.IPSetReferences != null
3631
+ ? deserializeAws_json1_0IPSetReferenceMap(output.IPSetReferences, context)
3632
+ : undefined,
3633
+ };
3634
+ };
3561
3635
  var deserializeAws_json1_0ResourceNotFoundException = function (output, context) {
3562
3636
  return {
3563
3637
  Message: __expectString(output.Message),
@@ -3578,6 +3652,7 @@ var deserializeAws_json1_0RuleDefinition = function (output, context) {
3578
3652
  };
3579
3653
  var deserializeAws_json1_0RuleGroup = function (output, context) {
3580
3654
  return {
3655
+ ReferenceSets: output.ReferenceSets != null ? deserializeAws_json1_0ReferenceSets(output.ReferenceSets, context) : undefined,
3581
3656
  RuleVariables: output.RuleVariables != null ? deserializeAws_json1_0RuleVariables(output.RuleVariables, context) : undefined,
3582
3657
  RulesSource: output.RulesSource != null ? deserializeAws_json1_0RulesSource(output.RulesSource, context) : undefined,
3583
3658
  StatefulRuleOptions: output.StatefulRuleOptions != null
@@ -349,7 +349,61 @@ export declare namespace Attachment {
349
349
  */
350
350
  const filterSensitiveLog: (obj: Attachment) => any;
351
351
  }
352
+ /**
353
+ * <p>General information about the IP set.</p>
354
+ */
355
+ export interface IPSetMetadata {
356
+ /**
357
+ * <p>Describes the total number of CIDR blocks currently in use by the IP set references in a firewall. To determine how many CIDR blocks are available for you to use in a firewall, you can call <code>AvailableCIDRCount</code>.</p>
358
+ */
359
+ ResolvedCIDRCount?: number;
360
+ }
361
+ export declare namespace IPSetMetadata {
362
+ /**
363
+ * @internal
364
+ */
365
+ const filterSensitiveLog: (obj: IPSetMetadata) => any;
366
+ }
367
+ /**
368
+ * <p>Summarizes the CIDR blocks used by the IP set references in a firewall. Network Firewall calculates the number of CIDRs by taking an aggregated count of all CIDRs used by the IP sets you are referencing.</p>
369
+ */
370
+ export interface CIDRSummary {
371
+ /**
372
+ * <p>The number of CIDR blocks available for use by the IP set references in a firewall.</p>
373
+ */
374
+ AvailableCIDRCount?: number;
375
+ /**
376
+ * <p>The number of CIDR blocks used by the IP set references in a firewall.</p>
377
+ */
378
+ UtilizedCIDRCount?: number;
379
+ /**
380
+ * <p>The list of the IP set references used by a firewall.</p>
381
+ */
382
+ IPSetReferences?: Record<string, IPSetMetadata>;
383
+ }
384
+ export declare namespace CIDRSummary {
385
+ /**
386
+ * @internal
387
+ */
388
+ const filterSensitiveLog: (obj: CIDRSummary) => any;
389
+ }
390
+ /**
391
+ * <p>The capacity usage summary of the resources used by the <a>ReferenceSets</a> in a firewall.</p>
392
+ */
393
+ export interface CapacityUsageSummary {
394
+ /**
395
+ * <p>Describes the capacity usage of the CIDR blocks used by the IP set references in a firewall.</p>
396
+ */
397
+ CIDRs?: CIDRSummary;
398
+ }
399
+ export declare namespace CapacityUsageSummary {
400
+ /**
401
+ * @internal
402
+ */
403
+ const filterSensitiveLog: (obj: CapacityUsageSummary) => any;
404
+ }
352
405
  export declare enum ConfigurationSyncState {
406
+ CAPACITY_CONSTRAINED = "CAPACITY_CONSTRAINED",
353
407
  IN_SYNC = "IN_SYNC",
354
408
  PENDING = "PENDING"
355
409
  }
@@ -537,6 +591,7 @@ export declare enum FirewallStatusValue {
537
591
  READY = "READY"
538
592
  }
539
593
  export declare enum PerObjectSyncStatus {
594
+ CAPACITY_CONSTRAINED = "CAPACITY_CONSTRAINED",
540
595
  IN_SYNC = "IN_SYNC",
541
596
  PENDING = "PENDING"
542
597
  }
@@ -635,6 +690,10 @@ export interface FirewallStatus {
635
690
  * and configuration object. </p>
636
691
  */
637
692
  SyncStates?: Record<string, SyncState>;
693
+ /**
694
+ * <p>Describes the capacity usage of the resources contained in a firewall's reference sets. Network Firewall calclulates the capacity usage by taking an aggregated count of all of the resources used by all of the reference sets in a firewall.</p>
695
+ */
696
+ CapacityUsageSummary?: CapacityUsageSummary;
638
697
  }
639
698
  export declare namespace FirewallStatus {
640
699
  /**
@@ -1010,6 +1069,39 @@ export declare namespace CreateFirewallPolicyResponse {
1010
1069
  */
1011
1070
  const filterSensitiveLog: (obj: CreateFirewallPolicyResponse) => any;
1012
1071
  }
1072
+ /**
1073
+ * <p>Configures one or more IP set references for a Suricata-compatible rule group. This is used in <a>CreateRuleGroup</a> or <a>UpdateRuleGroup</a>. An IP set reference is a rule variable that references a resource that you create and manage in another Amazon Web Services service, such as an Amazon VPC prefix list. Network Firewall IP set references enable you to dynamically update the contents of your rules. When you create, update, or delete the IP set you are referencing in your rule, Network Firewall automatically updates the rule's content with the changes. For more information about IP set references in Network Firewall, see <a href="https://docs.aws.amazon.com/network-firewall/latest/developerguide/rule-groups-ip-set-references">Using IP set references</a> in the <i>Network Firewall Developer Guide</i>.</p>
1074
+ * <p>
1075
+ * Network Firewall currently supports only <a href="https://docs.aws.amazon.com/vpc/latest/userguide/managed-prefix-lists.html">Amazon VPC prefix lists</a> as IP set references.
1076
+ * </p>
1077
+ */
1078
+ export interface IPSetReference {
1079
+ /**
1080
+ * <p>The Amazon Resource Name (ARN) of the resource that you are referencing in your rule group.</p>
1081
+ */
1082
+ ReferenceArn?: string;
1083
+ }
1084
+ export declare namespace IPSetReference {
1085
+ /**
1086
+ * @internal
1087
+ */
1088
+ const filterSensitiveLog: (obj: IPSetReference) => any;
1089
+ }
1090
+ /**
1091
+ * <p>Contains a set of IP set references.</p>
1092
+ */
1093
+ export interface ReferenceSets {
1094
+ /**
1095
+ * <p>The list of IP set references.</p>
1096
+ */
1097
+ IPSetReferences?: Record<string, IPSetReference>;
1098
+ }
1099
+ export declare namespace ReferenceSets {
1100
+ /**
1101
+ * @internal
1102
+ */
1103
+ const filterSensitiveLog: (obj: ReferenceSets) => any;
1104
+ }
1013
1105
  export declare enum GeneratedRulesType {
1014
1106
  ALLOWLIST = "ALLOWLIST",
1015
1107
  DENYLIST = "DENYLIST"
@@ -1565,6 +1657,10 @@ export interface RuleGroup {
1565
1657
  * these for stateful rule groups. </p>
1566
1658
  */
1567
1659
  RuleVariables?: RuleVariables;
1660
+ /**
1661
+ * <p>The list of a rule group's reference sets.</p>
1662
+ */
1663
+ ReferenceSets?: ReferenceSets;
1568
1664
  /**
1569
1665
  * <p>The stateful rules or stateless rules for the rule group. </p>
1570
1666
  */
@@ -176,7 +176,39 @@ export declare namespace Attachment {
176
176
 
177
177
  const filterSensitiveLog: (obj: Attachment) => any;
178
178
  }
179
+
180
+ export interface IPSetMetadata {
181
+
182
+ ResolvedCIDRCount?: number;
183
+ }
184
+ export declare namespace IPSetMetadata {
185
+
186
+ const filterSensitiveLog: (obj: IPSetMetadata) => any;
187
+ }
188
+
189
+ export interface CIDRSummary {
190
+
191
+ AvailableCIDRCount?: number;
192
+
193
+ UtilizedCIDRCount?: number;
194
+
195
+ IPSetReferences?: Record<string, IPSetMetadata>;
196
+ }
197
+ export declare namespace CIDRSummary {
198
+
199
+ const filterSensitiveLog: (obj: CIDRSummary) => any;
200
+ }
201
+
202
+ export interface CapacityUsageSummary {
203
+
204
+ CIDRs?: CIDRSummary;
205
+ }
206
+ export declare namespace CapacityUsageSummary {
207
+
208
+ const filterSensitiveLog: (obj: CapacityUsageSummary) => any;
209
+ }
179
210
  export declare enum ConfigurationSyncState {
211
+ CAPACITY_CONSTRAINED = "CAPACITY_CONSTRAINED",
180
212
  IN_SYNC = "IN_SYNC",
181
213
  PENDING = "PENDING"
182
214
  }
@@ -269,6 +301,7 @@ export declare enum FirewallStatusValue {
269
301
  READY = "READY"
270
302
  }
271
303
  export declare enum PerObjectSyncStatus {
304
+ CAPACITY_CONSTRAINED = "CAPACITY_CONSTRAINED",
272
305
  IN_SYNC = "IN_SYNC",
273
306
  PENDING = "PENDING"
274
307
  }
@@ -302,6 +335,8 @@ export interface FirewallStatus {
302
335
  ConfigurationSyncStateSummary: ConfigurationSyncState | string | undefined;
303
336
 
304
337
  SyncStates?: Record<string, SyncState>;
338
+
339
+ CapacityUsageSummary?: CapacityUsageSummary;
305
340
  }
306
341
  export declare namespace FirewallStatus {
307
342
 
@@ -467,6 +502,24 @@ export declare namespace CreateFirewallPolicyResponse {
467
502
 
468
503
  const filterSensitiveLog: (obj: CreateFirewallPolicyResponse) => any;
469
504
  }
505
+
506
+ export interface IPSetReference {
507
+
508
+ ReferenceArn?: string;
509
+ }
510
+ export declare namespace IPSetReference {
511
+
512
+ const filterSensitiveLog: (obj: IPSetReference) => any;
513
+ }
514
+
515
+ export interface ReferenceSets {
516
+
517
+ IPSetReferences?: Record<string, IPSetReference>;
518
+ }
519
+ export declare namespace ReferenceSets {
520
+
521
+ const filterSensitiveLog: (obj: ReferenceSets) => any;
522
+ }
470
523
  export declare enum GeneratedRulesType {
471
524
  ALLOWLIST = "ALLOWLIST",
472
525
  DENYLIST = "DENYLIST"
@@ -703,6 +756,8 @@ export interface RuleGroup {
703
756
 
704
757
  RuleVariables?: RuleVariables;
705
758
 
759
+ ReferenceSets?: ReferenceSets;
760
+
706
761
  RulesSource: RulesSource | undefined;
707
762
 
708
763
  StatefulRuleOptions?: StatefulRuleOptions;
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.131.0",
4
+ "version": "3.135.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",