ComponentPropertyProperty Struct
The ComponentProperty property specifies the configuration for all of a component's properties.
Use ComponentProperty to specify the values to render or bind by default.
| 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 componentPropertyProperty_: amplifyuibuilder.CfnComponent.ComponentPropertyProperty;
const componentPropertyProperty: amplifyuibuilder.CfnComponent.ComponentPropertyProperty = {
bindingProperties: {
property: 'property',
// the properties below are optional
field: 'field',
},
bindings: {
bindingsKey: {
element: 'element',
property: 'property',
},
},
collectionBindingProperties: {
property: 'property',
// the properties below are optional
field: 'field',
},
componentName: 'componentName',
concat: [componentPropertyProperty_],
condition: {
else: componentPropertyProperty_,
field: 'field',
operand: 'operand',
operandType: 'operandType',
operator: 'operator',
property: 'property',
then: componentPropertyProperty_,
},
configured: false,
defaultValue: 'defaultValue',
event: 'event',
importedValue: 'importedValue',
model: 'model',
property: 'property',
type: 'type',
userAttribute: 'userAttribute',
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
# component_property_property_: amplifyuibuilder.CfnComponent.ComponentPropertyProperty
component_property_property = amplifyuibuilder.CfnComponent.ComponentPropertyProperty(
binding_properties=amplifyuibuilder.CfnComponent.ComponentPropertyBindingPropertiesProperty(
property="property",
# the properties below are optional
field="field"
),
bindings={
"bindings_key": amplifyuibuilder.CfnComponent.FormBindingElementProperty(
element="element",
property="property"
)
},
collection_binding_properties=amplifyuibuilder.CfnComponent.ComponentPropertyBindingPropertiesProperty(
property="property",
# the properties below are optional
field="field"
),
component_name="componentName",
concat=[component_property_property_],
condition=amplifyuibuilder.CfnComponent.ComponentConditionPropertyProperty(
else=component_property_property_,
field="field",
operand="operand",
operand_type="operandType",
operator="operator",
property="property",
then=component_property_property_
),
configured=False,
default_value="defaultValue",
event="event",
imported_value="importedValue",
model="model",
property="property",
type="type",
user_attribute="userAttribute",
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.*;
ComponentPropertyProperty componentPropertyProperty_;
ComponentPropertyProperty componentPropertyProperty = ComponentPropertyProperty.builder()
.bindingProperties(ComponentPropertyBindingPropertiesProperty.builder()
.property("property")
// the properties below are optional
.field("field")
.build())
.bindings(Map.of(
"bindingsKey", FormBindingElementProperty.builder()
.element("element")
.property("property")
.build()))
.collectionBindingProperties(ComponentPropertyBindingPropertiesProperty.builder()
.property("property")
// the properties below are optional
.field("field")
.build())
.componentName("componentName")
.concat(List.of(componentPropertyProperty_))
.condition(ComponentConditionPropertyProperty.builder()
.else(componentPropertyProperty_)
.field("field")
.operand("operand")
.operandType("operandType")
.operator("operator")
.property("property")
.then(componentPropertyProperty_)
.build())
.configured(false)
.defaultValue("defaultValue")
.event("event")
.importedValue("importedValue")
.model("model")
.property("property")
.type("type")
.userAttribute("userAttribute")
.value("value")
.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;
ComponentPropertyProperty componentPropertyProperty_;
var componentPropertyProperty = new ComponentPropertyProperty {
BindingProperties = new ComponentPropertyBindingPropertiesProperty {
Property = "property",
// the properties below are optional
Field = "field"
},
Bindings = new Dictionary<string, object> {
{ "bindingsKey", new FormBindingElementProperty {
Element = "element",
Property = "property"
} }
},
CollectionBindingProperties = new ComponentPropertyBindingPropertiesProperty {
Property = "property",
// the properties below are optional
Field = "field"
},
ComponentName = "componentName",
Concat = new [] { componentPropertyProperty_ },
Condition = new ComponentConditionPropertyProperty {
Else = componentPropertyProperty_,
Field = "field",
Operand = "operand",
OperandType = "operandType",
Operator = "operator",
Property = "property",
Then = componentPropertyProperty_
},
Configured = false,
DefaultValue = "defaultValue",
Event = "event",
ImportedValue = "importedValue",
Model = "model",
Property = "property",
Type = "type",
UserAttribute = "userAttribute",
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 componentPropertyProperty_ ComponentPropertyProperty
componentPropertyProperty := &ComponentPropertyProperty{
BindingProperties: &ComponentPropertyBindingPropertiesProperty{
Property: jsii.String("property"),
// the properties below are optional
Field: jsii.String("field"),
},
Bindings: map[string]interface{}{
"bindingsKey": &FormBindingElementProperty{
"element": jsii.String("element"),
"property": jsii.String("property"),
},
},
CollectionBindingProperties: &ComponentPropertyBindingPropertiesProperty{
Property: jsii.String("property"),
// the properties below are optional
Field: jsii.String("field"),
},
ComponentName: jsii.String("componentName"),
Concat: []interface{}{
componentPropertyProperty_,
},
Condition: &ComponentConditionPropertyProperty{
Else: componentPropertyProperty_,
Field: jsii.String("field"),
Operand: jsii.String("operand"),
OperandType: jsii.String("operandType"),
Operator: jsii.String("operator"),
Property: jsii.String("property"),
Then: componentPropertyProperty_,
},
Configured: jsii.Boolean(false),
DefaultValue: jsii.String("defaultValue"),
Event: jsii.String("event"),
ImportedValue: jsii.String("importedValue"),
Model: jsii.String("model"),
Property: jsii.String("property"),
Type: jsii.String("type"),
UserAttribute: jsii.String("userAttribute"),
Value: jsii.String("value"),
}
Properties
bindingPropertiesoptionalIResolvable | CfnComponent.binding_propertiesoptionaltyping.Union[IResolvable, ComponentPropertyBindingPropertiesProperty]bindingPropertiesoptionalIResolvableBindingPropertiesoptionalIResolvableBindingPropertiesoptionalinterface{} #The information to bind the component property to data at runtime.
bindingsoptionalIResolvable | { [key: string]: IResolvable | CfnComponent.bindingsoptionaltyping.Union[IResolvable, typing.Mapping[str, typing.Union[IResolvable, FormBindingElementProperty]]]bindingsoptionalIResolvableBindingsoptionalIResolvableBindingsoptionalinterface{} #The information to bind the component property to form data.
collectionBindingPropertiesoptionalIResolvable | CfnComponent.collection_binding_propertiesoptionaltyping.Union[IResolvable, ComponentPropertyBindingPropertiesProperty]collectionBindingPropertiesoptionalIResolvableCollectionBindingPropertiesoptionalIResolvableCollectionBindingPropertiesoptionalinterface{} #The information to bind the component property to data at runtime.
Use this for collection components.
componentNameoptionalstringcomponent_nameoptionalstrcomponentNameoptionalStringComponentNameoptionalstringComponentNameoptional*string #The name of the component that is affected by an event.
concatoptionalIResolvable | IResolvable | CfnComponent.concatoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ComponentPropertyProperty]]]concatoptionalIResolvableConcatoptionalIResolvableConcatoptionalinterface{} #A list of component properties to concatenate to create the value to assign to this component property.
conditionoptionalIResolvable | CfnComponent.conditionoptionaltyping.Union[IResolvable, ComponentConditionPropertyProperty]conditionoptionalIResolvableConditionoptionalIResolvableConditionoptionalinterface{} #The conditional expression to use to assign a value to the component property.
configuredoptionalboolean | IResolvableconfiguredoptionaltyping.Union[bool, IResolvable]configuredoptionalBooleanConfiguredoptionalboolConfiguredoptionalinterface{} #Specifies whether the user configured the property in Amplify Studio after importing it.
defaultValueoptionalstringdefault_valueoptionalstrdefaultValueoptionalStringDefaultValueoptionalstringDefaultValueoptional*string #The default value to assign to the component property.
An event that occurs in your app.
Use this for workflow data binding.
importedValueoptionalstringimported_valueoptionalstrimportedValueoptionalStringImportedValueoptionalstringImportedValueoptional*string #The default value assigned to the property when the component is imported into an app.
The data model to use to assign a value to the component property.
propertyoptionalstringpropertyoptionalstrpropertyoptionalStringPropertyoptionalstringPropertyoptional*string #The name of the component's property that is affected by an event.
The component type.
userAttributeoptionalstringuser_attributeoptionalstruserAttributeoptionalStringUserAttributeoptionalstringUserAttributeoptional*string #An authenticated user attribute to use to assign a value to the component property.
The value to assign to the component property.