Skip to content
v2.274.0

CfnRuleProps Struct ​

Properties for defining a CfnRule.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_networksecuritymanager as networksecuritymanager } from 'aws-cdk-lib';
const cfnRuleProps: networksecuritymanager.CfnRuleProps = {
  ruleName: 'ruleName',

  // the properties below are optional
  configuration: 'configuration',
  firewallType: 'firewallType',
  ruleDescription: 'ruleDescription',
  ruleType: 'ruleType',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties ​

configurationstringconfigurationstrconfigurationStringConfigurationstringConfiguration*string#
The rule configuration as a JSON string.
firewallTypestringfirewall_typestrfirewallTypeStringFirewallTypestringFirewallType*string#
The type of firewall for this rule.
ruleDescriptionstringrule_descriptionstrruleDescriptionStringRuleDescriptionstringRuleDescription*string#
A description of the rule.
ruleNamestringrule_namestrruleNameStringRuleNamestringRuleName*stringrequired#
The name of the rule.
ruleTypestringrule_typestrruleTypeStringRuleTypestringRuleType*string#
The type of rule.
tagsCfnTag[]tagstyping.List[CfnTag]tagsList<CfnTag>TagsCfnTag[]Tags*[]CfnTag#
The tags associated with the rule.