interface ComponentBindingPropertiesValueProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AmplifyUIBuilder.CfnComponent.ComponentBindingPropertiesValueProperty |
Java | software.amazon.awscdk.services.amplifyuibuilder.CfnComponent.ComponentBindingPropertiesValueProperty |
Python | aws_cdk.aws_amplifyuibuilder.CfnComponent.ComponentBindingPropertiesValueProperty |
TypeScript | @aws-cdk/aws-amplifyuibuilder » CfnComponent » ComponentBindingPropertiesValueProperty |
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.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as amplifyuibuilder from '@aws-cdk/aws-amplifyuibuilder';
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',
operator: 'operator',
or: [predicateProperty_],
}],
userAttribute: 'userAttribute',
},
defaultValue: 'defaultValue',
type: 'type',
};
Properties
Name | Type | Description |
---|---|---|
binding | IResolvable | Component | Describes the properties to customize with data at runtime. |
default | string | The default value of the property. |
type? | string | The property type. |
bindingProperties?
Type:
IResolvable
|
Component
(optional)
Describes the properties to customize with data at runtime.
defaultValue?
Type:
string
(optional)
The default value of the property.
type?
Type:
string
(optional)
The property type.