FilterProperty Struct
The criteria that defines the archive rule.
To learn about filter keys that you can use to create an archive rule, see filter keys in the User Guide .
| Source | |
|---|---|
| Type last changed |
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 filterProperty: accessanalyzer.CfnAnalyzer.FilterProperty = {
property: 'property',
// the properties below are optional
contains: ['contains'],
eq: ['eq'],
exists: false,
neq: ['neq'],
};
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
filter_property = accessanalyzer.CfnAnalyzer.FilterProperty(
property="property",
# the properties below are optional
contains=["contains"],
eq=["eq"],
exists=False,
neq=["neq"]
)
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.*;
FilterProperty filterProperty = FilterProperty.builder()
.property("property")
// the properties below are optional
.contains(List.of("contains"))
.eq(List.of("eq"))
.exists(false)
.neq(List.of("neq"))
.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 filterProperty = new FilterProperty {
Property = "property",
// the properties below are optional
Contains = new [] { "contains" },
Eq = new [] { "eq" },
Exists = false,
Neq = new [] { "neq" }
};
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"
filterProperty := &FilterProperty{
Property: jsii.String("property"),
// the properties below are optional
Contains: []*string{
jsii.String("contains"),
},
Eq: []*string{
jsii.String("eq"),
},
Exists: jsii.Boolean(false),
Neq: []*string{
jsii.String("neq"),
},
}
Properties
containsoptionalstring[]containsoptionaltyping.List[str]containsoptionalList<String>Containsoptionalstring[]Containsoptional*[]*string #A "contains" condition to match for the rule.
eqoptionalstring[]eqoptionaltyping.List[str]eqoptionalList<String>Eqoptionalstring[]Eqoptional*[]*string #An "equals" condition to match for the rule.
existsoptionalboolean | IResolvableexistsoptionaltyping.Union[bool, IResolvable]existsoptionalBooleanExistsoptionalboolExistsoptionalinterface{} #An "exists" condition to match for the rule.
neqoptionalstring[]neqoptionaltyping.List[str]neqoptionalList<String>Neqoptionalstring[]Neqoptional*[]*string #A "not equal" condition to match for the rule.
The property used to define the criteria in the filter for the rule.