# FilterProperty

The criteria that defines the archive rule.

To learn about filter keys that you can use to create an archive rule, see [filter keys](https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-reference-filter-keys.html) in the *User Guide* .

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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" }
};
```

Golang:

```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

- `contains`: string[] — A "contains" condition to match for the rule.

- `eq`: string[] — An "equals" condition to match for the rule.

- `exists`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — An "exists" condition to match for the rule.

- `neq`: string[] — A "not equal" condition to match for the rule.

- `property`: string (required) — The property used to define the criteria in the filter for the rule.
