awsnetworkfirewall

package
v1.168.0-devpreview Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

README

AWS::NetworkFirewall Construct Library

This module is part of the AWS Cloud Development Kit project.

import networkfirewall "github.com/aws/aws-cdk-go/awscdk"

There are no official hand-written (L2) constructs for this service yet. Here are some suggestions on how to proceed:

There are no hand-written (L2) constructs for this service yet. However, you can still use the automatically generated L1 constructs, and use this service exactly as you would using CloudFormation directly.

For more information on the resources and properties available for this service, see the CloudFormation documentation for AWS::NetworkFirewall.

(Read the CDK Contributing Guide and submit an RFC if you are interested in contributing to this construct library.)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CfnFirewallPolicy_CFN_RESOURCE_TYPE_NAME

func CfnFirewallPolicy_CFN_RESOURCE_TYPE_NAME() *string

func CfnFirewallPolicy_IsCfnElement

func CfnFirewallPolicy_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.

func CfnFirewallPolicy_IsCfnResource

func CfnFirewallPolicy_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource. Experimental.

func CfnFirewallPolicy_IsConstruct

func CfnFirewallPolicy_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func CfnFirewall_CFN_RESOURCE_TYPE_NAME

func CfnFirewall_CFN_RESOURCE_TYPE_NAME() *string

func CfnFirewall_IsCfnElement

func CfnFirewall_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.

func CfnFirewall_IsCfnResource

func CfnFirewall_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource. Experimental.

func CfnFirewall_IsConstruct

func CfnFirewall_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func CfnLoggingConfiguration_CFN_RESOURCE_TYPE_NAME

func CfnLoggingConfiguration_CFN_RESOURCE_TYPE_NAME() *string

func CfnLoggingConfiguration_IsCfnElement

func CfnLoggingConfiguration_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.

func CfnLoggingConfiguration_IsCfnResource

func CfnLoggingConfiguration_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource. Experimental.

func CfnLoggingConfiguration_IsConstruct

func CfnLoggingConfiguration_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func CfnRuleGroup_CFN_RESOURCE_TYPE_NAME

func CfnRuleGroup_CFN_RESOURCE_TYPE_NAME() *string

func CfnRuleGroup_IsCfnElement

func CfnRuleGroup_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.

func CfnRuleGroup_IsCfnResource

func CfnRuleGroup_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource. Experimental.

func CfnRuleGroup_IsConstruct

func CfnRuleGroup_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func NewCfnFirewallPolicy_Override

func NewCfnFirewallPolicy_Override(c CfnFirewallPolicy, scope awscdk.Construct, id *string, props *CfnFirewallPolicyProps)

Create a new `AWS::NetworkFirewall::FirewallPolicy`.

func NewCfnFirewall_Override

func NewCfnFirewall_Override(c CfnFirewall, scope awscdk.Construct, id *string, props *CfnFirewallProps)

Create a new `AWS::NetworkFirewall::Firewall`.

func NewCfnLoggingConfiguration_Override

func NewCfnLoggingConfiguration_Override(c CfnLoggingConfiguration, scope awscdk.Construct, id *string, props *CfnLoggingConfigurationProps)

Create a new `AWS::NetworkFirewall::LoggingConfiguration`.

func NewCfnRuleGroup_Override

func NewCfnRuleGroup_Override(c CfnRuleGroup, scope awscdk.Construct, id *string, props *CfnRuleGroupProps)

Create a new `AWS::NetworkFirewall::RuleGroup`.

Types

type CfnFirewall

type CfnFirewall interface {
	awscdk.CfnResource
	awscdk.IInspectable
	// The unique IDs of the firewall endpoints for all of the subnets that you attached to the firewall.
	//
	// The subnets are not listed in any particular order. For example: `["us-west-2c:vpce-111122223333", "us-west-2a:vpce-987654321098", "us-west-2b:vpce-012345678901"]` .
	AttrEndpointIds() *[]*string
	// The Amazon Resource Name (ARN) of the `Firewall` .
	AttrFirewallArn() *string
	// The name of the `Firewall` resource.
	AttrFirewallId() *string
	// Options for this resource, such as condition, update policy etc.
	// Experimental.
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	// AWS resource type.
	// Experimental.
	CfnResourceType() *string
	// Returns: the stack trace of the point where this Resource was created from, sourced
	// from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most
	// node +internal+ entries filtered.
	// Experimental.
	CreationStack() *[]*string
	// A flag indicating whether it is possible to delete the firewall.
	//
	// A setting of `TRUE` indicates that the firewall is protected against deletion. Use this setting to protect against accidentally deleting a firewall that is in use. When you create a firewall, the operation initializes this flag to `TRUE` .
	DeleteProtection() interface{}
	SetDeleteProtection(val interface{})
	// A description of the firewall.
	Description() *string
	SetDescription(val *string)
	// The descriptive name of the firewall.
	//
	// You can't change the name of a firewall after you create it.
	FirewallName() *string
	SetFirewallName(val *string)
	// The Amazon Resource Name (ARN) of the firewall policy.
	//
	// The relationship of firewall to firewall policy is many to one. Each firewall requires one firewall policy association, and you can use the same firewall policy for multiple firewalls.
	FirewallPolicyArn() *string
	SetFirewallPolicyArn(val *string)
	// A setting indicating whether the firewall is protected against a change to the firewall policy association.
	//
	// Use this setting to protect against accidentally modifying the firewall policy for a firewall that is in use. When you create a firewall, the operation initializes this setting to `TRUE` .
	FirewallPolicyChangeProtection() interface{}
	SetFirewallPolicyChangeProtection(val interface{})
	// The logical ID for this CloudFormation stack element.
	//
	// The logical ID of the element
	// is calculated from the path of the resource node in the construct tree.
	//
	// To override this value, use `overrideLogicalId(newLogicalId)`.
	//
	// Returns: the logical ID as a stringified token. This value will only get
	// resolved during synthesis.
	// Experimental.
	LogicalId() *string
	// The construct tree node associated with this construct.
	// Experimental.
	Node() awscdk.ConstructNode
	// Return a string that will be resolved to a CloudFormation `{ Ref }` for this element.
	//
	// If, by any chance, the intrinsic reference of a resource is not a string, you could
	// coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`.
	// Experimental.
	Ref() *string
	// The stack in which this element is defined.
	//
	// CfnElements must be defined within a stack scope (directly or indirectly).
	// Experimental.
	Stack() awscdk.Stack
	// A setting indicating whether the firewall is protected against changes to the subnet associations.
	//
	// Use this setting to protect against accidentally modifying the subnet associations for a firewall that is in use. When you create a firewall, the operation initializes this setting to `TRUE` .
	SubnetChangeProtection() interface{}
	SetSubnetChangeProtection(val interface{})
	// The public subnets that Network Firewall is using for the firewall.
	//
	// Each subnet must belong to a different Availability Zone.
	SubnetMappings() interface{}
	SetSubnetMappings(val interface{})
	// An array of key-value pairs to apply to this resource.
	//
	// For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
	Tags() awscdk.TagManager
	// Return properties modified after initiation.
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	// Experimental.
	UpdatedProperites() *map[string]interface{}
	// The unique identifier of the VPC where the firewall is in use.
	//
	// You can't change the VPC of a firewall after you create the firewall.
	VpcId() *string
	SetVpcId(val *string)
	// Syntactic sugar for `addOverride(path, undefined)`.
	// Experimental.
	AddDeletionOverride(path *string)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	//
	// This can be used for resources across stacks (or nested stack) boundaries
	// and the dependency will automatically be transferred to the relevant scope.
	// Experimental.
	AddDependsOn(target awscdk.CfnResource)
	// Add a value to the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	// Experimental.
	AddMetadata(key *string, value interface{})
	// Adds an override to the synthesized CloudFormation resource.
	//
	// To add a
	// property override, either use `addPropertyOverride` or prefix `path` with
	// "Properties." (i.e. `Properties.TopicName`).
	//
	// If the override is nested, separate each nested level using a dot (.) in the path parameter.
	// If there is an array as part of the nesting, specify the index in the path.
	//
	// To include a literal `.` in the property name, prefix with a `\`. In most
	// programming languages you will need to write this as `"\\."` because the
	// `\` itself will need to be escaped.
	//
	// For example,
	// “`typescript
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');
	// “`
	// would add the overrides
	// “`json
	// "Properties": {
	//    "GlobalSecondaryIndexes": [
	//      {
	//        "Projection": {
	//          "NonKeyAttributes": [ "myattribute" ]
	//          ...
	//        }
	//        ...
	//      },
	//      {
	//        "ProjectionType": "INCLUDE"
	//        ...
	//      },
	//    ]
	//    ...
	// }
	// “`
	//
	// The `value` argument to `addOverride` will not be processed or translated
	// in any way. Pass raw JSON values in here with the correct capitalization
	// for CloudFormation. If you pass CDK classes or structs, they will be
	// rendered with lowercased key names, and CloudFormation will reject the
	// template.
	// Experimental.
	AddOverride(path *string, value interface{})
	// Adds an override that deletes the value of a property from the resource definition.
	// Experimental.
	AddPropertyDeletionOverride(propertyPath *string)
	// Adds an override to a resource property.
	//
	// Syntactic sugar for `addOverride("Properties.<...>", value)`.
	// Experimental.
	AddPropertyOverride(propertyPath *string, value interface{})
	// Sets the deletion policy of the resource based on the removal policy specified.
	//
	// The Removal Policy controls what happens to this resource when it stops
	// being managed by CloudFormation, either because you've removed it from the
	// CDK application or because you've made a change that requires the resource
	// to be replaced.
	//
	// The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
	// account for data recovery and cleanup later (`RemovalPolicy.RETAIN`).
	// Experimental.
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	// Returns a token for an runtime attribute of this resource.
	//
	// Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility
	// in case there is no generated attribute.
	// Experimental.
	GetAtt(attributeName *string) awscdk.Reference
	// Retrieve a value value from the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	// Experimental.
	GetMetadata(key *string) interface{}
	// Examines the CloudFormation resource and discloses attributes.
	Inspect(inspector awscdk.TreeInspector)
	// Perform final modifications before synthesis.
	//
	// This method can be implemented by derived constructs in order to perform
	// final changes before synthesis. prepare() will be called after child
	// constructs have been prepared.
	//
	// This is an advanced framework feature. Only use this if you
	// understand the implications.
	// Experimental.
	OnPrepare()
	// Allows this construct to emit artifacts into the cloud assembly during synthesis.
	//
	// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
	// as they participate in synthesizing the cloud assembly.
	// Experimental.
	OnSynthesize(session constructs.ISynthesisSession)
	// Validate the current construct.
	//
	// This method can be implemented by derived constructs in order to perform
	// validation logic. It is called on all constructs before synthesis.
	//
	// Returns: An array of validation error messages, or an empty array if the construct is valid.
	// Experimental.
	OnValidate() *[]*string
	// Overrides the auto-generated logical ID with a specific ID.
	// Experimental.
	OverrideLogicalId(newLogicalId *string)
	// Perform final modifications before synthesis.
	//
	// This method can be implemented by derived constructs in order to perform
	// final changes before synthesis. prepare() will be called after child
	// constructs have been prepared.
	//
	// This is an advanced framework feature. Only use this if you
	// understand the implications.
	// Experimental.
	Prepare()
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	// Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template.
	//
	// Returns: `true` if the resource should be included or `false` is the resource
	// should be omitted.
	// Experimental.
	ShouldSynthesize() *bool
	// Allows this construct to emit artifacts into the cloud assembly during synthesis.
	//
	// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
	// as they participate in synthesizing the cloud assembly.
	// Experimental.
	Synthesize(session awscdk.ISynthesisSession)
	// Returns a string representation of this construct.
	//
	// Returns: a string representation of this resource.
	// Experimental.
	ToString() *string
	// Validate the current construct.
	//
	// This method can be implemented by derived constructs in order to perform
	// validation logic. It is called on all constructs before synthesis.
	//
	// Returns: An array of validation error messages, or an empty array if the construct is valid.
	// Experimental.
	Validate() *[]*string
	// Experimental.
	ValidateProperties(_properties interface{})
}

A CloudFormation `AWS::NetworkFirewall::Firewall`.

Use the `Firewall` to provide stateful, managed, network firewall and intrusion detection and prevention filtering for your VPCs in Amazon VPC .

The firewall defines the configuration settings for an AWS Network Firewall firewall. The settings include the firewall policy, the subnets in your VPC to use for the firewall endpoints, and any tags that are attached to the firewall AWS resource.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnFirewall := awscdk.Aws_networkfirewall.NewCfnFirewall(this, jsii.String("MyCfnFirewall"), &cfnFirewallProps{
	firewallName: jsii.String("firewallName"),
	firewallPolicyArn: jsii.String("firewallPolicyArn"),
	subnetMappings: []interface{}{
		&subnetMappingProperty{
			subnetId: jsii.String("subnetId"),
		},
	},
	vpcId: jsii.String("vpcId"),

	// the properties below are optional
	deleteProtection: jsii.Boolean(false),
	description: jsii.String("description"),
	firewallPolicyChangeProtection: jsii.Boolean(false),
	subnetChangeProtection: jsii.Boolean(false),
	tags: []cfnTag{
		&cfnTag{
			key: jsii.String("key"),
			value: jsii.String("value"),
		},
	},
})

