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
published on Monday, Nov 2, 2026 by Pulumi
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
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 dictionarydata "aws-native_networksecuritymanager_get_rule" "name" {
# arguments
}The following arguments are supported:
- Rule
Arn string - The Amazon Resource Name (ARN) of the rule.
- Rule
Arn string - The Amazon Resource Name (ARN) of the rule.
- rule_
arn string - The Amazon Resource Name (ARN) of the rule.
- rule
Arn String - The Amazon Resource Name (ARN) of the rule.
- rule
Arn string - The Amazon Resource Name (ARN) of the rule.
- rule_
arn str - The Amazon Resource Name (ARN) of the rule.
- rule
Arn 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.
- 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
Pulumi.
Aws Native. Network Security Manager. Rule Status - The status of the rule.
-
List<Pulumi.
Aws Native. Outputs. Tag> - 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.
- 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
Rule
Status - The status of the rule.
- Tag
- 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.
- 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.
- 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.
- 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
Rule
Status - The status of the rule.
- List<Tag>
- 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.
- 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
Rule
Status - The status of the rule.
- Tag[]
- 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 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
Rule
Status - The status of the rule.
- 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.
- 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.
- List<Property Map>
- 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.
Supporting Types
RuleStatus
Tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
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
published on Monday, Nov 2, 2026 by Pulumi