# CrawlFilterConfigurationProperty

The configuration of filtering the data source content.

For example, configuring regular expression patterns to include or exclude 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 crawlFilterConfigurationProperty: bedrock.CfnDataSource.CrawlFilterConfigurationProperty = {
  type: 'type',

  // the properties below are optional
  patternObjectFilter: {
    filters: [{
      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

crawl_filter_configuration_property = bedrock.CfnDataSource.CrawlFilterConfigurationProperty(
    type="type",

    # the properties below are optional
    pattern_object_filter=bedrock.CfnDataSource.PatternObjectFilterConfigurationProperty(
        filters=[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.*;

CrawlFilterConfigurationProperty crawlFilterConfigurationProperty = CrawlFilterConfigurationProperty.builder()
        .type("type")

        // the properties below are optional
        .patternObjectFilter(PatternObjectFilterConfigurationProperty.builder()
                .filters(List.of(PatternObjectFilterProperty.builder()
                        .objectType("objectType")

                        // the properties below are optional
                        .exclusionFilters(List.of("exclusionFilters"))
                        .inclusionFilters(List.of("inclusionFilters"))
                        .build()))
                .build())
        .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 crawlFilterConfigurationProperty = new CrawlFilterConfigurationProperty {
    Type = "type",

    // the properties below are optional
    PatternObjectFilter = new PatternObjectFilterConfigurationProperty {
        Filters = new [] { 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"

crawlFilterConfigurationProperty := &CrawlFilterConfigurationProperty{
	Type: jsii.String("type"),

	// the properties below are optional
	PatternObjectFilter: &PatternObjectFilterConfigurationProperty{
		Filters: []interface{}{
			&PatternObjectFilterProperty{
				ObjectType: jsii.String("objectType"),

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

## Properties

- `patternObjectFilter`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.PatternObjectFilterConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrock.CfnDataSource.PatternObjectFilterConfigurationProperty.html) — The configuration of filtering certain objects or content types of the data source.

- `type`: string (required) — The type of filtering that you want to apply to certain objects or content of the data source.

  For example, the `PATTERN` type is regular expression patterns you can apply to filter your content.
