Skip to content
v2.277.0

ValidatorsProperty Struct ​

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 in the AWS AppConfig User Guide .

Example ​

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
# 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
// 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();
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"
};
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 ​

contentoptionalstringcontentoptionalstrcontentoptionalStringContentoptionalstringContentoptional*string #
Either the JSON Schema content or the Amazon Resource Name (ARN) of an Lambda function.
typeoptionalstringtypeoptionalstrtypeoptionalStringTypeoptionalstringTypeoptional*string #
AWS AppConfig supports validators of type `JSON_SCHEMA` and `LAMBDA`.