Skip to content
v2.278.0

FieldConfigProperty Struct ​

The FieldConfig property specifies the configuration information for a field in a table.

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';

declare const formInputValuePropertyProperty_: amplifyuibuilder.CfnForm.FormInputValuePropertyProperty;
const fieldConfigProperty: amplifyuibuilder.CfnForm.FieldConfigProperty = {
  excluded: false,
  inputType: {
    type: 'type',

    // the properties below are optional
    defaultChecked: false,
    defaultCountryCode: 'defaultCountryCode',
    defaultValue: 'defaultValue',
    descriptiveText: 'descriptiveText',
    fileUploaderConfig: {
      acceptedFileTypes: ['acceptedFileTypes'],
      accessLevel: 'accessLevel',

      // the properties below are optional
      isResumable: false,
      maxFileCount: 123,
      maxSize: 123,
      showThumbnails: false,
    },
    isArray: false,
    maxValue: 123,
    minValue: 123,
    name: 'name',
    placeholder: 'placeholder',
    readOnly: false,
    required: false,
    step: 123,
    value: 'value',
    valueMappings: {
      values: [{
        value: {
          bindingProperties: {
            property: 'property',

            // the properties below are optional
            field: 'field',
          },
          concat: [formInputValuePropertyProperty_],
          value: 'value',
        },

        // the properties below are optional
        displayValue: {
          bindingProperties: {
            property: 'property',

            // the properties below are optional
            field: 'field',
          },
          concat: [formInputValuePropertyProperty_],
          value: 'value',
        },
      }],

      // the properties below are optional
      bindingProperties: {
        bindingPropertiesKey: {
          bindingProperties: {
            model: 'model',
          },
          type: 'type',
        },
      },
    },
  },
  label: 'label',
  position: {
    below: 'below',
    fixed: 'fixed',
    rightOf: 'rightOf',
  },
  validations: [{
    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

# form_input_value_property_property_: amplifyuibuilder.CfnForm.FormInputValuePropertyProperty

field_config_property = amplifyuibuilder.CfnForm.FieldConfigProperty(
    excluded=False,
    input_type=amplifyuibuilder.CfnForm.FieldInputConfigProperty(
        type="type",

        # the properties below are optional
        default_checked=False,
        default_country_code="defaultCountryCode",
        default_value="defaultValue",
        descriptive_text="descriptiveText",
        file_uploader_config=amplifyuibuilder.CfnForm.FileUploaderFieldConfigProperty(
            accepted_file_types=["acceptedFileTypes"],
            access_level="accessLevel",

            # the properties below are optional
            is_resumable=False,
            max_file_count=123,
            max_size=123,
            show_thumbnails=False
        ),
        is_array=False,
        max_value=123,
        min_value=123,
        name="name",
        placeholder="placeholder",
        read_only=False,
        required=False,
        step=123,
        value="value",
        value_mappings=amplifyuibuilder.CfnForm.ValueMappingsProperty(
            values=[amplifyuibuilder.CfnForm.ValueMappingProperty(
                value=amplifyuibuilder.CfnForm.FormInputValuePropertyProperty(
                    binding_properties=amplifyuibuilder.CfnForm.FormInputValuePropertyBindingPropertiesProperty(
                        property="property",

                        # the properties below are optional
                        field="field"
                    ),
                    concat=[form_input_value_property_property_],
                    value="value"
                ),

                # the properties below are optional
                display_value=amplifyuibuilder.CfnForm.FormInputValuePropertyProperty(
                    binding_properties=amplifyuibuilder.CfnForm.FormInputValuePropertyBindingPropertiesProperty(
                        property="property",

                        # the properties below are optional
                        field="field"
                    ),
                    concat=[form_input_value_property_property_],
                    value="value"
                )
            )],

            # the properties below are optional
            binding_properties={
                "binding_properties_key": amplifyuibuilder.CfnForm.FormInputBindingPropertiesValueProperty(
                    binding_properties=amplifyuibuilder.CfnForm.FormInputBindingPropertiesValuePropertiesProperty(
                        model="model"
                    ),
                    type="type"
                )
            }
        )
    ),
    label="label",
    position=amplifyuibuilder.CfnForm.FieldPositionProperty(
        below="below",
        fixed="fixed",
        right_of="rightOf"
    ),
    validations=[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.*;

FormInputValuePropertyProperty formInputValuePropertyProperty_;

FieldConfigProperty fieldConfigProperty = FieldConfigProperty.builder()
        .excluded(false)
        .inputType(FieldInputConfigProperty.builder()
                .type("type")

                // the properties below are optional
                .defaultChecked(false)
                .defaultCountryCode("defaultCountryCode")
                .defaultValue("defaultValue")
                .descriptiveText("descriptiveText")
                .fileUploaderConfig(FileUploaderFieldConfigProperty.builder()
                        .acceptedFileTypes(List.of("acceptedFileTypes"))
                        .accessLevel("accessLevel")

                        // the properties below are optional
                        .isResumable(false)
                        .maxFileCount(123)
                        .maxSize(123)
                        .showThumbnails(false)
                        .build())
                .isArray(false)
                .maxValue(123)
                .minValue(123)
                .name("name")
                .placeholder("placeholder")
                .readOnly(false)
                .required(false)
                .step(123)
                .value("value")
                .valueMappings(ValueMappingsProperty.builder()
                        .values(List.of(ValueMappingProperty.builder()
                                .value(FormInputValuePropertyProperty.builder()
                                        .bindingProperties(FormInputValuePropertyBindingPropertiesProperty.builder()
                                                .property("property")

                                                // the properties below are optional
                                                .field("field")
                                                .build())
                                        .concat(List.of(formInputValuePropertyProperty_))
                                        .value("value")
                                        .build())

                                // the properties below are optional
                                .displayValue(FormInputValuePropertyProperty.builder()
                                        .bindingProperties(FormInputValuePropertyBindingPropertiesProperty.builder()
                                                .property("property")

                                                // the properties below are optional
                                                .field("field")
                                                .build())
                                        .concat(List.of(formInputValuePropertyProperty_))
                                        .value("value")
                                        .build())
                                .build()))

                        // the properties below are optional
                        .bindingProperties(Map.of(
                                "bindingPropertiesKey", FormInputBindingPropertiesValueProperty.builder()
                                        .bindingProperties(FormInputBindingPropertiesValuePropertiesProperty.builder()
                                                .model("model")
                                                .build())
                                        .type("type")
                                        .build()))
                        .build())
                .build())
        .label("label")
        .position(FieldPositionProperty.builder()
                .below("below")
                .fixed("fixed")
                .rightOf("rightOf")
                .build())
        .validations(List.of(FieldValidationConfigurationProperty.builder()
                .type("type")

                // the properties below are optional
                .numValues(List.of(123))
                .strValues(List.of("strValues"))
                .validationMessage("validationMessage")
                .build()))
        .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;

FormInputValuePropertyProperty formInputValuePropertyProperty_;

var fieldConfigProperty = new FieldConfigProperty {
    Excluded = false,
    InputType = new FieldInputConfigProperty {
        Type = "type",

        // the properties below are optional
        DefaultChecked = false,
        DefaultCountryCode = "defaultCountryCode",
        DefaultValue = "defaultValue",
        DescriptiveText = "descriptiveText",
        FileUploaderConfig = new FileUploaderFieldConfigProperty {
            AcceptedFileTypes = new [] { "acceptedFileTypes" },
            AccessLevel = "accessLevel",

            // the properties below are optional
            IsResumable = false,
            MaxFileCount = 123,
            MaxSize = 123,
            ShowThumbnails = false
        },
        IsArray = false,
        MaxValue = 123,
        MinValue = 123,
        Name = "name",
        Placeholder = "placeholder",
        ReadOnly = false,
        Required = false,
        Step = 123,
        Value = "value",
        ValueMappings = new ValueMappingsProperty {
            Values = new [] { new ValueMappingProperty {
                Value = new FormInputValuePropertyProperty {
                    BindingProperties = new FormInputValuePropertyBindingPropertiesProperty {
                        Property = "property",

                        // the properties below are optional
                        Field = "field"
                    },
                    Concat = new [] { formInputValuePropertyProperty_ },
                    Value = "value"
                },

                // the properties below are optional
                DisplayValue = new FormInputValuePropertyProperty {
                    BindingProperties = new FormInputValuePropertyBindingPropertiesProperty {
                        Property = "property",

                        // the properties below are optional
                        Field = "field"
                    },
                    Concat = new [] { formInputValuePropertyProperty_ },
                    Value = "value"
                }
            } },

            // the properties below are optional
            BindingProperties = new Dictionary<string, object> {
                { "bindingPropertiesKey", new FormInputBindingPropertiesValueProperty {
                    BindingProperties = new FormInputBindingPropertiesValuePropertiesProperty {
                        Model = "model"
                    },
                    Type = "type"
                } }
            }
        }
    },
    Label = "label",
    Position = new FieldPositionProperty {
        Below = "below",
        Fixed = "fixed",
        RightOf = "rightOf"
    },
    Validations = new [] { 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"

var formInputValuePropertyProperty_ FormInputValuePropertyProperty

fieldConfigProperty := &FieldConfigProperty{
	Excluded: jsii.Boolean(false),
	InputType: &FieldInputConfigProperty{
		Type: jsii.String("type"),

		// the properties below are optional
		DefaultChecked: jsii.Boolean(false),
		DefaultCountryCode: jsii.String("defaultCountryCode"),
		DefaultValue: jsii.String("defaultValue"),
		DescriptiveText: jsii.String("descriptiveText"),
		FileUploaderConfig: &FileUploaderFieldConfigProperty{
			AcceptedFileTypes: []*string{
				jsii.String("acceptedFileTypes"),
			},
			AccessLevel: jsii.String("accessLevel"),

			// the properties below are optional
			IsResumable: jsii.Boolean(false),
			MaxFileCount: jsii.Number(123),
			MaxSize: jsii.Number(123),
			ShowThumbnails: jsii.Boolean(false),
		},
		IsArray: jsii.Boolean(false),
		MaxValue: jsii.Number(123),
		MinValue: jsii.Number(123),
		Name: jsii.String("name"),
		Placeholder: jsii.String("placeholder"),
		ReadOnly: jsii.Boolean(false),
		Required: jsii.Boolean(false),
		Step: jsii.Number(123),
		Value: jsii.String("value"),
		ValueMappings: &ValueMappingsProperty{
			Values: []interface{}{
				&ValueMappingProperty{
					Value: &FormInputValuePropertyProperty{
						BindingProperties: &FormInputValuePropertyBindingPropertiesProperty{
							Property: jsii.String("property"),

							// the properties below are optional
							Field: jsii.String("field"),
						},
						Concat: []interface{}{
							formInputValuePropertyProperty_,
						},
						Value: jsii.String("value"),
					},

					// the properties below are optional
					DisplayValue: &FormInputValuePropertyProperty{
						BindingProperties: &FormInputValuePropertyBindingPropertiesProperty{
							Property: jsii.String("property"),

							// the properties below are optional
							Field: jsii.String("field"),
						},
						Concat: []interface{}{
							formInputValuePropertyProperty_,
						},
						Value: jsii.String("value"),
					},
				},
			},

			// the properties below are optional
			BindingProperties: map[string]interface{}{
				"bindingPropertiesKey": &FormInputBindingPropertiesValueProperty{
					"bindingProperties": &FormInputBindingPropertiesValuePropertiesProperty{
						"model": jsii.String("model"),
					},
					"type": jsii.String("type"),
				},
			},
		},
	},
	Label: jsii.String("label"),
	Position: &FieldPositionProperty{
		Below: jsii.String("below"),
		Fixed: jsii.String("fixed"),
		RightOf: jsii.String("rightOf"),
	},
	Validations: []interface{}{
		&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 ​

excludedoptionalboolean | IResolvableexcludedoptionaltyping.Union[bool, IResolvable]excludedoptionalBooleanExcludedoptionalboolExcludedoptionalinterface{} #
Specifies whether to hide a field.
inputTypeoptionalIResolvable | CfnForm.FieldInputConfigPropertyinput_typeoptionaltyping.Union[IResolvable, FieldInputConfigProperty]inputTypeoptionalIResolvableInputTypeoptionalIResolvableInputTypeoptionalinterface{} #
Describes the configuration for the default input value to display for a field.
labeloptionalstringlabeloptionalstrlabeloptionalStringLabeloptionalstringLabeloptional*string #
The label for the field.
positionoptionalIResolvable | CfnForm.FieldPositionPropertypositionoptionaltyping.Union[IResolvable, FieldPositionProperty]positionoptionalIResolvablePositionoptionalIResolvablePositionoptionalinterface{} #
Specifies the field position.
validationsoptionalIResolvable | IResolvable | CfnForm.FieldValidationConfigurationProperty[]validationsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, FieldValidationConfigurationProperty]]]validationsoptionalIResolvableValidationsoptionalIResolvableValidationsoptionalinterface{} #
The validations to perform on the value in the field.