func NewCfnFirewall

func NewCfnFirewall(scope awscdk.Construct, id *string, props *CfnFirewallProps) CfnFirewall

Create a new `AWS::NetworkFirewall::Firewall`.

type CfnFirewallPolicy

type CfnFirewallPolicy interface {
	awscdk.CfnResource
	awscdk.IInspectable
	// The Amazon Resource Name (ARN) of the `FirewallPolicy` .
	AttrFirewallPolicyArn() *string
	// The unique ID of the `FirewallPolicy` resource.
	AttrFirewallPolicyId() *string
	// Options for this resource, such as condition, update policy etc.
	// Experimental.
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	// AWS resource type.
	// Experimental.
	CfnResourceType() *string
	// Returns: the stack trace of the point where this Resource was created from, sourced
	// from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most
	// node +internal+ entries filtered.
	// Experimental.
	CreationStack() *[]*string
	// A description of the firewall policy.
	Description() *string
	SetDescription(val *string)
	// The traffic filtering behavior of a firewall policy, defined in a collection of stateless and stateful rule groups and other settings.
	FirewallPolicy() interface{}
	SetFirewallPolicy(val interface{})
	// The descriptive name of the firewall policy.
	//
	// You can't change the name of a firewall policy after you create it.
	FirewallPolicyName() *string
	SetFirewallPolicyName(val *string)
	// The logical ID for this CloudFormation stack element.
	//
	// The logical ID of the element
	// is calculated from the path of the resource node in the construct tree.
	//
	// To override this value, use `overrideLogicalId(newLogicalId)`.
	//
	// Returns: the logical ID as a stringified token. This value will only get
	// resolved during synthesis.
	// Experimental.
	LogicalId() *string
	// The construct tree node associated with this construct.
	// Experimental.
	Node() awscdk.ConstructNode
	// Return a string that will be resolved to a CloudFormation `{ Ref }` for this element.
	//
	// If, by any chance, the intrinsic reference of a resource is not a string, you could
	// coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`.
	// Experimental.
	Ref() *string
	// The stack in which this element is defined.
	//
	// CfnElements must be defined within a stack scope (directly or indirectly).
	// Experimental.
	Stack() awscdk.Stack
	// An array of key-value pairs to apply to this resource.
	//
	// For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
	Tags() awscdk.TagManager
	// Return properties modified after initiation.
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	// Experimental.
	UpdatedProperites() *map[string]interface{}
	// Syntactic sugar for `addOverride(path, undefined)`.
	// Experimental.
	AddDeletionOverride(path *string)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	//
	// This can be used for resources across stacks (or nested stack) boundaries
	// and the dependency will automatically be transferred to the relevant scope.
	// Experimental.
	AddDependsOn(target awscdk.CfnResource)
	// Add a value to the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	// Experimental.
	AddMetadata(key *string, value interface{})
	// Adds an override to the synthesized CloudFormation resource.
	//
	// To add a
	// property override, either use `addPropertyOverride` or prefix `path` with
	// "Properties." (i.e. `Properties.TopicName`).
	//
	// If the override is nested, separate each nested level using a dot (.) in the path parameter.
	// If there is an array as part of the nesting, specify the index in the path.
	//
	// To include a literal `.` in the property name, prefix with a `\`. In most
	// programming languages you will need to write this as `"\\."` because the
	// `\` itself will need to be escaped.
	//
	// For example,
	// “`typescript
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');
	// “`
	// would add the overrides
	// “`json
	// "Properties": {
	//    "GlobalSecondaryIndexes": [
	//      {
	//        "Projection": {
	//          "NonKeyAttributes": [ "myattribute" ]
	//          ...
	//        }
	//        ...
	//      },
	//      {
	//        "ProjectionType": "INCLUDE"
	//        ...
	//      },
	//    ]
	//    ...
	// }
	// “`
	//
	// The `value` argument to `addOverride` will not be processed or translated
	// in any way. Pass raw JSON values in here with the correct capitalization
	// for CloudFormation. If you pass CDK classes or structs, they will be
	// rendered with lowercased key names, and CloudFormation will reject the
	// template.
	// Experimental.
	AddOverride(path *string, value interface{})
	// Adds an override that deletes the value of a property from the resource definition.
	// Experimental.
	AddPropertyDeletionOverride(propertyPath *string)
	// Adds an override to a resource property.
	//
	// Syntactic sugar for `addOverride("Properties.<...>", value)`.
	// Experimental.
	AddPropertyOverride(propertyPath *string, value interface{})
	// Sets the deletion policy of the resource based on the removal policy specified.
	//
	// The Removal Policy controls what happens to this resource when it stops
	// being managed by CloudFormation, either because you've removed it from the
	// CDK application or because you've made a change that requires the resource
	// to be replaced.
	//
	// The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
	// account for data recovery and cleanup later (`RemovalPolicy.RETAIN`).
	// Experimental.
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	// Returns a token for an runtime attribute of this resource.
	//
	// Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility
	// in case there is no generated attribute.
	// Experimental.
	GetAtt(attributeName *string) awscdk.Reference
	// Retrieve a value value from the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	// Experimental.
	GetMetadata(key *string) interface{}
	// Examines the CloudFormation resource and discloses attributes.
	Inspect(inspector awscdk.TreeInspector)
	// Perform final modifications before synthesis.
	//
	// This method can be implemented by derived constructs in order to perform
	// final changes before synthesis. prepare() will be called after child
	// constructs have been prepared.
	//
	// This is an advanced framework feature. Only use this if you
	// understand the implications.
	// Experimental.
	OnPrepare()
	// Allows this construct to emit artifacts into the cloud assembly during synthesis.
	//
	// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
	// as they participate in synthesizing the cloud assembly.
	// Experimental.
	OnSynthesize(session constructs.ISynthesisSession)
	// Validate the current construct.
	//
	// This method can be implemented by derived constructs in order to perform
	// validation logic. It is called on all constructs before synthesis.
	//
	// Returns: An array of validation error messages, or an empty array if the construct is valid.
	// Experimental.
	OnValidate() *[]*string
	// Overrides the auto-generated logical ID with a specific ID.
	// Experimental.
	OverrideLogicalId(newLogicalId *string)
	// Perform final modifications before synthesis.
	//
	// This method can be implemented by derived constructs in order to perform
	// final changes before synthesis. prepare() will be called after child
	// constructs have been prepared.
	//
	// This is an advanced framework feature. Only use this if you
	// understand the implications.
	// Experimental.
	Prepare()
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	// Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template.
	//
	// Returns: `true` if the resource should be included or `false` is the resource
	// should be omitted.
	// Experimental.
	ShouldSynthesize() *bool
	// Allows this construct to emit artifacts into the cloud assembly during synthesis.
	//
	// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
	// as they participate in synthesizing the cloud assembly.
	// Experimental.
	Synthesize(session awscdk.ISynthesisSession)
	// Returns a string representation of this construct.
	//
	// Returns: a string representation of this resource.
	// Experimental.
	ToString() *string
	// Validate the current construct.
	//
	// This method can be implemented by derived constructs in order to perform
	// validation logic. It is called on all constructs before synthesis.
	//
	// Returns: An array of validation error messages, or an empty array if the construct is valid.
	// Experimental.
	Validate() *[]*string
	// Experimental.
	ValidateProperties(_properties interface{})
}

A CloudFormation `AWS::NetworkFirewall::FirewallPolicy`.

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 "github.com/aws/aws-cdk-go/awscdk"

cfnFirewallPolicy := awscdk.Aws_networkfirewall.NewCfnFirewallPolicy(this, jsii.String("MyCfnFirewallPolicy"), &cfnFirewallPolicyProps{
	firewallPolicy: &firewallPolicyProperty{
		statelessDefaultActions: []*string{
			jsii.String("statelessDefaultActions"),
		},
		statelessFragmentDefaultActions: []*string{
			jsii.String("statelessFragmentDefaultActions"),
		},

		// the properties below are optional
		statefulDefaultActions: []*string{
			jsii.String("statefulDefaultActions"),
		},
		statefulEngineOptions: &statefulEngineOptionsProperty{
			ruleOrder: jsii.String("ruleOrder"),
		},
		statefulRuleGroupReferences: []interface{}{
			&statefulRuleGroupReferenceProperty{
				resourceArn: jsii.String("resourceArn"),

				// the properties below are optional
				priority: jsii.Number(123),
			},
		},
		statelessCustomActions: []interface{}{
			&customActionProperty{
				actionDefinition: &actionDefinitionProperty{
					publishMetricAction: &publishMetricActionProperty{
						dimensions: []interface{}{
							&dimensionProperty{
								value: jsii.String("value"),
							},
						},
					},
				},
				actionName: jsii.String("actionName"),
			},
		},
		statelessRuleGroupReferences: []interface{}{
			&statelessRuleGroupReferenceProperty{
				priority: jsii.Number(123),
				resourceArn: jsii.String("resourceArn"),
			},
		},
	},
	firewallPolicyName: jsii.String("firewallPolicyName"),

	// the properties below are optional
	description: jsii.String("description"),
	tags: []cfnTag{
		&cfnTag{
			key: jsii.String("key"),
			value: jsii.String("value"),
		},
	},
})

func NewCfnFirewallPolicy

func NewCfnFirewallPolicy(scope awscdk.Construct, id *string, props *CfnFirewallPolicyProps) CfnFirewallPolicy

Create a new `AWS::NetworkFirewall::FirewallPolicy`.

type CfnFirewallPolicyProps

type CfnFirewallPolicyProps struct {
	// The traffic filtering behavior of a firewall policy, defined in a collection of stateless and stateful rule groups and other settings.
	FirewallPolicy interface{} `field:"required" json:"firewallPolicy" yaml:"firewallPolicy"`
	// The descriptive name of the firewall policy.
	//
	// You can't change the name of a firewall policy after you create it.
	FirewallPolicyName *string `field:"required" json:"firewallPolicyName" yaml:"firewallPolicyName"`
	// A description of the firewall policy.
	Description *string `field:"optional" json:"description" yaml:"description"`
	// An array of key-value pairs to apply to this resource.
	//
	// For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
	Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"`
}

Properties for defining a `CfnFirewallPolicy`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnFirewallPolicyProps := &cfnFirewallPolicyProps{
	firewallPolicy: &firewallPolicyProperty{
		statelessDefaultActions: []*string{
			jsii.String("statelessDefaultActions"),
		},
		statelessFragmentDefaultActions: []*string{
			jsii.String("statelessFragmentDefaultActions"),
		},

		// the properties below are optional
		statefulDefaultActions: []*string{
			jsii.String("statefulDefaultActions"),
		},
		statefulEngineOptions: &statefulEngineOptionsProperty{
			ruleOrder: jsii.String("ruleOrder"),
		},
		statefulRuleGroupReferences: []interface{}{
			&statefulRuleGroupReferenceProperty{
				resourceArn: jsii.String("resourceArn"),

				// the properties below are optional
				priority: jsii.Number(123),
			},
		},
		statelessCustomActions: []interface{}{
			&customActionProperty{
				actionDefinition: &actionDefinitionProperty{
					publishMetricAction: &publishMetricActionProperty{
						dimensions: []interface{}{
							&dimensionProperty{
								value: jsii.String("value"),
							},
						},
					},
				},
				actionName: jsii.String("actionName"),
			},
		},
		statelessRuleGroupReferences: []interface{}{
			&statelessRuleGroupReferenceProperty{
				priority: jsii.Number(123),
				resourceArn: jsii.String("resourceArn"),
			},
		},
	},
	firewallPolicyName: jsii.String("firewallPolicyName"),

	// the properties below are optional
	description: jsii.String("description"),
	tags: []cfnTag{
		&cfnTag{
			key: jsii.String("key"),
			value: jsii.String("value"),
		},
	},
}

type CfnFirewallPolicy_ActionDefinitionProperty

type CfnFirewallPolicy_ActionDefinitionProperty struct {
	// Stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet.
	//
	// This setting defines a CloudWatch dimension value to be published.
	//
	// You can pair this custom action with any of the standard stateless rule actions. For example, you could pair this in a rule action with the standard action that forwards the packet for stateful inspection. Then, when a packet matches the rule, Network Firewall publishes metrics for the packet and forwards it.
	PublishMetricAction interface{} `field:"optional" json:"publishMetricAction" yaml:"publishMetricAction"`
}

A custom action to use in stateless rule actions settings.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

actionDefinitionProperty := &actionDefinitionProperty{
	publishMetricAction: &publishMetricActionProperty{
		dimensions: []interface{}{
			&dimensionProperty{
				value: jsii.String("value"),
			},
		},
	},
}

type CfnFirewallPolicy_CustomActionProperty

