AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.10.0 published on Monday, Jul 11, 2022 by Pulumi

ArchiveRule

Import

AccessAnalyzer ArchiveRule can be imported using the analyzer_name/rule_name, e.g.,

 $ pulumi import aws:accessanalyzer/archiveRule:ArchiveRule example example-analyzer/example-rule

Example Usage

Basic Usage

Coming soon!

Coming soon!

package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new ArchiveRule("example", ArchiveRuleArgs.builder()        
            .analyserName("example-analyzer")
            .filters(            
                ArchiveRuleFilterArgs.builder()
                    .criteria("condition.aws:UserId")
                    .eqs("userid")
                    .build(),
                ArchiveRuleFilterArgs.builder()
                    .criteria("error")
                    .exists(true)
                    .build(),
                ArchiveRuleFilterArgs.builder()
                    .criteria("isPublic")
                    .eqs("false")
                    .build())
            .ruleName("example-rule")
            .build());

    }
}

Coming soon!

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.accessanalyzer.ArchiveRule("example", {
    analyserName: "example-analyzer",
    filters: [
        {
            criteria: "condition.aws:UserId",
            eqs: ["userid"],
        },
        {
            criteria: "error",
            exists: "true",
        },
        {
            criteria: "isPublic",
            eqs: ["false"],
        },
    ],
    ruleName: "example-rule",
});
resources:
  example:
    type: aws:accessanalyzer:ArchiveRule
    properties:
      analyserName: example-analyzer
      filters:
        - criteria: condition.aws:UserId
          eqs:
            - userid
        - criteria: error
          exists: true
        - criteria: isPublic
          eqs:
            - false
      ruleName: example-rule

Create a ArchiveRule Resource

new ArchiveRule(name: string, args: ArchiveRuleArgs, opts?: CustomResourceOptions);
@overload
def ArchiveRule(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                analyzer_name: Optional[str] = None,
                filters: Optional[Sequence[ArchiveRuleFilterArgs]] = None,
                rule_name: Optional[str] = None)
@overload
def ArchiveRule(resource_name: str,
                args: ArchiveRuleArgs,
                opts: Optional[ResourceOptions] = 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:accessanalyzer:ArchiveRule
properties: # The arguments to resource properties.
options: # 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.
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

The ArchiveRule resource accepts the following input properties:

AnalyzerName string

Analyzer name.

Filters List<ArchiveRuleFilterArgs>

The filter criteria for the archive rule. See Filter for more details.

RuleName string

Rule name.

AnalyzerName string

Analyzer name.

Filters []ArchiveRuleFilterArgs

The filter criteria for the archive rule. See Filter for more details.

RuleName string

Rule name.

analyzerName String

Analyzer name.

filters List<ArchiveRuleFilterArgs>

The filter criteria for the archive rule. See Filter for more details.

ruleName String

Rule name.

analyzerName string

Analyzer name.

filters ArchiveRuleFilterArgs[]

The filter criteria for the archive rule. See Filter for more details.

ruleName string

Rule name.

analyzer_name str

Analyzer name.

filters Sequence[ArchiveRuleFilterArgs]

The filter criteria for the archive rule. See Filter for more details.

rule_name str

Rule name.

analyzerName String

Analyzer name.

filters List<Property Map>

The filter criteria for the archive rule. See Filter for more details.

ruleName String

Rule name.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up an Existing ArchiveRule Resource

Get an existing ArchiveRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ArchiveRuleState, opts?: CustomResourceOptions): ArchiveRule
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        analyzer_name: Optional[str] = None,
        filters: Optional[Sequence[ArchiveRuleFilterArgs]] = None,
        rule_name: Optional[str] = None) -> ArchiveRule
func GetArchiveRule(ctx *Context, name string, id IDInput, state *ArchiveRuleState, opts ...ResourceOption) (*ArchiveRule, error)
public static ArchiveRule Get(string name, Input<string> id, ArchiveRuleState? state, CustomResourceOptions? opts = null)
public static ArchiveRule get(String name, Output<String> id, ArchiveRuleState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AnalyzerName string

Analyzer name.

Filters List<ArchiveRuleFilterArgs>

The filter criteria for the archive rule. See Filter for more details.

RuleName string

Rule name.

AnalyzerName string

Analyzer name.

Filters []ArchiveRuleFilterArgs

The filter criteria for the archive rule. See Filter for more details.

RuleName string

Rule name.

analyzerName String

Analyzer name.

filters List<ArchiveRuleFilterArgs>

The filter criteria for the archive rule. See Filter for more details.

ruleName String

Rule name.

analyzerName string

Analyzer name.

filters ArchiveRuleFilterArgs[]

The filter criteria for the archive rule. See Filter for more details.

ruleName string

Rule name.

analyzer_name str

Analyzer name.

filters Sequence[ArchiveRuleFilterArgs]

The filter criteria for the archive rule. See Filter for more details.

rule_name str

Rule name.

analyzerName String

Analyzer name.

filters List<Property Map>

The filter criteria for the archive rule. See Filter for more details.

ruleName String

Rule name.

Supporting Types

ArchiveRuleFilter

Criteria string

The filter criteria.

Contains List<string>

Contains comparator.

Eqs List<string>

Equals comparator.

Exists string

Boolean comparator.

Neqs List<string>

Not Equals comparator.

Criteria string

The filter criteria.

Contains []string

Contains comparator.

Eqs []string

Equals comparator.

Exists string

Boolean comparator.

Neqs []string

Not Equals comparator.

criteria String

The filter criteria.

contains List<String>

Contains comparator.

eqs List<String>

Equals comparator.

exists String

Boolean comparator.

neqs List<String>

Not Equals comparator.

criteria string

The filter criteria.

contains string[]

Contains comparator.

eqs string[]

Equals comparator.

exists string

Boolean comparator.

neqs string[]

Not Equals comparator.

criteria str

The filter criteria.

contains Sequence[str]

Contains comparator.

eqs Sequence[str]

Equals comparator.

exists str

Boolean comparator.

neqs Sequence[str]

Not Equals comparator.

criteria String

The filter criteria.

contains List<String>

Contains comparator.

eqs List<String>

Equals comparator.

exists String

Boolean comparator.

neqs List<String>

Not Equals comparator.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.