Skip to content
v2.275.0

CfnPolicyProps Struct ​

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 ​

associatedTemplateAndRuleListoptionalIResolvable | IResolvable | CfnPolicy.AssociatedTemplateAndRuleProperty[]associated_template_and_rule_listoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AssociatedTemplateAndRuleProperty]]]associatedTemplateAndRuleListoptionalIResolvableAssociatedTemplateAndRuleListoptionalIResolvableAssociatedTemplateAndRuleListoptionalinterface{}#
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.
policyDescriptionoptionalstringpolicy_descriptionoptionalstrpolicyDescriptionoptionalStringPolicyDescriptionoptionalstringPolicyDescriptionoptional*string#
A description of the policy.
policyNamestringpolicy_namestrpolicyNameStringPolicyNamestringPolicyName*stringrequired#
The name of the policy.
prioritynumberpriorityint | floatpriorityNumberPrioritydoublePriority*float64required#
The priority of the policy.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#
The tags associated with the policy.