# SchemaValidationConfigProperty

Specific schema validation configuration settings that tell Lambda the message attributes you want to validate and filter using your schema registry.

- Source: Generated at build time
- Type last changed: v2.201.0 · 13 Jun 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';
const schemaValidationConfigProperty: lambda.CfnEventSourceMapping.SchemaValidationConfigProperty = {
  attribute: 'attribute',
};
```

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_lambda as lambda_

schema_validation_config_property = lambda.CfnEventSourceMapping.SchemaValidationConfigProperty(
    attribute="attribute"
)
```

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

SchemaValidationConfigProperty schemaValidationConfigProperty = SchemaValidationConfigProperty.builder()
        .attribute("attribute")
        .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.Lambda;

var schemaValidationConfigProperty = new SchemaValidationConfigProperty {
    Attribute = "attribute"
};
```

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"

schemaValidationConfigProperty := &SchemaValidationConfigProperty{
	Attribute: jsii.String("attribute"),
}
```

## Properties

- `attribute`: string — The attributes you want your schema registry to validate and filter for.

  If you selected `JSON` as the `EventRecordFormat` , Lambda also deserializes the selected message attributes.
