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

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.

    Create ArchiveRule Resource

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

    Constructor syntax

    new ArchiveRule(name: string, args: ArchiveRuleArgs, opts?: CustomResourceOptions);
    @overload
    def ArchiveRule(resource_name: str,
                    args: ArchiveRuleArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def ArchiveRule(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    analyzer_name: Optional[str] = None,
                    filter: Optional[Mapping[str, FilterValuePropertiesArgs]] = None,
                    rule_name: Optional[str] = None)
    func NewArchiveRule(ctx *Context, name string, args ArchiveRuleArgs, opts ...ResourceOption) (*ArchiveRule, error)
    public ArchiveRule(string name, ArchiveRuleArgs args, CustomResourceOptions? opts = null)
    public ArchiveRule(String name, ArchiveRuleArgs args)
    public ArchiveRule(String name, ArchiveRuleArgs args, CustomResourceOptions options)
    
    type: aws-native:accessanalyzer:ArchiveRule
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws-native_accessanalyzer_archive_rule" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ArchiveRuleArgs
    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 ArchiveRuleArgs
    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 ArchiveRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ArchiveRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ArchiveRuleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ArchiveRule 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 ArchiveRule resource accepts the following input properties:

    AnalyzerName string
    The name of the analyzer for the archive rule.
    Filter Dictionary<string, Pulumi.AwsNative.AccessAnalyzer.Inputs.FilterValuePropertiesArgs>
    The criteria for the archive rule. A map of filter criteria property names to their criterion values.
    RuleName string
    The name of the archive rule.
    AnalyzerName string
    The name of the analyzer for the archive rule.
    Filter map[string]FilterValuePropertiesArgs
    The criteria for the archive rule. A map of filter criteria property names to their criterion values.
    RuleName string
    The name of the archive rule.
    analyzer_name string
    The name of the analyzer for the archive rule.
    filter map(object)
    The criteria for the archive rule. A map of filter criteria property names to their criterion values.
    rule_name string
    The name of the archive rule.
    analyzerName String
    The name of the analyzer for the archive rule.
    filter Map<String,FilterValuePropertiesArgs>
    The criteria for the archive rule. A map of filter criteria property names to their criterion values.
    ruleName String
    The name of the archive rule.
    analyzerName string
    The name of the analyzer for the archive rule.
    filter {[key: string]: FilterValuePropertiesArgs}
    The criteria for the archive rule. A map of filter criteria property names to their criterion values.
    ruleName string
    The name of the archive rule.
    analyzer_name str
    The name of the analyzer for the archive rule.
    filter Mapping[str, FilterValuePropertiesArgs]
    The criteria for the archive rule. A map of filter criteria property names to their criterion values.
    rule_name str
    The name of the archive rule.
    analyzerName String
    The name of the analyzer for the archive rule.
    filter Map<Property Map>
    The criteria for the archive rule. A map of filter criteria property names to their criterion values.
    ruleName String
    The name of the archive rule.

    Outputs

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

    Arn string
    The ARN of the archive rule.
    CreatedAt string
    The time at which the archive rule was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    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.
    Id string
    The provider-assigned unique ID for this managed resource.
    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.
    id string
    The provider-assigned unique ID for this managed resource.
    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.
    id String
    The provider-assigned unique ID for this managed resource.
    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.
    id string
    The provider-assigned unique ID for this managed resource.
    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.
    id str
    The provider-assigned unique ID for this managed resource.
    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.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    The time at which the archive rule was last updated.

    Supporting Types

    FilterValueProperties, FilterValuePropertiesArgs

    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