1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. networksecuritymanager
  6. Rule

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.85.0
published on Monday, Nov 2, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.85.0
published on Monday, Nov 2, 2026 by Pulumi

    Resource Type definition for AWS::NetworkSecurityManager::Rule. Creates and manages a Network Security Manager rule.

    Create Rule Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Rule(name: string, args?: RuleArgs, opts?: CustomResourceOptions);
    @overload
    def Rule(resource_name: str,
             args: Optional[RuleArgs] = None,
             opts: Optional[ResourceOptions] = None)
    
    @overload
    def Rule(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             configuration: Optional[str] = None,
             firewall_type: Optional[RuleFirewallType] = None,
             rule_description: Optional[str] = None,
             rule_name: Optional[str] = None,
             rule_type: Optional[RuleType] = None,
             tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
    func NewRule(ctx *Context, name string, args *RuleArgs, opts ...ResourceOption) (*Rule, error)
    public Rule(string name, RuleArgs? args = null, CustomResourceOptions? opts = null)
    public Rule(String name, RuleArgs args)
    public Rule(String name, RuleArgs args, CustomResourceOptions options)
    
    type: aws-native:networksecuritymanager:Rule
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws-native_networksecuritymanager_rule" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args RuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args RuleArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args RuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RuleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Rule Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Rule resource accepts the following input properties:

    Configuration string
    The rule configuration as a JSON string.
    FirewallType Pulumi.AwsNative.NetworkSecurityManager.RuleFirewallType
    The type of firewall for this rule.
    RuleDescription string
    A description of the rule.
    RuleName string
    The name of the rule.
    RuleType Pulumi.AwsNative.NetworkSecurityManager.RuleType
    The type of rule.
    Tags List<Pulumi.AwsNative.Inputs.Tag>
    The tags associated with the rule.
    Configuration string
    The rule configuration as a JSON string.
    FirewallType RuleFirewallType
    The type of firewall for this rule.
    RuleDescription string
    A description of the rule.
    RuleName string
    The name of the rule.
    RuleType RuleType
    The type of rule.
    Tags TagArgs
    The tags associated with the rule.
    configuration string
    The rule configuration as a JSON string.
    firewall_type "WAF"
    The type of firewall for this rule.
    rule_description string
    A description of the rule.
    rule_name string
    The name of the rule.
    rule_type "CONFIGURATION" | "INSPECTION"
    The type of rule.
    tags list(object)
    The tags associated with the rule.
    configuration String
    The rule configuration as a JSON string.
    firewallType RuleFirewallType
    The type of firewall for this rule.
    ruleDescription String
    A description of the rule.
    ruleName String
    The name of the rule.
    ruleType RuleType
    The type of rule.
    tags List<Tag>
    The tags associated with the rule.
    configuration string
    The rule configuration as a JSON string.
    firewallType RuleFirewallType
    The type of firewall for this rule.
    ruleDescription string
    A description of the rule.
    ruleName string
    The name of the rule.
    ruleType RuleType
    The type of rule.
    tags Tag[]
    The tags associated with the rule.
    configuration str
    The rule configuration as a JSON string.
    firewall_type RuleFirewallType
    The type of firewall for this rule.
    rule_description str
    A description of the rule.
    rule_name str
    The name of the rule.
    rule_type RuleType
    The type of rule.
    tags Sequence[TagArgs]
    The tags associated with the rule.
    configuration String
    The rule configuration as a JSON string.
    firewallType "WAF"
    The type of firewall for this rule.
    ruleDescription String
    A description of the rule.
    ruleName String
    The name of the rule.
    ruleType "CONFIGURATION" | "INSPECTION"
    The type of rule.
    tags List<Property Map>
    The tags associated with the rule.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Rule resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    RuleArn string
    The Amazon Resource Name (ARN) of the rule.
    RuleId string
    The unique identifier of the rule.
    Status Pulumi.AwsNative.NetworkSecurityManager.RuleStatus
    The status of the rule.
    UpdatedAt string
    An ISO 8601 timestamp indicating when the rule was last modified.
    Version string
    The version number of the rule.
    Id string
    The provider-assigned unique ID for this managed resource.
    RuleArn string
    The Amazon Resource Name (ARN) of the rule.
    RuleId string
    The unique identifier of the rule.
    Status RuleStatus
    The status of the rule.
    UpdatedAt string
    An ISO 8601 timestamp indicating when the rule was last modified.
    Version string
    The version number of the rule.
    id string
    The provider-assigned unique ID for this managed resource.
    rule_arn string
    The Amazon Resource Name (ARN) of the rule.
    rule_id string
    The unique identifier of the rule.
    status "DRAFT" | "ACTIVE" | "DISABLED"
    The status of the rule.
    updated_at string
    An ISO 8601 timestamp indicating when the rule was last modified.
    version string
    The version number of the rule.
    id String
    The provider-assigned unique ID for this managed resource.
    ruleArn String
    The Amazon Resource Name (ARN) of the rule.
    ruleId String
    The unique identifier of the rule.
    status RuleStatus
    The status of the rule.
    updatedAt String
    An ISO 8601 timestamp indicating when the rule was last modified.
    version String
    The version number of the rule.
    id string
    The provider-assigned unique ID for this managed resource.
    ruleArn string
    The Amazon Resource Name (ARN) of the rule.
    ruleId string
    The unique identifier of the rule.
    status RuleStatus
    The status of the rule.
    updatedAt string
    An ISO 8601 timestamp indicating when the rule was last modified.
    version string
    The version number of the rule.
    id str
    The provider-assigned unique ID for this managed resource.
    rule_arn str
    The Amazon Resource Name (ARN) of the rule.
    rule_id str
    The unique identifier of the rule.
    status RuleStatus
    The status of the rule.
    updated_at str
    An ISO 8601 timestamp indicating when the rule was last modified.
    version str
    The version number of the rule.
    id String
    The provider-assigned unique ID for this managed resource.
    ruleArn String
    The Amazon Resource Name (ARN) of the rule.
    ruleId String
    The unique identifier of the rule.
    status "DRAFT" | "ACTIVE" | "DISABLED"
    The status of the rule.
    updatedAt String
    An ISO 8601 timestamp indicating when the rule was last modified.
    version String
    The version number of the rule.

    Supporting Types

    RuleFirewallType, RuleFirewallTypeArgs

    Waf
    WAF
    RuleFirewallTypeWaf
    WAF
    "WAF"
    WAF
    Waf
    WAF
    Waf
    WAF
    WAF
    WAF
    "WAF"
    WAF

    RuleStatus, RuleStatusArgs

    Draft
    DRAFT
    Active
    ACTIVE
    Disabled
    DISABLED
    RuleStatusDraft
    DRAFT
    RuleStatusActive
    ACTIVE
    RuleStatusDisabled
    DISABLED
    "DRAFT"
    DRAFT
    "ACTIVE"
    ACTIVE
    "DISABLED"
    DISABLED
    Draft
    DRAFT
    Active
    ACTIVE
    Disabled
    DISABLED
    Draft
    DRAFT
    Active
    ACTIVE
    Disabled
    DISABLED
    DRAFT
    DRAFT
    ACTIVE
    ACTIVE
    DISABLED
    DISABLED
    "DRAFT"
    DRAFT
    "ACTIVE"
    ACTIVE
    "DISABLED"
    DISABLED

    RuleType, RuleTypeArgs

    Configuration
    CONFIGURATION
    Inspection
    INSPECTION
    RuleTypeConfiguration
    CONFIGURATION
    RuleTypeInspection
    INSPECTION
    "CONFIGURATION"
    CONFIGURATION
    "INSPECTION"
    INSPECTION
    Configuration
    CONFIGURATION
    Inspection
    INSPECTION
    Configuration
    CONFIGURATION
    Inspection
    INSPECTION
    CONFIGURATION
    CONFIGURATION
    INSPECTION
    INSPECTION
    "CONFIGURATION"
    CONFIGURATION
    "INSPECTION"
    INSPECTION

    Tag, TagArgs

    A set of tags to apply to the resource.
    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo AWS Cloud Control

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.85.0
    published on Monday, Nov 2, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial