# PatternObjectFilterProperty

The specific filters applied to your data source content.

You can filter out or include certain content.

- Source: Generated at build time
- Type last changed: v2.154.1 · 23 Aug 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';
const patternObjectFilterProperty: bedrock.CfnDataSource.PatternObjectFilterProperty = {
  objectType: 'objectType',

  // the properties below are optional
  exclusionFilters: ['exclusionFilters'],
  inclusionFilters: ['inclusionFilters'],
};
```

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_bedrock as bedrock

pattern_object_filter_property = bedrock.CfnDataSource.PatternObjectFilterProperty(
    object_type="objectType",

    # the properties below are optional
    exclusion_filters=["exclusionFilters"],
    inclusion_filters=["inclusionFilters"]
)
```

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.bedrock.*;

PatternObjectFilterProperty patternObjectFilterProperty = PatternObjectFilterProperty.builder()
        .objectType("objectType")

        // the properties below are optional
        .exclusionFilters(List.of("exclusionFilters"))
        .inclusionFilters(List.of("inclusionFilters"))
        .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.Bedrock;

var patternObjectFilterProperty = new PatternObjectFilterProperty {
    ObjectType = "objectType",

    // the properties below are optional
    ExclusionFilters = new [] { "exclusionFilters" },
    InclusionFilters = new [] { "inclusionFilters" }
};
```

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"

patternObjectFilterProperty := &PatternObjectFilterProperty{
	ObjectType: jsii.String("objectType"),

	// the properties below are optional
	ExclusionFilters: []*string{
		jsii.String("exclusionFilters"),
	},
	InclusionFilters: []*string{
		jsii.String("inclusionFilters"),
	},
}
```

## Properties

- `exclusionFilters`: string[] — A list of one or more exclusion regular expression patterns to exclude certain object types that adhere to the pattern.

  If you specify an inclusion and exclusion filter/pattern and both match a document, the exclusion filter takes precedence and the document isn’t crawled.

- `inclusionFilters`: string[] — A list of one or more inclusion regular expression patterns to include certain object types that adhere to the pattern.

  If you specify an inclusion and exclusion filter/pattern and both match a document, the exclusion filter takes precedence and the document isn’t crawled.

- `objectType`: string (required) — The supported object type or content type of the data source.