type CfnFirewallPolicy_CustomActionProperty struct {
	// The custom action associated with the action name.
	ActionDefinition interface{} `field:"required" json:"actionDefinition" yaml:"actionDefinition"`
	// The descriptive name of the custom action.
	//
	// You can't change the name of a custom action after you create it.
	ActionName *string `field:"required" json:"actionName" yaml:"actionName"`
}

An optional, non-standard action to use for stateless packet handling.

You can define this in addition to the standard action that you must specify.

You define and name the custom actions that you want to be able to use, and then you reference them by name in your actions settings.

You can use custom actions in the following places:

- In an `RuleGroup.StatelessRulesAndCustomActions` . The custom actions are available for use by name inside the `StatelessRulesAndCustomActions` where you define them. You can use them for your stateless rule actions to specify what to do with a packet that matches the rule's match attributes. - In an `FirewallPolicy` specification, in `StatelessCustomActions` . The custom actions are available for use inside the policy where you define them. You can use them for the policy's default stateless actions settings to specify what to do with packets that don't match any of the policy's stateless rules.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

customActionProperty := &customActionProperty{
	actionDefinition: &actionDefinitionProperty{
		publishMetricAction: &publishMetricActionProperty{
			dimensions: []interface{}{
				&dimensionProperty{
					value: jsii.String("value"),
				},
			},
		},
	},
	actionName: jsii.String("actionName"),
}

type CfnFirewallPolicy_DimensionProperty

type CfnFirewallPolicy_DimensionProperty struct {
	// The value to use in the custom metric dimension.
	Value *string `field:"required" json:"value" yaml:"value"`
}

The value to use in an Amazon CloudWatch custom metric dimension.

This is used in the `PublishMetrics` custom action. A CloudWatch custom metric dimension is a name/value pair that's part of the identity of a metric.

AWS Network Firewall sets the dimension name to `CustomAction` and you provide the dimension value.

For more information about CloudWatch custom metric dimensions, see [Publishing Custom Metrics](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html#usingDimensions) in the [Amazon CloudWatch User Guide](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/WhatIsCloudWatch.html) .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

dimensionProperty := &dimensionProperty{
	value: jsii.String("value"),
}

type CfnFirewallPolicy_FirewallPolicyProperty

type CfnFirewallPolicy_FirewallPolicyProperty struct {
	// 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, specify `aws:forward_to_sfe` .
	//
	// You must specify one of the standard actions: `aws:pass` , `aws:drop` , or `aws: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.
	StatelessDefaultActions *[]*string `field:"required" json:"statelessDefaultActions" yaml:"statelessDefaultActions"`
	// 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, specify `aws:forward_to_sfe` .
	//
	// You must specify one of the standard actions: `aws:pass` , `aws:drop` , or `aws: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.
	StatelessFragmentDefaultActions *[]*string `field:"required" json:"statelessFragmentDefaultActions" yaml:"statelessFragmentDefaultActions"`
	// 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](https://docs.aws.amazon.com/network-firewall/latest/developerguide/suricata-rule-evaluation-order.html#suricata-strict-rule-evaluation-order.html) in the *AWS Network Firewall Developer Guide* .
	StatefulDefaultActions *[]*string `field:"optional" json:"statefulDefaultActions" yaml:"statefulDefaultActions"`
	// 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.
	StatefulEngineOptions interface{} `field:"optional" json:"statefulEngineOptions" yaml:"statefulEngineOptions"`
	// References to the stateful rule groups that are used in the policy.
	//
	// These define the inspection criteria in stateful rules.
	StatefulRuleGroupReferences interface{} `field:"optional" json:"statefulRuleGroupReferences" yaml:"statefulRuleGroupReferences"`
	// The custom action definitions that are available for use in the firewall policy's `StatelessDefaultActions` setting.
	//
	// You name each custom action that you define, and then you can use it by name in your default actions specifications.
	StatelessCustomActions interface{} `field:"optional" json:"statelessCustomActions" yaml:"statelessCustomActions"`
	// References to the stateless rule groups that are used in the policy.
	//
	// These define the matching criteria in stateless rules.
	StatelessRuleGroupReferences interface{} `field:"optional" json:"statelessRuleGroupReferences" yaml:"statelessRuleGroupReferences"`
}

The traffic filtering behavior of a firewall policy, defined in a collection of stateless and stateful rule groups and other settings.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

firewallPolicyProperty := &firewallPolicyProperty{
	statelessDefaultActions: []*string{
		jsii.String("statelessDefaultActions"),
	},
	statelessFragmentDefaultActions: []*string{
		jsii.String("statelessFragmentDefaultActions"),
	},

	// the properties below are optional
	statefulDefaultActions: []*string{
		jsii.String("statefulDefaultActions"),
	},
	statefulEngineOptions: &statefulEngineOptionsProperty{
		ruleOrder: jsii.String("ruleOrder"),
	},
	statefulRuleGroupReferences: []interface{}{
		&statefulRuleGroupReferenceProperty{
			resourceArn: jsii.String("resourceArn"),

			// the properties below are optional
			priority: jsii.Number(123),
		},
	},
	statelessCustomActions: []interface{}{
		&customActionProperty{
			actionDefinition: &actionDefinitionProperty{
				publishMetricAction: &publishMetricActionProperty{
					dimensions: []interface{}{
						&dimensionProperty{
							value: jsii.String("value"),
						},
					},
				},
			},
			actionName: jsii.String("actionName"),
		},
	},
	statelessRuleGroupReferences: []interface{}{
		&statelessRuleGroupReferenceProperty{
			priority: jsii.Number(123),
			resourceArn: jsii.String("resourceArn"),
		},
	},
}

type CfnFirewallPolicy_PublishMetricActionProperty

type CfnFirewallPolicy_PublishMetricActionProperty struct {
	// `CfnFirewallPolicy.PublishMetricActionProperty.Dimensions`.
	Dimensions interface{} `field:"required" json:"dimensions" yaml:"dimensions"`
}

Stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet.

This setting defines a CloudWatch dimension value to be published.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

publishMetricActionProperty := &publishMetricActionProperty{
	dimensions: []interface{}{
		&dimensionProperty{
			value: jsii.String("value"),
		},
	},
}

type CfnFirewallPolicy_StatefulEngineOptionsProperty

type CfnFirewallPolicy_StatefulEngineOptionsProperty struct {
	// Indicates how to manage the order of stateful rule evaluation for the policy.
	//
	// `DEFAULT_ACTION_ORDER` is the default behavior. Stateful rules are provided to the rule engine as Suricata compatible strings, and Suricata evaluates them based on certain settings. For more information, see [Evaluation order for stateful rules](https://docs.aws.amazon.com/network-firewall/latest/developerguide/suricata-rule-evaluation-order.html) in the *AWS Network Firewall Developer Guide* .
	RuleOrder *string `field:"optional" json:"ruleOrder" yaml:"ruleOrder"`
}

Configuration settings for the handling of the stateful rule groups in a firewall policy.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

statefulEngineOptionsProperty := &statefulEngineOptionsProperty{
	ruleOrder: jsii.String("ruleOrder"),
}

type CfnFirewallPolicy_StatefulRuleGroupReferenceProperty

type CfnFirewallPolicy_StatefulRuleGroupReferenceProperty struct {
	// The Amazon Resource Name (ARN) of the stateful rule group.
	ResourceArn *string `field:"required" json:"resourceArn" yaml:"resourceArn"`
	// An integer setting that indicates the order in which to run the stateful rule groups in a single `FirewallPolicy` .
	//
	// This setting only applies to firewall policies that specify the `STRICT_ORDER` rule order in the stateful engine options settings.
	//
	// Network Firewall evalutes each stateful rule group against a packet starting with the group that has the lowest priority setting. You must ensure that the priority settings are unique within each policy.
	//
	// You can change the priority settings of your rule groups at any time. To make it easier to insert rule groups later, number them so there's a wide range in between, for example use 100, 200, and so on.
	Priority *float64 `field:"optional" json:"priority" yaml:"priority"`
}

Identifier for a single stateful rule group, used in a firewall policy to refer to a rule group.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

statefulRuleGroupReferenceProperty := &statefulRuleGroupReferenceProperty{
	resourceArn: jsii.String("resourceArn"),

	// the properties below are optional
	priority: jsii.Number(123),
}

type CfnFirewallPolicy_StatelessRuleGroupReferenceProperty

type CfnFirewallPolicy_StatelessRuleGroupReferenceProperty struct {
	// An integer setting that indicates the order in which to run the stateless rule groups in a single `FirewallPolicy` .
	//
	// Network Firewall applies each stateless rule group to a packet starting with the group that has the lowest priority setting. You must ensure that the priority settings are unique within each policy.
	Priority *float64 `field:"required" json:"priority" yaml:"priority"`
	// The Amazon Resource Name (ARN) of the stateless rule group.
	ResourceArn *string `field:"required" json:"resourceArn" yaml:"resourceArn"`
}

Identifier for a single stateless rule group, used in a firewall policy to refer to the rule group.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

statelessRuleGroupReferenceProperty := &statelessRuleGroupReferenceProperty{
	priority: jsii.Number(123),
	resourceArn: jsii.String("resourceArn"),
}

type CfnFirewallProps

type CfnFirewallProps struct {
	// The descriptive name of the firewall.
	//
	// You can't change the name of a firewall after you create it.
	FirewallName *string `field:"required" json:"firewallName" yaml:"firewallName"`
	// The Amazon Resource Name (ARN) of the firewall policy.
	//
	// The relationship of firewall to firewall policy is many to one. Each firewall requires one firewall policy association, and you can use the same firewall policy for multiple firewalls.
	FirewallPolicyArn *string `field:"required" json:"firewallPolicyArn" yaml:"firewallPolicyArn"`
	// The public subnets that Network Firewall is using for the firewall.
	//
	// Each subnet must belong to a different Availability Zone.
	SubnetMappings interface{} `field:"required" json:"subnetMappings" yaml:"subnetMappings"`
	// The unique identifier of the VPC where the firewall is in use.
	//
	// You can't change the VPC of a firewall after you create the firewall.
	VpcId *string `field:"required" json:"vpcId" yaml:"vpcId"`
	// A flag indicating whether it is possible to delete the firewall.
	//
	// A setting of `TRUE` indicates that the firewall is protected against deletion. Use this setting to protect against accidentally deleting a firewall that is in use. When you create a firewall, the operation initializes this flag to `TRUE` .
	DeleteProtection interface{} `field:"optional" json:"deleteProtection" yaml:"deleteProtection"`
	// A description of the firewall.
	Description *string `field:"optional" json:"description" yaml:"description"`
	// A setting indicating whether the firewall is protected against a change to the firewall policy association.
	//
	// Use this setting to protect against accidentally modifying the firewall policy for a firewall that is in use. When you create a firewall, the operation initializes this setting to `TRUE` .
	FirewallPolicyChangeProtection interface{} `field:"optional" json:"firewallPolicyChangeProtection" yaml:"firewallPolicyChangeProtection"`
	// A setting indicating whether the firewall is protected against changes to the subnet associations.
	//
	// Use this setting to protect against accidentally modifying the subnet associations for a firewall that is in use. When you create a firewall, the operation initializes this setting to `TRUE` .
	SubnetChangeProtection interface{} `field:"optional" json:"subnetChangeProtection" yaml:"subnetChangeProtection"`
	// An array of key-value pairs to apply to this resource.
	//
	// For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
	Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"`
}

Properties for defining a `CfnFirewall`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnFirewallProps := &cfnFirewallProps{
	firewallName: jsii.String("firewallName"),
	firewallPolicyArn: jsii.String("firewallPolicyArn"),
	subnetMappings: []interface{}{
		&subnetMappingProperty{
			subnetId: jsii.String("subnetId"),
		},
	},
	vpcId: jsii.String("vpcId"),

	// the properties below are optional
	deleteProtection: jsii.Boolean(false),
	description: jsii.String("description"),
	firewallPolicyChangeProtection: jsii.Boolean(false),
	subnetChangeProtection: jsii.Boolean(false),
	tags: []cfnTag{
		&cfnTag{
			key: jsii.String("key"),
			value: jsii.String("value"),
		},
	},
}

type CfnFirewall_SubnetMappingProperty

type CfnFirewall_SubnetMappingProperty struct {
	// The unique identifier for the subnet.
	SubnetId *string `field:"required" json:"subnetId" yaml:"subnetId"`
}

The ID for a subnet that you want to associate with the firewall.

AWS Network Firewall creates an instance of the associated firewall in each subnet that you specify, to filter traffic in the subnet's Availability Zone.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

subnetMappingProperty := &subnetMappingProperty{
	subnetId: jsii.String("subnetId"),
}

type CfnLoggingConfiguration

type CfnLoggingConfiguration interface {
	awscdk.CfnResource
	awscdk.IInspectable
	// Options for this resource, such as condition, update policy etc.
	// Experimental.
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	// AWS resource type.
	// Experimental.
	CfnResourceType() *string
	// Returns: the stack trace of the point where this Resource was created from, sourced
	// from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most
	// node +internal+ entries filtered.
	// Experimental.
	CreationStack() *[]*string
	// The Amazon Resource Name (ARN) of the `Firewall` that the logging configuration is associated with.
	//
	// You can't change the firewall specification after you create the logging configuration.
	FirewallArn() *string
	SetFirewallArn(val *string)
	// The name of the firewall that the logging configuration is associated with.
	//
	// You can't change the firewall specification after you create the logging configuration.
	FirewallName() *string
	SetFirewallName(val *string)
	// Defines how AWS Network Firewall performs logging for a `Firewall` .
	LoggingConfiguration() interface{}
	SetLoggingConfiguration(val interface{})
	// The logical ID for this CloudFormation stack element.
	//
	// The logical ID of the element
	// is calculated from the path of the resource node in the construct tree.
	//
	// To override this value, use `overrideLogicalId(newLogicalId)`.
	//
	// Returns: the logical ID as a stringified token. This value will only get
	// resolved during synthesis.
	// Experimental.
	LogicalId() *string
	// The construct tree node associated with this construct.
	// Experimental.
	Node() awscdk.ConstructNode
	// Return a string that will be resolved to a CloudFormation `{ Ref }` for this element.
	//
	// If, by any chance, the intrinsic reference of a resource is not a string, you could
	// coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`.
	// Experimental.
	Ref() *string
	// The stack in which this element is defined.
	//
	// CfnElements must be defined within a stack scope (directly or indirectly).
	// Experimental.
	Stack() awscdk.Stack
	// Return properties modified after initiation.
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	// Experimental.
	UpdatedProperites() *map[string]interface{}
	// Syntactic sugar for `addOverride(path, undefined)`.
	// Experimental.
	AddDeletionOverride(path *string)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	//
	// This can be used for resources across stacks (or nested stack) boundaries
	// and the dependency will automatically be transferred to the relevant scope.
	// Experimental.
	AddDependsOn(target awscdk.CfnResource)
	// Add a value to the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	// Experimental.
	AddMetadata(key *string, value interface{})
	// Adds an override to the synthesized CloudFormation resource.
	//
	// To add a
	// property override, either use `addPropertyOverride` or prefix `path` with
	// "Properties." (i.e. `Properties.TopicName`).
	//
	// If the override is nested, separate each nested level using a dot (.) in the path parameter.
	// If there is an array as part of the nesting, specify the index in the path.
	//
	// To include a literal `.` in the property name, prefix with a `\`. In most
	// programming languages you will need to write this as `"\\."` because the
	// `\` itself will need to be escaped.
	//
	// For example,
	// “`typescript
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');
	// “`
	// would add the overrides
	// “`json
	// "Properties": {
	//    "GlobalSecondaryIndexes": [
	//      {
	//        "Projection": {
	//          "NonKeyAttributes": [ "myattribute" ]
	//          ...
	//        }
	//        ...
	//      },
	//      {
	//        "ProjectionType": "INCLUDE"
	//        ...
	//      },
	//    ]
	//    ...
	// }
	// “`
	//
	// The `value` argument to `addOverride` will not be processed or translated
	// in any way. Pass raw JSON values in here with the correct capitalization
	// for CloudFormation. If you pass CDK classes or structs, they will be
	// rendered with lowercased key names, and CloudFormation will reject the
	// template.
	// Experimental.
	AddOverride(path *string, value interface{})
	// Adds an override that deletes the value of a property from the resource definition.
	// Experimental.
	AddPropertyDeletionOverride(propertyPath *string)
	// Adds an override to a resource property.
	//
	// Syntactic sugar for `addOverride("Properties.<...>", value)`.
	// Experimental.
	AddPropertyOverride(propertyPath *string, value interface{})
	// Sets the deletion policy of the resource based on the removal policy specified.
	//
	// The Removal Policy controls what happens to this resource when it stops
	// being managed by CloudFormation, either because you've removed it from the
	// CDK application or because you've made a change that requires the resource
	// to be replaced.
	//
	// The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
	// account for data recovery and cleanup later (`RemovalPolicy.RETAIN`).
	// Experimental.
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	// Returns a token for an runtime attribute of this resource.
	//
	// Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility
	// in case there is no generated attribute.
	// Experimental.
	GetAtt(attributeName *string) awscdk.Reference
	// Retrieve a value value from the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	// Experimental.
	GetMetadata(key *string) interface{}
	// Examines the CloudFormation resource and discloses attributes.
	Inspect(inspector awscdk.TreeInspector)
	// Perform final modifications before synthesis.
	//
	// This method can be implemented by derived constructs in order to perform
	// final changes before synthesis. prepare() will be called after child
	// constructs have been prepared.
	//
	// This is an advanced framework feature. Only use this if you
	// understand the implications.
	// Experimental.
	OnPrepare()
	// Allows this construct to emit artifacts into the cloud assembly during synthesis.
	//
	// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
	// as they participate in synthesizing the cloud assembly.
	// Experimental.
	OnSynthesize(session constructs.ISynthesisSession)
	// Validate the current construct.
	//
	// This method can be implemented by derived constructs in order to perform
	// validation logic. It is called on all constructs before synthesis.
	//
	// Returns: An array of validation error messages, or an empty array if the construct is valid.
	// Experimental.
	OnValidate() *[]*string
	// Overrides the auto-generated logical ID with a specific ID.
	// Experimental.
	OverrideLogicalId(newLogicalId *string)
	// Perform final modifications before synthesis.
	//
	// This method can be implemented by derived constructs in order to perform
	// final changes before synthesis. prepare() will be called after child
	// constructs have been prepared.
	//
	// This is an advanced framework feature. Only use this if you
	// understand the implications.
	// Experimental.
	Prepare()
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	// Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template.
	//
	// Returns: `true` if the resource should be included or `false` is the resource
	// should be omitted.
	// Experimental.
	ShouldSynthesize() *bool
	// Allows this construct to emit artifacts into the cloud assembly during synthesis.
	//
	// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
	// as they participate in synthesizing the cloud assembly.
	// Experimental.
	Synthesize(session awscdk.ISynthesisSession)
	// Returns a string representation of this construct.
	//
	// Returns: a string representation of this resource.
	// Experimental.
	ToString() *string
	// Validate the current construct.
	//
	// This method can be implemented by derived constructs in order to perform
	// validation logic. It is called on all constructs before synthesis.
	//
	// Returns: An array of validation error messages, or an empty array if the construct is valid.
	// Experimental.
	Validate() *[]*string
	// Experimental.
	ValidateProperties(_properties interface{})
}

A CloudFormation `AWS::NetworkFirewall::LoggingConfiguration`.

Use the `LoggingConfiguration` to define the destinations and logging options for an `Firewall` .

You must change the logging configuration by changing one `LogDestinationConfig` setting at a time in your `LogDestinationConfigs` .

You can make only one of the following changes to your `LoggingConfiguration` resource:

- Create a new log destination object by adding a single `LogDestinationConfig` array element to `LogDestinationConfigs` . - Delete a log destination object by removing a single `LogDestinationConfig` array element from `LogDestinationConfigs` . - Change the `LogDestination` setting in a single `LogDestinationConfig` array element.

You can't change the `LogDestinationType` or `LogType` in a `LogDestinationConfig` . To change these settings, delete the existing `LogDestinationConfig` object and create a new one, in two separate modifications.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnLoggingConfiguration := awscdk.Aws_networkfirewall.NewCfnLoggingConfiguration(this, jsii.String("MyCfnLoggingConfiguration"), &cfnLoggingConfigurationProps{
	firewallArn: jsii.String("firewallArn"),
	loggingConfiguration: &loggingConfigurationProperty{
		logDestinationConfigs: []interface{}{
			&logDestinationConfigProperty{
				logDestination: map[string]*string{
					"logDestinationKey": jsii.String("logDestination"),
				},
				logDestinationType: jsii.String("logDestinationType"),
				logType: jsii.String("logType"),
			},
		},
	},

	// the properties below are optional
	firewallName: jsii.String("firewallName"),
})

