Skip to content

Component

Source code in docs_src/capo_amplifyuibuilder/types/component.py
class Component(TypedDict, closed=True):
    app_id: "str"
    """<p>The unique ID of the Amplify app associated with the component.</p>"""
    environment_name: "str"
    """<p>The name of the backend environment that is a part of the Amplify app.</p>"""
    source_id: NotRequired["str"]
    """<p>The unique ID of the component in its original source system, such as Figma.</p>"""
    id: "capo_amplifyuibuilder.types.uuid.Uuid"
    """<p>The unique ID of the component.</p>"""
    name: "capo_amplifyuibuilder.types.component_name.ComponentName"
    """<p>The name of the component.</p>"""
    component_type: "capo_amplifyuibuilder.types.component_type.ComponentType"
    """<p>The type of the component. This can be an Amplify custom UI component or another custom component.</p>"""
    properties: "capo_amplifyuibuilder.types.component_properties.ComponentProperties"
    """<p>Describes the component's properties. You can't specify <code>tags</code> as a valid property for <code>properties</code>.</p>"""
    children: NotRequired[
        "capo_amplifyuibuilder.types.component_child_list.ComponentChildList"
    ]
    """<p>A list of the component's <code>ComponentChild</code> instances.</p>"""
    variants: "capo_amplifyuibuilder.types.component_variants.ComponentVariants"
    """<p>A list of the component's variants. A variant is a unique style configuration of a main component.</p>"""
    overrides: "capo_amplifyuibuilder.types.component_overrides.ComponentOverrides"
    """<p>Describes the component's properties that can be overriden in a customized instance of the component. You can't specify <code>tags</code> as a valid property for <code>overrides</code>.</p>"""
    binding_properties: "capo_amplifyuibuilder.types.component_binding_properties.ComponentBindingProperties"
    """<p>The information to connect a component's properties to data at runtime. You can't specify <code>tags</code> as a valid property for <code>bindingProperties</code>.</p> <p/>"""
    collection_properties: NotRequired[
        "capo_amplifyuibuilder.types.component_collection_properties.ComponentCollectionProperties"
    ]
    """<p>The data binding configuration for the component's properties. Use this for a collection component. You can't specify <code>tags</code> as a valid property for <code>collectionProperties</code>.</p>"""
    created_at: "datetime.datetime"
    """<p>The time that the component was created.</p>"""
    modified_at: NotRequired["datetime.datetime"]
    """<p>The time that the component was modified.</p>"""
    tags: NotRequired["capo_amplifyuibuilder.types.tags.Tags"]
    """<p>One or more key-value pairs to use when tagging the component.</p>"""
    events: NotRequired["capo_amplifyuibuilder.types.component_events.ComponentEvents"]
    """<p>Describes the events that can be raised on the component. Use for the workflow feature in Amplify Studio that allows you to bind events and actions to components.</p>"""
    schema_version: NotRequired["str"]
    """<p>The schema version of the component when it was imported.</p>"""

app_id instance-attribute

app_id: str

The unique ID of the Amplify app associated with the component.

binding_properties instance-attribute

binding_properties: ComponentBindingProperties

The information to connect a component's properties to data at runtime. You can't specify tags as a valid property for bindingProperties.

children instance-attribute

children: NotRequired[ComponentChildList]

A list of the component's ComponentChild instances.

collection_properties instance-attribute

collection_properties: NotRequired[ComponentCollectionProperties]

The data binding configuration for the component's properties. Use this for a collection component. You can't specify tags as a valid property for collectionProperties.

component_type instance-attribute

component_type: ComponentType

The type of the component. This can be an Amplify custom UI component or another custom component.

created_at instance-attribute

created_at: datetime

The time that the component was created.

environment_name instance-attribute

environment_name: str

The name of the backend environment that is a part of the Amplify app.

events instance-attribute

events: NotRequired[ComponentEvents]

Describes the events that can be raised on the component. Use for the workflow feature in Amplify Studio that allows you to bind events and actions to components.

id instance-attribute

id: Uuid

The unique ID of the component.

modified_at instance-attribute

modified_at: NotRequired[datetime]

The time that the component was modified.

name instance-attribute

The name of the component.

overrides instance-attribute

overrides: ComponentOverrides

Describes the component's properties that can be overriden in a customized instance of the component. You can't specify tags as a valid property for overrides.

properties instance-attribute

properties: ComponentProperties

Describes the component's properties. You can't specify tags as a valid property for properties.

schema_version instance-attribute

schema_version: NotRequired[str]

The schema version of the component when it was imported.

source_id instance-attribute

source_id: NotRequired[str]

The unique ID of the component in its original source system, such as Figma.

tags instance-attribute

tags: NotRequired[Tags]

One or more key-value pairs to use when tagging the component.

variants instance-attribute

A list of the component's variants. A variant is a unique style configuration of a main component.