Class CfnFirewallPolicyPropsMixin.FirewallPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFirewallPolicyPropsMixin.FirewallPolicyProperty>
- Enclosing interface:
CfnFirewallPolicyPropsMixin.FirewallPolicyProperty
CfnFirewallPolicyPropsMixin.FirewallPolicyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.enableTlsSessionHolding(Boolean enableTlsSessionHolding) enableTlsSessionHolding(IResolvable enableTlsSessionHolding) policyVariables(CfnFirewallPolicyPropsMixin.PolicyVariablesProperty policyVariables) Sets the value ofCfnFirewallPolicyPropsMixin.FirewallPolicyProperty.getPolicyVariables()policyVariables(IResolvable policyVariables) Sets the value ofCfnFirewallPolicyPropsMixin.FirewallPolicyProperty.getPolicyVariables()statefulDefaultActions(List<String> statefulDefaultActions) statefulEngineOptions(CfnFirewallPolicyPropsMixin.StatefulEngineOptionsProperty statefulEngineOptions) statefulEngineOptions(IResolvable statefulEngineOptions) statefulRuleGroupReferences(List<? extends Object> statefulRuleGroupReferences) statefulRuleGroupReferences(IResolvable statefulRuleGroupReferences) statelessCustomActions(List<? extends Object> statelessCustomActions) statelessCustomActions(IResolvable statelessCustomActions) statelessDefaultActions(List<String> statelessDefaultActions) statelessFragmentDefaultActions(List<String> statelessFragmentDefaultActions) statelessRuleGroupReferences(List<? extends Object> statelessRuleGroupReferences) statelessRuleGroupReferences(IResolvable statelessRuleGroupReferences) tlsInspectionConfigurationArn(String tlsInspectionConfigurationArn)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enableTlsSessionHolding
@Stability(Stable) public CfnFirewallPolicyPropsMixin.FirewallPolicyProperty.Builder enableTlsSessionHolding(Boolean enableTlsSessionHolding) - Parameters:
enableTlsSessionHolding- 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.- Returns:
this
-
enableTlsSessionHolding
@Stability(Stable) public CfnFirewallPolicyPropsMixin.FirewallPolicyProperty.Builder enableTlsSessionHolding(IResolvable enableTlsSessionHolding) - Parameters:
enableTlsSessionHolding- 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.- Returns:
this
-
policyVariables
@Stability(Stable) public CfnFirewallPolicyPropsMixin.FirewallPolicyProperty.Builder policyVariables(IResolvable policyVariables) Sets the value ofCfnFirewallPolicyPropsMixin.FirewallPolicyProperty.getPolicyVariables()- Parameters:
policyVariables- Contains variables that you can use to override default Suricata settings in your firewall policy.- Returns:
this
-
policyVariables
@Stability(Stable) public CfnFirewallPolicyPropsMixin.FirewallPolicyProperty.Builder policyVariables(CfnFirewallPolicyPropsMixin.PolicyVariablesProperty policyVariables) Sets the value ofCfnFirewallPolicyPropsMixin.FirewallPolicyProperty.getPolicyVariables()- Parameters:
policyVariables- Contains variables that you can use to override default Suricata settings in your firewall policy.- Returns:
this
-
statefulDefaultActions
@Stability(Stable) public CfnFirewallPolicyPropsMixin.FirewallPolicyProperty.Builder statefulDefaultActions(List<String> statefulDefaultActions) - Parameters:
statefulDefaultActions- The default actions to take on a packet that doesn't match any stateful rules. The stateful default action is optional, and is only valid when using the strict rule order.Valid values of the stateful default action:
- aws:drop_strict
- aws:drop_established
- aws:alert_strict
- aws:alert_established
For more information, see Strict evaluation order in the AWS Network Firewall Developer Guide .
- Returns:
this
-
statefulEngineOptions
@Stability(Stable) public CfnFirewallPolicyPropsMixin.FirewallPolicyProperty.Builder statefulEngineOptions(IResolvable statefulEngineOptions) - Parameters:
statefulEngineOptions- Additional options governing how Network Firewall handles stateful rules. The stateful rule groups that you use in your policy must have stateful rule options settings that are compatible with these settings.- Returns:
this
-
statefulEngineOptions
@Stability(Stable) public CfnFirewallPolicyPropsMixin.FirewallPolicyProperty.Builder statefulEngineOptions(CfnFirewallPolicyPropsMixin.StatefulEngineOptionsProperty statefulEngineOptions) - Parameters:
statefulEngineOptions- Additional options governing how Network Firewall handles stateful rules. The stateful rule groups that you use in your policy must have stateful rule options settings that are compatible with these settings.- Returns:
this
-
statefulRuleGroupReferences
@Stability(Stable) public CfnFirewallPolicyPropsMixin.FirewallPolicyProperty.Builder statefulRuleGroupReferences(IResolvable statefulRuleGroupReferences) Sets the value ofCfnFirewallPolicyPropsMixin.FirewallPolicyProperty.getStatefulRuleGroupReferences()- Parameters:
statefulRuleGroupReferences- References to the stateful rule groups that are used in the policy. These define the inspection criteria in stateful rules.- Returns:
this
-
statefulRuleGroupReferences
@Stability(Stable) public CfnFirewallPolicyPropsMixin.FirewallPolicyProperty.Builder statefulRuleGroupReferences(List<? extends Object> statefulRuleGroupReferences) Sets the value ofCfnFirewallPolicyPropsMixin.FirewallPolicyProperty.getStatefulRuleGroupReferences()- Parameters:
statefulRuleGroupReferences- References to the stateful rule groups that are used in the policy. These define the inspection criteria in stateful rules.- Returns:
this
-
statelessCustomActions
@Stability(Stable) public CfnFirewallPolicyPropsMixin.FirewallPolicyProperty.Builder statelessCustomActions(IResolvable statelessCustomActions) - Parameters:
statelessCustomActions- The custom action definitions that are available for use in the firewall policy'sStatelessDefaultActionssetting. You name each custom action that you define, and then you can use it by name in your default actions specifications.- Returns:
this
-
statelessCustomActions
@Stability(Stable) public CfnFirewallPolicyPropsMixin.FirewallPolicyProperty.Builder statelessCustomActions(List<? extends Object> statelessCustomActions) - Parameters:
statelessCustomActions- The custom action definitions that are available for use in the firewall policy'sStatelessDefaultActionssetting. You name each custom action that you define, and then you can use it by name in your default actions specifications.- Returns:
this
-
statelessDefaultActions
@Stability(Stable) public CfnFirewallPolicyPropsMixin.FirewallPolicyProperty.Builder statelessDefaultActions(List<String> statelessDefaultActions) - Parameters:
statelessDefaultActions- The actions to take on a packet if it doesn't match any of the stateless rules in the policy. If you want non-matching packets to be forwarded for stateful inspection, specifyaws:forward_to_sfe.You must specify one of the standard actions:
aws:pass,aws:drop, oraws:forward_to_sfe. In addition, you can specify custom actions that are compatible with your standard section choice.For example, you could specify
["aws:pass"]or you could specify["aws:pass", “customActionName”]. For information about compatibility, see the custom action descriptions.- Returns:
this
-
statelessFragmentDefaultActions
@Stability(Stable) public CfnFirewallPolicyPropsMixin.FirewallPolicyProperty.Builder statelessFragmentDefaultActions(List<String> statelessFragmentDefaultActions) Sets the value ofCfnFirewallPolicyPropsMixin.FirewallPolicyProperty.getStatelessFragmentDefaultActions()- Parameters:
statelessFragmentDefaultActions- The actions to take on a fragmented packet if it doesn't match any of the stateless rules in the policy. If you want non-matching fragmented packets to be forwarded for stateful inspection, specifyaws:forward_to_sfe.You must specify one of the standard actions:
aws:pass,aws:drop, oraws:forward_to_sfe. In addition, you can specify custom actions that are compatible with your standard section choice.For example, you could specify
["aws:pass"]or you could specify["aws:pass", “customActionName”]. For information about compatibility, see the custom action descriptions.- Returns:
this
-
statelessRuleGroupReferences
@Stability(Stable) public CfnFirewallPolicyPropsMixin.FirewallPolicyProperty.Builder statelessRuleGroupReferences(IResolvable statelessRuleGroupReferences) Sets the value ofCfnFirewallPolicyPropsMixin.FirewallPolicyProperty.getStatelessRuleGroupReferences()- Parameters:
statelessRuleGroupReferences- References to the stateless rule groups that are used in the policy. These define the matching criteria in stateless rules.- Returns:
this
-
statelessRuleGroupReferences
@Stability(Stable) public CfnFirewallPolicyPropsMixin.FirewallPolicyProperty.Builder statelessRuleGroupReferences(List<? extends Object> statelessRuleGroupReferences) Sets the value ofCfnFirewallPolicyPropsMixin.FirewallPolicyProperty.getStatelessRuleGroupReferences()- Parameters:
statelessRuleGroupReferences- References to the stateless rule groups that are used in the policy. These define the matching criteria in stateless rules.- Returns:
this
-
tlsInspectionConfigurationArn
@Stability(Stable) public CfnFirewallPolicyPropsMixin.FirewallPolicyProperty.Builder tlsInspectionConfigurationArn(String tlsInspectionConfigurationArn) Sets the value ofCfnFirewallPolicyPropsMixin.FirewallPolicyProperty.getTlsInspectionConfigurationArn()- Parameters:
tlsInspectionConfigurationArn- The Amazon Resource Name (ARN) of the TLS inspection configuration.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFirewallPolicyPropsMixin.FirewallPolicyProperty>- Returns:
- a new instance of
CfnFirewallPolicyPropsMixin.FirewallPolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-