Interface RulesSourceList.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RulesSourceList.Builder,,RulesSourceList> SdkBuilder<RulesSourceList.Builder,,RulesSourceList> SdkPojo
- Enclosing class:
RulesSourceList
-
Method Summary
Modifier and TypeMethodDescriptiongeneratedRulesType(String generatedRulesType) Whether you want to apply allow, reject, alert, or drop behavior to the domains in your target list.generatedRulesType(GeneratedRulesType generatedRulesType) Whether you want to apply allow, reject, alert, or drop behavior to the domains in your target list.The domains that you want to inspect for in your traffic flows.targets(Collection<String> targets) The domains that you want to inspect for in your traffic flows.targetTypes(Collection<TargetType> targetTypes) The types of matching to perform against the domains inTargets.targetTypes(TargetType... targetTypes) The types of matching to perform against the domains inTargets.targetTypesWithStrings(String... targetTypes) The types of matching to perform against the domains inTargets.targetTypesWithStrings(Collection<String> targetTypes) The types of matching to perform against the domains inTargets.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
targets
The domains that you want to inspect for in your traffic flows. Valid domain specifications are the following:
-
Explicit names. For example,
abc.example.commatches only the domainabc.example.com. -
Names that use a domain wildcard, which you indicate with an initial '
.'. For example,.example.commatchesexample.comand matches all subdomains ofexample.com, such asabc.example.comandwww.example.com.
- Parameters:
targets- The domains that you want to inspect for in your traffic flows. Valid domain specifications are the following:-
Explicit names. For example,
abc.example.commatches only the domainabc.example.com. -
Names that use a domain wildcard, which you indicate with an initial '
.'. For example,.example.commatchesexample.comand matches all subdomains ofexample.com, such asabc.example.comandwww.example.com.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
targets
The domains that you want to inspect for in your traffic flows. Valid domain specifications are the following:
-
Explicit names. For example,
abc.example.commatches only the domainabc.example.com. -
Names that use a domain wildcard, which you indicate with an initial '
.'. For example,.example.commatchesexample.comand matches all subdomains ofexample.com, such asabc.example.comandwww.example.com.
- Parameters:
targets- The domains that you want to inspect for in your traffic flows. Valid domain specifications are the following:-
Explicit names. For example,
abc.example.commatches only the domainabc.example.com. -
Names that use a domain wildcard, which you indicate with an initial '
.'. For example,.example.commatchesexample.comand matches all subdomains ofexample.com, such asabc.example.comandwww.example.com.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
targetTypesWithStrings
The types of matching to perform against the domains in
Targets. You can specify any combination of the following:-
AWS_ROUTE_53_RESOLVED_DOMAIN– Match the domain against the domain that the Amazon Route 53 Resolver resolved the connection's destination IP address for. -
HTTP_HOST– Match the domain against theHostheader of HTTP traffic. -
TLS_SNI– Match the domain against the Server Name Indication (SNI) of HTTPS traffic.
AWS_ROUTE_53_RESOLVED_DOMAINmatches on how the destination IP address was resolved, rather than on the domain that the client asserts in its TLS SNI or HTTPHostheader. This target type takes effect when you configure resolved IP validation on the firewall policy. For more information, see Route53ResolvedIPValidation.Whether you include
AWS_ROUTE_53_RESOLVED_DOMAINchanges what the generated rules match, together withGeneratedRulesType:-
Combining
AWS_ROUTE_53_RESOLVED_DOMAINwithTLS_SNIorHTTP_HOSTin anALLOWLISTrequires both conditions to match. The SNI orHostheader must match the domain, and 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 spoofedHostheader sent to an unresolved IP address, is not allowed. -
In a
DENYLIST, or whenAWS_ROUTE_53_RESOLVED_DOMAINis the only target type, Network Firewall evaluates each condition independently: a match on either the domain (SNI orHost) or the resolved destination IP address triggers the rule. -
When you don't include
AWS_ROUTE_53_RESOLVED_DOMAIN, the generated rules match only on the SNI orHostheader, without checking how the destination IP address was resolved.
An
ALLOWLISTwhose only target type isAWS_ROUTE_53_RESOLVED_DOMAINis additive: it allows matching traffic but doesn't generate a default rule that drops non-matching traffic. Only theTLS_SNIandHTTP_HOSTtarget types generate that default drop. To allow only the resolved domains and drop all other traffic, include a protocol target type as well.- Parameters:
targetTypes- The types of matching to perform against the domains inTargets. You can specify any combination of the following:-
AWS_ROUTE_53_RESOLVED_DOMAIN– Match the domain against the domain that the Amazon Route 53 Resolver resolved the connection's destination IP address for. -
HTTP_HOST– Match the domain against theHostheader of HTTP traffic. -
TLS_SNI– Match the domain against the Server Name Indication (SNI) of HTTPS traffic.
AWS_ROUTE_53_RESOLVED_DOMAINmatches on how the destination IP address was resolved, rather than on the domain that the client asserts in its TLS SNI or HTTPHostheader. This target type takes effect when you configure resolved IP validation on the firewall policy. For more information, see Route53ResolvedIPValidation.Whether you include
AWS_ROUTE_53_RESOLVED_DOMAINchanges what the generated rules match, together withGeneratedRulesType:-
Combining
AWS_ROUTE_53_RESOLVED_DOMAINwithTLS_SNIorHTTP_HOSTin anALLOWLISTrequires both conditions to match. The SNI orHostheader must match the domain, and 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 spoofedHostheader sent to an unresolved IP address, is not allowed. -
In a
DENYLIST, or whenAWS_ROUTE_53_RESOLVED_DOMAINis the only target type, Network Firewall evaluates each condition independently: a match on either the domain (SNI orHost) or the resolved destination IP address triggers the rule. -
When you don't include
AWS_ROUTE_53_RESOLVED_DOMAIN, the generated rules match only on the SNI orHostheader, without checking how the destination IP address was resolved.
An
ALLOWLISTwhose only target type isAWS_ROUTE_53_RESOLVED_DOMAINis additive: it allows matching traffic but doesn't generate a default rule that drops non-matching traffic. Only theTLS_SNIandHTTP_HOSTtarget types generate that default drop. To allow only the resolved domains and drop all other traffic, include a protocol target type as well.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
targetTypesWithStrings
The types of matching to perform against the domains in
Targets. You can specify any combination of the following:-
AWS_ROUTE_53_RESOLVED_DOMAIN– Match the domain against the domain that the Amazon Route 53 Resolver resolved the connection's destination IP address for. -
HTTP_HOST– Match the domain against theHostheader of HTTP traffic. -
TLS_SNI– Match the domain against the Server Name Indication (SNI) of HTTPS traffic.
AWS_ROUTE_53_RESOLVED_DOMAINmatches on how the destination IP address was resolved, rather than on the domain that the client asserts in its TLS SNI or HTTPHostheader. This target type takes effect when you configure resolved IP validation on the firewall policy. For more information, see Route53ResolvedIPValidation.Whether you include
AWS_ROUTE_53_RESOLVED_DOMAINchanges what the generated rules match, together withGeneratedRulesType:-
Combining
AWS_ROUTE_53_RESOLVED_DOMAINwithTLS_SNIorHTTP_HOSTin anALLOWLISTrequires both conditions to match. The SNI orHostheader must match the domain, and 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 spoofedHostheader sent to an unresolved IP address, is not allowed. -
In a
DENYLIST, or whenAWS_ROUTE_53_RESOLVED_DOMAINis the only target type, Network Firewall evaluates each condition independently: a match on either the domain (SNI orHost) or the resolved destination IP address triggers the rule. -
When you don't include
AWS_ROUTE_53_RESOLVED_DOMAIN, the generated rules match only on the SNI orHostheader, without checking how the destination IP address was resolved.
An
ALLOWLISTwhose only target type isAWS_ROUTE_53_RESOLVED_DOMAINis additive: it allows matching traffic but doesn't generate a default rule that drops non-matching traffic. Only theTLS_SNIandHTTP_HOSTtarget types generate that default drop. To allow only the resolved domains and drop all other traffic, include a protocol target type as well.- Parameters:
targetTypes- The types of matching to perform against the domains inTargets. You can specify any combination of the following:-
AWS_ROUTE_53_RESOLVED_DOMAIN– Match the domain against the domain that the Amazon Route 53 Resolver resolved the connection's destination IP address for. -
HTTP_HOST– Match the domain against theHostheader of HTTP traffic. -
TLS_SNI– Match the domain against the Server Name Indication (SNI) of HTTPS traffic.
AWS_ROUTE_53_RESOLVED_DOMAINmatches on how the destination IP address was resolved, rather than on the domain that the client asserts in its TLS SNI or HTTPHostheader. This target type takes effect when you configure resolved IP validation on the firewall policy. For more information, see Route53ResolvedIPValidation.Whether you include
AWS_ROUTE_53_RESOLVED_DOMAINchanges what the generated rules match, together withGeneratedRulesType:-
Combining
AWS_ROUTE_53_RESOLVED_DOMAINwithTLS_SNIorHTTP_HOSTin anALLOWLISTrequires both conditions to match. The SNI orHostheader must match the domain, and 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 spoofedHostheader sent to an unresolved IP address, is not allowed. -
In a
DENYLIST, or whenAWS_ROUTE_53_RESOLVED_DOMAINis the only target type, Network Firewall evaluates each condition independently: a match on either the domain (SNI orHost) or the resolved destination IP address triggers the rule. -
When you don't include
AWS_ROUTE_53_RESOLVED_DOMAIN, the generated rules match only on the SNI orHostheader, without checking how the destination IP address was resolved.
An
ALLOWLISTwhose only target type isAWS_ROUTE_53_RESOLVED_DOMAINis additive: it allows matching traffic but doesn't generate a default rule that drops non-matching traffic. Only theTLS_SNIandHTTP_HOSTtarget types generate that default drop. To allow only the resolved domains and drop all other traffic, include a protocol target type as well.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
targetTypes
The types of matching to perform against the domains in
Targets. You can specify any combination of the following:-
AWS_ROUTE_53_RESOLVED_DOMAIN– Match the domain against the domain that the Amazon Route 53 Resolver resolved the connection's destination IP address for. -
HTTP_HOST– Match the domain against theHostheader of HTTP traffic. -
TLS_SNI– Match the domain against the Server Name Indication (SNI) of HTTPS traffic.
AWS_ROUTE_53_RESOLVED_DOMAINmatches on how the destination IP address was resolved, rather than on the domain that the client asserts in its TLS SNI or HTTPHostheader. This target type takes effect when you configure resolved IP validation on the firewall policy. For more information, see Route53ResolvedIPValidation.Whether you include
AWS_ROUTE_53_RESOLVED_DOMAINchanges what the generated rules match, together withGeneratedRulesType:-
Combining
AWS_ROUTE_53_RESOLVED_DOMAINwithTLS_SNIorHTTP_HOSTin anALLOWLISTrequires both conditions to match. The SNI orHostheader must match the domain, and 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 spoofedHostheader sent to an unresolved IP address, is not allowed. -
In a
DENYLIST, or whenAWS_ROUTE_53_RESOLVED_DOMAINis the only target type, Network Firewall evaluates each condition independently: a match on either the domain (SNI orHost) or the resolved destination IP address triggers the rule. -
When you don't include
AWS_ROUTE_53_RESOLVED_DOMAIN, the generated rules match only on the SNI orHostheader, without checking how the destination IP address was resolved.
An
ALLOWLISTwhose only target type isAWS_ROUTE_53_RESOLVED_DOMAINis additive: it allows matching traffic but doesn't generate a default rule that drops non-matching traffic. Only theTLS_SNIandHTTP_HOSTtarget types generate that default drop. To allow only the resolved domains and drop all other traffic, include a protocol target type as well.- Parameters:
targetTypes- The types of matching to perform against the domains inTargets. You can specify any combination of the following:-
AWS_ROUTE_53_RESOLVED_DOMAIN– Match the domain against the domain that the Amazon Route 53 Resolver resolved the connection's destination IP address for. -
HTTP_HOST– Match the domain against theHostheader of HTTP traffic. -
TLS_SNI– Match the domain against the Server Name Indication (SNI) of HTTPS traffic.
AWS_ROUTE_53_RESOLVED_DOMAINmatches on how the destination IP address was resolved, rather than on the domain that the client asserts in its TLS SNI or HTTPHostheader. This target type takes effect when you configure resolved IP validation on the firewall policy. For more information, see Route53ResolvedIPValidation.Whether you include
AWS_ROUTE_53_RESOLVED_DOMAINchanges what the generated rules match, together withGeneratedRulesType:-
Combining
AWS_ROUTE_53_RESOLVED_DOMAINwithTLS_SNIorHTTP_HOSTin anALLOWLISTrequires both conditions to match. The SNI orHostheader must match the domain, and 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 spoofedHostheader sent to an unresolved IP address, is not allowed. -
In a
DENYLIST, or whenAWS_ROUTE_53_RESOLVED_DOMAINis the only target type, Network Firewall evaluates each condition independently: a match on either the domain (SNI orHost) or the resolved destination IP address triggers the rule. -
When you don't include
AWS_ROUTE_53_RESOLVED_DOMAIN, the generated rules match only on the SNI orHostheader, without checking how the destination IP address was resolved.
An
ALLOWLISTwhose only target type isAWS_ROUTE_53_RESOLVED_DOMAINis additive: it allows matching traffic but doesn't generate a default rule that drops non-matching traffic. Only theTLS_SNIandHTTP_HOSTtarget types generate that default drop. To allow only the resolved domains and drop all other traffic, include a protocol target type as well.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
targetTypes
The types of matching to perform against the domains in
Targets. You can specify any combination of the following:-
AWS_ROUTE_53_RESOLVED_DOMAIN– Match the domain against the domain that the Amazon Route 53 Resolver resolved the connection's destination IP address for. -
HTTP_HOST– Match the domain against theHostheader of HTTP traffic. -
TLS_SNI– Match the domain against the Server Name Indication (SNI) of HTTPS traffic.
AWS_ROUTE_53_RESOLVED_DOMAINmatches on how the destination IP address was resolved, rather than on the domain that the client asserts in its TLS SNI or HTTPHostheader. This target type takes effect when you configure resolved IP validation on the firewall policy. For more information, see Route53ResolvedIPValidation.Whether you include
AWS_ROUTE_53_RESOLVED_DOMAINchanges what the generated rules match, together withGeneratedRulesType:-
Combining
AWS_ROUTE_53_RESOLVED_DOMAINwithTLS_SNIorHTTP_HOSTin anALLOWLISTrequires both conditions to match. The SNI orHostheader must match the domain, and 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 spoofedHostheader sent to an unresolved IP address, is not allowed. -
In a
DENYLIST, or whenAWS_ROUTE_53_RESOLVED_DOMAINis the only target type, Network Firewall evaluates each condition independently: a match on either the domain (SNI orHost) or the resolved destination IP address triggers the rule. -
When you don't include
AWS_ROUTE_53_RESOLVED_DOMAIN, the generated rules match only on the SNI orHostheader, without checking how the destination IP address was resolved.
An
ALLOWLISTwhose only target type isAWS_ROUTE_53_RESOLVED_DOMAINis additive: it allows matching traffic but doesn't generate a default rule that drops non-matching traffic. Only theTLS_SNIandHTTP_HOSTtarget types generate that default drop. To allow only the resolved domains and drop all other traffic, include a protocol target type as well.- Parameters:
targetTypes- The types of matching to perform against the domains inTargets. You can specify any combination of the following:-
AWS_ROUTE_53_RESOLVED_DOMAIN– Match the domain against the domain that the Amazon Route 53 Resolver resolved the connection's destination IP address for. -
HTTP_HOST– Match the domain against theHostheader of HTTP traffic. -
TLS_SNI– Match the domain against the Server Name Indication (SNI) of HTTPS traffic.
AWS_ROUTE_53_RESOLVED_DOMAINmatches on how the destination IP address was resolved, rather than on the domain that the client asserts in its TLS SNI or HTTPHostheader. This target type takes effect when you configure resolved IP validation on the firewall policy. For more information, see Route53ResolvedIPValidation.Whether you include
AWS_ROUTE_53_RESOLVED_DOMAINchanges what the generated rules match, together withGeneratedRulesType:-
Combining
AWS_ROUTE_53_RESOLVED_DOMAINwithTLS_SNIorHTTP_HOSTin anALLOWLISTrequires both conditions to match. The SNI orHostheader must match the domain, and 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 spoofedHostheader sent to an unresolved IP address, is not allowed. -
In a
DENYLIST, or whenAWS_ROUTE_53_RESOLVED_DOMAINis the only target type, Network Firewall evaluates each condition independently: a match on either the domain (SNI orHost) or the resolved destination IP address triggers the rule. -
When you don't include
AWS_ROUTE_53_RESOLVED_DOMAIN, the generated rules match only on the SNI orHostheader, without checking how the destination IP address was resolved.
An
ALLOWLISTwhose only target type isAWS_ROUTE_53_RESOLVED_DOMAINis additive: it allows matching traffic but doesn't generate a default rule that drops non-matching traffic. Only theTLS_SNIandHTTP_HOSTtarget types generate that default drop. To allow only the resolved domains and drop all other traffic, include a protocol target type as well.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
generatedRulesType
Whether you want to apply allow, reject, alert, or drop behavior to the domains in your target list.
When logging is enabled and you choose Alert, traffic that matches the domain specifications generates an alert in the firewall's logs. Then, traffic either passes, is rejected, or drops based on other rules in the firewall policy.
- Parameters:
generatedRulesType- Whether you want to apply allow, reject, alert, or drop behavior to the domains in your target list.When logging is enabled and you choose Alert, traffic that matches the domain specifications generates an alert in the firewall's logs. Then, traffic either passes, is rejected, or drops based on other rules in the firewall policy.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
generatedRulesType
Whether you want to apply allow, reject, alert, or drop behavior to the domains in your target list.
When logging is enabled and you choose Alert, traffic that matches the domain specifications generates an alert in the firewall's logs. Then, traffic either passes, is rejected, or drops based on other rules in the firewall policy.
- Parameters:
generatedRulesType- Whether you want to apply allow, reject, alert, or drop behavior to the domains in your target list.When logging is enabled and you choose Alert, traffic that matches the domain specifications generates an alert in the firewall's logs. Then, traffic either passes, is rejected, or drops based on other rules in the firewall policy.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-