AWS Classic
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:
- Analyzer
Name string Analyzer name.
- Filters
List<Archive
Rule Filter Args> The filter criteria for the archive rule. See Filter for more details.
- Rule
Name string Rule name.
- Analyzer
Name string Analyzer name.
- Filters
[]Archive
Rule Filter Args The filter criteria for the archive rule. See Filter for more details.
- Rule
Name string Rule name.
- analyzer
Name String Analyzer name.
- filters
List<Archive
Rule Filter Args> The filter criteria for the archive rule. See Filter for more details.
- rule
Name String Rule name.
- analyzer
Name string Analyzer name.
- filters
Archive
Rule Filter Args[] The filter criteria for the archive rule. See Filter for more details.
- rule
Name string Rule name.
- analyzer_
name str Analyzer name.
- filters
Sequence[Archive
Rule Filter Args] The filter criteria for the archive rule. See Filter for more details.
- rule_
name str Rule name.
- analyzer
Name String Analyzer name.
- filters List<Property Map>
The filter criteria for the archive rule. See Filter for more details.
- rule
Name 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.
- Analyzer
Name string Analyzer name.
- Filters
List<Archive
Rule Filter Args> The filter criteria for the archive rule. See Filter for more details.
- Rule
Name string Rule name.
- Analyzer
Name string Analyzer name.
- Filters
[]Archive
Rule Filter Args The filter criteria for the archive rule. See Filter for more details.
- Rule
Name string Rule name.
- analyzer
Name String Analyzer name.
- filters
List<Archive
Rule Filter Args> The filter criteria for the archive rule. See Filter for more details.
- rule
Name String Rule name.
- analyzer
Name string Analyzer name.
- filters
Archive
Rule Filter Args[] The filter criteria for the archive rule. See Filter for more details.
- rule
Name string Rule name.
- analyzer_
name str Analyzer name.
- filters
Sequence[Archive
Rule Filter Args] The filter criteria for the archive rule. See Filter for more details.
- rule_
name str Rule name.
- analyzer
Name String Analyzer name.
- filters List<Property Map>
The filter criteria for the archive rule. See Filter for more details.
- rule
Name String Rule name.
Supporting Types
ArchiveRuleFilter
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.