Interface CfnRuleGroup.IStatelessRulesAndCustomActionsProperty
Stateless inspection criteria.
Namespace: Amazon.CDK.AWS.NetworkFirewall
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IStatelessRulesAndCustomActionsProperty
Syntax (vb)
Public Interface 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
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. |
Properties
CustomActions
Defines an array of individual custom action definitions that are available for use by the stateless rules in this StatelessRulesAndCustomActions
specification.
virtual object CustomActions { get; }
Property Value
System.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.
StatelessRules
Defines the set of stateless rules for use in a stateless rule group.
object StatelessRules { get; }
Property Value
System.Object