We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 14, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
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:
- Analyzer
Name string - The name of the analyzer for the archive rule.
- Filter
Dictionary<string, Pulumi.
Aws Native. Access Analyzer. Inputs. Filter Value Properties Args> - 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.
- Analyzer
Name string - The name of the analyzer for the archive rule.
- Filter
map[string]Filter
Value Properties Args - 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.
- 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.
- analyzer
Name String - The name of the analyzer for the archive rule.
- filter
Map<String,Filter
Value Properties Args> - 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.
- analyzer
Name string - The name of the analyzer for the archive rule.
- filter
{[key: string]: Filter
Value Properties Args} - 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.
- analyzer_
name str - The name of the analyzer for the archive rule.
- filter
Mapping[str, Filter
Value Properties Args] - 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.
- analyzer
Name 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.
- rule
Name 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.
- 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 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.
Supporting Types
FilterValueProperties, FilterValuePropertiesArgs
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, Sep 14, 2026 by Pulumi