Class CfnFirewallPolicy
A CloudFormation AWS::NetworkFirewall::FirewallPolicy
.
Inherited Members
Namespace: Amazon.CDK.AWS.NetworkFirewall
Assembly: Amazon.CDK.AWS.NetworkFirewall.dll
Syntax (csharp)
public class CfnFirewallPolicy : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnFirewallPolicy
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
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.
CloudformationResource: AWS::NetworkFirewall::FirewallPolicy
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.NetworkFirewall;
var cfnFirewallPolicy = new CfnFirewallPolicy(this, "MyCfnFirewallPolicy", new CfnFirewallPolicyProps {
FirewallPolicy = new FirewallPolicyProperty {
StatelessDefaultActions = new [] { "statelessDefaultActions" },
StatelessFragmentDefaultActions = new [] { "statelessFragmentDefaultActions" },
// the properties below are optional
PolicyVariables = new PolicyVariablesProperty {
RuleVariables = new Dictionary<string, object> {
{ "ruleVariablesKey", new Dictionary<string, string[]?> {
{ "definition", new [] { "definition" } }
} }
}
},
StatefulDefaultActions = new [] { "statefulDefaultActions" },
StatefulEngineOptions = new StatefulEngineOptionsProperty {
RuleOrder = "ruleOrder",
StreamExceptionPolicy = "streamExceptionPolicy"
},
StatefulRuleGroupReferences = new [] { new StatefulRuleGroupReferenceProperty {
ResourceArn = "resourceArn",
// the properties below are optional
Override = new StatefulRuleGroupOverrideProperty {
Action = "action"
},
Priority = 123
} },
StatelessCustomActions = new [] { new CustomActionProperty {
ActionDefinition = new ActionDefinitionProperty {
PublishMetricAction = new PublishMetricActionProperty {
Dimensions = new [] { new DimensionProperty {
Value = "value"
} }
}
},
ActionName = "actionName"
} },
StatelessRuleGroupReferences = new [] { new StatelessRuleGroupReferenceProperty {
Priority = 123,
ResourceArn = "resourceArn"
} }
},
FirewallPolicyName = "firewallPolicyName",
// the properties below are optional
Description = "description",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
CfnFirewallPolicy(Construct, String, ICfnFirewallPolicyProps) | Create a new |
CfnFirewallPolicy(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnFirewallPolicy(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
AttrFirewallPolicyArn | The Amazon Resource Name (ARN) of the |
AttrFirewallPolicyId | The unique ID of the |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
Description | A description of the firewall policy. |
FirewallPolicy | The traffic filtering behavior of a firewall policy, defined in a collection of stateless and stateful rule groups and other settings. |
FirewallPolicyName | The descriptive name of the firewall policy. |
Tags | An array of key-value pairs to apply to this resource. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnFirewallPolicy(Construct, String, ICfnFirewallPolicyProps)
Create a new AWS::NetworkFirewall::FirewallPolicy
.
public CfnFirewallPolicy(Construct scope, string id, ICfnFirewallPolicyProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnFirewallPolicyProps
- resource properties.
CfnFirewallPolicy(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnFirewallPolicy(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnFirewallPolicy(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnFirewallPolicy(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
AttrFirewallPolicyArn
The Amazon Resource Name (ARN) of the FirewallPolicy
.
public virtual string AttrFirewallPolicyArn { get; }
Property Value
System.String
Remarks
CloudformationAttribute: FirewallPolicyArn
AttrFirewallPolicyId
The unique ID of the FirewallPolicy
resource.
public virtual string AttrFirewallPolicyId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: FirewallPolicyId
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
Description
A description of the firewall policy.
public virtual string Description { get; set; }
Property Value
System.String
Remarks
FirewallPolicy
The traffic filtering behavior of a firewall policy, defined in a collection of stateless and stateful rule groups and other settings.
public virtual object FirewallPolicy { get; set; }
Property Value
System.Object
Remarks
FirewallPolicyName
The descriptive name of the firewall policy.
public virtual string FirewallPolicyName { get; set; }
Property Value
System.String
Remarks
You can't change the name of a firewall policy after you create it.
Tags
An array of key-value pairs to apply to this resource.
public virtual TagManager Tags { get; }
Property Value
Remarks
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
- tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>