@aws-sdk/client-network-firewall 3.1165.0 → 3.1167.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.
Files changed (47) hide show
  1. package/README.md +74 -0
  2. package/dist-cjs/index.js +587 -54
  3. package/dist-es/NetworkFirewall.js +12 -0
  4. package/dist-es/commands/CreateFirewallPolicyV2Command.js +4 -0
  5. package/dist-es/commands/DeleteFirewallPolicyV2Command.js +4 -0
  6. package/dist-es/commands/DescribeFirewallPolicyV2Command.js +4 -0
  7. package/dist-es/commands/ListFirewallPoliciesV2Command.js +4 -0
  8. package/dist-es/commands/UpdateFirewallPolicyV2Command.js +4 -0
  9. package/dist-es/commands/index.js +5 -0
  10. package/dist-es/models/enums.js +284 -11
  11. package/dist-es/pagination/ListFirewallPoliciesV2Paginator.js +4 -0
  12. package/dist-es/pagination/index.js +1 -0
  13. package/dist-es/schemas/schemas_0.js +237 -42
  14. package/dist-types/NetworkFirewall.d.ts +45 -0
  15. package/dist-types/NetworkFirewallClient.d.ts +7 -2
  16. package/dist-types/commands/CreateFirewallPolicyV2Command.d.ts +289 -0
  17. package/dist-types/commands/CreateRuleGroupCommand.d.ts +92 -2
  18. package/dist-types/commands/DeleteFirewallPolicyV2Command.d.ts +134 -0
  19. package/dist-types/commands/DeleteRuleGroupCommand.d.ts +2 -2
  20. package/dist-types/commands/DescribeFirewallPolicyV2Command.d.ts +270 -0
  21. package/dist-types/commands/DescribeRuleGroupCommand.d.ts +93 -2
  22. package/dist-types/commands/DescribeRuleGroupMetadataCommand.d.ts +2 -2
  23. package/dist-types/commands/DescribeRuleGroupSummaryCommand.d.ts +1 -1
  24. package/dist-types/commands/ListFirewallPoliciesV2Command.d.ts +101 -0
  25. package/dist-types/commands/ListRuleGroupsCommand.d.ts +1 -1
  26. package/dist-types/commands/UpdateFirewallPolicyV2Command.d.ts +283 -0
  27. package/dist-types/commands/UpdateRuleGroupCommand.d.ts +92 -2
  28. package/dist-types/commands/index.d.ts +5 -0
  29. package/dist-types/models/enums.d.ts +362 -25
  30. package/dist-types/models/models_0.d.ts +1098 -265
  31. package/dist-types/pagination/ListFirewallPoliciesV2Paginator.d.ts +7 -0
  32. package/dist-types/pagination/index.d.ts +1 -0
  33. package/dist-types/schemas/schemas_0.d.ts +28 -0
  34. package/dist-types/ts3.4/NetworkFirewall.d.ts +95 -0
  35. package/dist-types/ts3.4/NetworkFirewallClient.d.ts +30 -0
  36. package/dist-types/ts3.4/commands/CreateFirewallPolicyV2Command.d.ts +39 -0
  37. package/dist-types/ts3.4/commands/DeleteFirewallPolicyV2Command.d.ts +39 -0
  38. package/dist-types/ts3.4/commands/DescribeFirewallPolicyV2Command.d.ts +42 -0
  39. package/dist-types/ts3.4/commands/ListFirewallPoliciesV2Command.d.ts +39 -0
  40. package/dist-types/ts3.4/commands/UpdateFirewallPolicyV2Command.d.ts +39 -0
  41. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  42. package/dist-types/ts3.4/models/enums.d.ts +295 -13
  43. package/dist-types/ts3.4/models/models_0.d.ts +171 -22
  44. package/dist-types/ts3.4/pagination/ListFirewallPoliciesV2Paginator.d.ts +11 -0
  45. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  46. package/dist-types/ts3.4/schemas/schemas_0.d.ts +28 -0
  47. package/package.json +4 -4
@@ -1,4 +1,4 @@
1
- import type { AttachmentStatus, ConfigurationSyncState, ContainerAssociationStatus, ContainerMonitoringType, DNSExpiryExceptionPolicy, EnabledAnalysisType, EncryptionType, FirewallPolicyErrorCode, FirewallStatusValue, FlowOperationStatus, FlowOperationType, GeneratedRulesType, IdentifiedType, IPAddressType, ListenerPropertyType, LogDestinationType, LogType, NatGatewayAttachmentStatus, OverrideAction, PerObjectSyncStatus, ProxyModifyState, ProxyRulePhaseAction, ProxyState, ResourceManagedStatus, ResourceManagedType, ResourceStatus, RevocationCheckAction, Route53ResolvedIPValidationAction, RuleGroupRequestPhase, RuleGroupType, RuleOrder, StatefulAction, StatefulRuleDirection, StatefulRuleProtocol, StreamExceptionPolicy, SubscriptionStatus, SummaryRuleOption, TargetType, TCPFlag, TlsInterceptMode, TransitGatewayAttachmentStatus } from "./enums";
1
+ import type { ActionScope, AttachmentStatus, ConfigurationSyncState, ContainerAssociationStatus, ContainerMonitoringType, DNSExpiryExceptionPolicy, EnabledAnalysisType, EncryptionType, FirewallPolicyErrorCode, FirewallRuleAction, FirewallRuleProtocol, FirewallStatusValue, FlowOperationStatus, FlowOperationType, GeneratedRulesType, HookKey, IdentifiedType, IPAddressType, ListenerPropertyType, LogDestinationType, LogType, NatGatewayAttachmentStatus, OverrideAction, PerObjectSyncStatus, PolicyDefaultAction, PolicyMode, ProxyModifyState, ProxyRulePhaseAction, ProxyState, ResourceManagedStatus, ResourceManagedType, ResourceStatus, RevocationCheckAction, Route53ResolvedIPValidationAction, RuleGroupRequestPhase, RuleGroupType, RuleOrder, RuleOutputFormat, StatefulAction, StatefulRuleDirection, StatefulRuleProtocol, StreamExceptionPolicy, StreamExceptionPolicyV2, SubscriptionStatus, SummaryRuleOption, TargetType, TCPFlag, TlsInterceptMode, TransitGatewayAttachmentStatus } from "./enums";
2
2
  /**
3
3
  * @public
4
4
  */
@@ -271,8 +271,8 @@ export interface AnalysisResult {
271
271
  AnalysisDetail?: string | undefined;
272
272
  }
273
273
  /**
274
- * <p>Defines the mapping between an Availability Zone and a firewall endpoint for a transit gateway-attached firewall. Each mapping represents where the firewall can process traffic. You use these mappings when calling <a>CreateFirewall</a>, <a>AssociateAvailabilityZones</a>, and <a>DisassociateAvailabilityZones</a>.</p>
275
- * <p>To retrieve the current Availability Zone mappings for a firewall, use <a>DescribeFirewall</a>.</p>
274
+ * <p>Defines the mapping between an Availability Zone and a firewall endpoint for a transit gateway-attached firewall. Each mapping represents where the firewall can process traffic. You use these mappings when calling <code>CreateFirewall</code>, <code>AssociateAvailabilityZones</code>, and <code>DisassociateAvailabilityZones</code>.</p>
275
+ * <p>To retrieve the current Availability Zone mappings for a firewall, use <code>DescribeFirewall</code>.</p>
276
276
  * @public
277
277
  */
