Skip to content
v2.277.0

FormDataTypeConfigProperty Struct ​

The FormDataTypeConfig property specifies the data type configuration for the data source associated with a form.

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 formDataTypeConfigProperty: amplifyuibuilder.CfnForm.FormDataTypeConfigProperty = {
  dataSourceType: 'dataSourceType',
  dataTypeName: 'dataTypeName',
};
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

form_data_type_config_property = amplifyuibuilder.CfnForm.FormDataTypeConfigProperty(
    data_source_type="dataSourceType",
    data_type_name="dataTypeName"
)
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.*;

FormDataTypeConfigProperty formDataTypeConfigProperty = FormDataTypeConfigProperty.builder()
        .dataSourceType("dataSourceType")
        .dataTypeName("dataTypeName")
        .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 formDataTypeConfigProperty = new FormDataTypeConfigProperty {
    DataSourceType = "dataSourceType",
    DataTypeName = "dataTypeName"
};
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"

formDataTypeConfigProperty := &FormDataTypeConfigProperty{
	DataSourceType: jsii.String("dataSourceType"),
	DataTypeName: jsii.String("dataTypeName"),
}

Properties ​

dataSourceTypestringdata_source_typestrdataSourceTypeStringDataSourceTypestringDataSourceType*stringrequired#
The data source type, either an Amplify DataStore model or a custom data type.
dataTypeNamestringdata_type_namestrdataTypeNameStringDataTypeNamestringDataTypeName*stringrequired#
The unique name of the data type you are using as the data source for the form.