Class CfnRuleGroup.StatelessRulesAndCustomActionsProperty
Stateless inspection criteria.
Inherited Members
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.
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 |
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.
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
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.
StatelessRules
Defines the set of stateless rules for use in a stateless rule group.
public object StatelessRules { get; set; }