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
-
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 allow or deny access to the domains in your target list. This parameter is required.- 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.com
matches only the domainabc.example.com
. - Names that use a domain wildcard, which you indicate with an initial '
.
'. For example,.example.com
matchesexample.com
and matches all subdomains ofexample.com
, such asabc.example.com
andwww.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_SNI
andHTTP_HOST
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRuleGroup.RulesSourceListProperty>
- Returns:
- a new instance of
CfnRuleGroup.RulesSourceListProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-