Skip to content
v2.275.0

NetworkTrafficRuleProperty Struct ​

Network traffic rule.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_securityagent as securityagent } from 'aws-cdk-lib';
const networkTrafficRuleProperty: securityagent.CfnPentest.NetworkTrafficRuleProperty = {
  effect: 'effect',
  networkTrafficRuleType: 'networkTrafficRuleType',
  pattern: 'pattern',
};

Properties ​

effectoptionalstringeffectoptionalstreffectoptionalStringEffectoptionalstringEffectoptional*string#
Whether to allow or deny traffic matching this rule.
networkTrafficRuleTypeoptionalstringnetwork_traffic_rule_typeoptionalstrnetworkTrafficRuleTypeoptionalStringNetworkTrafficRuleTypeoptionalstringNetworkTrafficRuleTypeoptional*string#
Type of pattern matching for this rule.
patternoptionalstringpatternoptionalstrpatternoptionalStringPatternoptionalstringPatternoptional*string#
URL pattern this rule applies to.