# FieldValidationConfigurationProperty

The `FieldValidationConfiguration` property specifies the validation configuration for a field.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `numValues`: number[] | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — The validation to perform on a number value.

- `strValues`: string[] — The validation to perform on a string value.

- `type`: string (required) — The validation to perform on an object type.

  ``

- `validationMessage`: string — The validation message to display.
