CfnRuleProps

class aws_cdk.aws_networksecuritymanager.CfnRuleProps(*, rule_name, configuration=None, firewall_type=None, rule_description=None, rule_type=None, tags=None)

Bases: object

Properties for defining a CfnRule.

Parameters:
  • rule_name (str) – The name of the rule.

  • configuration (Optional[str]) – The rule configuration as a JSON string.

  • firewall_type (Optional[str]) – The type of firewall for this rule.

  • rule_description (Optional[str]) – A description of the rule.

  • rule_type (Optional[str]) – The type of rule.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – The tags associated with the rule.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networksecuritymanager-rule.html

ExampleMetadata:

fixture=_generated

Example:

from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_networksecuritymanager as networksecuritymanager

cfn_rule_props = networksecuritymanager.CfnRuleProps(
    rule_name="ruleName",

    # the properties below are optional
    configuration="configuration",
    firewall_type="firewallType",
    rule_description="ruleDescription",
    rule_type="ruleType",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

configuration

The rule configuration as a JSON string.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networksecuritymanager-rule.html#cfn-networksecuritymanager-rule-configuration

firewall_type

The type of firewall for this rule.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networksecuritymanager-rule.html#cfn-networksecuritymanager-rule-firewalltype

rule_description

A description of the rule.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networksecuritymanager-rule.html#cfn-networksecuritymanager-rule-ruledescription

rule_name

The name of the rule.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networksecuritymanager-rule.html#cfn-networksecuritymanager-rule-rulename

rule_type

The type of rule.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networksecuritymanager-rule.html#cfn-networksecuritymanager-rule-ruletype

tags

The tags associated with the rule.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networksecuritymanager-rule.html#cfn-networksecuritymanager-rule-tags