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.ComponentConditionProperty

Description

 
Synopsis

Documentation

data ComponentConditionProperty Source #

Represents a conditional expression to set a component property. Use ComponentConditionProperty to set a property to different values conditionally, based on the value of another property.

See: newComponentConditionProperty smart constructor.

Constructors

ComponentConditionProperty' 

Fields

Instances

Instances details
FromJSON ComponentConditionProperty Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.Types.ComponentConditionProperty

ToJSON ComponentConditionProperty Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.Types.ComponentConditionProperty

Generic ComponentConditionProperty Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.Types.ComponentConditionProperty

Associated Types

type Rep ComponentConditionProperty :: Type -> Type #

Read ComponentConditionProperty Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.Types.ComponentConditionProperty

Show ComponentConditionProperty Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.Types.ComponentConditionProperty

NFData ComponentConditionProperty Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.Types.ComponentConditionProperty

Eq ComponentConditionProperty Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.Types.ComponentConditionProperty

Hashable ComponentConditionProperty Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.Types.ComponentConditionProperty

type Rep ComponentConditionProperty Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.Types.ComponentConditionProperty

type Rep ComponentConditionProperty = D1 ('MetaData "ComponentConditionProperty" "Amazonka.AmplifyUiBuilder.Types.ComponentConditionProperty" "amazonka-amplifyuibuilder-2.0-KN0MRaPu7dZCAXr3ruBTcC" 'False) (C1 ('MetaCons "ComponentConditionProperty'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "else'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ComponentProperty)) :*: (S1 ('MetaSel ('Just "field") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "operand") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "operandType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "operator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "property") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "then'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ComponentProperty))))))

newComponentConditionProperty :: ComponentConditionProperty Source #

Create a value of ComponentConditionProperty 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:

$sel:else':ComponentConditionProperty', componentConditionProperty_else - The value to assign to the property if the condition is not met.

$sel:field:ComponentConditionProperty', componentConditionProperty_field - The name of a field. Specify this when the property is a data model.

$sel:operand:ComponentConditionProperty', componentConditionProperty_operand - The value of the property to evaluate.

$sel:operandType:ComponentConditionProperty', componentConditionProperty_operandType - The type of the property to evaluate.

$sel:operator:ComponentConditionProperty', componentConditionProperty_operator - The operator to use to perform the evaluation, such as eq to represent equals.

$sel:property:ComponentConditionProperty', componentConditionProperty_property - The name of the conditional property.

$sel:then':ComponentConditionProperty', componentConditionProperty_then - The value to assign to the property if the condition is met.

componentConditionProperty_else :: Lens' ComponentConditionProperty (Maybe ComponentProperty) Source #

The value to assign to the property if the condition is not met.

componentConditionProperty_field :: Lens' ComponentConditionProperty (Maybe Text) Source #

The name of a field. Specify this when the property is a data model.

componentConditionProperty_operator :: Lens' ComponentConditionProperty (Maybe Text) Source #

The operator to use to perform the evaluation, such as eq to represent equals.

componentConditionProperty_then :: Lens' ComponentConditionProperty (Maybe ComponentProperty) Source #

The value to assign to the property if the condition is met.