ValueMappingProperty Struct
The ValueMapping property specifies the association between a complex object and a display value.
Use ValueMapping to store how to represent complex objects when they are displayed.
| Source | |
|---|---|
| Type last changed |
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 valueMappingProperty: amplifyuibuilder.CfnForm.ValueMappingProperty = {
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',
},
};
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_mapping_property = 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"
)
)
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_;
ValueMappingProperty valueMappingProperty = 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();
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 valueMappingProperty = 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"
}
};
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
valueMappingProperty := &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"),
},
}
Properties
displayValueoptionalIResolvable | CfnForm.display_valueoptionaltyping.Union[IResolvable, FormInputValuePropertyProperty]displayValueoptionalIResolvableDisplayValueoptionalIResolvableDisplayValueoptionalinterface{} #The value to display for the complex object.
valueIResolvable | CfnForm.valuetyping.Union[IResolvable, FormInputValuePropertyProperty]valueIResolvableValueIResolvableValueinterface{} required #The complex object.