Skip to content
v2.278.0

CfnArchiveRuleProps Struct ​

Properties for defining a CfnArchiveRule.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_accessanalyzer as accessanalyzer } from 'aws-cdk-lib';
const cfnArchiveRuleProps: accessanalyzer.CfnArchiveRuleProps = {
  analyzerName: 'analyzerName',
  filter: {
    filterKey: {
      contains: ['contains'],
      eq: ['eq'],
      exists: false,
      neq: ['neq'],
    },
  },
  ruleName: 'ruleName',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_accessanalyzer as accessanalyzer

cfn_archive_rule_props = accessanalyzer.CfnArchiveRuleProps(
    analyzer_name="analyzerName",
    filter={
        "filter_key": accessanalyzer.CfnArchiveRule.FilterItemsProperty(
            contains=["contains"],
            eq=["eq"],
            exists=False,
            neq=["neq"]
        )
    },
    rule_name="ruleName"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.accessanalyzer.*;

CfnArchiveRuleProps cfnArchiveRuleProps = CfnArchiveRuleProps.builder()
        .analyzerName("analyzerName")
        .filter(Map.of(
                "filterKey", FilterItemsProperty.builder()
                        .contains(List.of("contains"))
                        .eq(List.of("eq"))
                        .exists(false)
                        .neq(List.of("neq"))
                        .build()))
        .ruleName("ruleName")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AccessAnalyzer;

var cfnArchiveRuleProps = new CfnArchiveRuleProps {
    AnalyzerName = "analyzerName",
    Filter = new Dictionary<string, object> {
        { "filterKey", new FilterItemsProperty {
            Contains = new [] { "contains" },
            Eq = new [] { "eq" },
            Exists = false,
            Neq = new [] { "neq" }
        } }
    },
    RuleName = "ruleName"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnArchiveRuleProps := &CfnArchiveRuleProps{
	AnalyzerName: jsii.String("analyzerName"),
	Filter: map[string]interface{}{
		"filterKey": &FilterItemsProperty{
			"contains": []*string{
				jsii.String("contains"),
			},
			"eq": []*string{
				jsii.String("eq"),
			},
			"exists": jsii.Boolean(false),
			"neq": []*string{
				jsii.String("neq"),
			},
		},
	},
	RuleName: jsii.String("ruleName"),
}

Properties ​

analyzerNamestringanalyzer_namestranalyzerNameStringAnalyzerNamestringAnalyzerName*string required #
The name of the analyzer for the archive rule.
filterIResolvable | { [key: string]: IResolvable | CfnArchiveRule.FilterItemsProperty }filtertyping.Union[IResolvable, typing.Mapping[str, typing.Union[IResolvable, FilterItemsProperty]]]filterIResolvableFilterIResolvableFilterinterface{} required #
The criteria for the archive rule.

A map of filter criteria property names to their criterion values.

ruleNamestringrule_namestrruleNameStringRuleNamestringRuleName*string required #
The name of the archive rule.