amazonka-amplifyuibuilder-2.0: Amazon Amplify UI Builder SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.AmplifyUiBuilder.Types.Component

Description

 
Synopsis

Documentation

data Component Source #

Contains the configuration settings for a user interface (UI) element for an Amplify app. A component is configured as a primary, stand-alone UI element. Use ComponentChild to configure an instance of a Component. A ComponentChild instance inherits the configuration of the main Component.

See: newComponent smart constructor.

Constructors

Component' 

Fields

Instances

Instances details
FromJSON Component Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.Types.Component

Generic Component Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.Types.Component

Associated Types

type Rep Component :: Type -> Type #

Read Component Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.Types.Component

Show Component Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.Types.Component

NFData Component Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.Types.Component

Methods

rnf :: Component -> () #

Eq Component Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.Types.Component

Hashable Component Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.Types.Component

type Rep Component Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.Types.Component

type Rep Component = D1 ('MetaData "Component" "Amazonka.AmplifyUiBuilder.Types.Component" "amazonka-amplifyuibuilder-2.0-KN0MRaPu7dZCAXr3ruBTcC" 'False) (C1 ('MetaCons "Component'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "children") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ComponentChild])) :*: S1 ('MetaSel ('Just "collectionProperties") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text ComponentDataConfiguration)))) :*: (S1 ('MetaSel ('Just "events") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text ComponentEvent))) :*: S1 ('MetaSel ('Just "modifiedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)))) :*: ((S1 ('MetaSel ('Just "schemaVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "sourceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "appId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))) :*: (((S1 ('MetaSel ('Just "bindingProperties") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashMap Text ComponentBindingPropertiesValue)) :*: S1 ('MetaSel ('Just "componentType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "createdAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ISO8601) :*: S1 ('MetaSel ('Just "environmentName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) :*: ((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "overrides") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashMap Text (HashMap Text Text))) :*: (S1 ('MetaSel ('Just "properties") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashMap Text ComponentProperty)) :*: S1 ('MetaSel ('Just "variants") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [ComponentVariant])))))))

newComponent Source #

Create a value of Component with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

Component, component_children - A list of the component's ComponentChild instances.

$sel:collectionProperties:Component', component_collectionProperties - 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, component_events - 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.

$sel:modifiedAt:Component', component_modifiedAt - The time that the component was modified.

$sel:schemaVersion:Component', component_schemaVersion - The schema version of the component when it was imported.

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

$sel:tags:Component', component_tags - One or more key-value pairs to use when tagging the component.

$sel:appId:Component', component_appId - The unique ID of the Amplify app associated with the component.

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

Component, component_componentType - The type of the component. This can be an Amplify custom UI component or another custom component.

$sel:createdAt:Component', component_createdAt - The time that the component was created.

$sel:environmentName:Component', component_environmentName - The name of the backend environment that is a part of the Amplify app.

$sel:id:Component', component_id - The unique ID of the component.

Component, component_name - The name of the component.

Component, component_overrides - 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.

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

$sel:variants:Component', component_variants - A list of the component's variants. A variant is a unique style configuration of a main component.

component_children :: Lens' Component (Maybe [ComponentChild]) Source #

A list of the component's ComponentChild instances.

component_collectionProperties :: Lens' Component (Maybe (HashMap Text ComponentDataConfiguration)) Source #

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_events :: Lens' Component (Maybe (HashMap Text ComponentEvent)) Source #

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.

component_modifiedAt :: Lens' Component (Maybe UTCTime) Source #

The time that the component was modified.

component_schemaVersion :: Lens' Component (Maybe Text) Source #

The schema version of the component when it was imported.

component_sourceId :: Lens' Component (Maybe Text) Source #

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

component_tags :: Lens' Component (Maybe (HashMap Text Text)) Source #

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

component_appId :: Lens' Component Text Source #

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

component_bindingProperties :: Lens' Component (HashMap Text ComponentBindingPropertiesValue) Source #

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

component_componentType :: Lens' Component Text Source #

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

component_createdAt :: Lens' Component UTCTime Source #

The time that the component was created.

component_environmentName :: Lens' Component Text Source #

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

component_id :: Lens' Component Text Source #

The unique ID of the component.

component_name :: Lens' Component Text Source #

The name of the component.

component_overrides :: Lens' Component (HashMap Text (HashMap Text Text)) Source #

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.

component_properties :: Lens' Component (HashMap Text ComponentProperty) Source #

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

component_variants :: Lens' Component [ComponentVariant] Source #

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