Class CfnRuleGroup.RulesSourceListProperty.Builder
java.lang.Object
software.amazon.awscdk.services.networkfirewall.CfnRuleGroup.RulesSourceListProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleGroup.RulesSourceListProperty>
- Enclosing interface:
CfnRuleGroup.RulesSourceListProperty
@Stability(Stable)
public static final class CfnRuleGroup.RulesSourceListProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRuleGroup.RulesSourceListProperty>
A builder for
CfnRuleGroup.RulesSourceListProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.generatedRulesType(String generatedRulesType) Sets the value ofCfnRuleGroup.RulesSourceListProperty.getGeneratedRulesType()Sets the value ofCfnRuleGroup.RulesSourceListProperty.getTargets()targetTypes(List<String> targetTypes) Sets the value ofCfnRuleGroup.RulesSourceListProperty.getTargetTypes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
generatedRulesType
@Stability(Stable) public CfnRuleGroup.RulesSourceListProperty.Builder generatedRulesType(String generatedRulesType) Sets the value ofCfnRuleGroup.RulesSourceListProperty.getGeneratedRulesType()- Parameters:
generatedRulesType- Whether you want to apply allow, reject, alert, or drop behavior to the domains in your target list. This parameter is required.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:
this
-
targets
@Stability(Stable) public CfnRuleGroup.RulesSourceListProperty.Builder targets(List<String> targets) Sets the value ofCfnRuleGroup.RulesSourceListProperty.getTargets()- Parameters:
targets- The domains that you want to inspect for in your traffic flows. Valid domain specifications are the following:. This parameter is required.- 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.
- Explicit names. For example,
- Returns:
this
-
targetTypes
@Stability(Stable) public CfnRuleGroup.RulesSourceListProperty.Builder targetTypes(List<String> targetTypes) Sets the value ofCfnRuleGroup.RulesSourceListProperty.getTargetTypes()- Parameters:
targetTypes- The types of targets to inspect for. This parameter is required. Valid values areTLS_SNIandHTTP_HOST.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRuleGroup.RulesSourceListProperty>- Returns:
- a new instance of
CfnRuleGroup.RulesSourceListProperty - Throws:
NullPointerException- if any required attribute was not provided
-