1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. accessanalyzer
  6. getArchiveRule

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

Viewing docs for AWS Cloud Control v1.79.0
published on Monday, Sep 14, 2026 by Pulumi
aws-native logo aws-native logo

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

Viewing docs for AWS Cloud Control v1.79.0
published on Monday, Sep 14, 2026 by Pulumi

    Creates an archive rule for the specified analyzer. Archive rules automatically archive new findings that meet the criteria you define when you create the rule.

    Using getArchiveRule

    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 getArchiveRule(args: GetArchiveRuleArgs, opts?: InvokeOptions): Promise<GetArchiveRuleResult>
    function getArchiveRuleOutput(args: GetArchiveRuleOutputArgs, opts?: InvokeOutputOptions): Output<GetArchiveRuleResult>
    def get_archive_rule(arn: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetArchiveRuleResult
    def get_archive_rule_output(arn: pulumi.Input[Optional[str]] = None,
                         opts: Optional[InvokeOutputOptions] = None) -> Output[GetArchiveRuleResult]
    func LookupArchiveRule(ctx *Context, args *LookupArchiveRuleArgs, opts ...InvokeOption) (*LookupArchiveRuleResult, error)
    func LookupArchiveRuleOutput(ctx *Context, args *LookupArchiveRuleOutputArgs, opts ...InvokeOption) LookupArchiveRuleResultOutput

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

    public static class GetArchiveRule 
    {
        public static Task<GetArchiveRuleResult> InvokeAsync(GetArchiveRuleArgs args, InvokeOptions? opts = null)
        public static Output<GetArchiveRuleResult> Invoke(GetArchiveRuleInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetArchiveRuleResult> Invoke(GetArchiveRuleInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetArchiveRuleResult> getArchiveRule(GetArchiveRuleArgs args, InvokeOptions options)
    public static Output<GetArchiveRuleResult> getArchiveRule(GetArchiveRuleArgs args, InvokeOptions options)
    public static Output<GetArchiveRuleResult> getArchiveRule(GetArchiveRuleArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws-native:accessanalyzer:getArchiveRule
      arguments:
        # arguments dictionary
    data "aws-native_accessanalyzer_get_archive_rule" "name" {
        # arguments
    }

    The following arguments are supported:

    Arn string
    The ARN of the archive rule.
    Arn string
    The ARN of the archive rule.
    arn string
    The ARN of the archive rule.
    arn String
    The ARN of the archive rule.
    arn string
    The ARN of the archive rule.
    arn str
    The ARN of the archive rule.
    arn String
    The ARN of the archive rule.

    getArchiveRule Result

    The following output properties are available:

    Arn string
    The ARN of the archive rule.
    CreatedAt string
    The time at which the archive rule was created.
    Filter Dictionary<string, Pulumi.AwsNative.AccessAnalyzer.Outputs.FilterValueProperties>
    The criteria for the archive rule. A map of filter criteria property names to their criterion values.
    UpdatedAt string
    The time at which the archive rule was last updated.
    Arn string
    The ARN of the archive rule.
    CreatedAt string
    The time at which the archive rule was created.
    Filter map[string]FilterValueProperties
    The criteria for the archive rule. A map of filter criteria property names to their criterion values.
    UpdatedAt string
    The time at which the archive rule was last updated.
    arn string
    The ARN of the archive rule.
    created_at string
    The time at which the archive rule was created.
    filter map(object)
    The criteria for the archive rule. A map of filter criteria property names to their criterion values.
    updated_at string
    The time at which the archive rule was last updated.
    arn String
    The ARN of the archive rule.
    createdAt String
    The time at which the archive rule was created.
    filter Map<String,FilterValueProperties>
    The criteria for the archive rule. A map of filter criteria property names to their criterion values.
    updatedAt String
    The time at which the archive rule was last updated.
    arn string
    The ARN of the archive rule.
    createdAt string
    The time at which the archive rule was created.
    filter {[key: string]: FilterValueProperties}
    The criteria for the archive rule. A map of filter criteria property names to their criterion values.
    updatedAt string
    The time at which the archive rule was last updated.
    arn str
    The ARN of the archive rule.
    created_at str
    The time at which the archive rule was created.
    filter Mapping[str, FilterValueProperties]
    The criteria for the archive rule. A map of filter criteria property names to their criterion values.
    updated_at str
    The time at which the archive rule was last updated.
    arn String
    The ARN of the archive rule.
    createdAt String
    The time at which the archive rule was created.
    filter Map<Property Map>
    The criteria for the archive rule. A map of filter criteria property names to their criterion values.
    updatedAt String
    The time at which the archive rule was last updated.

    Supporting Types

    FilterValueProperties

    Contains List<string>
    Eq List<string>
    Exists bool
    Neq List<string>
    Contains []string
    Eq []string
    Exists bool
    Neq []string
    contains list(string)
    eq list(string)
    exists bool
    neq list(string)
    contains List<String>
    eq List<String>
    exists Boolean
    neq List<String>
    contains string[]
    eq string[]
    exists boolean
    neq string[]
    contains Sequence[str]
    eq Sequence[str]
    exists bool
    neq Sequence[str]
    contains List<String>
    eq List<String>
    exists Boolean
    neq List<String>

    Package Details

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

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

    Viewing docs for AWS Cloud Control v1.79.0
    published on Monday, Sep 14, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial