aws-cdk-lib.aws_amplifyuibuilder.CfnForm.FieldValidationConfigurationProperty

interface FieldValidationConfigurationProperty

LanguageType name
.NETAmazon.CDK.AWS.AmplifyUIBuilder.CfnForm.FieldValidationConfigurationProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsamplifyuibuilder#CfnForm_FieldValidationConfigurationProperty
Javasoftware.amazon.awscdk.services.amplifyuibuilder.CfnForm.FieldValidationConfigurationProperty
Pythonaws_cdk.aws_amplifyuibuilder.CfnForm.FieldValidationConfigurationProperty
TypeScript 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

NameTypeDescription
typestringThe validation to perform on an object type.
numValues?number[] | IResolvableThe validation to perform on a number value.
strValues?string[]The validation to perform on a string value.
validationMessage?stringThe 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.