FieldValidationConfigurationProperty Struct
The FieldValidationConfiguration property specifies the validation configuration for a field.
| Source | |
|---|---|
| Type last changed |
Example
ts
// 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',
};
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_amplifyuibuilder as amplifyuibuilder
field_validation_configuration_property = amplifyuibuilder.CfnForm.FieldValidationConfigurationProperty(
type="type",
# the properties below are optional
num_values=[123],
str_values=["strValues"],
validation_message="validationMessage"
)
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.amplifyuibuilder.*;
FieldValidationConfigurationProperty fieldValidationConfigurationProperty = FieldValidationConfigurationProperty.builder()
.type("type")
// the properties below are optional
.numValues(List.of(123))
.strValues(List.of("strValues"))
.validationMessage("validationMessage")
.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.AmplifyUIBuilder;
var fieldValidationConfigurationProperty = new FieldValidationConfigurationProperty {
Type = "type",
// the properties below are optional
NumValues = new [] { 123 },
StrValues = new [] { "strValues" },
ValidationMessage = "validationMessage"
};
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"
fieldValidationConfigurationProperty := &FieldValidationConfigurationProperty{
Type: jsii.String("type"),
// the properties below are optional
NumValues: []interface{}{
jsii.Number(123),
},
StrValues: []*string{
jsii.String("strValues"),
},
ValidationMessage: jsii.String("validationMessage"),
}
Properties
numValuesoptionalnumber[] | IResolvablenum_valuesoptionaltyping.Union[typing.List[int | float], IResolvable]numValuesoptionalList<Number>NumValuesoptionaldouble[]NumValuesoptionalinterface{} #The validation to perform on a number value.
strValuesoptionalstring[]str_valuesoptionaltyping.List[str]strValuesoptionalList<String>StrValuesoptionalstring[]StrValuesoptional*[]*string #The validation to perform on a string value.
The validation to perform on an object type.
``
validationMessageoptionalstringvalidation_messageoptionalstrvalidationMessageoptionalStringValidationMessageoptionalstringValidationMessageoptional*string #The validation message to display.