Skip to content
v2.275.0

StatelessRulesAndCustomActionsProperty Struct ​

Stateless inspection criteria.

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

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_networkfirewall as networkfirewall } from 'aws-cdk-lib';
const statelessRulesAndCustomActionsProperty: networkfirewall.CfnRuleGroup.StatelessRulesAndCustomActionsProperty = {
  statelessRules: [{
    priority: 123,
    ruleDefinition: {
      actions: ['actions'],
      matchAttributes: {
        destinationPorts: [{
          fromPort: 123,
          toPort: 123,
        }],
        destinations: [{
          addressDefinition: 'addressDefinition',
        }],
        protocols: [123],
        sourcePorts: [{
          fromPort: 123,
          toPort: 123,
        }],
        sources: [{
          addressDefinition: 'addressDefinition',
        }],
        tcpFlags: [{
          flags: ['flags'],

          // the properties below are optional
          masks: ['masks'],
        }],
      },
    },
  }],

  // the properties below are optional
  customActions: [{
    actionDefinition: {
      publishMetricAction: {
        dimensions: [{
          value: 'value',
        }],
      },
    },
    actionName: 'actionName',
  }],
};

Properties ​

customActionsoptionalIResolvable | IResolvable | CfnRuleGroup.CustomActionProperty[]custom_actionsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, CustomActionProperty]]]customActionsoptionalIResolvableCustomActionsoptionalIResolvableCustomActionsoptionalinterface{}#
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 definition Actions specification.

statelessRulesIResolvable | IResolvable | CfnRuleGroup.StatelessRuleProperty[]stateless_rulestyping.Union[IResolvable, typing.List[typing.Union[IResolvable, StatelessRuleProperty]]]statelessRulesIResolvableStatelessRulesIResolvableStatelessRulesinterface{}required#
Defines the set of stateless rules for use in a stateless rule group.