Skip to content
v2.278.0

ValueMappingsProperty ​

Struct External

The ValueMappings property specifies the data binding configuration for a value map.

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 valueMappingsProperty: amplifyuibuilder.CfnForm.ValueMappingsProperty = {
  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',
    },
  },
};
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

value_mappings_property = 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"
        )
    }
)
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_;

ValueMappingsProperty valueMappingsProperty = 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();
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 valueMappingsProperty = 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"
        } }
    }
};
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

valueMappingsProperty := &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"),
		},
	},
}

Properties ​

bindingPropertiesoptionalIResolvable | { [key: string]: IResolvable | CfnForm.FormInputBindingPropertiesValueProperty }binding_propertiesoptionaltyping.Union[IResolvable, typing.Mapping[str, typing.Union[IResolvable, FormInputBindingPropertiesValueProperty]]]bindingPropertiesoptionalIResolvableBindingPropertiesoptionalIResolvableBindingPropertiesoptionalinterface{} #
The information to bind fields to data at runtime.
valuesIResolvable | IResolvable | CfnForm.ValueMappingProperty[]valuestyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ValueMappingProperty]]]valuesIResolvableValuesIResolvableValuesinterface{} required #
The value and display value pairs.