Skip to content
v2.274.0

CfnPolicyProps Struct Added in v2.274.0 ​

Properties for defining a CfnPolicy.

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 cfnPolicyProps: networksecuritymanager.CfnPolicyProps = {
  firewallType: 'firewallType',
  policyConfiguration: {
    remediationEnabled: false,
    resourcesCleanUp: false,
    wafConfig: {
      conflictResolution: 'conflictResolution',
      existingCustomerWebAclResolution: 'existingCustomerWebAclResolution',
    },
  },
  policyName: 'policyName',
  priority: 123,

  // the properties below are optional
  associatedTemplateAndRuleList: [{
    ruleArn: 'ruleArn',
    templateArn: 'templateArn',
  }],
  policyDescription: 'policyDescription',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties ​

associatedTemplateAndRuleListIResolvable | IResolvable | CfnPolicy.AssociatedTemplateAndRuleProperty[]associated_template_and_rule_listtyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AssociatedTemplateAndRuleProperty]]]associatedTemplateAndRuleListIResolvableAssociatedTemplateAndRuleListIResolvableAssociatedTemplateAndRuleListinterface{}#
List of templates and rules associated with this policy.
firewallTypestringfirewall_typestrfirewallTypeStringFirewallTypestringFirewallType*stringrequired#
The type of firewall.
policyConfigurationIResolvable | CfnPolicy.PolicyConfigurationPropertypolicy_configurationtyping.Union[IResolvable, PolicyConfigurationProperty]policyConfigurationIResolvablePolicyConfigurationIResolvablePolicyConfigurationinterface{}required#
Configuration settings for policy behavior.
policyDescriptionstringpolicy_descriptionstrpolicyDescriptionStringPolicyDescriptionstringPolicyDescription*string#
A description of the policy.
policyNamestringpolicy_namestrpolicyNameStringPolicyNamestringPolicyName*stringrequired#
The name of the policy.
prioritynumberpriorityint | floatpriorityNumberPrioritydoublePriority*float64required#
The priority of the policy.
tagsCfnTag[]tagstyping.List[CfnTag]tagsList<CfnTag>TagsCfnTag[]Tags*[]CfnTag#
The tags associated with the policy.