interface ComponentBindingPropertiesValueProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AmplifyUIBuilder.CfnComponent.ComponentBindingPropertiesValueProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsamplifyuibuilder#CfnComponent_ComponentBindingPropertiesValueProperty |
Java | software.amazon.awscdk.services.amplifyuibuilder.CfnComponent.ComponentBindingPropertiesValueProperty |
Python | aws_cdk.aws_amplifyuibuilder.CfnComponent.ComponentBindingPropertiesValueProperty |
TypeScript | aws-cdk-lib » 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 { 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',
};
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.