@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.023Z") @Stability(value=Stable) public class CfnFirewallPolicy extends CfnResource implements IInspectable
Use the FirewallPolicy to define the stateless and stateful network traffic filtering behavior for your Firewall . You can use one firewall policy for multiple firewalls.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.networkfirewall.*;
CfnFirewallPolicy cfnFirewallPolicy = CfnFirewallPolicy.Builder.create(this, "MyCfnFirewallPolicy")
.firewallPolicy(FirewallPolicyProperty.builder()
.statelessDefaultActions(List.of("statelessDefaultActions"))
.statelessFragmentDefaultActions(List.of("statelessFragmentDefaultActions"))
// the properties below are optional
.statefulDefaultActions(List.of("statefulDefaultActions"))
.statefulEngineOptions(StatefulEngineOptionsProperty.builder()
.ruleOrder("ruleOrder")
.build())
.statefulRuleGroupReferences(List.of(StatefulRuleGroupReferenceProperty.builder()
.resourceArn("resourceArn")
// the properties below are optional
.priority(123)
.build()))
.statelessCustomActions(List.of(CustomActionProperty.builder()
.actionDefinition(ActionDefinitionProperty.builder()
.publishMetricAction(PublishMetricActionProperty.builder()
.dimensions(List.of(DimensionProperty.builder()
.value("value")
.build()))
.build())
.build())
.actionName("actionName")
.build()))
.statelessRuleGroupReferences(List.of(StatelessRuleGroupReferenceProperty.builder()
.priority(123)
.resourceArn("resourceArn")
.build()))
.build())
.firewallPolicyName("firewallPolicyName")
// the properties below are optional
.description("description")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static interface |
CfnFirewallPolicy.ActionDefinitionProperty
A custom action to use in stateless rule actions settings.
|
static class |
CfnFirewallPolicy.Builder
A fluent builder for
CfnFirewallPolicy. |
static interface |
CfnFirewallPolicy.CustomActionProperty
An optional, non-standard action to use for stateless packet handling.
|
static interface |
CfnFirewallPolicy.DimensionProperty
The value to use in an Amazon CloudWatch custom metric dimension.
|
static interface |
CfnFirewallPolicy.FirewallPolicyProperty
The traffic filtering behavior of a firewall policy, defined in a collection of stateless and stateful rule groups and other settings.
|
static interface |
CfnFirewallPolicy.PublishMetricActionProperty
Stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet.
|
static interface |
CfnFirewallPolicy.StatefulEngineOptionsProperty
Configuration settings for the handling of the stateful rule groups in a firewall policy.
|
static interface |
CfnFirewallPolicy.StatefulRuleGroupReferenceProperty
Identifier for a single stateful rule group, used in a firewall policy to refer to a rule group.
|
static interface |
CfnFirewallPolicy.StatelessRuleGroupReferenceProperty
Identifier for a single stateless rule group, used in a firewall policy to refer to the rule group.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnFirewallPolicy(software.constructs.Construct scope,
String id,
CfnFirewallPolicyProps props)
Create a new `AWS::NetworkFirewall::FirewallPolicy`.
|
protected |
CfnFirewallPolicy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnFirewallPolicy(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrFirewallPolicyArn()
The Amazon Resource Name (ARN) of the `FirewallPolicy` .
|
String |
getAttrFirewallPolicyId()
The unique ID of the `FirewallPolicy` resource.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDescription()
A description of the firewall policy.
|
Object |
getFirewallPolicy()
The traffic filtering behavior of a firewall policy, defined in a collection of stateless and stateful rule groups and other settings.
|
String |
getFirewallPolicyName()
The descriptive name of the firewall policy.
|
TagManager |
getTags()
An array of key-value pairs to apply to this resource.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDescription(String value)
A description of the firewall policy.
|
void |
setFirewallPolicy(CfnFirewallPolicy.FirewallPolicyProperty value)
The traffic filtering behavior of a firewall policy, defined in a collection of stateless and stateful rule groups and other settings.
|
void |
setFirewallPolicy(IResolvable value)
The traffic filtering behavior of a firewall policy, defined in a collection of stateless and stateful rule groups and other settings.
|
void |
setFirewallPolicyName(String value)
The descriptive name of the firewall policy.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnFirewallPolicy(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnFirewallPolicy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnFirewallPolicy(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnFirewallPolicyProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrFirewallPolicyArn()
@Stability(value=Stable) @NotNull public String getAttrFirewallPolicyId()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
For more information, see Tag .
@Stability(value=Stable) @NotNull public Object getFirewallPolicy()
@Stability(value=Stable)
public void setFirewallPolicy(@NotNull
CfnFirewallPolicy.FirewallPolicyProperty value)
@Stability(value=Stable)
public void setFirewallPolicy(@NotNull
IResolvable value)
@Stability(value=Stable) @NotNull public String getFirewallPolicyName()
You can't change the name of a firewall policy after you create it.
@Stability(value=Stable)
public void setFirewallPolicyName(@NotNull
String value)
You can't change the name of a firewall policy after you create it.
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
Copyright © 2022. All rights reserved.