We recommend new projects start with resources from the AWS provider.
published on Monday, Nov 2, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
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)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.
- Firewall
Type Pulumi.Aws Native. Network Security Manager. Rule Firewall Type - 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 Pulumi.Aws Native. Network Security Manager. Rule Type - The type of rule.
-
List<Pulumi.
Aws Native. Inputs. Tag> - The tags associated with the rule.
- Configuration string
- The rule configuration as a JSON string.
- Firewall
Type RuleFirewall Type - 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 RuleType - The type of rule.
-
Tag
Args - 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.
- list(object)
- The tags associated with the rule.
- configuration String
- The rule configuration as a JSON string.
- firewall
Type RuleFirewall Type - 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 RuleType - The type of rule.
- List<Tag>
- The tags associated with the rule.
- configuration string
- The rule configuration as a JSON string.
- firewall
Type RuleFirewall Type - 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 RuleType - The type of rule.
- Tag[]
- The tags associated with the rule.
- configuration str
- The rule configuration as a JSON string.
- firewall_
type RuleFirewall Type - 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.
-
Sequence[Tag
Args] - 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.
- 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.
- Rule
Arn string - The Amazon Resource Name (ARN) of the rule.
- Rule
Id string - The unique identifier of the rule.
- Status
Pulumi.
Aws Native. Network Security Manager. Rule Status - 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.
- Rule
Arn string - The Amazon Resource Name (ARN) of the rule.
- Rule
Id string - The unique identifier of the rule.
- Status
Rule
Status - 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.
- 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.
- rule
Arn String - The Amazon Resource Name (ARN) of the rule.
- rule
Id String - The unique identifier of the rule.
- status
Rule
Status - 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.
- rule
Arn string - The Amazon Resource Name (ARN) of the rule.
- rule
Id string - The unique identifier of the rule.
- status
Rule
Status - 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 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
Rule
Status - 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.
- 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.
Supporting Types
RuleFirewallType, RuleFirewallTypeArgs
- Waf
WAF
- Rule
Firewall Type Waf WAF
- "WAF"
WAF
- Waf
WAF
- Waf
WAF
- WAF
WAF
- "WAF"
WAF
RuleStatus, RuleStatusArgs
- Draft
DRAFT- Active
ACTIVE- Disabled
DISABLED
- Rule
Status Draft DRAFT- Rule
Status Active ACTIVE- Rule
Status 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
- "DRAFT"
DRAFT- "ACTIVE"
ACTIVE- "DISABLED"
DISABLED
RuleType, RuleTypeArgs
- Configuration
CONFIGURATION- Inspection
INSPECTION
- Rule
Type Configuration CONFIGURATION- Rule
Type Inspection 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.Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Monday, Nov 2, 2026 by Pulumi