ComponentBindingPropertiesValueProperty Struct
The ComponentBindingPropertiesValue property specifies the data binding configuration for a component at runtime.
You can use ComponentBindingPropertiesValue to add exposed properties to a component to allow different values to be entered when a component is reused in different places in an app.
| 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 predicateProperty_: amplifyuibuilder.CfnComponent.PredicateProperty;
const componentBindingPropertiesValueProperty: amplifyuibuilder.CfnComponent.ComponentBindingPropertiesValueProperty = {
bindingProperties: {
bucket: 'bucket',
defaultValue: 'defaultValue',
field: 'field',
key: 'key',
model: 'model',
predicates: [{
and: [predicateProperty_],
field: 'field',
operand: 'operand',
operandType: 'operandType',
operator: 'operator',
or: [predicateProperty_],
}],
slotName: 'slotName',
userAttribute: 'userAttribute',
},
defaultValue: 'defaultValue',
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
# predicate_property_: amplifyuibuilder.CfnComponent.PredicateProperty
component_binding_properties_value_property = amplifyuibuilder.CfnComponent.ComponentBindingPropertiesValueProperty(
binding_properties=amplifyuibuilder.CfnComponent.ComponentBindingPropertiesValuePropertiesProperty(
bucket="bucket",
default_value="defaultValue",
field="field",
key="key",
model="model",
predicates=[amplifyuibuilder.CfnComponent.PredicateProperty(
and=[predicate_property_],
field="field",
operand="operand",
operand_type="operandType",
operator="operator",
or=[predicate_property_]
)],
slot_name="slotName",
user_attribute="userAttribute"
),
default_value="defaultValue",
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.*;
PredicateProperty predicateProperty_;
ComponentBindingPropertiesValueProperty componentBindingPropertiesValueProperty = ComponentBindingPropertiesValueProperty.builder()
.bindingProperties(ComponentBindingPropertiesValuePropertiesProperty.builder()
.bucket("bucket")
.defaultValue("defaultValue")
.field("field")
.key("key")
.model("model")
.predicates(List.of(PredicateProperty.builder()
.and(List.of(predicateProperty_))
.field("field")
.operand("operand")
.operandType("operandType")
.operator("operator")
.or(List.of(predicateProperty_))
.build()))
.slotName("slotName")
.userAttribute("userAttribute")
.build())
.defaultValue("defaultValue")
.type("type")
.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;
PredicateProperty predicateProperty_;
var componentBindingPropertiesValueProperty = new ComponentBindingPropertiesValueProperty {
BindingProperties = new ComponentBindingPropertiesValuePropertiesProperty {
Bucket = "bucket",
DefaultValue = "defaultValue",
Field = "field",
Key = "key",
Model = "model",
Predicates = new [] { new PredicateProperty {
And = new [] { predicateProperty_ },
Field = "field",
Operand = "operand",
OperandType = "operandType",
Operator = "operator",
Or = new [] { predicateProperty_ }
} },
SlotName = "slotName",
UserAttribute = "userAttribute"
},
DefaultValue = "defaultValue",
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 predicateProperty_ PredicateProperty
componentBindingPropertiesValueProperty := &ComponentBindingPropertiesValueProperty{
BindingProperties: &ComponentBindingPropertiesValuePropertiesProperty{
Bucket: jsii.String("bucket"),
DefaultValue: jsii.String("defaultValue"),
Field: jsii.String("field"),
Key: jsii.String("key"),
Model: jsii.String("model"),
Predicates: []interface{}{
&PredicateProperty{
And: []interface{}{
predicateProperty_,
},
Field: jsii.String("field"),
Operand: jsii.String("operand"),
OperandType: jsii.String("operandType"),
Operator: jsii.String("operator"),
Or: []interface{}{
predicateProperty_,
},
},
},
SlotName: jsii.String("slotName"),
UserAttribute: jsii.String("userAttribute"),
},
DefaultValue: jsii.String("defaultValue"),
Type: jsii.String("type"),
}
Properties
bindingPropertiesoptionalIResolvable | CfnComponent.binding_propertiesoptionaltyping.Union[IResolvable, ComponentBindingPropertiesValuePropertiesProperty]bindingPropertiesoptionalIResolvableBindingPropertiesoptionalIResolvableBindingPropertiesoptionalinterface{} #Describes the properties to customize with data at runtime.
defaultValueoptionalstringdefault_valueoptionalstrdefaultValueoptionalStringDefaultValueoptionalstringDefaultValueoptional*string #The default value of the property.
The property type.