278
278
  export interface AvailabilityZoneMapping {
@@ -396,7 +396,7 @@ export interface AssociateFirewallPolicyResponse {
396
396
  }
397
397
  /**
398
398
  * <p>The ID for a subnet that's used in an association with a firewall. This is used in
399
- * <a>CreateFirewall</a>, <a>AssociateSubnets</a>, and <a>CreateVpcEndpointAssociation</a>. Network Firewall
399
+ * <code>CreateFirewall</code>, <code>AssociateSubnets</code>, and <code>CreateVpcEndpointAssociation</code>. Network Firewall
400
400
  * creates an instance of the associated firewall in each subnet that you specify, to filter
401
401
  * traffic in the subnet's Availability Zone.</p>
402
402
  * @public
@@ -1054,7 +1054,7 @@ export interface EncryptionConfiguration {
1054
1054
  Type: EncryptionType | undefined;
1055
1055
  }
1056
1056
  /**
1057
- * <p>A NAT gateway that a proxy mode firewall uses to proxy traffic. This is used in <a>CreateFirewall</a> when <code>NoSourcePreservation</code> is <code>TRUE</code>. </p>
1057
+ * <p>A NAT gateway that a proxy mode firewall uses to proxy traffic. This is used in <code>CreateFirewall</code> when <code>NoSourcePreservation</code> is <code>TRUE</code>. </p>
1058
1058
  * @public
1059
1059
  */
1060
1060
  export interface NatGatewayMapping {
@@ -1092,8 +1092,8 @@ export interface ProxySettings {
1092
1092
  ListenerProperties: ListenerProperty[] | undefined;
1093
1093
  }
1094
1094
  /**
1095
- * <p>The VPC and subnets for a proxy mode firewall endpoint. This is used in <a>CreateFirewall</a> when <code>NoSourcePreservation</code> is <code>TRUE</code>, to specify where Network Firewall creates the firewall endpoint. </p>
1096
- * <p>This differs from <a>VpcEndpointAssociation</a>, which defines additional secondary endpoints for a firewall in other VPCs. </p>
1095
+ * <p>Contains the VPC and subnets for a proxy mode firewall endpoint. You use it in <code>CreateFirewall</code> when <code>NoSourcePreservation</code> is <code>TRUE</code>, to specify where Network Firewall creates the firewall endpoint. </p>
1096
+ * <p>This differs from <code>VpcEndpointAssociation</code>, which defines additional secondary endpoints for a firewall in other VPCs. </p>
1097
1097
  * @public
1098
1098
  */
1099
1099
  export interface VpcEndpoint {
@@ -1640,6 +1640,9 @@ export interface PolicyVariables {
1640
1640
  * domains, also configure stateful rule groups that use the
1641
1641
  * <code>AWS_ROUTE_53_RESOLVED_DOMAIN</code> target type or the
1642
1642
  * <code>aws_route_53_resolved_domain</code> rule keyword.</p>
1643
+ * <important>
1644
+ * <p>Enabling or disabling resolved IP validation, or changing <code>DNSFirewallRuleGroupId</code>, may require a restart of the stateful engine in order to apply the change. When this occurs, existing connections will be treated according to your stream exception policy configuration. Changes to <code>Action</code>, <code>DNSExpiryExceptionPolicy</code>, <code>SourceIPRanges</code>, and <code>BypassDestinationValidationIPRanges</code> don't require a restart.</p>
1645
+ * </important>
1643
1646
  * @public
1644
1647
  */
1645
1648
  export interface Route53ResolvedIPValidation {
@@ -1679,7 +1682,9 @@ export interface Route53ResolvedIPValidation {
1679
1682
  * <p>Changing this value swaps the managed rule group association. Network Firewall processes
1680
1683
  * the swap asynchronously. Each policy can have only one managed Route 53 Resolver DNS
1681
1684
  * Firewall association. While a swap is in progress, Network Firewall rejects further changes to this setting. Wait
1682
- * until the swap completes, then retry.</p>
1685
+ * until the swap completes, then retry. The change may also require a restart of the stateful
1686
+ * engine. When this occurs, existing connections will be treated according to your stream
1687
+ * exception policy configuration.</p>
1683
1688
  * @public
1684
1689
  */
1685
1690
  DNSFirewallRuleGroupId: string | undefined;
@@ -1994,41 +1999,705 @@ export interface FirewallPolicy {
1994
1999
  * <p>aws:alert_established_app_layer_to_server</p>
1995
2000
  * </li>
1996
2001
  * </ul>
1997
- * <p>For more information, see
1998
- * <a href="https://docs.aws.amazon.com/network-firewall/latest/developerguide/suricata-rule-evaluation-order.html#suricata-strict-rule-evaluation-order.html">Strict evaluation order</a> in the <i>Network Firewall Developer Guide</i>.
1999
- * </p>
2002
+ * <p>For more information, see
2003
+ * <a href="https://docs.aws.amazon.com/network-firewall/latest/developerguide/suricata-rule-evaluation-order.html#suricata-strict-rule-evaluation-order.html">Strict evaluation order</a> in the <i>Network Firewall Developer Guide</i>.
2004
+ * </p>
2005
+ * @public
2006
+ */
2007
+ StatefulDefaultActions?: string[] | undefined;
2008
+ /**
2009
+ * <p>Additional options governing how Network Firewall handles stateful rules. The stateful
2010
+ * rule groups that you use in your policy must have stateful rule options settings that are compatible with these settings.</p>
2011
+ * @public
2012
+ */
2013
+ StatefulEngineOptions?: StatefulEngineOptions | undefined;
2014
+ /**
2015
+ * <p>The Amazon Resource Name (ARN) of the TLS inspection configuration.</p>
2016
+ * @public
2017
+ */
2018
+ TLSInspectionConfigurationArn?: string | undefined;
2019
+ /**
2020
+ * <p>Contains variables that you can use to override default Suricata settings in your firewall policy.</p>
2021
+ * @public
2022
+ */
2023
+ PolicyVariables?: PolicyVariables | undefined;
2024
+ /**
2025
+ * <p>When true, prevents TCP and TLS packets from reaching destination servers until TLS Inspection has evaluated Server Name Indication (SNI) rules. Requires an associated TLS Inspection configuration.</p>
2026
+ * @public
2027
+ */
2028
+ EnableTLSSessionHolding?: boolean | undefined;
2029
+ /**
2030
+ * <p>The settings that enable resolved IP validation for the policy. Resolved IP validation
2031
+ * verifies that a connection's destination IP address is one that the Amazon Route 53 Resolver
2032
+ * returned in a DNS response for a domain. A VPC that's associated with the Route 53 Resolver
2033
+ * DNS Firewall rule group that you specify must send the response. This checks how the
2034
+ * destination IP address was obtained, instead of relying only on the domain that the client
2035
+ * asserts in its TLS Server Name Indication (SNI) or HTTP <code>Host</code> header. For more
2036
+ * information, see <a>Route53ResolvedIPValidation</a>.</p>
2037
+ * @public
2038
+ */
2039
+ Route53ResolvedIPValidation?: Route53ResolvedIPValidation | undefined;
2040
+ }
2041
+ /**
2042
+ * @public
2043
+ */
2044
+ export interface CreateFirewallPolicyRequest {
2045
+ /**
2046
+ * <p>The descriptive name of the firewall policy. You can't change the name of a firewall policy after you create it.</p>
2047
+ * @public
2048
+ */
2049
+ FirewallPolicyName: string | undefined;
2050
+ /**
2051
+ * <p>The rule groups and policy actions to use in the firewall policy.</p>
2052
+ * @public
2053
+ */
2054
+ FirewallPolicy: FirewallPolicy | undefined;
2055
+ /**
2056
+ * <p>A description of the firewall policy.</p>
2057
+ * @public
2058
+ */
2059
+ Description?: string | undefined;
2060
+ /**
2061
+ * <p>The key:value pairs to associate with the resource.</p>
2062
+ * @public
2063
+ */
2064
+ Tags?: Tag[] | undefined;
2065
+ /**
2066
+ * <p>Indicates whether you want Network Firewall to just check the validity of the request, rather than run the request. </p>
2067
+ * <p>If set to <code>TRUE</code>, Network Firewall checks whether the request can run successfully,
2068
+ * but doesn't actually make the requested changes. The call returns the value that the request would return if you ran it with
2069
+ * dry run set to <code>FALSE</code>, but doesn't make additions or changes to your resources. This option allows you to make sure that you have
2070
+ * the required permissions to run the request and that your request parameters are valid. </p>
2071
+ * <p>If set to <code>FALSE</code>, Network Firewall makes the requested changes to your resources. </p>
2072
+ * @public
2073
+ */
2074
+ DryRun?: boolean | undefined;
2075
+ /**
2076
+ * <p>A complex type that contains settings for encryption of your firewall policy resources.</p>
2077
+ * @public
2078
+ */
2079
+ EncryptionConfiguration?: EncryptionConfiguration | undefined;
2080
+ }
2081
+ /**
2082
+ * <p>A configuration error that Network Firewall detected for a firewall policy.</p>
2083
+ * @public
2084
+ */
2085
+ export interface FirewallPolicyError {
2086
+ /**
2087
+ * <p>The error code identifies the type of error. Valid values are the following:</p>
2088
+ * <ul>
2089
+ * <li>
2090
+ * <p>
2091
+ * <code>DNS_FIREWALL_RULE_GROUP_UNAVAILABLE</code> – The Amazon Route 53 Resolver DNS
2092
+ * Firewall rule group that resolved IP validation references is unavailable, for example,
2093
+ * because it was deleted or is no longer accessible from your account. Update the rule
2094
+ * group ID or remove the resolved IP validation configuration.</p>
2095
+ * </li>
2096
+ * <li>
2097
+ * <p>
2098
+ * <code>ROUTE53_RESOLVED_IP_VALIDATION_MISSING</code> – An associated stateful rule
2099
+ * group uses the <code>aws_route_53_resolved_domain</code> keyword, but the policy doesn't
2100
+ * have resolved IP validation configured. The affected rules are inactive until you add
2101
+ * resolved IP validation to the policy or remove the keyword rules.</p>
2102
+ * </li>
2103
+ * </ul>
2104
+ * @public
2105
+ */
2106
+ Code: FirewallPolicyErrorCode | undefined;
2107
+ /**
2108
+ * <p>A description of the error and how to resolve it.</p>
2109
+ * @public
2110
+ */
2111
+ Message: string | undefined;
2112
+ /**
2113
+ * <p>The ID of the resource that the error relates to, when applicable. For example, for
2114
+ * <code>DNS_FIREWALL_RULE_GROUP_UNAVAILABLE</code> this is the Amazon Route 53 Resolver DNS
2115
+ * Firewall rule group ID.</p>
2116
+ * @public
2117
+ */
2118
+ ResourceId?: string | undefined;
2119
+ }
2120
+ /**
2121
+ * <p>The high-level properties of a firewall policy. This, along with the <a>FirewallPolicy</a>, define the policy. You can retrieve all objects for a firewall policy by calling <a>DescribeFirewallPolicy</a>. </p>
2122
+ * @public
2123
+ */
2124
+ export interface FirewallPolicyResponse {
2125
+ /**
2126
+ * <p>The descriptive name of the firewall policy. You can't change the name of a firewall policy after you create it.</p>
2127
+ * @public
2128
+ */
2129
+ FirewallPolicyName: string | undefined;
2130
+ /**
2131
+ * <p>The Amazon Resource Name (ARN) of the firewall policy.</p>
2132
+ * <note>
2133
+ * <p>If this response is for a create request that had <code>DryRun</code> set to
2134
+ * <code>TRUE</code>, then this ARN is a placeholder that isn't attached to a valid
2135
+ * resource.</p>
2136
+ * </note>
2137
+ * @public
2138
+ */
2139
+ FirewallPolicyArn: string | undefined;
2140
+ /**
2141
+ * <p>The unique identifier for the firewall policy. </p>
2142
+ * @public
2143
+ */
2144
+ FirewallPolicyId: string | undefined;
2145
+ /**
2146
+ * <p>A description of the firewall policy.</p>
2147
+ * @public
2148
+ */
2149
+ Description?: string | undefined;
2150
+ /**
2151
+ * <p>The current status of the firewall policy. You can retrieve this for a firewall policy
2152
+ * by calling <a>DescribeFirewallPolicy</a> and providing the firewall policy's
2153
+ * name or ARN.</p>
2154
+ * @public
2155
+ */
2156
+ FirewallPolicyStatus?: ResourceStatus | undefined;
2157
+ /**
2158
+ * <p>Additional detail about the firewall policy's current status, when applicable. For
2159
+ * example, while an Amazon Route 53 Resolver DNS Firewall rule group change is in progress, the
2160
+ * status is <code>UPDATING</code> and this message is "A DNS Firewall rule group change is in
2161
+ * progress."</p>
2162
+ * @public
2163
+ */
2164
+ StatusMessage?: string | undefined;
2165
+ /**
2166
+ * <p>The key:value pairs to associate with the resource.</p>
2167
+ * @public
2168
+ */
2169
+ Tags?: Tag[] | undefined;
2170
+ /**
2171
+ * <p>The number of capacity units currently consumed by the policy's stateless rules.</p>
2172
+ * @public
2173
+ */
2174
+ ConsumedStatelessRuleCapacity?: number | undefined;
2175
+ /**
2176
+ * <p>The number of capacity units currently consumed by the policy's stateful rules.</p>
2177
+ * @public
2178
+ */
2179
+ ConsumedStatefulRuleCapacity?: number | undefined;
2180
+ /**
2181
+ * <p>The total number of domain name specifications across all domain list rule groups in the firewall policy that use the <code>stateful-domain-rulegroup</code> resource type.</p>
2182
+ * @public
2183
+ */
2184
+ ConsumedStatefulDomainCapacity?: number | undefined;
2185
+ /**
2186
+ * <p>The number of firewalls that are associated with this firewall policy.</p>
2187
+ * @public
2188
+ */
2189
+ NumberOfAssociations?: number | undefined;
2190
+ /**
2191
+ * <p>A complex type that contains the Amazon Web Services KMS encryption configuration settings for your firewall policy.</p>
2192
+ * @public
2193
+ */
2194
+ EncryptionConfiguration?: EncryptionConfiguration | undefined;
2195
+ /**
2196
+ * <p>Any configuration errors that apply to the firewall policy. Network Firewall detects these
2197
+ * errors asynchronously, after you create or update the policy, so an error can appear after
2198
+ * the request that caused it has already succeeded. Each entry describes the problem and how to
2199
+ * resolve it, and Network Firewall clears it automatically after you resolve the problem.</p>
2200
+ * @public
2201
+ */
2202
+ Errors?: FirewallPolicyError[] | undefined;
2203
+ /**
2204
+ * <p>The last time that the firewall policy was changed.</p>
2205
+ * @public
2206
+ */
2207
+ LastModifiedTime?: Date | undefined;
2208
+ }
2209
+ /**
2210
+ * @public
2211
+ */
2212
+ export interface CreateFirewallPolicyResponse {
2213
+ /**
2214
+ * <p>A token used for optimistic locking. Network Firewall returns a token to your requests that access the firewall policy. The token marks the state of the policy resource at the time of the request. </p>
2215
+ * <p>To make changes to the policy, you provide the token in your request. Network Firewall uses the token to ensure that the policy hasn't changed since you last retrieved it. If it has changed, the operation fails with an <code>InvalidTokenException</code>. If this happens, retrieve the firewall policy again to get a current copy of it with current token. Reapply your changes as needed, then try the operation again using the new token. </p>
2216
+ * @public
2217
+ */
2218
+ UpdateToken: string | undefined;
2219
+ /**
2220
+ * <p>The high-level properties of a firewall policy. This, along with the <a>FirewallPolicy</a>, define the policy. You can retrieve all objects for a firewall policy by calling <a>DescribeFirewallPolicy</a>. </p>
2221
+ * @public
2222
+ */
2223
+ FirewallPolicyResponse: FirewallPolicyResponse | undefined;
2224
+ }
2225
+ /**
2226
+ * <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 resources 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 resource 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>
2227
+ * <p>
2228
+ * Network Firewall currently supports <a href="https://docs.aws.amazon.com/vpc/latest/userguide/managed-prefix-lists.html">Amazon VPC prefix lists</a> and <a href="https://docs.aws.amazon.com/network-firewall/latest/developerguide/rule-groups-ip-set-references.html#rule-groups-referencing-resource-groups">resource groups</a> in IP set references.
2229
+ * </p>
2230
+ * @public
2231
+ */
2232
+ export interface IPSetReference {
2233
+ /**
2234
+ * <p>The Amazon Resource Name (ARN) of the resource that you are referencing in your rule group.</p>
2235
+ * @public
2236
+ */
2237
+ ReferenceArn?: string | undefined;
2238
+ }
2239
+ /**
2240
+ * <p>Contains a set of IP set references.</p>
2241
+ * @public
2242
+ */
2243
+ export interface ReferenceSets {
2244
+ /**
2245
+ * <p>The list of IP set references.</p>
2246
+ * @public
2247
+ */
2248
+ IPSetReferences?: Record<string, IPSetReference> | undefined;
2249
+ }
2250
+ /**
2251
+ * <p>Metadata for a single firewall engine rule. Use it to disable a rule without removing it and to attach a description. When you describe a rule group in <code>RULES_STRING</code> format, Network Firewall renders a disabled rule and its description as <code>#</code> comment lines above the rule.</p>
2252
+ * @public
2253
+ */
2254
+ export interface RuleMetadata {
2255
+ /**
2256
+ * <p>Specifies whether the rule is active. The default is <code>TRUE</code>. When you set this to <code>FALSE</code>, Network Firewall keeps the rule in the rule group but doesn't evaluate it against traffic and doesn't count it toward the rule group's consumed capacity.</p>
2257
+ * @public
2258
+ */
2259
+ RuleEnabled?: boolean | undefined;
2260
+ /**
2261
+ * <p>A description of the rule, up to 512 characters. The description can span multiple lines. A description line can't itself look like a firewall rule; to disable a rule, set <code>RuleEnabled</code> to <code>FALSE</code> instead.</p>
2262
+ * @public
2263
+ */
2264
+ RuleDescription?: string | undefined;
2265
+ }
2266
+ /**
2267
+ * <p>Additional settings for a stateful rule. This is part of the <a>StatefulRule</a> configuration.</p>
2268
+ * @public
2269
+ */
2270
+ export interface RuleOption {
2271
+ /**
2272
+ * <p>The keyword for the Suricata compatible rule option. You must include a <code>sid</code> (signature ID), and can optionally include other keywords. For information about Suricata compatible keywords, see <a href="https://suricata.readthedocs.io/en/suricata-8.0.3/rules/intro.html#rule-options">Rule options</a> in the Suricata documentation.</p>
2273
+ * @public
2274
+ */
2275
+ Keyword: string | undefined;
2276
+ /**
2277
+ * <p>The settings of the Suricata compatible rule option. Rule options have zero or more setting values, and the number of possible and required settings depends on the <code>Keyword</code>. For more information about the settings for specific options, see <a href="https://suricata.readthedocs.io/en/suricata-8.0.3/rules/intro.html#rule-options">Rule options</a>.</p>
2278
+ * @public
2279
+ */
2280
+ Settings?: string[] | undefined;
2281
+ }
2282
+ /**
2283
+ * <p>A single structured firewall engine rule, for use in a firewall engine rule group or as an embedded rule in a Next Generation policy. A firewall rule accepts, drops, or rejects traffic at a connection-state hook. For more information about authoring firewall engine rules, see <a href="https://docs.aws.amazon.com/network-firewall/latest/developerguide/rule-groups-v2.html">Rule groups for a firewall using a Next Generation policy</a> in the <i>Network Firewall Developer Guide</i>.</p>
2284
+ * @public
2285
+ */
2286
+ export interface FirewallRule {
2287
+ /**
2288
+ * <p>The action that the firewall engine takes on traffic that matches the rule. The firewall engine supports the following actions:</p>
2289
+ * <ul>
2290
+ * <li>
2291
+ * <p>
2292
+ * <code>ACCEPT</code> - Allow the traffic.</p>
2293
+ * </li>
2294
+ * <li>
2295
+ * <p>
2296
+ * <code>DROP</code> - Block the traffic and discontinue inspection.</p>
2297
+ * </li>
2298
+ * <li>
2299
+ * <p>
2300
+ * <code>REJECT</code> - Block the traffic and send a TCP reset packet back to the client.</p>
2301
+ * </li>
2302
+ * <li>
2303
+ * <p>
2304
+ * <code>REJECT_DST</code> - Block the traffic and send a TCP reset packet to the destination.</p>
2305
+ * </li>
2306
+ * <li>
2307
+ * <p>
2308
+ * <code>REJECT_BOTH</code> - Block the traffic and send a TCP reset packet to both the client and the destination.</p>
2309
+ * </li>
2310
+ * </ul>
2311
+ * <p>You combine the action with an action scope, for example <code>accept:flow</code>. To send accepted traffic straight to its destination and skip the IPS engine, pair an accept action with the <code>BypassIPSEnabled</code> setting. For more information, see <a href="https://docs.aws.amazon.com/network-firewall/latest/developerguide/rule-groups-v2.html">Rule groups for a firewall using a Next Generation policy</a> in the <i>Network Firewall Developer Guide</i>.</p>
2312
+ * @public
2313
+ */
2314
+ Action: FirewallRuleAction | undefined;
2315
+ /**
2316
+ * <p>The scope that controls how much of the matched traffic the action applies to. The valid scopes depend on the action: <code>ACCEPT</code> supports all four scopes, and <code>DROP</code>, <code>REJECT</code>, <code>REJECT_DST</code>, and <code>REJECT_BOTH</code> support only <code>PACKET</code> and <code>FLOW</code>.</p>
2317
+ * <ul>
2318
+ * <li>
2319
+ * <p>
2320
+ * <code>PACKET</code> - The current packet only.</p>
2321
+ * </li>
2322
+ * <li>
2323
+ * <p>
2324
+ * <code>HOOK</code> - The current hook only. The firewall engine evaluates the connection again at the next hook.</p>
2325
+ * </li>
2326
+ * <li>
2327
+ * <p>
2328
+ * <code>TX</code> - The current transaction. The firewall engine continues to evaluate later transactions on the connection.</p>
2329
+ * </li>
2330
+ * <li>
2331
+ * <p>
2332
+ * <code>FLOW</code> - The entire connection. For an accept action, the connection skips the firewall engine's remaining hooks and advances to the IPS engine.</p>
2333
+ * </li>
2334
+ * </ul>
2335
+ * <p>In a Suricata-compatible rule string, you write the scope in lowercase, for example <code>accept:flow</code>.</p>
2336
+ * @public
2337
+ */
2338
+ ActionScope: ActionScope | undefined;
2339
+ /**
2340
+ * <p>The connection-state hook at which the firewall engine evaluates the rule. The hook encodes both the protocol and the connection state, for example a TCP hook or a TLS <code>client_hello</code> hook. For the hooks that the firewall engine supports and how they map to the connection lifecycle, see <a href="https://docs.aws.amazon.com/network-firewall/latest/developerguide/rule-groups-v2.html">Rule groups for a firewall using a Next Generation policy</a> in the <i>Network Firewall Developer Guide</i> and the <a href="https://suricata.readthedocs.io/en/suricata-8.0.3/firewall/firewall-design.html">Suricata firewall mode documentation</a>.</p>
2341
+ * @public
2342
+ */
2343
+ Hook: HookKey | undefined;
2344
+ /**
2345
+ * <p>The protocol of the rule's hook. The protocol is derived from the hook and must match the hook's protocol prefix. Network Firewall rejects a rule whose protocol doesn't match its hook.</p>
2346
+ * @public
2347
+ */
2348
+ Protocol: FirewallRuleProtocol | undefined;
2349
+ /**
2350
+ * <p>The source IP addresses and address ranges to inspect for, in CIDR notation. A firewall rule always compiles to a forward-direction rule, so you express inbound compared to outbound traffic through the source and destination addresses.</p>
2351
+ * @public
2352
+ */
2353
+ SourceIPs?: string | undefined;
2354
+ /**
2355
+ * <p>The destination IP addresses and address ranges to inspect for, in CIDR notation. A firewall rule always compiles to a forward-direction rule, so you express inbound compared to outbound traffic through the source and destination addresses.</p>
2356
+ * @public
2357
+ */
2358
+ DestIPs?: string | undefined;
2359
+ /**
2360
+ * <p>The source ports to inspect for.</p>
2361
+ * @public
2362
+ */
2363
+ SourcePorts?: string | undefined;
2364
+ /**
2365
+ * <p>The destination ports to inspect for.</p>
2366
+ * @public
2367
+ */
2368
+ DestPorts?: string | undefined;
2369
+ /**
2370
+ * <p>Additional options for the rule. These are the Suricata <code>RuleOptions</code> settings, such as the signature ID (<code>sid</code>) and match keywords.</p>
2371
+ * @public
2372
+ */
2373
+ RuleOptions?: RuleOption[] | undefined;
2374
+ /**
2375
+ * <p>Whether Network Firewall automatically accepts the earlier application-layer hooks that a connection must pass to reach this rule's hook. Because the firewall engine is drop by default, accepting prior hooks lets you author a single rule for the hook you care about, instead of also authoring a rule for each earlier hook. This setting accepts the earlier application-layer hooks only; it doesn't accept the TCP layer. For more information, see <a href="https://docs.aws.amazon.com/network-firewall/latest/developerguide/rule-groups-v2.html">Rule groups for a firewall using a Next Generation policy</a> in the <i>Network Firewall Developer Guide</i>.</p>
2376
+ * @public
2377
+ */
2378
+ AcceptPriorHooks?: boolean | undefined;
2379
+ /**
2380
+ * <p>Specifies whether the rule also generates an alert log for the traffic that it matches. Turning on alerting adds a secondary alert action to the rule, so that Network Firewall logs the match in addition to taking the rule's primary action.</p>
2381
+ * @public
2382
+ */
2383
+ AlertEnabled?: boolean | undefined;
2384
+ /**
2385
+ * <p>Specifies whether an accepted connection bypasses the IPS engine. By default, traffic that the firewall engine accepts advances to the IPS engine for threat inspection. When you turn on this setting for an accept rule, the accepted traffic goes straight to its destination without IPS inspection. You can set the bypass only on accept rules, and it uses the same scope as the rule's accept action; only the <code>flow</code> and <code>packet</code> scopes support a bypass. For more information, see <a href="https://docs.aws.amazon.com/network-firewall/latest/developerguide/rule-groups-v2.html">Rule groups for a firewall using a Next Generation policy</a> in the <i>Network Firewall Developer Guide</i>.</p>
2386
+ * @public
2387
+ */
2388
+ BypassIPSEnabled?: boolean | undefined;
2389
+ /**
2390
+ * <p>Optional metadata for the rule: whether the rule is enabled and a description. Metadata doesn't change how the rule matches or acts on traffic.</p>
2391
+ * @public
2392
+ */
2393
+ RuleMetadata?: RuleMetadata | undefined;
2394
+ }
2395
+ /**
2396
+ * <p>Stateful inspection criteria for a domain list rule group. </p>
2397
+ * <p>For HTTPS traffic, domain filtering is SNI-based. It uses the server name indicator extension of the TLS handshake.</p>
2398
+ * <p>By default, Network Firewall domain list inspection only includes traffic coming from the VPC where you deploy the firewall. To inspect traffic from IP addresses outside of the deployment VPC, you set the <code>HOME_NET</code> rule variable to include the CIDR range of the deployment VPC plus the other CIDR ranges. For more information, see <a>RuleVariables</a> in this guide and
2399
+ * <a href="https://docs.aws.amazon.com/network-firewall/latest/developerguide/stateful-rule-groups-domain-names.html">Stateful domain list rule groups in Network Firewall</a> in the <i>Network Firewall Developer Guide</i>.</p>
2400
+ * @public
2401
+ */
2402
+ export interface RulesSourceList {
2403
+ /**
2404
+ * <p>The domains that you want to inspect for in your traffic flows. Valid domain specifications are the following:</p>
2405
+ * <ul>
2406
+ * <li>
2407
+ * <p>Explicit names. For example, <code>abc.example.com</code> matches only the domain <code>abc.example.com</code>.</p>
2408
+ * </li>
2409
+ * <li>
2410
+ * <p>Names that use a domain wildcard, which you indicate with an initial '<code>.</code>'. For example,<code>.example.com</code> matches <code>example.com</code> and matches all subdomains of <code>example.com</code>, such as <code>abc.example.com</code> and <code>www.example.com</code>. </p>
2411
+ * </li>
2412
+ * </ul>
2413
+ * @public
2414
+ */
2415
+ Targets: string[] | undefined;
2416
+ /**
2417
+ * <p>The types of matching to perform against the domains in <code>Targets</code>. You can specify any combination of the following:</p>
2418
+ * <ul>
2419
+ * <li>
2420
+ * <p>
2421
+ * <code>AWS_ROUTE_53_RESOLVED_DOMAIN</code> – Match the domain against the domain that the Amazon Route 53 Resolver resolved the connection's destination IP address for.</p>
2422
+ * </li>
2423
+ * <li>
2424
+ * <p>
2425
+ * <code>HTTP_HOST</code> – Match the domain against the <code>Host</code> header of HTTP traffic.</p>
2426
+ * </li>
2427
+ * <li>
2428
+ * <p>
2429
+ * <code>TLS_SNI</code> – Match the domain against the Server Name Indication (SNI) of HTTPS traffic.</p>
2430
+ * </li>
2431
+ * </ul>
2432
+ * <p>
2433
+ * <code>AWS_ROUTE_53_RESOLVED_DOMAIN</code> matches on how the destination IP address was resolved, rather than on the domain that the client asserts in its TLS SNI or HTTP <code>Host</code> header. This target type takes effect when you configure resolved IP validation on the firewall policy. For more information, see <a>Route53ResolvedIPValidation</a>.</p>
2434
+ * <p>Whether you include <code>AWS_ROUTE_53_RESOLVED_DOMAIN</code> changes what the generated rules match, together with <code>GeneratedRulesType</code>:</p>
2435
+ * <ul>
2436
+ * <li>
2437
+ * <p>Combining <code>AWS_ROUTE_53_RESOLVED_DOMAIN</code> with <code>TLS_SNI</code> or <code>HTTP_HOST</code> in an <code>ALLOWLIST</code> requires both conditions to match. The SNI or <code>Host</code> header must match the domain, <b>and</b> the Route 53 Resolver must have resolved the destination IP address for that domain. Network Firewall allows traffic only in that case. Traffic that matches one condition, such as a spoofed <code>Host</code> header sent to an unresolved IP address, is not allowed.</p>
2438
+ * </li>
2439
+ * <li>
2440
+ * <p>In a <code>DENYLIST</code>, or when <code>AWS_ROUTE_53_RESOLVED_DOMAIN</code> is the only target type, Network Firewall evaluates each condition independently: a match on either the domain (SNI or <code>Host</code>) or the resolved destination IP address triggers the rule.</p>
2441
+ * </li>
2442
+ * <li>
2443
+ * <p>When you don't include <code>AWS_ROUTE_53_RESOLVED_DOMAIN</code>, the generated rules match only on the SNI or <code>Host</code> header, without checking how the destination IP address was resolved.</p>
2444
+ * </li>
2445
+ * </ul>
2446
+ * <p>An <code>ALLOWLIST</code> whose only target type is <code>AWS_ROUTE_53_RESOLVED_DOMAIN</code> is additive: it allows matching traffic but doesn't generate a default rule that drops non-matching traffic. Only the <code>TLS_SNI</code> and <code>HTTP_HOST</code> target types generate that default drop. To allow only the resolved domains and drop all other traffic, include a protocol target type as well.</p>
2447
+ * @public
2448
+ */
2449
+ TargetTypes: TargetType[] | undefined;
2450
+ /**
2451
+ * <p>Whether you want to apply allow, reject, alert, or drop behavior to the domains in your target list.</p>
2452
+ * <note>
2453
+ * <p>When logging is enabled and you choose Alert, traffic that matches the domain specifications
2454
+ * generates an alert in the firewall's logs. Then, traffic either passes, is rejected, or drops based on other rules in the firewall policy.</p>
2455
+ * </note>
2456
+ * @public
2457
+ */
2458
+ GeneratedRulesType: GeneratedRulesType | undefined;
2459
+ }
2460
+ /**
2461
+ * <p>The source of the rules for a firewall engine rule group. You provide the rules as a single Suricata-compatible rule string, as a list of structured firewall rules, or as a list of domain names to generate rules from.</p>
2462
+ * @public
2463
+ */
2464
+ export interface FirewallRulesSource {
2465
+ /**
2466
+ * <p>Firewall engine rules, provided as a single Suricata-compatible rule string in firewall mode. Use this to provide rules that you've already written in the Suricata firewall-mode format. For the rule format, see <a href="https://docs.aws.amazon.com/network-firewall/latest/developerguide/rule-groups-v2.html">Rule groups for a firewall using a Next Generation policy</a> in the <i>Network Firewall Developer Guide</i>.</p>
2467
+ * @public
2468
+ */
2469
+ RulesString?: string | undefined;
2470
+ /**
2471
+ * <p>An array of individual firewall engine rules, provided as structured rules rather than as a rule string.</p>
2472
+ * @public
2473
+ */
2474
+ FirewallRules?: FirewallRule[] | undefined;
2475
+ /**
2476
+ * <p>Stateful inspection criteria for a domain list, specified as the list of domain names that Network Firewall generates firewall engine rules from.</p>
2477
+ * @public
2478
+ */
2479
+ RulesSourceList?: RulesSourceList | undefined;
2480
+ }
2481
+ /**
2482
+ * <p>A set of port ranges for use in the rules in a rule group. </p>
2483
+ * @public
2484
+ */
2485
+ export interface PortSet {
2486
+ /**
2487
+ * <p>The set of port ranges.
2488
+ * </p>
2489
+ * @public
2490
+ */
2491
+ Definition?: string[] | undefined;
2492
+ }
2493
+ /**
2494
+ * <p>Settings that are available for use in the rules in the <a>RuleGroup</a>
2495
+ * where this is defined. See <a>CreateRuleGroup</a> or <a>UpdateRuleGroup</a> for usage.</p>
2496
+ * @public
2497
+ */
2498
+ export interface RuleVariables {
2499
+ /**
2500
+ * <p>A list of IP addresses and address ranges, in CIDR notation. </p>
2501
+ * @public
2502
+ */
2503
+ IPSets?: Record<string, IPSet> | undefined;
2504
+ /**
2505
+ * <p>A list of port ranges. </p>
2506
+ * @public
2507
+ */
2508
+ PortSets?: Record<string, PortSet> | undefined;
2509
+ }
2510
+ /**
2511
+ * <p>The object that defines a firewall engine rule group, for use in a Next Generation policy. A firewall engine rule group provides access-control rules that the firewall engine evaluates at connection-state hooks. You provide the rules as a Suricata-compatible rule string, as structured firewall rules, or generated from a list of domain names. For more information, see <a href="https://docs.aws.amazon.com/network-firewall/latest/developerguide/rule-groups-v2.html">Rule groups for a firewall using a Next Generation policy</a> in the <i>Network Firewall Developer Guide</i>.</p>
2512
+ * @public
2513
+ */
2514
+ export interface FirewallRuleGroup {
2515
+ /**
2516
+ * <p>The stateful inspection criteria for the firewall engine rule group.</p>
2517
+ * @public
2518
+ */
2519
+ RulesSource: FirewallRulesSource | undefined;
2520
+ /**
2521
+ * <p>Settings that are available for use in the rules in the firewall engine rule group, such as IP set and port variables that the rules reference.</p>
2522
+ * @public
2523
+ */
2524
+ RuleVariables?: RuleVariables | undefined;
2525
+ /**
2526
+ * <p>The list of a rule group's reference sets. Firewall engine rule groups don't support IP set references (reference sets); this setting applies to IPS engine rule groups. To use CIDR ranges in firewall engine rules, use rule variables instead.</p>
2527
+ * @public
2528
+ */
2529
+ ReferenceSets?: ReferenceSets | undefined;
2530
+ }
2531
+ /**
2532
+ * <p>A single entry in the firewall section of a Next Generation policy. An entry either references an existing firewall engine rule group by ARN or embeds a rule group directly in the policy, and it carries the priority that sets the rule group's evaluation order within the firewall section.</p>
2533
+ * @public
2534
+ */
2535
+ export interface FirewallRuleGroupEntry {
2536
+ /**
2537
+ * <p>The priority of the rule group entry within the firewall section. Network Firewall evaluates the firewall section's entries in order of increasing priority value. Each entry in the firewall section must have a unique priority.</p>
2538
+ * @public
2539
+ */
2540
+ Priority?: number | undefined;
2541
+ /**
2542
+ * <p>The Amazon Resource Name (ARN) of an existing firewall engine rule group to reference in this entry. Provide either <code>ResourceArn</code> to reference an existing rule group or <code>InlineRuleGroup</code> to embed a rule group in the policy.</p>
2543
+ * @public
2544
+ */
2545
+ ResourceArn?: string | undefined;
2546
+ /**
2547
+ * <p>A firewall engine rule group defined directly in the policy, instead of referenced by ARN. Provide either <code>InlineRuleGroup</code> to embed a rule group or <code>ResourceArn</code> to reference an existing rule group. An embedded rule group can't use a domain list rules source; to filter on a domain list, reference a standalone rule group by ARN instead.</p>
2548
+ * @public
2549
+ */
2550
+ InlineRuleGroup?: FirewallRuleGroup | undefined;
2551
+ }
2552
+ /**
2553
+ * <p>The source of the rules for an IPS engine rule group.</p>
2554
+ * @public
2555
+ */
2556
+ export interface IpsRulesSource {
2557
+ /**
2558
+ * <p>IPS engine rules, provided as a single Suricata-compatible rule string. For the rule format, see <a href="https://suricata.readthedocs.io/en/suricata-8.0.3/rules/intro.html">Rules Format</a> on the Suricata website.</p>
2559
+ * @public
2560
+ */
2561
+ RulesString?: string | undefined;
2562
+ }
2563
+ /**
2564
+ * <p>The object that defines an IPS engine rule group, for use in a Next Generation policy. An IPS engine rule group provides threat-detection rules that the IPS engine evaluates in the context of the traffic flow. You provide the rules as a Suricata-compatible rule string. For more information, see <a href="https://docs.aws.amazon.com/network-firewall/latest/developerguide/rule-groups-v2.html">Rule groups for a firewall using a Next Generation policy</a> in the <i>Network Firewall Developer Guide</i>.</p>
2565
+ * @public
2566
+ */
2567
+ export interface IpsRuleGroup {
2568
+ /**
2569
+ * <p>The stateful inspection criteria for the IPS engine rule group.</p>
2570
+ * @public
2571
+ */
2572
+ RulesSource: IpsRulesSource | undefined;
2573
+ /**
2574
+ * <p>Settings that are available for use in the rules in the IPS engine rule group.</p>
2575
+ * @public
2576
+ */
2577
+ RuleVariables?: RuleVariables | undefined;
2578
+ /**
2579
+ * <p>The list of a rule group's reference sets.</p>
2580
+ * @public
2581
+ */
2582
+ ReferenceSets?: ReferenceSets | undefined;
2583
+ }
2584
+ /**
2585
+ * <p>The setting that allows the policy owner to change the behavior of an IPS engine rule group within a Next Generation policy.</p>
2586
+ * @public
2587
+ */
2588
+ export interface IpsRuleGroupOverride {
2589
+ /**
2590
+ * <p>The action that changes the rule group from <code>DROP</code> to <code>ALERT</code>. This only applies to managed rule groups.</p>
2591
+ * @public
2592
+ */
2593
+ Action?: OverrideAction | undefined;
2594
+ }
2595
+ /**
2596
+ * <p>A single entry in the IPS section of a Next Generation policy. An entry either references an existing IPS engine rule group by ARN or embeds a rule group directly in the policy. IPS section entries don't use a priority.</p>
2597
+ * @public
2598
+ */
2599
+ export interface IpsRuleGroupEntry {
2600
+ /**
2601
+ * <p>The Amazon Resource Name (ARN) of an existing IPS engine rule group to reference in this entry. Provide either <code>ResourceArn</code> to reference an existing rule group or <code>InlineRuleGroup</code> to embed a rule group in the policy.</p>
2602
+ * @public
2603
+ */
2604
+ ResourceArn?: string | undefined;
2605
+ /**
2606
+ * <p>An IPS engine rule group defined directly in the policy, instead of referenced by ARN. Provide either <code>InlineRuleGroup</code> to embed a rule group or <code>ResourceArn</code> to reference an existing rule group.</p>
2607
+ * @public
2608
+ */
2609
+ InlineRuleGroup?: IpsRuleGroup | undefined;
2610
+ /**
2611
+ * <p>The setting that allows the policy owner to change the behavior of the IPS engine rule group within this policy, such as changing a managed rule group's action from <code>DROP</code> to <code>ALERT</code>.</p>
2612
+ * @public
2613
+ */
2614
+ Override?: IpsRuleGroupOverride | undefined;
2615
+ }
2616
+ /**
2617
+ * <p>Configuration settings for the handling of stateful traffic in a Next Generation policy.</p>
2618
+ * @public
2619
+ */
2620
+ export interface StatefulEngineOptionsV2 {
2621
+ /**
2622
+ * <p>How Network Firewall handles traffic on a network connection that breaks midstream. A Next Generation policy supports <code>DROP</code> and <code>REJECT</code>. For more information, see <a href="https://docs.aws.amazon.com/network-firewall/latest/developerguide/stream-exception-policy.html">Stream exception policy options in your firewall policy</a> in the <i>Network Firewall Developer Guide</i>.</p>
2623
+ * @public
2624
+ */
2625
+ StreamExceptionPolicy?: StreamExceptionPolicyV2 | undefined;
2626
+ /**
2627
+ * <p>The amount of time that can pass without any traffic sent through the firewall before the firewall determines that the connection is idle.</p>
2628
+ * @public
2629
+ */
2630
+ FlowTimeouts?: FlowTimeouts | undefined;
2631
+ }
2632
+ /**
2633
+ * <p>The object that defines a Next Generation policy. This, along with the <a>FirewallPolicyV2Response</a>, define the policy.</p>
2634
+ * <p>A Next Generation policy defines how the firewall engine and IPS engine inspect and control your VPC network traffic. You define the policy as a firewall section and an IPS section, each a collection of rule groups, along with policy-wide settings such as the policy mode and default actions. For more information, see <a href="https://docs.aws.amazon.com/network-firewall/latest/developerguide/firewall-policies-v2.html">Next Generation policies</a> in the <i>Network Firewall Developer Guide</i>.</p>
2635
+ * @public
2636
+ */
2637
+ export interface FirewallPolicyV2 {
2638
+ /**
2639
+ * <p>The firewall section of the policy—the rule groups that the firewall engine evaluates. Each entry references an existing firewall engine rule group or embeds a rule group directly in the policy, and each entry has a unique priority that sets its evaluation order within the section.</p>
2640
+ * @public
2641
+ */
2642
+ FirewallRuleGroupEntries?: FirewallRuleGroupEntry[] | undefined;
2643
+ /**
2644
+ * <p>The IPS section of the policy—the rule groups that the IPS engine evaluates. Each entry references an existing IPS engine rule group or embeds a rule group directly in the policy. IPS section entries don't use a priority.</p>
2645
+ * @public
2646
+ */
2647
+ IpsRuleGroupEntries?: IpsRuleGroupEntry[] | undefined;
2648
+ /**
2649
+ * <p>Indicates whether the policy's engines enforce their verdicts or only report them. In <code>ENFORCE</code> mode, the firewall engine and IPS engine apply their verdicts to traffic. In <code>MONITOR</code> mode, the engines evaluate traffic and generate logs and metrics, but don't block traffic, so you can observe how a policy would behave before you enforce it. For more information, see <a href="https://docs.aws.amazon.com/network-firewall/latest/developerguide/firewall-policies-v2.html">Next Generation policies</a> in the <i>Network Firewall Developer Guide</i>.</p>
2650
+ * @public
2651
+ */
2652
+ PolicyMode?: PolicyMode | undefined;
2653
+ /**
2654
+ * <p>The action that the firewall engine takes on traffic that doesn't match any firewall engine rule at a hook. The firewall engine is drop by default. You can set the default action to one of the following:</p>
2655
+ * <ul>
2656
+ * <li>
2657
+ * <p>
2658
+ * <code>DROP</code> - Block the traffic.</p>
2659
+ * </li>
2660
+ * <li>
2661
+ * <p>
2662
+ * <code>ACCEPT</code> - Allow the traffic.</p>
2663
+ * </li>
2664
+ * <li>
2665
+ * <p>
2666
+ * <code>REJECT</code> - Block the traffic and send a TCP reset packet back to the client.</p>
2667
+ * </li>
2668
+ * <li>
2669
+ * <p>
2670
+ * <code>ALERT</code> - Allow the traffic and generate an alert log for the traffic that reaches the default action at every hook. This is distinct from setting the policy mode to <code>MONITOR</code>.</p>
2671
+ * </li>
2672
+ * </ul>
2673
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/network-firewall/latest/developerguide/firewall-policies-v2.html">Next Generation policies</a> in the <i>Network Firewall Developer Guide</i>.</p>
2000
2674
  * @public
2001
2675
  */
2002
- StatefulDefaultActions?: string[] | undefined;
2676
+ FirewallDefaultAction?: PolicyDefaultAction | undefined;
2003
2677
  /**
2004
- * <p>Additional options governing how Network Firewall handles stateful rules. The stateful
2005
- * rule groups that you use in your policy must have stateful rule options settings that are compatible with these settings.</p>
2678
+ * <p>Additional options governing how the engines handle stateful traffic, such as the stream exception policy and flow timeouts.</p>
2006
2679
  * @public
2007
2680
  */
2008
- StatefulEngineOptions?: StatefulEngineOptions | undefined;
2681
+ StatefulEngineOptions?: StatefulEngineOptionsV2 | undefined;
2009
2682
  /**
2010
- * <p>The Amazon Resource Name (ARN) of the TLS inspection configuration.</p>
2683
+ * <p>The Amazon Resource Name (ARN) of the TLS inspection configuration to use to decrypt traffic for inspection. Next Generation policies support session holding only. For more information, see <a href="https://docs.aws.amazon.com/network-firewall/latest/developerguide/tls-inspection.html">Inspecting SSL/TLS traffic with TLS inspection configurations</a> in the <i>Network Firewall Developer Guide</i>.</p>
2011
2684
  * @public
2012
2685
  */
2013
2686
  TLSInspectionConfigurationArn?: string | undefined;
2014
2687
  /**
2015
- * <p>Contains variables that you can use to override default Suricata settings in your firewall policy.</p>
2688
+ * <p>Contains variables that you can use to override default Suricata settings in your Next Generation policy.</p>
2016
2689
  * @public
2017
2690
  */
2018
2691
  PolicyVariables?: PolicyVariables | undefined;
2019
2692
  /**
2020
- * <p>When true, prevents TCP and TLS packets from reaching destination servers until TLS Inspection has evaluated Server Name Indication (SNI) rules. Requires an associated TLS Inspection configuration.</p>
2021
- * @public
2022
- */
2023
- EnableTLSSessionHolding?: boolean | undefined;
2024
- /**
2025
- * <p>The settings that enable resolved IP validation for the policy. Resolved IP validation
2026
- * verifies that a connection's destination IP address is one that the Amazon Route 53 Resolver
2027
- * returned in a DNS response for a domain. The response must come from a VPC that's associated
2028
- * with the Route 53 Resolver DNS Firewall rule group that you specify. This checks how the
2029
- * destination IP address was obtained, instead of relying only on the domain that the client
2030
- * asserts in its TLS Server Name Indication (SNI) or HTTP <code>Host</code> header. For more
2031
- * information, see <a>Route53ResolvedIPValidation</a>.</p>
2693
+ * <p>The settings that enable resolved IP validation for the Next Generation policy.
2694
+ * Resolved IP validation verifies that a connection's destination IP address is one that the
2695
+ * Amazon Route 53 Resolver returned in a DNS response for a domain. A VPC that's associated with
2696
+ * the Route 53 Resolver DNS Firewall rule group that you specify must send the response.
2697
+ * This checks how the destination IP address was obtained, instead of relying only on the
2698
+ * domain that the client asserts in its TLS Server Name Indication (SNI) or HTTP
2699
+ * <code>Host</code> header. For more information, see
2700
+ * <a>Route53ResolvedIPValidation</a>.</p>
2032
2701
  * @public
2033
2702
  */
2034
2703
  Route53ResolvedIPValidation?: Route53ResolvedIPValidation | undefined;
@@ -2036,17 +2705,17 @@ export interface FirewallPolicy {
2036
2705
  /**
2037
2706
  * @public
2038
2707
  */
2039
- export interface CreateFirewallPolicyRequest {
2708
+ export interface CreateFirewallPolicyV2Request {
2040
2709
  /**
2041
- * <p>The descriptive name of the firewall policy. You can't change the name of a firewall policy after you create it.</p>
2710
+ * <p>The descriptive name of the Next Generation policy. You can't change the name of a firewall policy after you create it.</p>
2042
2711
  * @public
2043
2712
  */
2044
- FirewallPolicyName: string | undefined;
2713
+ FirewallPolicyV2Name: string | undefined;
2045
2714
  /**
2046
- * <p>The rule groups and policy actions to use in the firewall policy.</p>
2715
+ * <p>The rule groups and other settings that define the Next Generation policy.</p>
2047
2716
  * @public
2048
2717
  */
2049
- FirewallPolicy: FirewallPolicy | undefined;
2718
+ FirewallPolicyV2: FirewallPolicyV2 | undefined;
2050
2719
  /**
2051
2720
  * <p>A description of the firewall policy.</p>
2052
2721
  * @public
@@ -2074,129 +2743,77 @@ export interface CreateFirewallPolicyRequest {
2074
2743
  EncryptionConfiguration?: EncryptionConfiguration | undefined;
2075
2744
  }
2076
2745
  /**
2077
- * <p>A configuration error that Network Firewall detected for a firewall policy.</p>
2078
- * @public
2079
- */
2080
- export interface FirewallPolicyError {
2081
- /**
2082
- * <p>The error code identifies the type of error. Valid values are the following:</p>
2083
- * <ul>
2084
- * <li>
2085
- * <p>
2086
- * <code>DNS_FIREWALL_RULE_GROUP_UNAVAILABLE</code> – The Amazon Route 53 Resolver DNS
2087
- * Firewall rule group that resolved IP validation references is unavailable, for example,
2088
- * because it was deleted or is no longer accessible from your account. Update the rule
2089
- * group ID or remove the resolved IP validation configuration.</p>
2090
- * </li>
2091
- * <li>
2092
- * <p>
2093
- * <code>ROUTE53_RESOLVED_IP_VALIDATION_MISSING</code> – An associated stateful rule
2094
- * group uses the <code>aws_route_53_resolved_domain</code> keyword, but the policy doesn't
2095
- * have resolved IP validation configured. The affected rules are inactive until you add
2096
- * resolved IP validation to the policy or remove the keyword rules.</p>
2097
- * </li>
2098
- * </ul>
2099
- * @public
2100
- */
2101
- Code: FirewallPolicyErrorCode | undefined;
2102
- /**
2103
- * <p>A description of the error and how to resolve it.</p>
2104
- * @public
2105
- */
2106
- Message: string | undefined;
2107
- /**
2108
- * <p>The ID of the resource that the error relates to, when applicable. For example, for
2109
- * <code>DNS_FIREWALL_RULE_GROUP_UNAVAILABLE</code> this is the Amazon Route 53 Resolver DNS
2110
- * Firewall rule group ID.</p>
2111
- * @public
2112
- */
2113
- ResourceId?: string | undefined;
2114
- }
2115
- /**
2116
- * <p>The high-level properties of a firewall policy. This, along with the <a>FirewallPolicy</a>, define the policy. You can retrieve all objects for a firewall policy by calling <a>DescribeFirewallPolicy</a>. </p>
2746
+ * <p>The high-level properties of a Next Generation policy. This includes the policy's identity, status, consumed capacity, and association count. Network Firewall returns this object in response to the Next Generation policy operations. To retrieve the policy's rule groups and settings, use the <code>FirewallPolicyV2</code> object.</p>
2117
2747
  * @public
2118
2748
  */
2119
- export interface FirewallPolicyResponse {
2749
+ export interface FirewallPolicyV2Response {
2120
2750
  /**
2121
- * <p>The descriptive name of the firewall policy. You can't change the name of a firewall policy after you create it.</p>
2751
+ * <p>The descriptive name of the Next Generation policy. You can't change the name of a firewall policy after you create it.</p>
2122
2752
  * @public
2123
2753
  */
2124
- FirewallPolicyName: string | undefined;
2754
+ FirewallPolicyV2Name: string | undefined;
2125
2755
  /**
2126
- * <p>The Amazon Resource Name (ARN) of the firewall policy.</p>
2127
- * <note>
2128
- * <p>If this response is for a create request that had <code>DryRun</code> set to
2129
- * <code>TRUE</code>, then this ARN is a placeholder that isn't attached to a valid
2130
- * resource.</p>
2131
- * </note>
2756
+ * <p>The Amazon Resource Name (ARN) of the Next Generation policy.</p>
2132
2757
  * @public
2133
2758
  */
2134
- FirewallPolicyArn: string | undefined;
2759
+ FirewallPolicyV2Arn: string | undefined;
2135
2760
  /**
2136
- * <p>The unique identifier for the firewall policy. </p>
2761
+ * <p>The unique identifier of the Next Generation policy. Network Firewall assigns this identifier when you create the policy.</p>
2137
2762
  * @public
2138
2763
  */
2139
- FirewallPolicyId: string | undefined;
2764
+ FirewallPolicyV2Id: string | undefined;
2140
2765
  /**
2141
- * <p>A description of the firewall policy.</p>
2766
+ * <p>A description of the Next Generation policy.</p>
2142
2767
  * @public
2143
2768
  */
2144
2769
  Description?: string | undefined;
2145
2770
  /**
2146
- * <p>The current status of the firewall policy. You can retrieve this for a firewall policy
2147
- * by calling <a>DescribeFirewallPolicy</a> and providing the firewall policy's
2148
- * name or ARN.</p>
2771
+ * <p>The current status of the Next Generation policy. A policy must be in the <code>ACTIVE</code> state before you can use it in a firewall.</p>
2149
2772
  * @public
2150
2773
  */
2151
- FirewallPolicyStatus?: ResourceStatus | undefined;
2774
+ FirewallPolicyV2Status?: ResourceStatus | undefined;
2152
2775
  /**
2153
- * <p>Additional detail about the firewall policy's current status, when applicable. For
2154
- * example, while an Amazon Route 53 Resolver DNS Firewall rule group change is in progress, the
2155
- * status is <code>UPDATING</code> and this message is "A DNS Firewall rule group change is in
2156
- * progress."</p>
2776
+ * <p>Additional information about the current status of the Next Generation policy.</p>
2157
2777
  * @public
2158
2778
  */
2159
2779
  StatusMessage?: string | undefined;
2160
2780
  /**
2161
- * <p>The key:value pairs to associate with the resource.</p>
2781
+ * <p>The key-value tag pairs that are associated with the Next Generation policy.</p>
2162
2782
  * @public
2163
2783
  */
2164
2784
  Tags?: Tag[] | undefined;
2165
2785
  /**
2166
- * <p>The number of capacity units currently consumed by the policy's stateless rules.</p>
2786
+ * <p>The number of firewall engine rule capacity units that the policy's firewall section currently consumes.</p>
2167
2787
  * @public
2168
2788
  */
2169
- ConsumedStatelessRuleCapacity?: number | undefined;
2789
+ ConsumedFirewallRuleCapacity?: number | undefined;
2170
2790
  /**
2171
- * <p>The number of capacity units currently consumed by the policy's stateful rules.</p>
2791
+ * <p>The number of IPS engine rule capacity units that the policy's IPS section currently consumes.</p>
2172
2792
  * @public
2173
2793
  */
2174
- ConsumedStatefulRuleCapacity?: number | undefined;
2794
+ ConsumedIpsRuleCapacity?: number | undefined;
2175
2795
  /**
2176
- * <p>The total number of domain name specifications across all domain list rule groups in the firewall policy that use the <code>stateful-domain-rulegroup</code> resource type.</p>
2796
+ * <p>The number of IPS domain list capacity units that the policy's IPS section currently consumes.</p>
2177
2797
  * @public
2178
2798
  */
2179
- ConsumedStatefulDomainCapacity?: number | undefined;
2799
+ ConsumedIpsDomainCapacity?: number | undefined;
2180
2800
  /**
2181
- * <p>The number of firewalls that are associated with this firewall policy.</p>
2801
+ * <p>The number of firewalls that are associated with the Next Generation policy.</p>
2182
2802
  * @public
2183
2803
  */
2184
2804
  NumberOfAssociations?: number | undefined;
2185
2805
  /**
2186
- * <p>A complex type that contains the Amazon Web Services KMS encryption configuration settings for your firewall policy.</p>
2806
+ * <p>A complex type that contains the Amazon Web Services KMS encryption configuration settings for your Next Generation policy.</p>
2187
2807
  * @public
2188
2808
  */
2189
2809
  EncryptionConfiguration?: EncryptionConfiguration | undefined;
2190
2810
  /**
2191
- * <p>Any configuration errors that apply to the firewall policy. Network Firewall detects these
2192
- * errors asynchronously, after you create or update the policy, so an error can appear after
2193
- * the request that caused it has already succeeded. Each entry describes the problem and how to
2194
- * resolve it, and Network Firewall clears it automatically after you resolve the problem.</p>
2811
+ * <p>Any configuration errors that apply to the Next Generation policy. Network Firewall detects these errors asynchronously, after you create or update the policy, so an error can appear after the request that caused it has already succeeded. Each entry describes the problem and how to resolve it, and Network Firewall clears it automatically after you resolve the problem.</p>
2195
2812
  * @public
2196
2813
  */
2197
2814
  Errors?: FirewallPolicyError[] | undefined;
2198
2815
  /**
2199
- * <p>The last time that the firewall policy was changed.</p>
2816
+ * <p>The last time that the Next Generation policy was changed.</p>
2200
2817
  * @public
2201
2818
  */
2202
2819
  LastModifiedTime?: Date | undefined;
@@ -2204,7 +2821,7 @@ export interface FirewallPolicyResponse {
2204
2821
  /**
2205
2822
  * @public
2206
2823
  */
2207
- export interface CreateFirewallPolicyResponse {
2824
+ export interface CreateFirewallPolicyV2Response {
2208
2825
  /**
2209
2826
  * <p>A token used for optimistic locking. Network Firewall returns a token to your requests that access the firewall policy. The token marks the state of the policy resource at the time of the request. </p>
2210
2827
  * <p>To make changes to the policy, you provide the token in your request. Network Firewall uses the token to ensure that the policy hasn't changed since you last retrieved it. If it has changed, the operation fails with an <code>InvalidTokenException</code>. If this happens, retrieve the firewall policy again to get a current copy of it with current token. Reapply your changes as needed, then try the operation again using the new token. </p>
@@ -2212,10 +2829,10 @@ export interface CreateFirewallPolicyResponse {
2212
2829
  */
2213
2830
  UpdateToken: string | undefined;
2214
2831
  /**
2215
- * <p>The high-level properties of a firewall policy. This, along with the <a>FirewallPolicy</a>, define the policy. You can retrieve all objects for a firewall policy by calling <a>DescribeFirewallPolicy</a>. </p>
2832
+ * <p>The high-level properties of the Next Generation policy. This, along with the <a>FirewallPolicyV2</a>, define the policy. You can retrieve all objects for a Next Generation policy by calling <a>DescribeFirewallPolicyV2</a>.</p>
2216
2833
  * @public
2217
2834
  */
2218
- FirewallPolicyResponse: FirewallPolicyResponse | undefined;
2835
+ FirewallPolicyV2Response: FirewallPolicyV2Response | undefined;
2219
2836
  }
2220
2837
  /**
2221
2838
  * <p>This data type is used specifically for the <a>CreateProxy</a> and
@@ -2705,96 +3322,6 @@ export interface CreateProxyRulesResponse {
2705
3322
  */
2706
3323
  UpdateToken?: string | undefined;
2707
3324
  }
2708
- /**
2709
- * <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 resources 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 resource 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>
2710
- * <p>
2711
- * Network Firewall currently supports <a href="https://docs.aws.amazon.com/vpc/latest/userguide/managed-prefix-lists.html">Amazon VPC prefix lists</a> and <a href="https://docs.aws.amazon.com/network-firewall/latest/developerguide/rule-groups-ip-set-references.html#rule-groups-referencing-resource-groups">resource groups</a> in IP set references.
2712
- * </p>
2713
- * @public
2714
- */
2715
- export interface IPSetReference {
2716
- /**
2717
- * <p>The Amazon Resource Name (ARN) of the resource that you are referencing in your rule group.</p>
2718
- * @public
2719
- */
2720
- ReferenceArn?: string | undefined;
2721
- }
2722
- /**
2723
- * <p>Contains a set of IP set references.</p>
2724
- * @public
2725
- */
2726
- export interface ReferenceSets {
2727
- /**
2728
- * <p>The list of IP set references.</p>
2729
- * @public
2730
- */
2731
- IPSetReferences?: Record<string, IPSetReference> | undefined;
2732
- }
2733
- /**
2734
- * <p>Stateful inspection criteria for a domain list rule group. </p>
2735
- * <p>For HTTPS traffic, domain filtering is SNI-based. It uses the server name indicator extension of the TLS handshake.</p>
2736
- * <p>By default, Network Firewall domain list inspection only includes traffic coming from the VPC where you deploy the firewall. To inspect traffic from IP addresses outside of the deployment VPC, you set the <code>HOME_NET</code> rule variable to include the CIDR range of the deployment VPC plus the other CIDR ranges. For more information, see <a>RuleVariables</a> in this guide and
2737
- * <a href="https://docs.aws.amazon.com/network-firewall/latest/developerguide/stateful-rule-groups-domain-names.html">Stateful domain list rule groups in Network Firewall</a> in the <i>Network Firewall Developer Guide</i>.</p>
2738
- * @public
2739
- */
2740
- export interface RulesSourceList {
2741
- /**
2742
- * <p>The domains that you want to inspect for in your traffic flows. Valid domain specifications are the following:</p>
2743
- * <ul>
2744
- * <li>
2745
- * <p>Explicit names. For example, <code>abc.example.com</code> matches only the domain <code>abc.example.com</code>.</p>
2746
- * </li>
2747
- * <li>
2748
- * <p>Names that use a domain wildcard, which you indicate with an initial '<code>.</code>'. For example,<code>.example.com</code> matches <code>example.com</code> and matches all subdomains of <code>example.com</code>, such as <code>abc.example.com</code> and <code>www.example.com</code>. </p>
2749
- * </li>
2750
- * </ul>
2751
- * @public
2752
- */
2753
- Targets: string[] | undefined;
2754
- /**
2755
- * <p>The types of matching to perform against the domains in <code>Targets</code>. You can specify any combination of the following:</p>
2756
- * <ul>
2757
- * <li>
2758
- * <p>
2759
- * <code>AWS_ROUTE_53_RESOLVED_DOMAIN</code> – Match the domain against the domain that the Amazon Route 53 Resolver resolved the connection's destination IP address for.</p>
2760
- * </li>
2761
- * <li>
2762
- * <p>
2763
- * <code>HTTP_HOST</code> – Match the domain against the <code>Host</code> header of HTTP traffic.</p>
2764
- * </li>
2765
- * <li>
2766
- * <p>
2767
- * <code>TLS_SNI</code> – Match the domain against the Server Name Indication (SNI) of HTTPS traffic.</p>
2768
- * </li>
2769
- * </ul>
2770
- * <p>
2771
- * <code>AWS_ROUTE_53_RESOLVED_DOMAIN</code> matches on how the destination IP address was resolved, rather than on the domain that the client asserts in its TLS SNI or HTTP <code>Host</code> header. This target type takes effect when you configure resolved IP validation on the firewall policy. For more information, see <a>Route53ResolvedIPValidation</a>.</p>
2772
- * <p>Whether you include <code>AWS_ROUTE_53_RESOLVED_DOMAIN</code> changes what the generated rules match, together with <code>GeneratedRulesType</code>:</p>
2773
- * <ul>
2774
- * <li>
2775
- * <p>Combining <code>AWS_ROUTE_53_RESOLVED_DOMAIN</code> with <code>TLS_SNI</code> or <code>HTTP_HOST</code> in an <code>ALLOWLIST</code> requires both conditions to match. The SNI or <code>Host</code> header must match the domain, <b>and</b> the Route 53 Resolver must have resolved the destination IP address for that domain. Network Firewall allows traffic only in that case. Traffic that matches one condition, such as a spoofed <code>Host</code> header sent to an unresolved IP address, is not allowed.</p>
2776
- * </li>
2777
- * <li>
2778
- * <p>In a <code>DENYLIST</code>, or when <code>AWS_ROUTE_53_RESOLVED_DOMAIN</code> is the only target type, Network Firewall evaluates each condition independently: a match on either the domain (SNI or <code>Host</code>) or the resolved destination IP address triggers the rule.</p>
2779
- * </li>
2780
- * <li>
2781
- * <p>When you don't include <code>AWS_ROUTE_53_RESOLVED_DOMAIN</code>, the generated rules match only on the SNI or <code>Host</code> header, without checking how the destination IP address was resolved.</p>
2782
- * </li>
2783
- * </ul>
2784
- * <p>An <code>ALLOWLIST</code> whose only target type is <code>AWS_ROUTE_53_RESOLVED_DOMAIN</code> is additive: it allows matching traffic but doesn't generate a default rule that drops non-matching traffic. Only the <code>TLS_SNI</code> and <code>HTTP_HOST</code> target types generate that default drop. To allow only the resolved domains and drop all other traffic, include a protocol target type as well.</p>
2785
- * @public
2786
- */
2787
- TargetTypes: TargetType[] | undefined;
2788
- /**
2789
- * <p>Whether you want to apply allow, reject, alert, or drop behavior to the domains in your target list.</p>
2790
- * <note>
2791
- * <p>When logging is enabled and you choose Alert, traffic that matches the domain specifications
2792
- * generates an alert in the firewall's logs. Then, traffic either passes, is rejected, or drops based on other rules in the firewall policy.</p>
2793
- * </note>
2794
- * @public
2795
- */
2796
- GeneratedRulesType: GeneratedRulesType | undefined;
2797
- }
2798
3325
  /**
2799
3326
  * <p>The basic rule criteria for Network Firewall to use to inspect packet headers in stateful
2800
3327
  * traffic flow inspection. Traffic flows that match the criteria are a match for the
@@ -2878,27 +3405,11 @@ export interface Header {
2878
3405
  */
2879
3406
  DestinationPort: string | undefined;
2880
3407
  }
2881
- /**
2882
- * <p>Additional settings for a stateful rule. This is part of the <a>StatefulRule</a> configuration.</p>
2883
- * @public
2884
- */
2885
- export interface RuleOption {
2886
- /**
2887
- * <p>The keyword for the Suricata compatible rule option. You must include a <code>sid</code> (signature ID), and can optionally include other keywords. For information about Suricata compatible keywords, see <a href="https://suricata.readthedocs.io/en/suricata-8.0.3/rules/intro.html#rule-options">Rule options</a> in the Suricata documentation.</p>
2888
- * @public
2889
- */
2890
- Keyword: string | undefined;
2891
- /**
2892
- * <p>The settings of the Suricata compatible rule option. Rule options have zero or more setting values, and the number of possible and required settings depends on the <code>Keyword</code>. For more information about the settings for specific options, see <a href="https://suricata.readthedocs.io/en/suricata-8.0.3/rules/intro.html#rule-options">Rule options</a>.</p>
2893
- * @public
2894
- */
2895
- Settings?: string[] | undefined;
2896
- }
2897
3408
  /**
2898
3409
  * <p>A single Suricata rules specification, for use in a stateful rule group.
2899
3410
  * Use this option to specify a simple Suricata rule with protocol, source and destination, ports, direction, and rule options.
2900
3411
  * For information about the Suricata <code>Rules</code> format, see
2901
- * <a href="https://suricata.readthedocs.io/en/suricata-8.0.3/rules/intro.html">Rules Format</a>. </p>
3412
+ * <a href="https://suricata.readthedocs.io/en/suricata-8.0.3/rules/intro.html">Rules Format</a> on the Suricata website. </p>
2902
3413
  * @public
2903
3414
  */
2904
3415
  export interface StatefulRule {
@@ -3170,7 +3681,7 @@ export interface RulesSource {
3170
3681
  * <p>An array of individual stateful rules inspection criteria to be used together in a stateful rule group.
3171
3682
  * Use this option to specify simple Suricata rules with protocol, source and destination, ports, direction, and rule options.
3172
3683
  * For information about the Suricata <code>Rules</code> format, see
3173
- * <a href="https://suricata.readthedocs.io/en/suricata-8.0.3/rules/intro.html">Rules Format</a>. </p>
3684
+ * <a href="https://suricata.readthedocs.io/en/suricata-8.0.3/rules/intro.html">Rules Format</a> on the Suricata website. </p>
3174
3685
  * @public
3175
3686
  */
3176
3687
  StatefulRules?: StatefulRule[] | undefined;
@@ -3180,35 +3691,6 @@ export interface RulesSource {
3180
3691
  */
3181
3692
  StatelessRulesAndCustomActions?: StatelessRulesAndCustomActions | undefined;
3182
3693
  }
3183
- /**
3184
- * <p>A set of port ranges for use in the rules in a rule group. </p>
3185
- * @public
3186
- */
3187
- export interface PortSet {
3188
- /**
3189
- * <p>The set of port ranges.
3190
- * </p>
3191
- * @public
3192
- */
3193
- Definition?: string[] | undefined;
3194
- }
3195
- /**
3196
- * <p>Settings that are available for use in the rules in the <a>RuleGroup</a>
3197
- * where this is defined. See <a>CreateRuleGroup</a> or <a>UpdateRuleGroup</a> for usage.</p>
3198
- * @public
3199
- */
3200
- export interface RuleVariables {
3201
- /**
3202
- * <p>A list of IP addresses and address ranges, in CIDR notation. </p>
3203
- * @public
3204
- */
3205
- IPSets?: Record<string, IPSet> | undefined;
3206
- /**
3207
- * <p>A list of port ranges. </p>
3208
- * @public
3209
- */
3210
- PortSets?: Record<string, PortSet> | undefined;
3211
- }
3212
3694
  /**
3213
3695
  * <p>Additional options governing how Network Firewall handles the rule group. You can only use these for stateful rule groups.</p>
3214
3696
  * @public
@@ -3308,6 +3790,16 @@ export interface CreateRuleGroupRequest {
3308
3790
  * @public
3309
3791
  */
3310
3792
  RuleGroup?: RuleGroup | undefined;
3793
+ /**
3794
+ * <p>An object that defines the rules in a firewall engine rule group, for use in a Next Generation policy.</p>
3795
+ * @public
3796
+ */
3797
+ FirewallRuleGroup?: FirewallRuleGroup | undefined;
3798
+ /**
3799
+ * <p>An object that defines the rules in an IPS engine rule group, for use in a Next Generation policy.</p>
3800
+ * @public
3801
+ */
3802
+ IpsRuleGroup?: IpsRuleGroup | undefined;
3311
3803
  /**
3312
3804
  * <p>A string containing stateful rule group rules specifications in Suricata flat format, with one rule
3313
3805
  * per line. Use this to import your existing Suricata compatible rule groups. </p>
@@ -3320,8 +3812,25 @@ export interface CreateRuleGroupRequest {
3320
3812
  */
3321
3813
  Rules?: string | undefined;
3322
3814
  /**
3323
- * <p>Indicates whether the rule group is stateless or stateful. If the rule group is stateless, it contains
3324
- * stateless rules. If it is stateful, it contains stateful rules. </p>
3815
+ * <p>Indicates the type of the rule group. Valid values are:</p>
3816
+ * <ul>
3817
+ * <li>
3818
+ * <p>
3819
+ * <code>STATELESS</code> - Stateless rules, for use in a Classic Network Firewall policy.</p>
3820
+ * </li>
3821
+ * <li>
3822
+ * <p>
3823
+ * <code>STATEFUL</code> - Stateful rules, for use in a Classic Network Firewall policy.</p>
3824
+ * </li>
3825
+ * <li>
3826
+ * <p>
3827
+ * <code>FIREWALL</code> - Firewall engine rules, for use in a Next Generation policy.</p>
3828
+ * </li>
3829
+ * <li>
3830
+ * <p>
3831
+ * <code>IPS</code> - IPS engine rules, for use in a Next Generation policy.</p>
3832
+ * </li>
3833
+ * </ul>
3325
3834
  * @public
3326
3835
  */
3327
3836
  Type: RuleGroupType | undefined;
@@ -3458,8 +3967,25 @@ export interface RuleGroupResponse {
3458
3967
  */
3459
3968
  Description?: string | undefined;
3460
3969
  /**
3461
- * <p>Indicates whether the rule group is stateless or stateful. If the rule group is stateless, it contains
3462
- * stateless rules. If it is stateful, it contains stateful rules. </p>
3970
+ * <p>Indicates the type of the rule group. Valid values are:</p>
3971
+ * <ul>
3972
+ * <li>
3973
+ * <p>
3974
+ * <code>STATELESS</code> - Stateless rules, for use in a Classic Network Firewall policy.</p>
3975
+ * </li>
3976
+ * <li>
3977
+ * <p>
3978
+ * <code>STATEFUL</code> - Stateful rules, for use in a Classic Network Firewall policy.</p>
3979
+ * </li>
3980
+ * <li>
3981
+ * <p>
3982
+ * <code>FIREWALL</code> - Firewall engine rules, for use in a Next Generation policy.</p>
3983
+ * </li>
3984
+ * <li>
3985
+ * <p>
3986
+ * <code>IPS</code> - IPS engine rules, for use in a Next Generation policy.</p>
3987
+ * </li>
3988
+ * </ul>
3463
3989
  * @public
3464
3990
  */
3465
3991
  Type?: RuleGroupType | undefined;
@@ -3781,7 +4307,7 @@ export interface CreateVpcEndpointAssociationRequest {
3781
4307
  VpcId: string | undefined;
3782
4308
  /**
3783
4309
  * <p>The ID for a subnet that's used in an association with a firewall. This is used in
3784
- * <a>CreateFirewall</a>, <a>AssociateSubnets</a>, and <a>CreateVpcEndpointAssociation</a>. Network Firewall
4310
+ * <code>CreateFirewall</code>, <code>AssociateSubnets</code>, and <code>CreateVpcEndpointAssociation</code>. Network Firewall
3785
4311
  * creates an instance of the associated firewall in each subnet that you specify, to filter
3786
4312
  * traffic in the subnet's Availability Zone.</p>
3787
4313
  * @public
@@ -3851,7 +4377,7 @@ export interface VpcEndpointAssociation {
3851
4377
  VpcId: string | undefined;
3852
4378
  /**
3853
4379
  * <p>The ID for a subnet that's used in an association with a firewall. This is used in
3854
- * <a>CreateFirewall</a>, <a>AssociateSubnets</a>, and <a>CreateVpcEndpointAssociation</a>. Network Firewall
4380
+ * <code>CreateFirewall</code>, <code>AssociateSubnets</code>, and <code>CreateVpcEndpointAssociation</code>. Network Firewall
3855
4381
  * creates an instance of the associated firewall in each subnet that you specify, to filter
3856
4382
  * traffic in the subnet's Availability Zone.</p>
3857
4383
  * @public
@@ -4003,6 +4529,33 @@ export interface DeleteFirewallPolicyResponse {
4003
4529
  */
4004
4530
  FirewallPolicyResponse: FirewallPolicyResponse | undefined;
4005
4531
  }
4532
+ /**
4533
+ * @public
4534
+ */
4535
+ export interface DeleteFirewallPolicyV2Request {
4536
+ /**
4537
+ * <p>The Amazon Resource Name (ARN) of the Next Generation policy.</p>
4538
+ * <p>You must specify the ARN or the name, and you can specify both. </p>
4539
+ * @public
4540
+ */
4541
+ FirewallPolicyV2Arn?: string | undefined;
4542
+ /**
4543
+ * <p>The descriptive name of the Next Generation policy. You can't change the name of a firewall policy after you create it.</p>
4544
+ * <p>You must specify the ARN or the name, and you can specify both. </p>
4545
+ * @public
4546
+ */
4547
+ FirewallPolicyV2Name?: string | undefined;
4548
+ }
4549
+ /**
4550
+ * @public
4551
+ */
4552
+ export interface DeleteFirewallPolicyV2Response {
4553
+ /**
4554
+ * <p>The high-level properties of the Next Generation policy that you asked to delete.</p>
4555
+ * @public
4556
+ */
4557
+ FirewallPolicyV2Response: FirewallPolicyV2Response | undefined;
4558
+ }
4006
4559
  /**
4007
4560
  * @public
4008
4561
  */
@@ -4237,8 +4790,25 @@ export interface DeleteRuleGroupRequest {
4237
4790
  */
4238
4791
  RuleGroupArn?: string | undefined;
4239
4792
  /**
4240
- * <p>Indicates whether the rule group is stateless or stateful. If the rule group is stateless, it contains
4241
- * stateless rules. If it is stateful, it contains stateful rules. </p>
4793
+ * <p>Indicates the type of the rule group. Valid values are:</p>
4794
+ * <ul>
4795
+ * <li>
4796
+ * <p>
4797
+ * <code>STATELESS</code> - Stateless rules, for use in a Classic Network Firewall policy.</p>
4798
+ * </li>
4799
+ * <li>
4800
+ * <p>
4801
+ * <code>STATEFUL</code> - Stateful rules, for use in a Classic Network Firewall policy.</p>
4802
+ * </li>
4803
+ * <li>
4804
+ * <p>
4805
+ * <code>FIREWALL</code> - Firewall engine rules, for use in a Next Generation policy.</p>
4806
+ * </li>
4807
+ * <li>
4808
+ * <p>
4809
+ * <code>IPS</code> - IPS engine rules, for use in a Next Generation policy.</p>
4810
+ * </li>
4811
+ * </ul>
4242
4812
  * <note>
4243
4813
  * <p>This setting is required for requests that do not include the <code>RuleGroupARN</code>.</p>
4244
4814
  * </note>
@@ -4525,6 +5095,49 @@ export interface DescribeFirewallPolicyResponse {
4525
5095
  */
4526
5096
  FirewallPolicy?: FirewallPolicy | undefined;
4527
5097
  }
5098
+ /**
5099
+ * @public
5100
+ */
5101
+ export interface DescribeFirewallPolicyV2Request {
5102
+ /**
5103
+ * <p>The Amazon Resource Name (ARN) of the Next Generation policy.</p>
5104
+ * <p>You must specify the ARN or the name, and you can specify both. </p>
5105
+ * @public
5106
+ */
5107
+ FirewallPolicyV2Arn?: string | undefined;
5108
+ /**
5109
+ * <p>The descriptive name of the Next Generation policy. You can't change the name of a firewall policy after you create it.</p>
5110
+ * <p>You must specify the ARN or the name, and you can specify both. </p>
5111
+ * @public
5112
+ */
5113
+ FirewallPolicyV2Name?: string | undefined;
5114
+ /**
5115
+ * <p>The format in which to return the rules of any firewall engine rule groups that are embedded in the policy. Specify <code>FIREWALL_RULES</code> for structured <code>FirewallRule</code> objects or <code>RULES_STRING</code> for a Suricata-compatible firewall-mode rule string. If you don't specify a format, Network Firewall returns each embedded rule group in the format you provided it in. Referenced rule groups aren't affected.</p>
5116
+ * @public
5117
+ */
5118
+ RuleOutputFormat?: RuleOutputFormat | undefined;
5119
+ }
5120
+ /**
5121
+ * @public
5122
+ */
5123
+ export interface DescribeFirewallPolicyV2Response {
5124
+ /**
5125
+ * <p>A token used for optimistic locking. Network Firewall returns a token to your requests that access the firewall policy. The token marks the state of the policy resource at the time of the request. </p>
5126
+ * <p>To make changes to the policy, you provide the token in your request. Network Firewall uses the token to ensure that the policy hasn't changed since you last retrieved it. If it has changed, the operation fails with an <code>InvalidTokenException</code>. If this happens, retrieve the firewall policy again to get a current copy of it with current token. Reapply your changes as needed, then try the operation again using the new token. </p>
5127
+ * @public
5128
+ */
5129
+ UpdateToken: string | undefined;
5130
+ /**
5131
+ * <p>The high-level properties of the Next Generation policy. This, along with the <a>FirewallPolicyV2</a>, define the policy.</p>
5132
+ * @public
5133
+ */
5134
+ FirewallPolicyV2Response: FirewallPolicyV2Response | undefined;
5135
+ /**
5136
+ * <p>The rule groups and other settings that define the specified Next Generation policy.</p>
5137
+ * @public
5138
+ */
5139
+ FirewallPolicyV2?: FirewallPolicyV2 | undefined;
5140
+ }
4528
5141
  /**
4529
5142
  * @public
4530
5143
  */
@@ -5068,8 +5681,25 @@ export interface DescribeRuleGroupRequest {
5068
5681
  */
5069
5682
  RuleGroupArn?: string | undefined;
5070
5683
  /**
5071
- * <p>Indicates whether the rule group is stateless or stateful. If the rule group is stateless, it contains
5072
- * stateless rules. If it is stateful, it contains stateful rules. </p>
5684
+ * <p>Indicates the type of the rule group. Valid values are:</p>
5685
+ * <ul>
5686
+ * <li>
5687
+ * <p>
5688
+ * <code>STATELESS</code> - Stateless rules, for use in a Classic Network Firewall policy.</p>
5689
+ * </li>
5690
+ * <li>
5691
+ * <p>
5692
+ * <code>STATEFUL</code> - Stateful rules, for use in a Classic Network Firewall policy.</p>
5693
+ * </li>
5694
+ * <li>
5695
+ * <p>
5696
+ * <code>FIREWALL</code> - Firewall engine rules, for use in a Next Generation policy.</p>
5697
+ * </li>
5698
+ * <li>
5699
+ * <p>
5700
+ * <code>IPS</code> - IPS engine rules, for use in a Next Generation policy.</p>
5701
+ * </li>
5702
+ * </ul>
5073
5703
  * <note>
5074
5704
  * <p>This setting is required for requests that do not include the <code>RuleGroupARN</code>.</p>
5075
5705
  * </note>
@@ -5081,6 +5711,22 @@ export interface DescribeRuleGroupRequest {
5081
5711
  * @public
5082
5712
  */
5083
5713
  AnalyzeRuleGroup?: boolean | undefined;
5714
+ /**
5715
+ * <p>For a firewall engine rule group, the format in which to return the rules. Specify one of the following values:</p>
5716
+ * <ul>
5717
+ * <li>
5718
+ * <p>
5719
+ * <code>FIREWALL_RULES</code> - Returns the rules as structured <code>FirewallRule</code> objects.</p>
5720
+ * </li>
5721
+ * <li>
5722
+ * <p>
5723
+ * <code>RULES_STRING</code> - Returns the rules as a Suricata-compatible firewall-mode rule string.</p>
5724
+ * </li>
5725
+ * </ul>
5726
+ * <p>If you don't specify a format, Network Firewall returns the rules in the format you provided them in. This setting applies only to <code>FIREWALL</code> and <code>IPS</code> rule groups; IPS engine rule groups support only <code>RULES_STRING</code>.</p>
5727
+ * @public
5728
+ */
5729
+ RuleOutputFormat?: RuleOutputFormat | undefined;
5084
5730
  }
5085
5731
  /**
5086
5732
  * @public
@@ -5102,6 +5748,16 @@ export interface DescribeRuleGroupResponse {
5102
5748
  * @public
5103
5749
  */
5104
5750
  RuleGroup?: RuleGroup | undefined;
5751
+ /**
5752
+ * <p>The object that defines the rules in a firewall engine rule group, for use in a Next Generation policy.</p>
5753
+ * @public
5754
+ */
5755
+ FirewallRuleGroup?: FirewallRuleGroup | undefined;
5756
+ /**
5757
+ * <p>The object that defines the rules in an IPS engine rule group, for use in a Next Generation policy.</p>
5758
+ * @public
5759
+ */
5760
+ IpsRuleGroup?: IpsRuleGroup | undefined;
5105
5761
  /**
5106
5762
  * <p>The high-level properties of a rule group. This, along with the <a>RuleGroup</a>, define the rule group. You can retrieve all objects for a rule group by calling <a>DescribeRuleGroup</a>. </p>
5107
5763
  * @public
@@ -5125,8 +5781,25 @@ export interface DescribeRuleGroupMetadataRequest {
5125
5781
  */
5126
5782
  RuleGroupArn?: string | undefined;
5127
5783
  /**
5128
- * <p>Indicates whether the rule group is stateless or stateful. If the rule group is stateless, it contains
5129
- * stateless rules. If it is stateful, it contains stateful rules. </p>
5784
+ * <p>Indicates the type of the rule group. Valid values are:</p>
5785
+ * <ul>
5786
+ * <li>
5787
+ * <p>
5788
+ * <code>STATELESS</code> - Stateless rules, for use in a Classic Network Firewall policy.</p>
5789
+ * </li>
5790
+ * <li>
5791
+ * <p>
5792
+ * <code>STATEFUL</code> - Stateful rules, for use in a Classic Network Firewall policy.</p>
5793
+ * </li>
5794
+ * <li>
5795
+ * <p>
5796
+ * <code>FIREWALL</code> - Firewall engine rules, for use in a Next Generation policy.</p>
5797
+ * </li>
5798
+ * <li>
5799
+ * <p>
5800
+ * <code>IPS</code> - IPS engine rules, for use in a Next Generation policy.</p>
5801
+ * </li>
5802
+ * </ul>
5130
5803
  * <note>
5131
5804
  * <p>This setting is required for requests that do not include the <code>RuleGroupARN</code>.</p>
5132
5805
  * </note>
@@ -5157,8 +5830,25 @@ export interface DescribeRuleGroupMetadataResponse {
5157
5830
  */
5158
5831
  Description?: string | undefined;
5159
5832
  /**
5160
- * <p>Indicates whether the rule group is stateless or stateful. If the rule group is stateless, it contains
5161
- * stateless rules. If it is stateful, it contains stateful rules. </p>
5833
+ * <p>Indicates the type of the rule group. Valid values are:</p>
5834
+ * <ul>
5835
+ * <li>
5836
+ * <p>
5837
+ * <code>STATELESS</code> - Stateless rules, for use in a Classic Network Firewall policy.</p>
5838
+ * </li>
5839
+ * <li>
5840
+ * <p>
5841
+ * <code>STATEFUL</code> - Stateful rules, for use in a Classic Network Firewall policy.</p>
5842
+ * </li>
5843
+ * <li>
5844
+ * <p>
5845
+ * <code>FIREWALL</code> - Firewall engine rules, for use in a Next Generation policy.</p>
5846
+ * </li>
5847
+ * <li>
5848
+ * <p>
5849
+ * <code>IPS</code> - IPS engine rules, for use in a Next Generation policy.</p>
5850
+ * </li>
5851
+ * </ul>
5162
5852
  * <note>
5163
5853
  * <p>This setting is required for requests that do not include the <code>RuleGroupARN</code>.</p>
5164
5854
  * </note>
@@ -5577,6 +6267,22 @@ export interface FirewallPolicyMetadata {
5577
6267
  */
5578
6268
  Arn?: string | undefined;
5579
6269
  }
6270
+ /**
6271
+ * <p>High-level information about a Next Generation policy, returned in a list of policies. To retrieve the policy's full properties, rule groups, and settings, use the Next Generation policy describe operation.</p>
6272
+ * @public
6273
+ */
6274
+ export interface FirewallPolicyV2Metadata {
6275
+ /**
6276
+ * <p>The descriptive name of the Next Generation policy. You can't change the name of a firewall policy after you create it.</p>
6277
+ * @public
6278
+ */
6279
+ Name?: string | undefined;
6280
+ /**
6281
+ * <p>The Amazon Resource Name (ARN) of the Next Generation policy.</p>
6282
+ * @public
6283
+ */
6284
+ Arn?: string | undefined;
6285
+ }
5580
6286
  /**
5581
6287
  * <p>Any number of arrays, where each array is a single flow identified in the scope of the operation.
5582
6288
  * If multiple flows were in the scope of the operation, multiple <code>Flows</code> arrays are returned.</p>
@@ -5858,6 +6564,42 @@ export interface ListFirewallPoliciesResponse {
5858
6564
  */
5859
6565
  FirewallPolicies?: FirewallPolicyMetadata[] | undefined;
5860
6566
  }
6567
+ /**
6568
+ * @public
6569
+ */
6570
+ export interface ListFirewallPoliciesV2Request {
6571
+ /**
6572
+ * <p>When you request a list of objects with a <code>MaxResults</code> setting, if the number of objects that are still available
6573
+ * for retrieval exceeds the maximum you requested, Network Firewall returns a <code>NextToken</code>
6574
+ * value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request.</p>
6575
+ * @public
6576
+ */
6577
+ NextToken?: string | undefined;
6578
+ /**
6579
+ * <p>The maximum number of objects that you want Network Firewall to return for this request. If more
6580
+ * objects are available, in the response, Network Firewall provides a
6581
+ * <code>NextToken</code> value that you can use in a subsequent call to get the next batch of objects.</p>
6582
+ * @public
6583
+ */
6584
+ MaxResults?: number | undefined;
6585
+ }
6586
+ /**
6587
+ * @public
6588
+ */
6589
+ export interface ListFirewallPoliciesV2Response {
6590
+ /**
6591
+ * <p>When you request a list of objects with a <code>MaxResults</code> setting, if the number of objects that are still available
6592
+ * for retrieval exceeds the maximum you requested, Network Firewall returns a <code>NextToken</code>
6593
+ * value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request.</p>
6594
+ * @public
6595
+ */
6596
+ NextToken?: string | undefined;
6597
+ /**
6598
+ * <p>The metadata for the Next Generation policies. Depending on your setting for max results and the number of firewall policies that you have, this might not be the full list.</p>
6599
+ * @public
6600
+ */
6601
+ FirewallPoliciesV2: FirewallPolicyV2Metadata[] | undefined;
6602
+ }
5861
6603
  /**
5862
6604
  * @public
5863
6605
  */
@@ -7339,6 +8081,70 @@ export interface UpdateFirewallPolicyChangeProtectionResponse {
7339
8081
  */
7340
8082
  FirewallPolicyChangeProtection?: boolean | undefined;
7341
8083
  }
8084
+ /**
8085
+ * @public
8086
+ */
8087
+ export interface UpdateFirewallPolicyV2Request {
8088
+ /**
8089
+ * <p>A token used for optimistic locking. Network Firewall returns a token to your requests that access the firewall policy. The token marks the state of the policy resource at the time of the request. </p>
8090
+ * <p>To make changes to the policy, you provide the token in your request. Network Firewall uses the token to ensure that the policy hasn't changed since you last retrieved it. If it has changed, the operation fails with an <code>InvalidTokenException</code>. If this happens, retrieve the firewall policy again to get a current copy of it with current token. Reapply your changes as needed, then try the operation again using the new token. </p>
8091
+ * @public
8092
+ */
8093
+ UpdateToken: string | undefined;
8094
+ /**
8095
+ * <p>The Amazon Resource Name (ARN) of the Next Generation policy.</p>
8096
+ * <p>You must specify the ARN or the name, and you can specify both. </p>
8097
+ * @public
8098
+ */
8099
+ FirewallPolicyV2Arn?: string | undefined;
8100
+ /**
8101
+ * <p>The descriptive name of the Next Generation policy. You can't change the name of a firewall policy after you create it.</p>
8102
+ * <p>You must specify the ARN or the name, and you can specify both. </p>
8103
+ * @public
8104
+ */
8105
+ FirewallPolicyV2Name?: string | undefined;
8106
+ /**
8107
+ * <p>The updated rule groups and other settings that define the Next Generation policy.</p>
8108
+ * @public
8109
+ */
8110
+ FirewallPolicyV2: FirewallPolicyV2 | undefined;
8111
+ /**
8112
+ * <p>A description of the firewall policy.</p>
8113
+ * @public
8114
+ */
8115
+ Description?: string | undefined;
8116
+ /**
8117
+ * <p>Indicates whether you want Network Firewall to just check the validity of the request, rather than run the request. </p>
8118
+ * <p>If set to <code>TRUE</code>, Network Firewall checks whether the request can run successfully,
8119
+ * but doesn't actually make the requested changes. The call returns the value that the request would return if you ran it with
8120
+ * dry run set to <code>FALSE</code>, but doesn't make additions or changes to your resources. This option allows you to make sure that you have
8121
+ * the required permissions to run the request and that your request parameters are valid. </p>
8122
+ * <p>If set to <code>FALSE</code>, Network Firewall makes the requested changes to your resources. </p>
8123
+ * @public
8124
+ */
8125
+ DryRun?: boolean | undefined;
8126
+ /**
8127
+ * <p>A complex type that contains settings for encryption of your firewall policy resources.</p>
8128
+ * @public
8129
+ */
8130
+ EncryptionConfiguration?: EncryptionConfiguration | undefined;
8131
+ }
8132
+ /**
8133
+ * @public
8134
+ */
8135
+ export interface UpdateFirewallPolicyV2Response {
8136
+ /**
8137
+ * <p>A token used for optimistic locking. Network Firewall returns a token to your requests that access the firewall policy. The token marks the state of the policy resource at the time of the request. </p>
8138
+ * <p>To make changes to the policy, you provide the token in your request. Network Firewall uses the token to ensure that the policy hasn't changed since you last retrieved it. If it has changed, the operation fails with an <code>InvalidTokenException</code>. If this happens, retrieve the firewall policy again to get a current copy of it with current token. Reapply your changes as needed, then try the operation again using the new token. </p>
8139
+ * @public
8140
+ */
8141
+ UpdateToken: string | undefined;
8142
+ /**
8143
+ * <p>The high-level properties of the Next Generation policy. This, along with the <a>FirewallPolicyV2</a>, define the policy. You can retrieve all objects for a Next Generation policy by calling <a>DescribeFirewallPolicyV2</a>.</p>
8144
+ * @public
8145
+ */
8146
+ FirewallPolicyV2Response: FirewallPolicyV2Response | undefined;
8147
+ }
7342
8148
  /**
7343
8149
  * @public
7344
8150
  */
@@ -7816,6 +8622,16 @@ export interface UpdateRuleGroupRequest {
7816
8622
  * @public
7817
8623
  */
7818
8624
  RuleGroup?: RuleGroup | undefined;
8625
+ /**
8626
+ * <p>An object that defines the rules in a firewall engine rule group, for use in a Next Generation policy.</p>
8627
+ * @public
8628
+ */
8629
+ FirewallRuleGroup?: FirewallRuleGroup | undefined;
8630
+ /**
8631
+ * <p>An object that defines the rules in an IPS engine rule group, for use in a Next Generation policy.</p>
8632
+ * @public
8633
+ */
8634
+ IpsRuleGroup?: IpsRuleGroup | undefined;
7819
8635
  /**
7820
8636
  * <p>A string containing stateful rule group rules specifications in Suricata flat format, with one rule
7821
8637
  * per line. Use this to import your existing Suricata compatible rule groups. </p>
@@ -7828,8 +8644,25 @@ export interface UpdateRuleGroupRequest {
7828
8644
  */
7829
8645
  Rules?: string | undefined;
7830
8646
  /**
7831
- * <p>Indicates whether the rule group is stateless or stateful. If the rule group is stateless, it contains
7832
- * stateless rules. If it is stateful, it contains stateful rules. </p>
8647
+ * <p>Indicates the type of the rule group. Valid values are:</p>
8648
+ * <ul>
8649
+ * <li>
8650
+ * <p>
8651
+ * <code>STATELESS</code> - Stateless rules, for use in a Classic Network Firewall policy.</p>
8652
+ * </li>
8653
+ * <li>
8654
+ * <p>
8655
+ * <code>STATEFUL</code> - Stateful rules, for use in a Classic Network Firewall policy.</p>
8656
+ * </li>
8657
+ * <li>
8658
+ * <p>
8659
+ * <code>FIREWALL</code> - Firewall engine rules, for use in a Next Generation policy.</p>
8660
+ * </li>
8661
+ * <li>
8662
+ * <p>
8663
+ * <code>IPS</code> - IPS engine rules, for use in a Next Generation policy.</p>
8664
+ * </li>
8665
+ * </ul>
7833
8666
  * <note>
7834
8667
  * <p>This setting is required for requests that do not include the <code>RuleGroupARN</code>.</p>
7835
8668
  * </note>