ValidationProperty Struct
Defines validation rules for data table attribute values.
Based on JSON Schema Draft 2020-12 with additional Connect-specific validations. Validation rules ensure data integrity and consistency across the data table.
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_connect as connect } from 'aws-cdk-lib';
const validationProperty: connect.CfnDataTableAttribute.ValidationProperty = {
enum: {
strict: false,
values: ['values'],
},
exclusiveMaximum: 123,
exclusiveMinimum: 123,
maximum: 123,
maxLength: 123,
maxValues: 123,
minimum: 123,
minLength: 123,
minValues: 123,
multipleOf: 123,
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_connect as connect
validation_property = connect.CfnDataTableAttribute.ValidationProperty(
enum=connect.CfnDataTableAttribute.EnumProperty(
strict=False,
values=["values"]
),
exclusive_maximum=123,
exclusive_minimum=123,
maximum=123,
max_length=123,
max_values=123,
minimum=123,
min_length=123,
min_values=123,
multiple_of=123
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.connect.*;
ValidationProperty validationProperty = ValidationProperty.builder()
.enum(EnumProperty.builder()
.strict(false)
.values(List.of("values"))
.build())
.exclusiveMaximum(123)
.exclusiveMinimum(123)
.maximum(123)
.maxLength(123)
.maxValues(123)
.minimum(123)
.minLength(123)
.minValues(123)
.multipleOf(123)
.build();
// 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.Connect;
var validationProperty = new ValidationProperty {
Enum = new EnumProperty {
Strict = false,
Values = new [] { "values" }
},
ExclusiveMaximum = 123,
ExclusiveMinimum = 123,
Maximum = 123,
MaxLength = 123,
MaxValues = 123,
Minimum = 123,
MinLength = 123,
MinValues = 123,
MultipleOf = 123
};
// 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"
validationProperty := &ValidationProperty{
Enum: &EnumProperty{
Strict: jsii.Boolean(false),
Values: []*string{
jsii.String("values"),
},
},
ExclusiveMaximum: jsii.Number(123),
ExclusiveMinimum: jsii.Number(123),
Maximum: jsii.Number(123),
MaxLength: jsii.Number(123),
MaxValues: jsii.Number(123),
Minimum: jsii.Number(123),
MinLength: jsii.Number(123),
MinValues: jsii.Number(123),
MultipleOf: jsii.Number(123),
}
Properties
enumoptionalIResolvable | CfnDataTableAttribute.enumoptionaltyping.Union[IResolvable, EnumProperty]enumoptionalIResolvableEnumoptionalIResolvableEnumoptionalinterface{} #Can specify a list of allowed values and whether custom values are permitted beyond the enumerated list.
exclusiveMaximumoptionalnumberexclusive_maximumoptionalint | floatexclusiveMaximumoptionalNumberExclusiveMaximumoptionaldoubleExclusiveMaximumoptional*float64 #Can be provided alongside Maximum where both operate independently. Must be greater than ExclusiveMinimum and Minimum. Applies to NUMBER and values within NUMBER_LIST.
exclusiveMinimumoptionalnumberexclusive_minimumoptionalint | floatexclusiveMinimumoptionalNumberExclusiveMinimumoptionaldoubleExclusiveMinimumoptional*float64 #Can be provided alongside Minimum where both operate independently. Must be less than ExclusiveMaximum and Maximum. Applies to NUMBER and values within NUMBER_LIST.
maximumoptionalnumbermaximumoptionalint | floatmaximumoptionalNumberMaximumoptionaldoubleMaximumoptional*float64 #Can be provided alongside ExclusiveMaximum where both operate independently. Must be greater than or equal to Minimum and greater than ExclusiveMinimum. Applies to NUMBER and values within NUMBER_LIST.
maxLengthoptionalnumbermax_lengthoptionalint | floatmaxLengthoptionalNumberMaxLengthoptionaldoubleMaxLengthoptional*float64 #Applies to TEXT value type and values within a TEXT_LIST. Must be greater than or equal to MinLength.
maxValuesoptionalnumbermax_valuesoptionalint | floatmaxValuesoptionalNumberMaxValuesoptionaldoubleMaxValuesoptional*float64 #Must be an integer greater than or equal to 0 and greater than or equal to MinValues. Applies to all list types.
minimumoptionalnumberminimumoptionalint | floatminimumoptionalNumberMinimumoptionaldoubleMinimumoptional*float64 #Cannot be provided when ExclusiveMinimum is also provided. Must be less than or equal to Maximum and less than ExclusiveMaximum. Applies to NUMBER and values within NUMBER_LIST.
minLengthoptionalnumbermin_lengthoptionalint | floatminLengthoptionalNumberMinLengthoptionaldoubleMinLengthoptional*float64 #Applies to TEXT value type and values within a TEXT_LIST. Must be less than or equal to MaxLength.
minValuesoptionalnumbermin_valuesoptionalint | floatminValuesoptionalNumberMinValuesoptionaldoubleMinValuesoptional*float64 #Must be an integer greater than or equal to 0 and less than or equal to MaxValues. Applies to all list types.
multipleOfoptionalnumbermultiple_ofoptionalint | floatmultipleOfoptionalNumberMultipleOfoptionaldoubleMultipleOfoptional*float64 #Must be greater than 0. The result of dividing a value by this multiple must result in an integer. Applies to NUMBER and values within NUMBER_LIST.