func NewCfnLoggingConfiguration

func NewCfnLoggingConfiguration(scope awscdk.Construct, id *string, props *CfnLoggingConfigurationProps) CfnLoggingConfiguration

Create a new `AWS::NetworkFirewall::LoggingConfiguration`.

type CfnLoggingConfigurationProps

type CfnLoggingConfigurationProps struct {
	// The Amazon Resource Name (ARN) of the `Firewall` that the logging configuration is associated with.
	//
	// You can't change the firewall specification after you create the logging configuration.
	FirewallArn *string `field:"required" json:"firewallArn" yaml:"firewallArn"`
	// Defines how AWS Network Firewall performs logging for a `Firewall` .
	LoggingConfiguration interface{} `field:"required" json:"loggingConfiguration" yaml:"loggingConfiguration"`
	// The name of the firewall that the logging configuration is associated with.
	//
	// You can't change the firewall specification after you create the logging configuration.
	FirewallName *string `field:"optional" json:"firewallName" yaml:"firewallName"`
}

Properties for defining a `CfnLoggingConfiguration`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnLoggingConfigurationProps := &cfnLoggingConfigurationProps{
	firewallArn: jsii.String("firewallArn"),
	loggingConfiguration: &loggingConfigurationProperty{
		logDestinationConfigs: []interface{}{
			&logDestinationConfigProperty{
				logDestination: map[string]*string{
					"logDestinationKey": jsii.String("logDestination"),
				},
				logDestinationType: jsii.String("logDestinationType"),
				logType: jsii.String("logType"),
			},
		},
	},

	// the properties below are optional
	firewallName: jsii.String("firewallName"),
}

type CfnLoggingConfiguration_LogDestinationConfigProperty

type CfnLoggingConfiguration_LogDestinationConfigProperty struct {
	// The named location for the logs, provided in a key:value mapping that is specific to the chosen destination type.
	//
	// - For an Amazon S3 bucket, provide the name of the bucket, with key `bucketName` , and optionally provide a prefix, with key `prefix` . The following example specifies an Amazon S3 bucket named `DOC-EXAMPLE-BUCKET` and the prefix `alerts` :
	//
	// `"LogDestination": { "bucketName": "DOC-EXAMPLE-BUCKET", "prefix": "alerts" }`
	// - For a CloudWatch log group, provide the name of the CloudWatch log group, with key `logGroup` . The following example specifies a log group named `alert-log-group` :
	//
	// `"LogDestination": { "logGroup": "alert-log-group" }`
	// - For a Kinesis Data Firehose delivery stream, provide the name of the delivery stream, with key `deliveryStream` . The following example specifies a delivery stream named `alert-delivery-stream` :
	//
	// `"LogDestination": { "deliveryStream": "alert-delivery-stream" }`.
	LogDestination interface{} `field:"required" json:"logDestination" yaml:"logDestination"`
	// The type of storage destination to send these logs to.
	//
	// You can send logs to an Amazon S3 bucket, a CloudWatch log group, or a Kinesis Data Firehose delivery stream.
	LogDestinationType *string `field:"required" json:"logDestinationType" yaml:"logDestinationType"`
	// The type of log to send.
	//
	// Alert logs report traffic that matches a stateful rule with an action setting that sends an alert log message. Flow logs are standard network traffic flow logs.
	LogType *string `field:"required" json:"logType" yaml:"logType"`
}

Defines where AWS Network Firewall sends logs for the firewall for one log type.

This is used in `LoggingConfiguration` . You can send each type of log to an Amazon S3 bucket, a CloudWatch log group, or a Kinesis Data Firehose delivery stream.

Network Firewall generates logs for stateful rule groups. You can save alert and flow log types. The stateful rules engine records flow logs for all network traffic that it receives. It records alert logs for traffic that matches stateful rules that have the rule action set to `DROP` or `ALERT` .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

logDestinationConfigProperty := &logDestinationConfigProperty{
	logDestination: map[string]*string{
		"logDestinationKey": jsii.String("logDestination"),
	},
	logDestinationType: jsii.String("logDestinationType"),
	logType: jsii.String("logType"),
}

type CfnLoggingConfiguration_LoggingConfigurationProperty

type CfnLoggingConfiguration_LoggingConfigurationProperty struct {
	// Defines the logging destinations for the logs for a firewall.
	//
	// Network Firewall generates logs for stateful rule groups.
	LogDestinationConfigs interface{} `field:"required" json:"logDestinationConfigs" yaml:"logDestinationConfigs"`
}

Defines how AWS Network Firewall performs logging for a `Firewall` .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

loggingConfigurationProperty := &loggingConfigurationProperty{
	logDestinationConfigs: []interface{}{
		&logDestinationConfigProperty{
			logDestination: map[string]*string{
				"logDestinationKey": jsii.String("logDestination"),
			},
			logDestinationType: jsii.String("logDestinationType"),
			logType: jsii.String("logType"),
		},
	},
}

type CfnRuleGroup

