Show / Hide Table of Contents

Class CfnRuleGroup.StatelessRulesAndCustomActionsProperty

Stateless inspection criteria.

Inheritance
object
CfnRuleGroup.StatelessRulesAndCustomActionsProperty
Implements
CfnRuleGroup.IStatelessRulesAndCustomActionsProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.NetworkFirewall
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnRuleGroup.StatelessRulesAndCustomActionsProperty : CfnRuleGroup.IStatelessRulesAndCustomActionsProperty
Syntax (vb)
Public Class CfnRuleGroup.StatelessRulesAndCustomActionsProperty Implements CfnRuleGroup.IStatelessRulesAndCustomActionsProperty
Remarks

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

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-statelessrulesandcustomactions.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.NetworkFirewall;

             var statelessRulesAndCustomActionsProperty = new StatelessRulesAndCustomActionsProperty {
                 StatelessRules = new [] { new StatelessRuleProperty {
                     Priority = 123,
                     RuleDefinition = new RuleDefinitionProperty {
                         Actions = new [] { "actions" },
                         MatchAttributes = new MatchAttributesProperty {
                             DestinationPorts = new [] { new PortRangeProperty {
                                 FromPort = 123,
                                 ToPort = 123
                             } },
                             Destinations = new [] { new AddressProperty {
                                 AddressDefinition = "addressDefinition"
                             } },
                             Protocols = new [] { 123 },
                             SourcePorts = new [] { new PortRangeProperty {
                                 FromPort = 123,
                                 ToPort = 123
                             } },
                             Sources = new [] { new AddressProperty {
                                 AddressDefinition = "addressDefinition"
                             } },
                             TcpFlags = new [] { new TCPFlagFieldProperty {
                                 Flags = new [] { "flags" },

                                 // the properties below are optional
                                 Masks = new [] { "masks" }
                             } }
                         }
                     }
                 } },

                 // the properties below are optional
                 CustomActions = new [] { new CustomActionProperty {
                     ActionDefinition = new ActionDefinitionProperty {
                         PublishMetricAction = new PublishMetricActionProperty {
                             Dimensions = new [] { new DimensionProperty {
                                 Value = "value"
                             } }
                         }
                     },
                     ActionName = "actionName"
                 } }
             };

Synopsis

Constructors

StatelessRulesAndCustomActionsProperty()

Stateless inspection criteria.

Properties

CustomActions

Defines an array of individual custom action definitions that are available for use by the stateless rules in this StatelessRulesAndCustomActions specification.

StatelessRules

Defines the set of stateless rules for use in a stateless rule group.

Constructors

StatelessRulesAndCustomActionsProperty()

Stateless inspection criteria.

public StatelessRulesAndCustomActionsProperty()
Remarks

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

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-statelessrulesandcustomactions.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.NetworkFirewall;

             var statelessRulesAndCustomActionsProperty = new StatelessRulesAndCustomActionsProperty {
                 StatelessRules = new [] { new StatelessRuleProperty {
                     Priority = 123,
                     RuleDefinition = new RuleDefinitionProperty {
                         Actions = new [] { "actions" },
                         MatchAttributes = new MatchAttributesProperty {
                             DestinationPorts = new [] { new PortRangeProperty {
                                 FromPort = 123,
                                 ToPort = 123
                             } },
                             Destinations = new [] { new AddressProperty {
                                 AddressDefinition = "addressDefinition"
                             } },
                             Protocols = new [] { 123 },
                             SourcePorts = new [] { new PortRangeProperty {
                                 FromPort = 123,
                                 ToPort = 123
                             } },
                             Sources = new [] { new AddressProperty {
                                 AddressDefinition = "addressDefinition"
                             } },
                             TcpFlags = new [] { new TCPFlagFieldProperty {
                                 Flags = new [] { "flags" },

                                 // the properties below are optional
                                 Masks = new [] { "masks" }
                             } }
                         }
                     }
                 } },

                 // the properties below are optional
                 CustomActions = new [] { new CustomActionProperty {
                     ActionDefinition = new ActionDefinitionProperty {
                         PublishMetricAction = new PublishMetricActionProperty {
                             Dimensions = new [] { new DimensionProperty {
                                 Value = "value"
                             } }
                         }
                     },
                     ActionName = "actionName"
                 } }
             };

Properties

CustomActions

Defines an array of individual custom action definitions that are available for use by the stateless rules in this StatelessRulesAndCustomActions specification.

public object? CustomActions { get; set; }
Property Value

object

Remarks

You name each custom action that you define, and then you can use it by name in your stateless rule RuleGroup.RuleDefinition Actions specification.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-statelessrulesandcustomactions.html#cfn-networkfirewall-rulegroup-statelessrulesandcustomactions-customactions

StatelessRules

Defines the set of stateless rules for use in a stateless rule group.

public object StatelessRules { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-rulegroup-statelessrulesandcustomactions.html#cfn-networkfirewall-rulegroup-statelessrulesandcustomactions-statelessrules

Implements

CfnRuleGroup.IStatelessRulesAndCustomActionsProperty
Back to top Generated by DocFX