interface ValidationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Connect.Mixins.CfnDataTableAttributePropsMixin.ValidationProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsconnect/mixins#CfnDataTableAttributePropsMixin_ValidationProperty |
Java | software.amazon.awscdk.mixins.preview.services.connect.mixins.CfnDataTableAttributePropsMixin.ValidationProperty |
Python | aws_cdk.mixins_preview.aws_connect.mixins.CfnDataTableAttributePropsMixin.ValidationProperty |
TypeScript | @aws-cdk/mixins-preview » aws_connect » mixins » CfnDataTableAttributePropsMixin » ValidationProperty |
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.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as connect_mixins } from '@aws-cdk/mixins-preview/aws-connect';
const validationProperty: connect_mixins.CfnDataTableAttributePropsMixin.ValidationProperty = {
enum: {
strict: false,
values: ['values'],
},
exclusiveMaximum: 123,
exclusiveMinimum: 123,
maximum: 123,
maxLength: 123,
maxValues: 123,
minimum: 123,
minLength: 123,
minValues: 123,
multipleOf: 123,
};
Properties
| Name | Type | Description |
|---|---|---|
| enum? | IResolvable | Enum | Defines enumeration constraints for attribute values. |
| exclusive | number | The largest exclusive numeric value for NUMBER value type. |
| exclusive | number | The smallest exclusive numeric value for NUMBER value type. |
| max | number | The maximum number of characters a text value can contain. |
| max | number | The maximum number of values in a list. |
| maximum? | number | The largest inclusive numeric value for NUMBER value type. |
| min | number | The minimum number of characters a text value can contain. |
| min | number | The minimum number of values in a list. |
| minimum? | number | The smallest inclusive numeric value for NUMBER value type. |
| multiple | number | Specifies that numeric values must be multiples of this number. |
enum?
Type:
IResolvable | Enum
(optional)
Defines enumeration constraints for attribute values.
Can specify a list of allowed values and whether custom values are permitted beyond the enumerated list.
exclusiveMaximum?
Type:
number
(optional)
The largest exclusive numeric value for NUMBER value type.
Can be provided alongside Maximum where both operate independently. Must be greater than ExclusiveMinimum and Minimum. Applies to NUMBER and values within NUMBER_LIST.
exclusiveMinimum?
Type:
number
(optional)
The smallest exclusive numeric value for NUMBER value type.
Can be provided alongside Minimum where both operate independently. Must be less than ExclusiveMaximum and Maximum. Applies to NUMBER and values within NUMBER_LIST.
maxLength?
Type:
number
(optional)
The maximum number of characters a text value can contain.
Applies to TEXT value type and values within a TEXT_LIST. Must be greater than or equal to MinLength.
maxValues?
Type:
number
(optional)
The maximum number of values in a list.
Must be an integer greater than or equal to 0 and greater than or equal to MinValues. Applies to all list types.
maximum?
Type:
number
(optional)
The largest inclusive numeric value for NUMBER value type.
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.
minLength?
Type:
number
(optional)
The minimum number of characters a text value can contain.
Applies to TEXT value type and values within a TEXT_LIST. Must be less than or equal to MaxLength.
minValues?
Type:
number
(optional)
The minimum number of values in a list.
Must be an integer greater than or equal to 0 and less than or equal to MaxValues. Applies to all list types.
minimum?
Type:
number
(optional)
The smallest inclusive numeric value for NUMBER value type.
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.
multipleOf?
Type:
number
(optional)
Specifies that numeric values must be multiples of this number.
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.

.NET
Go
Java
Python
TypeScript