type CfnRuleGroup interface {
	awscdk.CfnResource
	awscdk.IInspectable
	// The Amazon Resource Name (ARN) of the `RuleGroup` .
	AttrRuleGroupArn() *string
	// The unique ID of the `RuleGroup` resource.
	AttrRuleGroupId() *string
	// The maximum operating resources that this rule group can use.
	//
	// You can't change a rule group's capacity setting after you create the rule group. When you update a rule group, you are limited to this capacity. When you reference a rule group from a firewall policy, Network Firewall reserves this capacity for the rule group.
	Capacity() *float64
	SetCapacity(val *float64)
	// Options for this resource, such as condition, update policy etc.
	// Experimental.
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	// AWS resource type.
	// Experimental.
	CfnResourceType() *string
	// Returns: the stack trace of the point where this Resource was created from, sourced
	// from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most
	// node +internal+ entries filtered.
	// Experimental.
	CreationStack() *[]*string
	// A description of the rule group.
	Description() *string
	SetDescription(val *string)
	// The logical ID for this CloudFormation stack element.
	//
	// The logical ID of the element
	// is calculated from the path of the resource node in the construct tree.
	//
	// To override this value, use `overrideLogicalId(newLogicalId)`.
	//
	// Returns: the logical ID as a stringified token. This value will only get
	// resolved during synthesis.
	// Experimental.
	LogicalId() *string
	// The construct tree node associated with this construct.
	// Experimental.
	Node() awscdk.ConstructNode
	// Return a string that will be resolved to a CloudFormation `{ Ref }` for this element.
	//
	// If, by any chance, the intrinsic reference of a resource is not a string, you could
	// coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`.
	// Experimental.
	Ref() *string
	// An object that defines the rule group rules.
	RuleGroup() interface{}
	SetRuleGroup(val interface{})
	// The descriptive name of the rule group.
	//
	// You can't change the name of a rule group after you create it.
	RuleGroupName() *string
	SetRuleGroupName(val *string)
	// The stack in which this element is defined.
	//
	// CfnElements must be defined within a stack scope (directly or indirectly).
	// Experimental.
	Stack() awscdk.Stack
	// An array of key-value pairs to apply to this resource.
	//
	// For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
	Tags() awscdk.TagManager
	// Indicates whether the rule group is stateless or stateful.
	//
	// If the rule group is stateless, it contains
	// stateless rules. If it is stateful, it contains stateful rules.
	Type() *string
	SetType(val *string)
	// Return properties modified after initiation.
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	// Experimental.
	UpdatedProperites() *map[string]interface{}
	// Syntactic sugar for `addOverride(path, undefined)`.
	// Experimental.
	AddDeletionOverride(path *string)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	//
	// This can be used for resources across stacks (or nested stack) boundaries
	// and the dependency will automatically be transferred to the relevant scope.
	// Experimental.
	AddDependsOn(target awscdk.CfnResource)
	// Add a value to the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	// Experimental.
	AddMetadata(key *string, value interface{})
	// Adds an override to the synthesized CloudFormation resource.
	//
	// To add a
	// property override, either use `addPropertyOverride` or prefix `path` with
	// "Properties." (i.e. `Properties.TopicName`).
	//
	// If the override is nested, separate each nested level using a dot (.) in the path parameter.
	// If there is an array as part of the nesting, specify the index in the path.
	//
	// To include a literal `.` in the property name, prefix with a `\`. In most
	// programming languages you will need to write this as `"\\."` because the
	// `\` itself will need to be escaped.
	//
	// For example,
	// “`typescript
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');
	// “`
	// would add the overrides
	// “`json
	// "Properties": {
	//    "GlobalSecondaryIndexes": [
	//      {
	//        "Projection": {
	//          "NonKeyAttributes": [ "myattribute" ]
	//          ...
	//        }
	//        ...
	//      },
	//      {
	//        "ProjectionType": "INCLUDE"
	//        ...
	//      },
	//    ]
	//    ...
	// }
	// “`
	//
	// The `value` argument to `addOverride` will not be processed or translated
	// in any way. Pass raw JSON values in here with the correct capitalization
	// for CloudFormation. If you pass CDK classes or structs, they will be
	// rendered with lowercased key names, and CloudFormation will reject the
	// template.
	// Experimental.
	AddOverride(path *string, value interface{})
	// Adds an override that deletes the value of a property from the resource definition.
	// Experimental.
	AddPropertyDeletionOverride(propertyPath *string)
	// Adds an override to a resource property.
	//
	// Syntactic sugar for `addOverride("Properties.<...>", value)`.
	// Experimental.
	AddPropertyOverride(propertyPath *string, value interface{})
	// Sets the deletion policy of the resource based on the removal policy specified.
	//
	// The Removal Policy controls what happens to this resource when it stops
	// being managed by CloudFormation, either because you've removed it from the
	// CDK application or because you've made a change that requires the resource
	// to be replaced.
	//
	// The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
	// account for data recovery and cleanup later (`RemovalPolicy.RETAIN`).
	// Experimental.
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	// Returns a token for an runtime attribute of this resource.
	//
	// Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility
	// in case there is no generated attribute.
	// Experimental.
	GetAtt(attributeName *string) awscdk.Reference
	// Retrieve a value value from the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	// Experimental.
	GetMetadata(key *string) interface{}
	// Examines the CloudFormation resource and discloses attributes.
	Inspect(inspector awscdk.TreeInspector)
	// Perform final modifications before synthesis.
	//
	// This method can be implemented by derived constructs in order to perform
	// final changes before synthesis. prepare() will be called after child
	// constructs have been prepared.
	//
	// This is an advanced framework feature. Only use this if you
	// understand the implications.
	// Experimental.
	OnPrepare()
	// Allows this construct to emit artifacts into the cloud assembly during synthesis.
	//
	// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
	// as they participate in synthesizing the cloud assembly.
	// Experimental.
	OnSynthesize(session constructs.ISynthesisSession)
	// Validate the current construct.
	//
	// This method can be implemented by derived constructs in order to perform
	// validation logic. It is called on all constructs before synthesis.
	//
	// Returns: An array of validation error messages, or an empty array if the construct is valid.
	// Experimental.
	OnValidate() *[]*string
	// Overrides the auto-generated logical ID with a specific ID.
	// Experimental.
	OverrideLogicalId(newLogicalId *string)
	// Perform final modifications before synthesis.
	//
	// This method can be implemented by derived constructs in order to perform
	// final changes before synthesis. prepare() will be called after child
	// constructs have been prepared.
	//
	// This is an advanced framework feature. Only use this if you
	// understand the implications.
	// Experimental.
	Prepare()
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	// Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template.
	//
	// Returns: `true` if the resource should be included or `false` is the resource
	// should be omitted.
	// Experimental.
	ShouldSynthesize() *bool
	// Allows this construct to emit artifacts into the cloud assembly during synthesis.
	//
	// This method is usually implemented by framework-level constructs such as `Stack` and `Asset`
	// as they participate in synthesizing the cloud assembly.
	// Experimental.
	Synthesize(session awscdk.ISynthesisSession)
	// Returns a string representation of this construct.
	//
	// Returns: a string representation of this resource.
	// Experimental.
	ToString() *string
	// Validate the current construct.
	//
	// This method can be implemented by derived constructs in order to perform
	// validation logic. It is called on all constructs before synthesis.
	//
	// Returns: An array of validation error messages, or an empty array if the construct is valid.
	// Experimental.
	Validate() *[]*string
	// Experimental.
	ValidateProperties(_properties interface{})
}

A CloudFormation `AWS::NetworkFirewall::RuleGroup`.

Use the `RuleGroup` to define a reusable collection of stateless or stateful network traffic filtering rules. You use rule groups in an `FirewallPolicy` to specify the filtering behavior of an `Firewall` .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnRuleGroup := awscdk.Aws_networkfirewall.NewCfnRuleGroup(this, jsii.String("MyCfnRuleGroup"), &cfnRuleGroupProps{
	capacity: jsii.Number(123),
	ruleGroupName: jsii.String("ruleGroupName"),
	type: jsii.String("type"),

	// the properties below are optional
	description: jsii.String("description"),
	ruleGroup: &ruleGroupProperty{
		rulesSource: &rulesSourceProperty{
			rulesSourceList: &rulesSourceListProperty{
				generatedRulesType: jsii.String("generatedRulesType"),
				targets: []*string{
					jsii.String("targets"),
				},
				targetTypes: []*string{
					jsii.String("targetTypes"),
				},
			},
			rulesString: jsii.String("rulesString"),
			statefulRules: []interface{}{
				&statefulRuleProperty{
					action: jsii.String("action"),
					header: &headerProperty{
						destination: jsii.String("destination"),
						destinationPort: jsii.String("destinationPort"),
						direction: jsii.String("direction"),
						protocol: jsii.String("protocol"),
						source: jsii.String("source"),
						sourcePort: jsii.String("sourcePort"),
					},
					ruleOptions: []interface{}{
						&ruleOptionProperty{
							keyword: jsii.String("keyword"),

							// the properties below are optional
							settings: []*string{
								jsii.String("settings"),
							},
						},
					},
				},
			},
			statelessRulesAndCustomActions: &statelessRulesAndCustomActionsProperty{
				statelessRules: []interface{}{
					&statelessRuleProperty{
						priority: jsii.Number(123),
						ruleDefinition: &ruleDefinitionProperty{
							actions: []*string{
								jsii.String("actions"),
							},
							matchAttributes: &matchAttributesProperty{
								destinationPorts: []interface{}{
									&portRangeProperty{
										fromPort: jsii.Number(123),
										toPort: jsii.Number(123),
									},
								},
								destinations: []interface{}{
									&addressProperty{
										addressDefinition: jsii.String("addressDefinition"),
									},
								},
								protocols: []interface{}{
									jsii.Number(123),
								},
								sourcePorts: []interface{}{
									&portRangeProperty{
										fromPort: jsii.Number(123),
										toPort: jsii.Number(123),
									},
								},
								sources: []interface{}{
									&addressProperty{
										addressDefinition: jsii.String("addressDefinition"),
									},
								},
								tcpFlags: []interface{}{
									&tCPFlagFieldProperty{
										flags: []*string{
											jsii.String("flags"),
										},

										// the properties below are optional
										masks: []*string{
											jsii.String("masks"),
										},
									},
								},
							},
						},
					},
				},

				// the properties below are optional
				customActions: []interface{}{
					&customActionProperty{
						actionDefinition: &actionDefinitionProperty{
							publishMetricAction: &publishMetricActionProperty{
								dimensions: []interface{}{
									&dimensionProperty{
										value: jsii.String("value"),
									},
								},
							},
						},
						actionName: jsii.String("actionName"),
					},
				},
			},
		},

		// the properties below are optional
		ruleVariables: &ruleVariablesProperty{
			ipSets: map[string]interface{}{
				"ipSetsKey": map[string][]*string{
					"definition": []*string{
						jsii.String("definition"),
					},
				},
			},
			portSets: map[string]interface{}{
				"portSetsKey": &PortSetProperty{
					"definition": []*string{
						jsii.String("definition"),
					},
				},
			},
		},
		statefulRuleOptions: &statefulRuleOptionsProperty{
			ruleOrder: jsii.String("ruleOrder"),
		},
	},
	tags: []cfnTag{
		&cfnTag{
			key: jsii.String("key"),
			value: jsii.String("value"),
		},
	},
})

func NewCfnRuleGroup

func NewCfnRuleGroup(scope awscdk.Construct, id *string, props *CfnRuleGroupProps) CfnRuleGroup

Create a new `AWS::NetworkFirewall::RuleGroup`.

type CfnRuleGroupProps

type CfnRuleGroupProps struct {
	// The maximum operating resources that this rule group can use.
	//
	// You can't change a rule group's capacity setting after you create the rule group. When you update a rule group, you are limited to this capacity. When you reference a rule group from a firewall policy, Network Firewall reserves this capacity for the rule group.
	Capacity *float64 `field:"required" json:"capacity" yaml:"capacity"`
	// The descriptive name of the rule group.
	//
	// You can't change the name of a rule group after you create it.
	RuleGroupName *string `field:"required" json:"ruleGroupName" yaml:"ruleGroupName"`
	// Indicates whether the rule group is stateless or stateful.
	//
	// If the rule group is stateless, it contains
	// stateless rules. If it is stateful, it contains stateful rules.
	Type *string `field:"required" json:"type" yaml:"type"`
	// A description of the rule group.
	Description *string `field:"optional" json:"description" yaml:"description"`
	// An object that defines the rule group rules.
	RuleGroup interface{} `field:"optional" json:"ruleGroup" yaml:"ruleGroup"`
	// An array of key-value pairs to apply to this resource.
	//
	// For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
	Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"`
}

