interface FieldValidationConfigurationProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.AmplifyUIBuilder.CfnForm.FieldValidationConfigurationProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsamplifyuibuilder#CfnForm_FieldValidationConfigurationProperty |
![]() | software.amazon.awscdk.services.amplifyuibuilder.CfnForm.FieldValidationConfigurationProperty |
![]() | aws_cdk.aws_amplifyuibuilder.CfnForm.FieldValidationConfigurationProperty |
![]() | aws-cdk-lib » aws_amplifyuibuilder » CfnForm » FieldValidationConfigurationProperty |
The FieldValidationConfiguration
property specifies the validation configuration for a field.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_amplifyuibuilder as amplifyuibuilder } from 'aws-cdk-lib';
const fieldValidationConfigurationProperty: amplifyuibuilder.CfnForm.FieldValidationConfigurationProperty = {
type: 'type',
// the properties below are optional
numValues: [123],
strValues: ['strValues'],
validationMessage: 'validationMessage',
};
Properties
Name | Type | Description |
---|---|---|
type | string | The validation to perform on an object type. |
num | number[] | IResolvable | The validation to perform on a number value. |
str | string[] | The validation to perform on a string value. |
validation | string | The validation message to display. |
type
Type:
string
The validation to perform on an object type.
``
numValues?
Type:
number[] |
IResolvable
(optional)
The validation to perform on a number value.
strValues?
Type:
string[]
(optional)
The validation to perform on a string value.
validationMessage?
Type:
string
(optional)
The validation message to display.