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

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.

    Using getRule

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getRule(args: GetRuleArgs, opts?: InvokeOptions): Promise<GetRuleResult>
    function getRuleOutput(args: GetRuleOutputArgs, opts?: InvokeOutputOptions): Output<GetRuleResult>
    def get_rule(rule_arn: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetRuleResult
    def get_rule_output(rule_arn: pulumi.Input[Optional[str]] = None,
                 opts: Optional[InvokeOutputOptions] = None) -> Output[GetRuleResult]
    func LookupRule(ctx *Context, args *LookupRuleArgs, opts ...InvokeOption) (*LookupRuleResult, error)
    func LookupRuleOutput(ctx *Context, args *LookupRuleOutputArgs, opts ...InvokeOption) LookupRuleResultOutput

    > Note: This function is named LookupRule in the Go SDK.

    public static class GetRule 
    {
        public static Task<GetRuleResult> InvokeAsync(GetRuleArgs args, InvokeOptions? opts = null)
        public static Output<GetRuleResult> Invoke(GetRuleInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetRuleResult> Invoke(GetRuleInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetRuleResult> getRule(GetRuleArgs args, InvokeOptions options)
    public static Output<GetRuleResult> getRule(GetRuleArgs args, InvokeOptions options)
    public static Output<GetRuleResult> getRule(GetRuleArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws-native:networksecuritymanager:getRule
      arguments:
        # arguments dictionary
    data "aws-native_networksecuritymanager_get_rule" "name" {
        # arguments
    }

    The following arguments are supported:

    RuleArn string
    The Amazon Resource Name (ARN) of the rule.
    RuleArn string
    The Amazon Resource Name (ARN) of the rule.
    rule_arn string
    The Amazon Resource Name (ARN) of the rule.
    ruleArn String
    The Amazon Resource Name (ARN) of the rule.
    ruleArn string
    The Amazon Resource Name (ARN) of the rule.
    rule_arn str
    The Amazon Resource Name (ARN) of the rule.
    ruleArn String
    The Amazon Resource Name (ARN) of the rule.

    getRule Result

    The following output properties are available:

    Configuration string
    The rule configuration as a JSON string.
    RuleArn string
    The Amazon Resource Name (ARN) of the rule.
    RuleDescription string
    A description of the rule.
    RuleId string
    The unique identifier of the rule.
    Status Pulumi.AwsNative.NetworkSecurityManager.RuleStatus
    The status of the rule.
    Tags List<Pulumi.AwsNative.Outputs.Tag>
    The tags associated with the rule.
    UpdatedAt string
    An ISO 8601 timestamp indicating when the rule was last modified.
    Version string
    The version number of the rule.
    Configuration string
    The rule configuration as a JSON string.
    RuleArn string
    The Amazon Resource Name (ARN) of the rule.
    RuleDescription string
    A description of the rule.
    RuleId string
    The unique identifier of the rule.
    Status RuleStatus
    The status of the rule.
    Tags Tag
    The tags associated with the rule.
    UpdatedAt string
    An ISO 8601 timestamp indicating when the rule was last modified.
    Version string
    The version number of the rule.
    configuration string
    The rule configuration as a JSON string.
    rule_arn string
    The Amazon Resource Name (ARN) of the rule.
    rule_description string
    A description of the rule.
    rule_id string
    The unique identifier of the rule.
    status "DRAFT" | "ACTIVE" | "DISABLED"
    The status of the rule.
    tags list(object)
    The tags associated with the rule.
    updated_at string
    An ISO 8601 timestamp indicating when the rule was last modified.
    version string
    The version number of the rule.
    configuration String
    The rule configuration as a JSON string.
    ruleArn String
    The Amazon Resource Name (ARN) of the rule.
    ruleDescription String
    A description of the rule.
    ruleId String
    The unique identifier of the rule.
    status RuleStatus
    The status of the rule.
    tags List<Tag>
    The tags associated with the rule.
    updatedAt String
    An ISO 8601 timestamp indicating when the rule was last modified.
    version String
    The version number of the rule.
    configuration string
    The rule configuration as a JSON string.
    ruleArn string
    The Amazon Resource Name (ARN) of the rule.
    ruleDescription string
    A description of the rule.
    ruleId string
    The unique identifier of the rule.
    status RuleStatus
    The status of the rule.
    tags Tag[]
    The tags associated with the rule.
    updatedAt string
    An ISO 8601 timestamp indicating when the rule was last modified.
    version string
    The version number of the rule.
    configuration str
    The rule configuration as a JSON string.
    rule_arn str
    The Amazon Resource Name (ARN) of the rule.
    rule_description str
    A description of the rule.
    rule_id str
    The unique identifier of the rule.
    status RuleStatus
    The status of the rule.
    tags Sequence[root_Tag]
    The tags associated with the rule.
    updated_at str
    An ISO 8601 timestamp indicating when the rule was last modified.
    version str
    The version number of the rule.
    configuration String
    The rule configuration as a JSON string.
    ruleArn String
    The Amazon Resource Name (ARN) of the rule.
    ruleDescription String
    A description of the rule.
    ruleId String
    The unique identifier of the rule.
    status "DRAFT" | "ACTIVE" | "DISABLED"
    The status of the rule.
    tags List<Property Map>
    The tags associated with 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

    RuleStatus

    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 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