Properties for defining a `CfnRuleGroup`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnRuleGroupProps := &cfnRuleGroupProps{
	capacity: jsii.Number(123),
	ruleGroupName: jsii.String("ruleGroupName"),
	type: jsii.String("type"),

	// the properties below are optional
	description: jsii.String("description"),
	ruleGroup: &ruleGroupProperty{
		rulesSource: &rulesSourceProperty{
			rulesSourceList: &rulesSourceListProperty{
				generatedRulesType: jsii.String("generatedRulesType"),
				targets: []*string{
					jsii.String("targets"),
				},
				targetTypes: []*string{
					jsii.String("targetTypes"),
				},
			},
			rulesString: jsii.String("rulesString"),
			statefulRules: []interface{}{
				&statefulRuleProperty{
					action: jsii.String("action"),
					header: &headerProperty{
						destination: jsii.String("destination"),
						destinationPort: jsii.String("destinationPort"),
						direction: jsii.String("direction"),
						protocol: jsii.String("protocol"),
						source: jsii.String("source"),
						sourcePort: jsii.String("sourcePort"),
					},
					ruleOptions: []interface{}{
						&ruleOptionProperty{
							keyword: jsii.String("keyword"),

							// the properties below are optional
							settings: []*string{
								jsii.String("settings"),
							},
						},
					},
				},
			},
			statelessRulesAndCustomActions: &statelessRulesAndCustomActionsProperty{
				statelessRules: []interface{}{
					&statelessRuleProperty{
						priority: jsii.Number(123),
						ruleDefinition: &ruleDefinitionProperty{
							actions: []*string{
								jsii.String("actions"),
							},
							matchAttributes: &matchAttributesProperty{
								destinationPorts: []interface{}{
									&portRangeProperty{
										fromPort: jsii.Number(123),
										toPort: jsii.Number(123),
									},
								},
								destinations: []interface{}{
									&addressProperty{
										addressDefinition: jsii.String("addressDefinition"),
									},
								},
								protocols: []interface{}{
									jsii.Number(123),
								},
								sourcePorts: []interface{}{
									&portRangeProperty{
										fromPort: jsii.Number(123),
										toPort: jsii.Number(123),
									},
								},
								sources: []interface{}{
									&addressProperty{
										addressDefinition: jsii.String("addressDefinition"),
									},
								},
								tcpFlags: []interface{}{
									&tCPFlagFieldProperty{
										flags: []*string{
											jsii.String("flags"),
										},

										// the properties below are optional
										masks: []*string{
											jsii.String("masks"),
										},
									},
								},
							},
						},
					},
				},

				// the properties below are optional
				customActions: []interface{}{
					&customActionProperty{
						actionDefinition: &actionDefinitionProperty{
							publishMetricAction: &publishMetricActionProperty{
								dimensions: []interface{}{
									&dimensionProperty{
										value: jsii.String("value"),
									},
								},
							},
						},
						actionName: jsii.String("actionName"),
					},
				},
			},
		},

		// the properties below are optional
		ruleVariables: &ruleVariablesProperty{
			ipSets: map[string]interface{}{
				"ipSetsKey": map[string][]*string{
					"definition": []*string{
						jsii.String("definition"),
					},
				},
			},
			portSets: map[string]interface{}{
				"portSetsKey": &PortSetProperty{
					"definition": []*string{
						jsii.String("definition"),
					},
				},
			},
		},
		statefulRuleOptions: &statefulRuleOptionsProperty{
			ruleOrder: jsii.String("ruleOrder"),
		},
	},
	tags: []cfnTag{
		&cfnTag{
			key: jsii.String("key"),
			value: jsii.String("value"),
		},
	},
}

type CfnRuleGroup_ActionDefinitionProperty

type CfnRuleGroup_ActionDefinitionProperty struct {
	// Stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet.
	//
	// This setting defines a CloudWatch dimension value to be published.
	//
	// You can pair this custom action with any of the standard stateless rule actions. For example, you could pair this in a rule action with the standard action that forwards the packet for stateful inspection. Then, when a packet matches the rule, Network Firewall publishes metrics for the packet and forwards it.
	PublishMetricAction interface{} `field:"optional" json:"publishMetricAction" yaml:"publishMetricAction"`
}

A custom action to use in stateless rule actions settings.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

actionDefinitionProperty := &actionDefinitionProperty{
	publishMetricAction: &publishMetricActionProperty{
		dimensions: []interface{}{
			&dimensionProperty{
				value: jsii.String("value"),
			},
		},
	},
}

type CfnRuleGroup_AddressProperty

type CfnRuleGroup_AddressProperty struct {
	// Specify an IP address or a block of IP addresses in Classless Inter-Domain Routing (CIDR) notation.
	//
	// Network Firewall supports all address ranges for IPv4.
	//
	// Examples:
	//
	// - To configure Network Firewall to inspect for the IP address 192.0.2.44, specify `192.0.2.44/32` .
	// - To configure Network Firewall to inspect for IP addresses from 192.0.2.0 to 192.0.2.255, specify `192.0.2.0/24` .
	//
	// For more information about CIDR notation, see the Wikipedia entry [Classless Inter-Domain Routing](https://docs.aws.amazon.com/https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) .
	AddressDefinition *string `field:"required" json:"addressDefinition" yaml:"addressDefinition"`
}

A single IP address specification.

This is used in the `RuleGroup.MatchAttributes` source and destination specifications.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

addressProperty := &addressProperty{
	addressDefinition: jsii.String("addressDefinition"),
}

type CfnRuleGroup_CustomActionProperty

type CfnRuleGroup_CustomActionProperty struct {
	// The custom action associated with the action name.
	ActionDefinition interface{} `field:"required" json:"actionDefinition" yaml:"actionDefinition"`
	// The descriptive name of the custom action.
	//
	// You can't change the name of a custom action after you create it.
	ActionName *string `field:"required" json:"actionName" yaml:"actionName"`
}

An optional, non-standard action to use for stateless packet handling.

You can define this in addition to the standard action that you must specify.

You define and name the custom actions that you want to be able to use, and then you reference them by name in your actions settings.

You can use custom actions in the following places:

- In an `RuleGroup.StatelessRulesAndCustomActions` . The custom actions are available for use by name inside the `StatelessRulesAndCustomActions` where you define them. You can use them for your stateless rule actions to specify what to do with a packet that matches the rule's match attributes. - In an `FirewallPolicy` specification, in `StatelessCustomActions` . The custom actions are available for use inside the policy where you define them. You can use them for the policy's default stateless actions settings to specify what to do with packets that don't match any of the policy's stateless rules.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

customActionProperty := &customActionProperty{
	actionDefinition: &actionDefinitionProperty{
		publishMetricAction: &publishMetricActionProperty{
			dimensions: []interface{}{
				&dimensionProperty{
					value: jsii.String("value"),
				},
			},
		},
	},
	actionName: jsii.String("actionName"),
}

type CfnRuleGroup_DimensionProperty

type CfnRuleGroup_DimensionProperty struct {
	// The value to use in the custom metric dimension.
	Value *string `field:"required" json:"value" yaml:"value"`
}

The value to use in an Amazon CloudWatch custom metric dimension.

This is used in the `PublishMetrics` custom action. A CloudWatch custom metric dimension is a name/value pair that's part of the identity of a metric.

AWS Network Firewall sets the dimension name to `CustomAction` and you provide the dimension value.

