CfnComponentPropsMixin
- class aws_cdk.mixins_preview.aws_amplifyuibuilder.mixins.CfnComponentPropsMixin(props, *, strategy=None)
Bases:
MixinThe AWS::AmplifyUIBuilder::Component resource specifies a component within an Amplify app.
A component is a user interface (UI) element that you can customize. Use
ComponentChildto configure an instance of aComponent. AComponentChildinstance inherits the configuration of the mainComponent.- See:
- CloudformationResource:
AWS::AmplifyUIBuilder::Component
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
Create a mixin to apply properties to
AWS::AmplifyUIBuilder::Component.- Parameters:
props (
Union[CfnComponentMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['appId', 'bindingProperties', 'children', 'collectionProperties', 'componentType', 'environmentName', 'events', 'name', 'overrides', 'properties', 'schemaVersion', 'sourceId', 'tags', 'variants']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
ActionParametersProperty
- class CfnComponentPropsMixin.ActionParametersProperty(*, anchor=None, fields=None, global_=None, id=None, model=None, state=None, target=None, type=None, url=None)
Bases:
objectRepresents the event action configuration for an element of a
ComponentorComponentChild.Use for the workflow feature in Amplify Studio that allows you to bind events and actions to components.
ActionParametersdefines the action that is performed when an event occurs on the component.- Parameters:
anchor (
Union[IResolvable,ComponentPropertyProperty,Dict[str,Any],None]) – The HTML anchor link to the location to open. Specify this value for a navigation action.fields (
Union[IResolvable,Mapping[str,Union[IResolvable,ComponentPropertyProperty,Dict[str,Any]]],None]) – A dictionary of key-value pairs mapping Amplify Studio properties to fields in a data model. Use when the action performs an operation on an Amplify DataStore model.global – Specifies whether the user should be signed out globally. Specify this value for an auth sign out action.
id (
Union[IResolvable,ComponentPropertyProperty,Dict[str,Any],None]) – The unique ID of the component that theActionParametersapply to.model (
Optional[str]) – The name of the data model. Use when the action performs an operation on an Amplify DataStore model.state (
Union[IResolvable,MutationActionSetStateParameterProperty,Dict[str,Any],None]) – A key-value pair that specifies the state property name and its initial value.target (
Union[IResolvable,ComponentPropertyProperty,Dict[str,Any],None]) – The element within the same component to modify when the action occurs.type (
Union[IResolvable,ComponentPropertyProperty,Dict[str,Any],None]) – The type of navigation action. Valid values areurlandanchor. This value is required for a navigation action.url (
Union[IResolvable,ComponentPropertyProperty,Dict[str,Any],None]) – The URL to the location to open. Specify this value for a navigation action.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_amplifyuibuilder import mixins as amplifyuibuilder_mixins # component_property_property_: amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyProperty action_parameters_property = amplifyuibuilder_mixins.CfnComponentPropsMixin.ActionParametersProperty( anchor=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyProperty( binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), bindings={ "bindings_key": amplifyuibuilder_mixins.CfnComponentPropsMixin.FormBindingElementProperty( element="element", property="property" ) }, collection_binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), component_name="componentName", concat=[component_property_property_], condition=amplifyuibuilder_mixins.CfnComponentPropsMixin.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" ), fields={ "fields_key": amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyProperty( binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), bindings={ "bindings_key": amplifyuibuilder_mixins.CfnComponentPropsMixin.FormBindingElementProperty( element="element", property="property" ) }, collection_binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), component_name="componentName", concat=[component_property_property_], condition=amplifyuibuilder_mixins.CfnComponentPropsMixin.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" ) }, global=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyProperty( binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), bindings={ "bindings_key": amplifyuibuilder_mixins.CfnComponentPropsMixin.FormBindingElementProperty( element="element", property="property" ) }, collection_binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), component_name="componentName", concat=[component_property_property_], condition=amplifyuibuilder_mixins.CfnComponentPropsMixin.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" ), id=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyProperty( binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), bindings={ "bindings_key": amplifyuibuilder_mixins.CfnComponentPropsMixin.FormBindingElementProperty( element="element", property="property" ) }, collection_binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), component_name="componentName", concat=[component_property_property_], condition=amplifyuibuilder_mixins.CfnComponentPropsMixin.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" ), model="model", state=amplifyuibuilder_mixins.CfnComponentPropsMixin.MutationActionSetStateParameterProperty( component_name="componentName", property="property", set=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyProperty( binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), bindings={ "bindings_key": amplifyuibuilder_mixins.CfnComponentPropsMixin.FormBindingElementProperty( element="element", property="property" ) }, collection_binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), component_name="componentName", concat=[component_property_property_], condition=amplifyuibuilder_mixins.CfnComponentPropsMixin.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" ) ), target=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyProperty( binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), bindings={ "bindings_key": amplifyuibuilder_mixins.CfnComponentPropsMixin.FormBindingElementProperty( element="element", property="property" ) }, collection_binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), component_name="componentName", concat=[component_property_property_], condition=amplifyuibuilder_mixins.CfnComponentPropsMixin.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" ), type=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyProperty( binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), bindings={ "bindings_key": amplifyuibuilder_mixins.CfnComponentPropsMixin.FormBindingElementProperty( element="element", property="property" ) }, collection_binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), component_name="componentName", concat=[component_property_property_], condition=amplifyuibuilder_mixins.CfnComponentPropsMixin.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" ), url=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyProperty( binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), bindings={ "bindings_key": amplifyuibuilder_mixins.CfnComponentPropsMixin.FormBindingElementProperty( element="element", property="property" ) }, collection_binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), component_name="componentName", concat=[component_property_property_], condition=amplifyuibuilder_mixins.CfnComponentPropsMixin.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" ) )
Attributes
- anchor
The HTML anchor link to the location to open.
Specify this value for a navigation action.
- fields
A dictionary of key-value pairs mapping Amplify Studio properties to fields in a data model.
Use when the action performs an operation on an Amplify DataStore model.
- global_
Specifies whether the user should be signed out globally.
Specify this value for an auth sign out action.
- id
The unique ID of the component that the
ActionParametersapply to.
- model
The name of the data model.
Use when the action performs an operation on an Amplify DataStore model.
- state
A key-value pair that specifies the state property name and its initial value.
- target
The element within the same component to modify when the action occurs.
- type
The type of navigation action.
Valid values are
urlandanchor. This value is required for a navigation action.
- url
The URL to the location to open.
Specify this value for a navigation action.
ComponentBindingPropertiesValuePropertiesProperty
- class CfnComponentPropsMixin.ComponentBindingPropertiesValuePropertiesProperty(*, bucket=None, default_value=None, field=None, key=None, model=None, predicates=None, slot_name=None, user_attribute=None)
Bases:
objectThe
ComponentBindingPropertiesValuePropertiesproperty specifies the data binding configuration for a specific property using data stored in AWS .For AWS connected properties, you can bind a property to data stored in an Amazon S3 bucket, an Amplify DataStore model or an authenticated user attribute.
- Parameters:
bucket (
Optional[str]) – An Amazon S3 bucket.default_value (
Optional[str]) – The default value to assign to the property.field (
Optional[str]) – The field to bind the data to.key (
Optional[str]) – The storage key for an Amazon S3 bucket.model (
Optional[str]) – An Amplify DataStore model.predicates (
Union[IResolvable,Sequence[Union[IResolvable,PredicateProperty,Dict[str,Any]]],None]) – A list of predicates for binding a component’s properties to data.slot_name (
Optional[str]) – The name of a component slot.user_attribute (
Optional[str]) – An authenticated user attribute.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_amplifyuibuilder import mixins as amplifyuibuilder_mixins # predicate_property_: amplifyuibuilder_mixins.CfnComponentPropsMixin.PredicateProperty component_binding_properties_value_properties_property = amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentBindingPropertiesValuePropertiesProperty( bucket="bucket", default_value="defaultValue", field="field", key="key", model="model", predicates=[amplifyuibuilder_mixins.CfnComponentPropsMixin.PredicateProperty( and=[predicate_property_], field="field", operand="operand", operand_type="operandType", operator="operator", or=[predicate_property_] )], slot_name="slotName", user_attribute="userAttribute" )
Attributes
- bucket
An Amazon S3 bucket.
- default_value
The default value to assign to the property.
- field
The field to bind the data to.
- key
The storage key for an Amazon S3 bucket.
- model
An Amplify DataStore model.
- predicates
A list of predicates for binding a component’s properties to data.
- slot_name
The name of a component slot.
ComponentBindingPropertiesValueProperty
- class CfnComponentPropsMixin.ComponentBindingPropertiesValueProperty(*, binding_properties=None, default_value=None, type=None)
Bases:
objectThe
ComponentBindingPropertiesValueproperty specifies the data binding configuration for a component at runtime.You can use
ComponentBindingPropertiesValueto add exposed properties to a component to allow different values to be entered when a component is reused in different places in an app.- Parameters:
binding_properties (
Union[IResolvable,ComponentBindingPropertiesValuePropertiesProperty,Dict[str,Any],None]) – Describes the properties to customize with data at runtime.default_value (
Optional[str]) – The default value of the property.type (
Optional[str]) – The property type.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_amplifyuibuilder import mixins as amplifyuibuilder_mixins # predicate_property_: amplifyuibuilder_mixins.CfnComponentPropsMixin.PredicateProperty component_binding_properties_value_property = amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentBindingPropertiesValueProperty( binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentBindingPropertiesValuePropertiesProperty( bucket="bucket", default_value="defaultValue", field="field", key="key", model="model", predicates=[amplifyuibuilder_mixins.CfnComponentPropsMixin.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" )
Attributes
- binding_properties
Describes the properties to customize with data at runtime.
- default_value
The default value of the property.
ComponentChildProperty
- class CfnComponentPropsMixin.ComponentChildProperty(*, children=None, component_type=None, events=None, name=None, properties=None, source_id=None)
Bases:
objectThe
ComponentChildproperty specifies a nested UI configuration within a parentComponent.- Parameters:
children (
Union[IResolvable,Sequence[Union[IResolvable,ComponentChildProperty,Dict[str,Any]]],None]) – The list ofComponentChildinstances for this component.component_type (
Optional[str]) – The type of the child component.events (
Union[IResolvable,Mapping[str,Union[IResolvable,ComponentEventProperty,Dict[str,Any]]],None]) – Describes the events that can be raised on the child component. Use for the workflow feature in Amplify Studio that allows you to bind events and actions to components.name (
Optional[str]) – The name of the child component.properties (
Union[IResolvable,Mapping[str,Union[IResolvable,ComponentPropertyProperty,Dict[str,Any]]],None]) – Describes the properties of the child component. You can’t specifytagsas a valid property forproperties.source_id (
Optional[str]) – The unique ID of the child component in its original source system, such as Figma.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_amplifyuibuilder import mixins as amplifyuibuilder_mixins # component_child_property_: amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentChildProperty # component_property_property_: amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyProperty component_child_property = amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentChildProperty( children=[component_child_property_], component_type="componentType", events={ "events_key": amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentEventProperty( action="action", binding_event="bindingEvent", parameters=amplifyuibuilder_mixins.CfnComponentPropsMixin.ActionParametersProperty( anchor=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyProperty( binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), bindings={ "bindings_key": amplifyuibuilder_mixins.CfnComponentPropsMixin.FormBindingElementProperty( element="element", property="property" ) }, collection_binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), component_name="componentName", concat=[component_property_property_], condition=amplifyuibuilder_mixins.CfnComponentPropsMixin.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" ), fields={ "fields_key": amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyProperty( binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), bindings={ "bindings_key": amplifyuibuilder_mixins.CfnComponentPropsMixin.FormBindingElementProperty( element="element", property="property" ) }, collection_binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), component_name="componentName", concat=[component_property_property_], condition=amplifyuibuilder_mixins.CfnComponentPropsMixin.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" ) }, global=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyProperty( binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), bindings={ "bindings_key": amplifyuibuilder_mixins.CfnComponentPropsMixin.FormBindingElementProperty( element="element", property="property" ) }, collection_binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), component_name="componentName", concat=[component_property_property_], condition=amplifyuibuilder_mixins.CfnComponentPropsMixin.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" ), id=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyProperty( binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), bindings={ "bindings_key": amplifyuibuilder_mixins.CfnComponentPropsMixin.FormBindingElementProperty( element="element", property="property" ) }, collection_binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), component_name="componentName", concat=[component_property_property_], condition=amplifyuibuilder_mixins.CfnComponentPropsMixin.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" ), model="model", state=amplifyuibuilder_mixins.CfnComponentPropsMixin.MutationActionSetStateParameterProperty( component_name="componentName", property="property", set=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyProperty( binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), bindings={ "bindings_key": amplifyuibuilder_mixins.CfnComponentPropsMixin.FormBindingElementProperty( element="element", property="property" ) }, collection_binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), component_name="componentName", concat=[component_property_property_], condition=amplifyuibuilder_mixins.CfnComponentPropsMixin.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" ) ), target=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyProperty( binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), bindings={ "bindings_key": amplifyuibuilder_mixins.CfnComponentPropsMixin.FormBindingElementProperty( element="element", property="property" ) }, collection_binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), component_name="componentName", concat=[component_property_property_], condition=amplifyuibuilder_mixins.CfnComponentPropsMixin.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" ), type=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyProperty( binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), bindings={ "bindings_key": amplifyuibuilder_mixins.CfnComponentPropsMixin.FormBindingElementProperty( element="element", property="property" ) }, collection_binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), component_name="componentName", concat=[component_property_property_], condition=amplifyuibuilder_mixins.CfnComponentPropsMixin.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" ), url=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyProperty( binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), bindings={ "bindings_key": amplifyuibuilder_mixins.CfnComponentPropsMixin.FormBindingElementProperty( element="element", property="property" ) }, collection_binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), component_name="componentName", concat=[component_property_property_], condition=amplifyuibuilder_mixins.CfnComponentPropsMixin.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" ) ) ) }, name="name", properties={ "properties_key": amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyProperty( binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), bindings={ "bindings_key": amplifyuibuilder_mixins.CfnComponentPropsMixin.FormBindingElementProperty( element="element", property="property" ) }, collection_binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), component_name="componentName", concat=[component_property_property_], condition=amplifyuibuilder_mixins.CfnComponentPropsMixin.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" ) }, source_id="sourceId" )
Attributes
- children
The list of
ComponentChildinstances for this component.
- component_type
The type of the child component.
- events
Describes the events that can be raised on the child component.
Use for the workflow feature in Amplify Studio that allows you to bind events and actions to components.
- name
The name of the child component.
- properties
Describes the properties of the child component.
You can’t specify
tagsas a valid property forproperties.
- source_id
The unique ID of the child component in its original source system, such as Figma.
ComponentConditionPropertyProperty
- class CfnComponentPropsMixin.ComponentConditionPropertyProperty(*, else_=None, field=None, operand=None, operand_type=None, operator=None, property=None, then=None)
Bases:
objectThe
ComponentConditionPropertyproperty specifies a conditional expression for setting a component property.Use
ComponentConditionPropertyto set a property to different values conditionally, based on the value of another property.- Parameters:
else – The value to assign to the property if the condition is not met.
field (
Optional[str]) – The name of a field. Specify this when the property is a data model.operand (
Optional[str]) – The value of the property to evaluate.operand_type (
Optional[str]) – The type of the property to evaluate.operator (
Optional[str]) – The operator to use to perform the evaluation, such aseqto represent equals.property (
Optional[str]) – The name of the conditional property.then (
Union[IResolvable,ComponentPropertyProperty,Dict[str,Any],None]) – The value to assign to the property if the condition is met.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_amplifyuibuilder import mixins as amplifyuibuilder_mixins # component_condition_property_property_: amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentConditionPropertyProperty # component_property_property_: amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyProperty component_condition_property_property = amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentConditionPropertyProperty( else=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyProperty( binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), bindings={ "bindings_key": amplifyuibuilder_mixins.CfnComponentPropsMixin.FormBindingElementProperty( element="element", property="property" ) }, collection_binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), component_name="componentName", concat=[component_property_property_], condition=component_condition_property_property_, configured=False, default_value="defaultValue", event="event", imported_value="importedValue", model="model", property="property", type="type", user_attribute="userAttribute", value="value" ), field="field", operand="operand", operand_type="operandType", operator="operator", property="property", then=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyProperty( binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), bindings={ "bindings_key": amplifyuibuilder_mixins.CfnComponentPropsMixin.FormBindingElementProperty( element="element", property="property" ) }, collection_binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), component_name="componentName", concat=[component_property_property_], condition=component_condition_property_property_, configured=False, default_value="defaultValue", event="event", imported_value="importedValue", model="model", property="property", type="type", user_attribute="userAttribute", value="value" ) )
Attributes
- else_
The value to assign to the property if the condition is not met.
- field
The name of a field.
Specify this when the property is a data model.
- operand
The value of the property to evaluate.
- operand_type
The type of the property to evaluate.
- operator
The operator to use to perform the evaluation, such as
eqto represent equals.
- property
The name of the conditional property.
- then
The value to assign to the property if the condition is met.
ComponentDataConfigurationProperty
- class CfnComponentPropsMixin.ComponentDataConfigurationProperty(*, identifiers=None, model=None, predicate=None, sort=None)
Bases:
objectThe
ComponentDataConfigurationproperty specifies the configuration for binding a component’s properties to data.- Parameters:
identifiers (
Optional[Sequence[str]]) – A list of IDs to use to bind data to a component. Use this property to bind specifically chosen data, rather than data retrieved from a query.model (
Optional[str]) – The name of the data model to use to bind data to a component.predicate (
Union[IResolvable,PredicateProperty,Dict[str,Any],None]) – Represents the conditional logic to use when binding data to a component. Use this property to retrieve only a subset of the data in a collection.sort (
Union[IResolvable,Sequence[Union[IResolvable,SortPropertyProperty,Dict[str,Any]]],None]) – Describes how to sort the component’s properties.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_amplifyuibuilder import mixins as amplifyuibuilder_mixins # predicate_property_: amplifyuibuilder_mixins.CfnComponentPropsMixin.PredicateProperty component_data_configuration_property = amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentDataConfigurationProperty( identifiers=["identifiers"], model="model", predicate=amplifyuibuilder_mixins.CfnComponentPropsMixin.PredicateProperty( and=[predicate_property_], field="field", operand="operand", operand_type="operandType", operator="operator", or=[predicate_property_] ), sort=[amplifyuibuilder_mixins.CfnComponentPropsMixin.SortPropertyProperty( direction="direction", field="field" )] )
Attributes
- identifiers
A list of IDs to use to bind data to a component.
Use this property to bind specifically chosen data, rather than data retrieved from a query.
- model
The name of the data model to use to bind data to a component.
- predicate
Represents the conditional logic to use when binding data to a component.
Use this property to retrieve only a subset of the data in a collection.
- sort
Describes how to sort the component’s properties.
ComponentEventProperty
- class CfnComponentPropsMixin.ComponentEventProperty(*, action=None, binding_event=None, parameters=None)
Bases:
objectThe
ComponentEventproperty specifies the configuration of an event.You can bind an event and a corresponding action to a
Componentor aComponentChild. A button click is an example of an event.- Parameters:
action (
Optional[str]) – The action to perform when a specific event is raised.binding_event (
Optional[str]) – Binds an event to an action on a component. When you specify abindingEvent, the event is called when the action is performed.parameters (
Union[IResolvable,ActionParametersProperty,Dict[str,Any],None]) – Describes information about the action.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_amplifyuibuilder import mixins as amplifyuibuilder_mixins # component_property_property_: amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyProperty component_event_property = amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentEventProperty( action="action", binding_event="bindingEvent", parameters=amplifyuibuilder_mixins.CfnComponentPropsMixin.ActionParametersProperty( anchor=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyProperty( binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), bindings={ "bindings_key": amplifyuibuilder_mixins.CfnComponentPropsMixin.FormBindingElementProperty( element="element", property="property" ) }, collection_binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), component_name="componentName", concat=[component_property_property_], condition=amplifyuibuilder_mixins.CfnComponentPropsMixin.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" ), fields={ "fields_key": amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyProperty( binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), bindings={ "bindings_key": amplifyuibuilder_mixins.CfnComponentPropsMixin.FormBindingElementProperty( element="element", property="property" ) }, collection_binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), component_name="componentName", concat=[component_property_property_], condition=amplifyuibuilder_mixins.CfnComponentPropsMixin.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" ) }, global=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyProperty( binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), bindings={ "bindings_key": amplifyuibuilder_mixins.CfnComponentPropsMixin.FormBindingElementProperty( element="element", property="property" ) }, collection_binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), component_name="componentName", concat=[component_property_property_], condition=amplifyuibuilder_mixins.CfnComponentPropsMixin.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" ), id=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyProperty( binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), bindings={ "bindings_key": amplifyuibuilder_mixins.CfnComponentPropsMixin.FormBindingElementProperty( element="element", property="property" ) }, collection_binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), component_name="componentName", concat=[component_property_property_], condition=amplifyuibuilder_mixins.CfnComponentPropsMixin.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" ), model="model", state=amplifyuibuilder_mixins.CfnComponentPropsMixin.MutationActionSetStateParameterProperty( component_name="componentName", property="property", set=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyProperty( binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), bindings={ "bindings_key": amplifyuibuilder_mixins.CfnComponentPropsMixin.FormBindingElementProperty( element="element", property="property" ) }, collection_binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), component_name="componentName", concat=[component_property_property_], condition=amplifyuibuilder_mixins.CfnComponentPropsMixin.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" ) ), target=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyProperty( binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), bindings={ "bindings_key": amplifyuibuilder_mixins.CfnComponentPropsMixin.FormBindingElementProperty( element="element", property="property" ) }, collection_binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), component_name="componentName", concat=[component_property_property_], condition=amplifyuibuilder_mixins.CfnComponentPropsMixin.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" ), type=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyProperty( binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), bindings={ "bindings_key": amplifyuibuilder_mixins.CfnComponentPropsMixin.FormBindingElementProperty( element="element", property="property" ) }, collection_binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), component_name="componentName", concat=[component_property_property_], condition=amplifyuibuilder_mixins.CfnComponentPropsMixin.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" ), url=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyProperty( binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), bindings={ "bindings_key": amplifyuibuilder_mixins.CfnComponentPropsMixin.FormBindingElementProperty( element="element", property="property" ) }, collection_binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), component_name="componentName", concat=[component_property_property_], condition=amplifyuibuilder_mixins.CfnComponentPropsMixin.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" ) ) )
Attributes
- action
The action to perform when a specific event is raised.
- binding_event
Binds an event to an action on a component.
When you specify a
bindingEvent, the event is called when the action is performed.
- parameters
Describes information about the action.
ComponentPropertyBindingPropertiesProperty
- class CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty(*, field=None, property=None)
Bases:
objectThe
ComponentPropertyBindingPropertiesproperty specifies a component property to associate with a binding property.This enables exposed properties on the top level component to propagate data to the component’s property values.
- Parameters:
field (
Optional[str]) – The data field to bind the property to.property (
Optional[str]) – The component property to bind to the data field.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_amplifyuibuilder import mixins as amplifyuibuilder_mixins component_property_binding_properties_property = amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" )
Attributes
- field
The data field to bind the property to.
- property
The component property to bind to the data field.
ComponentPropertyProperty
- class CfnComponentPropsMixin.ComponentPropertyProperty(*, binding_properties=None, bindings=None, collection_binding_properties=None, component_name=None, concat=None, condition=None, configured=None, default_value=None, event=None, imported_value=None, model=None, property=None, type=None, user_attribute=None, value=None)
Bases:
objectThe
ComponentPropertyproperty specifies the configuration for all of a component’s properties.Use
ComponentPropertyto specify the values to render or bind by default.- Parameters:
binding_properties (
Union[IResolvable,ComponentPropertyBindingPropertiesProperty,Dict[str,Any],None]) – The information to bind the component property to data at runtime.bindings (
Union[IResolvable,Mapping[str,Union[IResolvable,FormBindingElementProperty,Dict[str,Any]]],None]) – The information to bind the component property to form data.collection_binding_properties (
Union[IResolvable,ComponentPropertyBindingPropertiesProperty,Dict[str,Any],None]) – The information to bind the component property to data at runtime. Use this for collection components.component_name (
Optional[str]) – The name of the component that is affected by an event.concat (
Union[IResolvable,Sequence[Union[IResolvable,ComponentPropertyProperty,Dict[str,Any]]],None]) – A list of component properties to concatenate to create the value to assign to this component property.condition (
Union[IResolvable,ComponentConditionPropertyProperty,Dict[str,Any],None]) – The conditional expression to use to assign a value to the component property.configured (
Union[bool,IResolvable,None]) – Specifies whether the user configured the property in Amplify Studio after importing it.default_value (
Optional[str]) – The default value to assign to the component property.event (
Optional[str]) – An event that occurs in your app. Use this for workflow data binding.imported_value (
Optional[str]) – The default value assigned to the property when the component is imported into an app.model (
Optional[str]) – The data model to use to assign a value to the component property.property (
Optional[str]) – The name of the component’s property that is affected by an event.type (
Optional[str]) – The component type.user_attribute (
Optional[str]) – An authenticated user attribute to use to assign a value to the component property.value (
Optional[str]) – The value to assign to the component property.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_amplifyuibuilder import mixins as amplifyuibuilder_mixins # component_property_property_: amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyProperty component_property_property = amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyProperty( binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), bindings={ "bindings_key": amplifyuibuilder_mixins.CfnComponentPropsMixin.FormBindingElementProperty( element="element", property="property" ) }, collection_binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), component_name="componentName", concat=[component_property_property_], condition=amplifyuibuilder_mixins.CfnComponentPropsMixin.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" )
Attributes
- binding_properties
The information to bind the component property to data at runtime.
- bindings
The information to bind the component property to form data.
- collection_binding_properties
The information to bind the component property to data at runtime.
Use this for collection components.
- component_name
The name of the component that is affected by an event.
- concat
A list of component properties to concatenate to create the value to assign to this component property.
- condition
The conditional expression to use to assign a value to the component property.
- configured
Specifies whether the user configured the property in Amplify Studio after importing it.
- default_value
The default value to assign to the component property.
- event
An event that occurs in your app.
Use this for workflow data binding.
- imported_value
The default value assigned to the property when the component is imported into an app.
- model
The data model to use to assign a value to the component property.
- property
The name of the component’s property that is affected by an event.
- type
The component type.
- user_attribute
An authenticated user attribute to use to assign a value to the component property.
- value
The value to assign to the component property.
ComponentVariantProperty
- class CfnComponentPropsMixin.ComponentVariantProperty(*, overrides=None, variant_values=None)
Bases:
objectThe
ComponentVariantproperty specifies the style configuration of a unique variation of a main component.- Parameters:
overrides (
Any) – The properties of the component variant that can be overriden when customizing an instance of the component. You can’t specifytagsas a valid property foroverrides.variant_values (
Union[Mapping[str,str],IResolvable,None]) – The combination of variants that comprise this variant.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_amplifyuibuilder import mixins as amplifyuibuilder_mixins # overrides: Any component_variant_property = amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentVariantProperty( overrides=overrides, variant_values={ "variant_values_key": "variantValues" } )
Attributes
- overrides
The properties of the component variant that can be overriden when customizing an instance of the component.
You can’t specify
tagsas a valid property foroverrides.
- variant_values
The combination of variants that comprise this variant.
FormBindingElementProperty
- class CfnComponentPropsMixin.FormBindingElementProperty(*, element=None, property=None)
Bases:
objectDescribes how to bind a component property to form data.
- Parameters:
element (
Optional[str]) – The name of the component to retrieve a value from.property (
Optional[str]) – The property to retrieve a value from.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_amplifyuibuilder import mixins as amplifyuibuilder_mixins form_binding_element_property = amplifyuibuilder_mixins.CfnComponentPropsMixin.FormBindingElementProperty( element="element", property="property" )
Attributes
- element
The name of the component to retrieve a value from.
- property
The property to retrieve a value from.
MutationActionSetStateParameterProperty
- class CfnComponentPropsMixin.MutationActionSetStateParameterProperty(*, component_name=None, property=None, set=None)
Bases:
objectRepresents the state configuration when an action modifies a property of another element within the same component.
- Parameters:
component_name (
Optional[str]) – The name of the component that is being modified.property (
Optional[str]) – The name of the component property to apply the state configuration to.set (
Union[IResolvable,ComponentPropertyProperty,Dict[str,Any],None]) – The state configuration to assign to the property.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_amplifyuibuilder import mixins as amplifyuibuilder_mixins # component_property_property_: amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyProperty mutation_action_set_state_parameter_property = amplifyuibuilder_mixins.CfnComponentPropsMixin.MutationActionSetStateParameterProperty( component_name="componentName", property="property", set=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyProperty( binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), bindings={ "bindings_key": amplifyuibuilder_mixins.CfnComponentPropsMixin.FormBindingElementProperty( element="element", property="property" ) }, collection_binding_properties=amplifyuibuilder_mixins.CfnComponentPropsMixin.ComponentPropertyBindingPropertiesProperty( field="field", property="property" ), component_name="componentName", concat=[component_property_property_], condition=amplifyuibuilder_mixins.CfnComponentPropsMixin.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" ) )
Attributes
- component_name
The name of the component that is being modified.
- property
The name of the component property to apply the state configuration to.
- set
The state configuration to assign to the property.
PredicateProperty
- class CfnComponentPropsMixin.PredicateProperty(*, and_=None, field=None, operand=None, operand_type=None, operator=None, or_=None)
Bases:
objectThe
Predicateproperty specifies information for generating Amplify DataStore queries.Use
Predicateto retrieve a subset of the data in a collection.- Parameters:
and – A list of predicates to combine logically.
field (
Optional[str]) – The field to query.operand (
Optional[str]) – The value to use when performing the evaluation.operand_type (
Optional[str]) – The type of value to use when performing the evaluation.operator (
Optional[str]) – The operator to use to perform the evaluation.or – A list of predicates to combine logically.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_amplifyuibuilder import mixins as amplifyuibuilder_mixins # predicate_property_: amplifyuibuilder_mixins.CfnComponentPropsMixin.PredicateProperty predicate_property = amplifyuibuilder_mixins.CfnComponentPropsMixin.PredicateProperty( and=[predicate_property_], field="field", operand="operand", operand_type="operandType", operator="operator", or=[predicate_property_] )
Attributes
- and_
A list of predicates to combine logically.
- field
The field to query.
- operand
The value to use when performing the evaluation.
- operand_type
The type of value to use when performing the evaluation.
- operator
The operator to use to perform the evaluation.
- or_
A list of predicates to combine logically.
SortPropertyProperty
- class CfnComponentPropsMixin.SortPropertyProperty(*, direction=None, field=None)
Bases:
objectThe
SortPropertyproperty specifies how to sort the data that you bind to a component.- Parameters:
direction (
Optional[str]) – The direction of the sort, either ascending or descending.field (
Optional[str]) – The field to perform the sort on.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_amplifyuibuilder import mixins as amplifyuibuilder_mixins sort_property_property = amplifyuibuilder_mixins.CfnComponentPropsMixin.SortPropertyProperty( direction="direction", field="field" )
Attributes
- direction
The direction of the sort, either ascending or descending.
- field
The field to perform the sort on.