# ValidatorsProperty

A validator provides a syntactic or semantic check to ensure the configuration that you want to deploy functions as intended.

To validate your application configuration data, you provide a schema or an AWS Lambda function that runs against the configuration. The configuration deployment or update can only proceed when the configuration data is valid. For more information, see [About validators](https://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-creating-configuration-profile.html#appconfig-creating-configuration-and-profile-validators) in the *AWS AppConfig 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_appconfig as appconfig } from 'aws-cdk-lib';
const validatorsProperty: appconfig.CfnConfigurationProfile.ValidatorsProperty = {
  content: 'content',
  type: 'type',
};
```

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_appconfig as appconfig

validators_property = appconfig.CfnConfigurationProfile.ValidatorsProperty(
    content="content",
    type="type"
)
```

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

ValidatorsProperty validatorsProperty = ValidatorsProperty.builder()
        .content("content")
        .type("type")
        .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.AppConfig;

var validatorsProperty = new ValidatorsProperty {
    Content = "content",
    Type = "type"
};
```

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"

validatorsProperty := &ValidatorsProperty{
	Content: jsii.String("content"),
	Type: jsii.String("type"),
}
```

## Properties

- `content`: string — Either the JSON Schema content or the Amazon Resource Name (ARN) of an Lambda function.

- `type`: string — AWS AppConfig supports validators of type `JSON_SCHEMA` and `LAMBDA`.