For more information about CloudWatch custom metric dimensions, see [Publishing Custom Metrics](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html#usingDimensions) in the [Amazon CloudWatch User Guide](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/WhatIsCloudWatch.html) .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

dimensionProperty := &dimensionProperty{
	value: jsii.String("value"),
}

type CfnRuleGroup_HeaderProperty

type CfnRuleGroup_HeaderProperty struct {
	// The destination IP address or address range to inspect for, in CIDR notation.
	//
	// To match with any address, specify `ANY` .
	//
	// Specify an IP address or a block of IP addresses in Classless Inter-Domain Routing (CIDR) notation. Network Firewall supports all address ranges for IPv4.
	//
	// Examples:
	//
	// - To configure Network Firewall to inspect for the IP address 192.0.2.44, specify `192.0.2.44/32` .
	// - To configure Network Firewall to inspect for IP addresses from 192.0.2.0 to 192.0.2.255, specify `192.0.2.0/24` .
	//
	// For more information about CIDR notation, see the Wikipedia entry [Classless Inter-Domain Routing](https://docs.aws.amazon.com/https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) .
	Destination *string `field:"required" json:"destination" yaml:"destination"`
	// The destination port to inspect for.
	//
	// You can specify an individual port, for example `1994` and you can specify a port range, for example `1990:1994` . To match with any port, specify `ANY` .
	DestinationPort *string `field:"required" json:"destinationPort" yaml:"destinationPort"`
	// The direction of traffic flow to inspect.
	//
	// If set to `ANY` , the inspection matches bidirectional traffic, both from the source to the destination and from the destination to the source. If set to `FORWARD` , the inspection only matches traffic going from the source to the destination.
	Direction *string `field:"required" json:"direction" yaml:"direction"`
	// The protocol to inspect for.
	//
	// To specify all, you can use `IP` , because all traffic on AWS and on the internet is IP.
	Protocol *string `field:"required" json:"protocol" yaml:"protocol"`
	// The source IP address or address range to inspect for, in CIDR notation.
	//
	// To match with any address, specify `ANY` .
	//
	// Specify an IP address or a block of IP addresses in Classless Inter-Domain Routing (CIDR) notation. Network Firewall supports all address ranges for IPv4.
	//
	// Examples:
	//
	// - To configure Network Firewall to inspect for the IP address 192.0.2.44, specify `192.0.2.44/32` .
	// - To configure Network Firewall to inspect for IP addresses from 192.0.2.0 to 192.0.2.255, specify `192.0.2.0/24` .
	//
	// For more information about CIDR notation, see the Wikipedia entry [Classless Inter-Domain Routing](https://docs.aws.amazon.com/https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) .
	Source *string `field:"required" json:"source" yaml:"source"`
	// The source port to inspect for.
	//
	// You can specify an individual port, for example `1994` and you can specify a port range, for example `1990:1994` . To match with any port, specify `ANY` .
	SourcePort *string `field:"required" json:"sourcePort" yaml:"sourcePort"`
}

The 5-tuple criteria for AWS Network Firewall to use to inspect packet headers in stateful traffic flow inspection.

Traffic flows that match the criteria are a match for the corresponding stateful rule.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

headerProperty := &headerProperty{
	destination: jsii.String("destination"),
	destinationPort: jsii.String("destinationPort"),
	direction: jsii.String("direction"),
	protocol: jsii.String("protocol"),
	source: jsii.String("source"),
	sourcePort: jsii.String("sourcePort"),
}

type CfnRuleGroup_IPSetProperty

type CfnRuleGroup_IPSetProperty struct {
	// The list of IP addresses and address ranges, in CIDR notation.
	Definition *[]*string `field:"optional" json:"definition" yaml:"definition"`
}

A list of IP addresses and address ranges, in CIDR notation.

This is part of a `RuleGroup.RuleVariables` .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

iPSetProperty := map[string][]*string{
	"definition": []*string{
		jsii.String("definition"),
	},
}

type CfnRuleGroup_MatchAttributesProperty

type CfnRuleGroup_MatchAttributesProperty struct {
	// The destination ports to inspect for.
	//
	// If not specified, this matches with any destination port. This setting is only used for protocols 6 (TCP) and 17 (UDP).
	//
	// You can specify individual ports, for example `1994` and you can specify port ranges, for example `1990:1994` .
	DestinationPorts interface{} `field:"optional" json:"destinationPorts" yaml:"destinationPorts"`
	// The destination IP addresses and address ranges to inspect for, in CIDR notation.
	//
	// If not specified, this matches with any destination address.
	Destinations interface{} `field:"optional" json:"destinations" yaml:"destinations"`
	// The protocols to inspect for, specified using each protocol's assigned internet protocol number (IANA).
	//
	// If not specified, this matches with any protocol.
	Protocols interface{} `field:"optional" json:"protocols" yaml:"protocols"`
	// The source ports to inspect for.
	//
	// If not specified, this matches with any source port. This setting is only used for protocols 6 (TCP) and 17 (UDP).
	//
	// You can specify individual ports, for example `1994` and you can specify port ranges, for example `1990:1994` .
	SourcePorts interface{} `field:"optional" json:"sourcePorts" yaml:"sourcePorts"`
	// The source IP addresses and address ranges to inspect for, in CIDR notation.
	//
	// If not specified, this matches with any source address.
	Sources interface{} `field:"optional" json:"sources" yaml:"sources"`
	// The TCP flags and masks to inspect for.
	//
	// If not specified, this matches with any settings. This setting is only used for protocol 6 (TCP).
	TcpFlags interface{} `field:"optional" json:"tcpFlags" yaml:"tcpFlags"`
}

Criteria for Network Firewall to use to inspect an individual packet in stateless rule inspection.

Each match attributes set can include one or more items such as IP address, CIDR range, port number, protocol, and TCP flags.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

matchAttributesProperty := &matchAttributesProperty{
	destinationPorts: []interface{}{
		&portRangeProperty{
			fromPort: jsii.Number(123),
			toPort: jsii.Number(123),
		},
	},
	destinations: []interface{}{
		&addressProperty{
			addressDefinition: jsii.String("addressDefinition"),
		},
	},
	protocols: []interface{}{
		jsii.Number(123),
	},
	sourcePorts: []interface{}{
		&portRangeProperty{
			fromPort: jsii.Number(123),
			toPort: jsii.Number(123),
		},
	},
	sources: []interface{}{
		&addressProperty{
			addressDefinition: jsii.String("addressDefinition"),
		},
	},
	tcpFlags: []interface{}{
		&tCPFlagFieldProperty{
			flags: []*string{
				jsii.String("flags"),
			},

			// the properties below are optional
			masks: []*string{
				jsii.String("masks"),
			},
		},
	},
}

type CfnRuleGroup_PortRangeProperty

type CfnRuleGroup_PortRangeProperty struct {
	// The lower limit of the port range.
	//
	// This must be less than or equal to the `ToPort` specification.
	FromPort *float64 `field:"required" json:"fromPort" yaml:"fromPort"`
	// The upper limit of the port range.
	//
	// This must be greater than or equal to the `FromPort` specification.
	ToPort *float64 `field:"required" json:"toPort" yaml:"toPort"`
}

A single port range specification.

This is used for source and destination port ranges in the stateless `RuleGroup.MatchAttributes` .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

portRangeProperty := &portRangeProperty{
	fromPort: jsii.Number(123),
	toPort: jsii.Number(123),
}

type CfnRuleGroup_PortSetProperty

type CfnRuleGroup_PortSetProperty struct {
	// The set of port ranges.
	Definition *[]*string `field:"optional" json:"definition" yaml:"definition"`
}

A set of port ranges for use in the rules in a rule group.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

portSetProperty := &portSetProperty{
	definition: []*string{
		jsii.String("definition"),
	},
}

type CfnRuleGroup_PublishMetricActionProperty

type CfnRuleGroup_PublishMetricActionProperty struct {
	// `CfnRuleGroup.PublishMetricActionProperty.Dimensions`.
	Dimensions interface{} `field:"required" json:"dimensions" yaml:"dimensions"`
}

Stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet.

This setting defines a CloudWatch dimension value to be published.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

publishMetricActionProperty := &publishMetricActionProperty{
	dimensions: []interface{}{
		&dimensionProperty{
			value: jsii.String("value"),
		},
	},
}

type CfnRuleGroup_RuleDefinitionProperty

type CfnRuleGroup_RuleDefinitionProperty struct {
	// The actions to take on a packet that matches one of the stateless rule definition's match attributes.
	//
	// You must specify a standard action and you can add custom actions.
	//
	// > Network Firewall only forwards a packet for stateful rule inspection if you specify `aws:forward_to_sfe` for a rule that the packet matches, or if the packet doesn't match any stateless rule and you specify `aws:forward_to_sfe` for the `StatelessDefaultActions` setting for the `FirewallPolicy` .
	//
	// For every rule, you must specify exactly one of the following standard actions.
	//
	// - *aws:pass* - Discontinues all inspection of the packet and permits it to go to its intended destination.
	// - *aws:drop* - Discontinues all inspection of the packet and blocks it from going to its intended destination.
	// - *aws:forward_to_sfe* - Discontinues stateless inspection of the packet and forwards it to the stateful rule engine for inspection.
	//
	// Additionally, you can specify a custom action. To do this, you define a custom action by name and type, then provide the name you've assigned to the action in this `Actions` setting.
	//
	// To provide more than one action in this setting, separate the settings with a comma. For example, if you have a publish metrics custom action that you've named `MyMetricsAction` , then you could specify the standard action `aws:pass` combined with the custom action using `[“aws:pass”, “MyMetricsAction”]` .
	Actions *[]*string `field:"required" json:"actions" yaml:"actions"`
	// Criteria for Network Firewall to use to inspect an individual packet in stateless rule inspection.
	//
	// Each match attributes set can include one or more items such as IP address, CIDR range, port number, protocol, and TCP flags.
	MatchAttributes interface{} `field:"required" json:"matchAttributes" yaml:"matchAttributes"`
}

The inspection criteria and action for a single stateless rule.

AWS Network Firewall inspects each packet for the specified matching criteria. When a packet matches the criteria, Network Firewall performs the rule's actions on the packet.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

ruleDefinitionProperty := &ruleDefinitionProperty{
	actions: []*string{
		jsii.String("actions"),
	},
	matchAttributes: &matchAttributesProperty{
		destinationPorts: []interface{}{
			&portRangeProperty{
				fromPort: jsii.Number(123),
				toPort: jsii.Number(123),
			},
		},
		destinations: []interface{}{
			&addressProperty{
				addressDefinition: jsii.String("addressDefinition"),
			},
		},
		protocols: []interface{}{
			jsii.Number(123),
		},
		sourcePorts: []interface{}{
			&portRangeProperty{
				fromPort: jsii.Number(123),
				toPort: jsii.Number(123),
			},
		},
		sources: []interface{}{
			&addressProperty{
				addressDefinition: jsii.String("addressDefinition"),
			},
		},
		tcpFlags: []interface{}{
			&tCPFlagFieldProperty{
				flags: []*string{
					jsii.String("flags"),
				},

				// the properties below are optional
				masks: []*string{
					jsii.String("masks"),
				},
			},
		},
	},
}

type CfnRuleGroup_RuleGroupProperty

type CfnRuleGroup_RuleGroupProperty struct {
	// The stateful rules or stateless rules for the rule group.
	RulesSource interface{} `field:"required" json:"rulesSource" yaml:"rulesSource"`
	// Settings that are available for use in the rules in the rule group.
	//
	// You can only use these for stateful rule groups.
	RuleVariables interface{} `field:"optional" json:"ruleVariables" yaml:"ruleVariables"`
	// Additional options governing how Network Firewall handles stateful rules.
	//
	// The policies where you use your stateful rule group must have stateful rule options settings that are compatible with these settings.
	StatefulRuleOptions interface{} `field:"optional" json:"statefulRuleOptions" yaml:"statefulRuleOptions"`
}

The object that defines the rules in a rule group.

AWS Network Firewall uses a rule group to inspect and control network traffic. You define stateless rule groups to inspect individual packets and you define stateful rule groups to inspect packets in the context of their traffic flow.

To use a rule group, you include it by reference in an Network Firewall firewall policy, then you use the policy in a firewall. You can reference a rule group from more than one firewall policy, and you can use a firewall policy in more than one firewall.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

ruleGroupProperty := &ruleGroupProperty{
	rulesSource: &rulesSourceProperty{
		rulesSourceList: &rulesSourceListProperty{
			generatedRulesType: jsii.String("generatedRulesType"),
			targets: []*string{
				jsii.String("targets"),
			},
			targetTypes: []*string{
				jsii.String("targetTypes"),
			},
		},
		rulesString: jsii.String("rulesString"),
		statefulRules: []interface{}{
			&statefulRuleProperty{
				action: jsii.String("action"),
				header: &headerProperty{
					destination: jsii.String("destination"),
					destinationPort: jsii.String("destinationPort"),
					direction: jsii.String("direction"),
					protocol: jsii.String("protocol"),
					source: jsii.String("source"),
					sourcePort: jsii.String("sourcePort"),
				},
				ruleOptions: []interface{}{
					&ruleOptionProperty{
						keyword: jsii.String("keyword"),

						// the properties below are optional
						settings: []*string{
							jsii.String("settings"),
						},
					},
				},
			},
		},
		statelessRulesAndCustomActions: &statelessRulesAndCustomActionsProperty{
			statelessRules: []interface{}{
				&statelessRuleProperty{
					priority: jsii.Number(123),
					ruleDefinition: &ruleDefinitionProperty{
						actions: []*string{
							jsii.String("actions"),
						},
						matchAttributes: &matchAttributesProperty{
							destinationPorts: []interface{}{
								&portRangeProperty{
									fromPort: jsii.Number(123),
									toPort: jsii.Number(123),
								},
							},
							destinations: []interface{}{
								&addressProperty{
									addressDefinition: jsii.String("addressDefinition"),
								},
							},
							protocols: []interface{}{
								jsii.Number(123),
							},
							sourcePorts: []interface{}{
								&portRangeProperty{
									fromPort: jsii.Number(123),
									toPort: jsii.Number(123),
								},
							},
							sources: []interface{}{
								&addressProperty{
									addressDefinition: jsii.String("addressDefinition"),
								},
							},
							tcpFlags: []interface{}{
								&tCPFlagFieldProperty{
									flags: []*string{
										jsii.String("flags"),
									},

									// the properties below are optional
									masks: []*string{
										jsii.String("masks"),
									},
								},
							},
						},
					},
				},
			},

			// the properties below are optional
			customActions: []interface{}{
				&customActionProperty{
					actionDefinition: &actionDefinitionProperty{
						publishMetricAction: &publishMetricActionProperty{
							dimensions: []interface{}{
								&dimensionProperty{
									value: jsii.String("value"),
								},
							},
						},
					},
					actionName: jsii.String("actionName"),
				},
			},
		},
	},

	// the properties below are optional
	ruleVariables: &ruleVariablesProperty{
		ipSets: map[string]interface{}{
			"ipSetsKey": map[string][]*string{
				"definition": []*string{
					jsii.String("definition"),
				},
			},
		},
		portSets: map[string]interface{}{
			"portSetsKey": &PortSetProperty{
				"definition": []*string{
					jsii.String("definition"),
				},
			},
		},
	},
	statefulRuleOptions: &statefulRuleOptionsProperty{
		ruleOrder: jsii.String("ruleOrder"),
	},
}

type CfnRuleGroup_RuleOptionProperty

type CfnRuleGroup_RuleOptionProperty struct {
	// `CfnRuleGroup.RuleOptionProperty.Keyword`.
	Keyword *string `field:"required" json:"keyword" yaml:"keyword"`
	// `CfnRuleGroup.RuleOptionProperty.Settings`.
	Settings *[]*string `field:"optional" json:"settings" yaml:"settings"`
}

Additional settings for a stateful rule.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

ruleOptionProperty := &ruleOptionProperty{
	keyword: jsii.String("keyword"),

	// the properties below are optional
	settings: []*string{
		jsii.String("settings"),
	},
}

type CfnRuleGroup_RuleVariablesProperty

type CfnRuleGroup_RuleVariablesProperty struct {
	// A list of IP addresses and address ranges, in CIDR notation.
	IpSets interface{} `field:"optional" json:"ipSets" yaml:"ipSets"`
	// A list of port ranges.
	PortSets interface{} `field:"optional" json:"portSets" yaml:"portSets"`
}

Settings that are available for use in the rules in the `RuleGroup` where this is defined.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

ruleVariablesProperty := &ruleVariablesProperty{
	ipSets: map[string]interface{}{
		"ipSetsKey": map[string][]*string{
			"definition": []*string{
				jsii.String("definition"),
			},
		},
	},
	portSets: map[string]interface{}{
		"portSetsKey": &PortSetProperty{
			"definition": []*string{
				jsii.String("definition"),
			},
		},
	},
}

type CfnRuleGroup_RulesSourceListProperty

type CfnRuleGroup_RulesSourceListProperty struct {
	// Whether you want to allow or deny access to the domains in your target list.
	GeneratedRulesType *string `field:"required" json:"generatedRulesType" yaml:"generatedRulesType"`
	// The domains that you want to inspect for in your traffic flows. Valid domain specifications are the following:.
	//
	// - Explicit names. For example, `abc.example.com` matches only the domain `abc.example.com` .
	// - Names that use a domain wildcard, which you indicate with an initial ' `.` '. For example, `.example.com` matches `example.com` and matches all subdomains of `example.com` , such as `abc.example.com` and `www.example.com` .
	Targets *[]*string `field:"required" json:"targets" yaml:"targets"`
	// The types of targets to inspect for.
	//
	// Valid values are `TLS_SNI` and `HTTP_HOST` .
	TargetTypes *[]*string `field:"required" json:"targetTypes" yaml:"targetTypes"`
}

Stateful inspection criteria for a domain list rule group.

For HTTPS traffic, domain filtering is SNI-based. It uses the server name indicator extension of the TLS handshake.

By default, Network Firewall domain list inspection only includes traffic coming from the VPC where you deploy the firewall. To inspect traffic from IP addresses outside of the deployment VPC, you set the `HOME_NET` rule variable to include the CIDR range of the deployment VPC plus the other CIDR ranges. For more information, see `RuleGroup.RuleVariables` in this guide and [Stateful domain list rule groups in AWS Network Firewall](https://docs.aws.amazon.com/network-firewall/latest/developerguide/stateful-rule-groups-domain-names.html) in the *Network Firewall Developer Guide*

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

rulesSourceListProperty := &rulesSourceListProperty{
	generatedRulesType: jsii.String("generatedRulesType"),
	targets: []*string{
		jsii.String("targets"),
	},
	targetTypes: []*string{
		jsii.String("targetTypes"),
	},
}

type CfnRuleGroup_RulesSourceProperty

type CfnRuleGroup_RulesSourceProperty struct {
	// Stateful inspection criteria for a domain list rule group.
	RulesSourceList interface{} `field:"optional" json:"rulesSourceList" yaml:"rulesSourceList"`
	// Stateful inspection criteria, provided in Suricata compatible intrusion prevention system (IPS) rules.
	//
	// Suricata is an open-source network IPS that includes a standard rule-based language for network traffic inspection.
	//
	// These rules contain the inspection criteria and the action to take for traffic that matches the criteria, so this type of rule group doesn't have a separate action setting.
	RulesString *string `field:"optional" json:"rulesString" yaml:"rulesString"`
	// An array of individual stateful rules inspection criteria to be used together in a stateful rule group.
	//
	// Use this option to specify simple Suricata rules with protocol, source and destination, ports, direction, and rule options. For information about the Suricata `Rules` format, see [Rules Format](https://docs.aws.amazon.com/https://suricata.readthedocs.io/en/suricata-5.0.0/rules/intro.html#) .
	StatefulRules interface{} `field:"optional" json:"statefulRules" yaml:"statefulRules"`
	// Stateless inspection criteria to be used in a stateless rule group.
	StatelessRulesAndCustomActions interface{} `field:"optional" json:"statelessRulesAndCustomActions" yaml:"statelessRulesAndCustomActions"`
}

The stateless or stateful rules definitions for use in a single rule group.

Each rule group requires a single `RulesSource` . You can use an instance of this for either stateless rules or stateful rules.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

rulesSourceProperty := &rulesSourceProperty{
	rulesSourceList: &rulesSourceListProperty{
		generatedRulesType: jsii.String("generatedRulesType"),
		targets: []*string{
			jsii.String("targets"),
		},
		targetTypes: []*string{
			jsii.String("targetTypes"),
		},
	},
	rulesString: jsii.String("rulesString"),
	statefulRules: []interface{}{
		&statefulRuleProperty{
			action: jsii.String("action"),
			header: &headerProperty{
				destination: jsii.String("destination"),
				destinationPort: jsii.String("destinationPort"),
				direction: jsii.String("direction"),
				protocol: jsii.String("protocol"),
				source: jsii.String("source"),
				sourcePort: jsii.String("sourcePort"),
			},
			ruleOptions: []interface{}{
				&ruleOptionProperty{
					keyword: jsii.String("keyword"),

					// the properties below are optional
					settings: []*string{
						jsii.String("settings"),
					},
				},
			},
		},
	},
	statelessRulesAndCustomActions: &statelessRulesAndCustomActionsProperty{
		statelessRules: []interface{}{
			&statelessRuleProperty{
				priority: jsii.Number(123),
				ruleDefinition: &ruleDefinitionProperty{
					actions: []*string{
						jsii.String("actions"),
					},
					matchAttributes: &matchAttributesProperty{
						destinationPorts: []interface{}{
							&portRangeProperty{
								fromPort: jsii.Number(123),
								toPort: jsii.Number(123),
							},
						},
						destinations: []interface{}{
							&addressProperty{
								addressDefinition: jsii.String("addressDefinition"),
							},
						},
						protocols: []interface{}{
							jsii.Number(123),
						},
						sourcePorts: []interface{}{
							&portRangeProperty{
								fromPort: jsii.Number(123),
								toPort: jsii.Number(123),
							},
						},
						sources: []interface{}{
							&addressProperty{
								addressDefinition: jsii.String("addressDefinition"),
							},
						},
						tcpFlags: []interface{}{
							&tCPFlagFieldProperty{
								flags: []*string{
									jsii.String("flags"),
								},

								// the properties below are optional
								masks: []*string{
									jsii.String("masks"),
								},
							},
						},
					},
				},
			},
		},

		// the properties below are optional
		customActions: []interface{}{
			&customActionProperty{
				actionDefinition: &actionDefinitionProperty{
					publishMetricAction: &publishMetricActionProperty{
						dimensions: []interface{}{
							&dimensionProperty{
								value: jsii.String("value"),
							},
						},
					},
				},
				actionName: jsii.String("actionName"),
			},
		},
	},
}

type CfnRuleGroup_StatefulRuleOptionsProperty

type CfnRuleGroup_StatefulRuleOptionsProperty struct {
	// Indicates how to manage the order of the rule evaluation for the rule group.
	//
	// `DEFAULT_ACTION_ORDER` is the default behavior. Stateful rules are provided to the rule engine as Suricata compatible strings, and Suricata evaluates them based on certain settings. For more information, see [Evaluation order for stateful rules](https://docs.aws.amazon.com/network-firewall/latest/developerguide/suricata-rule-evaluation-order.html) in the *AWS Network Firewall Developer Guide* .
	RuleOrder *string `field:"optional" json:"ruleOrder" yaml:"ruleOrder"`
}

Additional options governing how Network Firewall handles the rule group.

You can only use these for stateful rule groups.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

statefulRuleOptionsProperty := &statefulRuleOptionsProperty{
	ruleOrder: jsii.String("ruleOrder"),
}

type CfnRuleGroup_StatefulRuleProperty

type CfnRuleGroup_StatefulRuleProperty struct {
	// Defines what Network Firewall should do with the packets in a traffic flow when the flow matches the stateful rule criteria.
	//
	// For all actions, Network Firewall performs the specified action and discontinues stateful inspection of the traffic flow.
	//
	// The actions for a stateful rule are defined as follows:
	//
	// - *PASS* - Permits the packets to go to the intended destination.
	// - *DROP* - Blocks the packets from going to the intended destination and sends an alert log message, if alert logging is configured in the firewall's `LoggingConfiguration` .
	// - *ALERT* - Permits the packets to go to the intended destination and sends an alert log message, if alert logging is configured in the firewall's `LoggingConfiguration` .
	//
	// You can use this action to test a rule that you intend to use to drop traffic. You can enable the rule with `ALERT` action, verify in the logs that the rule is filtering as you want, then change the action to `DROP` .
	Action *string `field:"required" json:"action" yaml:"action"`
	// The stateful inspection criteria for this rule, used to inspect traffic flows.
	Header interface{} `field:"required" json:"header" yaml:"header"`
	// Additional settings for a stateful rule, provided as keywords and settings.
	RuleOptions interface{} `field:"required" json:"ruleOptions" yaml:"ruleOptions"`
}

A single Suricata rules specification, for use in a stateful rule group.

Use this option to specify a simple Suricata rule with protocol, source and destination, ports, direction, and rule options. For information about the Suricata `Rules` format, see [Rules Format](https://docs.aws.amazon.com/https://suricata.readthedocs.io/en/suricata-5.0.0/rules/intro.html#) .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

statefulRuleProperty := &statefulRuleProperty{
	action: jsii.String("action"),
	header: &headerProperty{
		destination: jsii.String("destination"),
		destinationPort: jsii.String("destinationPort"),
		direction: jsii.String("direction"),
		protocol: jsii.String("protocol"),
		source: jsii.String("source"),
		sourcePort: jsii.String("sourcePort"),
	},
	ruleOptions: []interface{}{
		&ruleOptionProperty{
			keyword: jsii.String("keyword"),

			// the properties below are optional
			settings: []*string{
				jsii.String("settings"),
			},
		},
	},
}

type CfnRuleGroup_StatelessRuleProperty

type CfnRuleGroup_StatelessRuleProperty struct {
	// Indicates the order in which to run this rule relative to all of the rules that are defined for a stateless rule group.
	//
	// Network Firewall evaluates the rules in a rule group starting with the lowest priority setting. You must ensure that the priority settings are unique for the rule group.
	//
	// Each stateless rule group uses exactly one `StatelessRulesAndCustomActions` object, and each `StatelessRulesAndCustomActions` contains exactly one `StatelessRules` object. To ensure unique priority settings for your rule groups, set unique priorities for the stateless rules that you define inside any single `StatelessRules` object.
	//
	// You can change the priority settings of your rules at any time. To make it easier to insert rules later, number them so there's a wide range in between, for example use 100, 200, and so on.
	Priority *float64 `field:"required" json:"priority" yaml:"priority"`
	// Defines the stateless 5-tuple packet inspection criteria and the action to take on a packet that matches the criteria.
	RuleDefinition interface{} `field:"required" json:"ruleDefinition" yaml:"ruleDefinition"`
}

A single stateless rule.

This is used in `RuleGroup.StatelessRulesAndCustomActions` .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

statelessRuleProperty := &statelessRuleProperty{
	priority: jsii.Number(123),
	ruleDefinition: &ruleDefinitionProperty{
		actions: []*string{
			jsii.String("actions"),
		},
		matchAttributes: &matchAttributesProperty{
			destinationPorts: []interface{}{
				&portRangeProperty{
					fromPort: jsii.Number(123),
					toPort: jsii.Number(123),
				},
			},
			destinations: []interface{}{
				&addressProperty{
					addressDefinition: jsii.String("addressDefinition"),
				},
			},
			protocols: []interface{}{
				jsii.Number(123),
			},
			sourcePorts: []interface{}{
				&portRangeProperty{
					fromPort: jsii.Number(123),
					toPort: jsii.Number(123),
				},
			},
			sources: []interface{}{
				&addressProperty{
					addressDefinition: jsii.String("addressDefinition"),
				},
			},
			tcpFlags: []interface{}{
				&tCPFlagFieldProperty{
					flags: []*string{
						jsii.String("flags"),
					},

					// the properties below are optional
					masks: []*string{
						jsii.String("masks"),
					},
				},
			},
		},
	},
}

type CfnRuleGroup_StatelessRulesAndCustomActionsProperty

type CfnRuleGroup_StatelessRulesAndCustomActionsProperty struct {
	// Defines the set of stateless rules for use in a stateless rule group.
	StatelessRules interface{} `field:"required" json:"statelessRules" yaml:"statelessRules"`
	// Defines an array of individual custom action definitions that are available for use by the stateless rules in this `StatelessRulesAndCustomActions` specification.
	//
	// You name each custom action that you define, and then you can use it by name in your stateless rule `RuleGroup.RuleDefinition` `Actions` specification.
	CustomActions interface{} `field:"optional" json:"customActions" yaml:"customActions"`
}

Stateless inspection criteria.

Each stateless rule group uses exactly one of these data types to define its stateless rules.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

statelessRulesAndCustomActionsProperty := &statelessRulesAndCustomActionsProperty{
	statelessRules: []interface{}{
		&statelessRuleProperty{
			priority: jsii.Number(123),
			ruleDefinition: &ruleDefinitionProperty{
				actions: []*string{
					jsii.String("actions"),
				},
				matchAttributes: &matchAttributesProperty{
					destinationPorts: []interface{}{
						&portRangeProperty{
							fromPort: jsii.Number(123),
							toPort: jsii.Number(123),
						},
					},
					destinations: []interface{}{
						&addressProperty{
							addressDefinition: jsii.String("addressDefinition"),
						},
					},
					protocols: []interface{}{
						jsii.Number(123),
					},
					sourcePorts: []interface{}{
						&portRangeProperty{
							fromPort: jsii.Number(123),
							toPort: jsii.Number(123),
						},
					},
					sources: []interface{}{
						&addressProperty{
							addressDefinition: jsii.String("addressDefinition"),
						},
					},
					tcpFlags: []interface{}{
						&tCPFlagFieldProperty{
							flags: []*string{
								jsii.String("flags"),
							},

							// the properties below are optional
							masks: []*string{
								jsii.String("masks"),
							},
						},
					},
				},
			},
		},
	},

	// the properties below are optional
	customActions: []interface{}{
		&customActionProperty{
			actionDefinition: &actionDefinitionProperty{
				publishMetricAction: &publishMetricActionProperty{
					dimensions: []interface{}{
						&dimensionProperty{
							value: jsii.String("value"),
						},
					},
				},
			},
			actionName: jsii.String("actionName"),
		},
	},
}

type CfnRuleGroup_TCPFlagFieldProperty

type CfnRuleGroup_TCPFlagFieldProperty struct {
	// Used in conjunction with the `Masks` setting to define the flags that must be set and flags that must not be set in order for the packet to match.
	//
	// This setting can only specify values that are also specified in the `Masks` setting.
	//
	// For the flags that are specified in the masks setting, the following must be true for the packet to match:
	//
	// - The ones that are set in this flags setting must be set in the packet.
	// - The ones that are not set in this flags setting must also not be set in the packet.
	Flags *[]*string `field:"required" json:"flags" yaml:"flags"`
	// The set of flags to consider in the inspection.
	//
	// To inspect all flags in the valid values list, leave this with no setting.
	Masks *[]*string `field:"optional" json:"masks" yaml:"masks"`
}

TCP flags and masks to inspect packets for. This is used in the `RuleGroup.MatchAttributes` specification.

For example:

`"TCPFlags": [ { "Flags": [ "ECE", "SYN" ], "Masks": [ "SYN", "ECE" ] } ]`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

tCPFlagFieldProperty := &tCPFlagFieldProperty{
	flags: []*string{
		jsii.String("flags"),
	},

	// the properties below are optional
	masks: []*string{
		jsii.String("masks"),
	},
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL