Class CfnRuleGroupPropsMixin.RulesSourceListProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.networkfirewall.CfnRuleGroupPropsMixin.RulesSourceListProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleGroupPropsMixin.RulesSourceListProperty>
- Enclosing interface:
CfnRuleGroupPropsMixin.RulesSourceListProperty
@Stability(Stable)
public static final class CfnRuleGroupPropsMixin.RulesSourceListProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRuleGroupPropsMixin.RulesSourceListProperty>
A builder for
CfnRuleGroupPropsMixin.RulesSourceListProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.generatedRulesType(String generatedRulesType) Sets the value ofCfnRuleGroupPropsMixin.RulesSourceListProperty.getGeneratedRulesType()Sets the value ofCfnRuleGroupPropsMixin.RulesSourceListProperty.getTargets()targetTypes(List<String> targetTypes) Sets the value ofCfnRuleGroupPropsMixin.RulesSourceListProperty.getTargetTypes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
generatedRulesType
@Stability(Stable) public CfnRuleGroupPropsMixin.RulesSourceListProperty.Builder generatedRulesType(String generatedRulesType) Sets the value ofCfnRuleGroupPropsMixin.RulesSourceListProperty.getGeneratedRulesType()- 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:
this
-
targets
@Stability(Stable) public CfnRuleGroupPropsMixin.RulesSourceListProperty.Builder targets(List<String> targets) Sets the value ofCfnRuleGroupPropsMixin.RulesSourceListProperty.getTargets()- 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.
- Explicit names. For example,
- Returns:
this
-
targetTypes
@Stability(Stable) public CfnRuleGroupPropsMixin.RulesSourceListProperty.Builder targetTypes(List<String> targetTypes) Sets the value ofCfnRuleGroupPropsMixin.RulesSourceListProperty.getTargetTypes()- Parameters:
targetTypes- The types of targets to inspect for. Valid values areTLS_SNIandHTTP_HOST.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRuleGroupPropsMixin.RulesSourceListProperty>- Returns:
- a new instance of
CfnRuleGroupPropsMixin.RulesSourceListProperty - Throws:
NullPointerException- if any required attribute was not provided
-