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

Description

 
Synopsis

Documentation

data Predicate Source #

Stores information for generating Amplify DataStore queries. Use a Predicate to retrieve a subset of the data in a collection.

See: newPredicate smart constructor.

Constructors

Predicate' 

Fields

Instances

Instances details
FromJSON Predicate Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.Types.Predicate

ToJSON Predicate Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.Types.Predicate

Generic Predicate Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.Types.Predicate

Associated Types

type Rep Predicate :: Type -> Type #

Read Predicate Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.Types.Predicate

Show Predicate Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.Types.Predicate

NFData Predicate Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.Types.Predicate

Methods

rnf :: Predicate -> () #

Eq Predicate Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.Types.Predicate

Hashable Predicate Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.Types.Predicate

type Rep Predicate Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.Types.Predicate

type Rep Predicate = D1 ('MetaData "Predicate" "Amazonka.AmplifyUiBuilder.Types.Predicate" "amazonka-amplifyuibuilder-2.0-KN0MRaPu7dZCAXr3ruBTcC" 'False) (C1 ('MetaCons "Predicate'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "and") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Predicate])) :*: S1 ('MetaSel ('Just "field") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "operand") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "operator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "or") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Predicate]))))))

newPredicate :: Predicate Source #

Create a value of Predicate 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:and:Predicate', predicate_and - A list of predicates to combine logically.

$sel:field:Predicate', predicate_field - The field to query.

$sel:operand:Predicate', predicate_operand - The value to use when performing the evaluation.

$sel:operator:Predicate', predicate_operator - The operator to use to perform the evaluation.

$sel:or:Predicate', predicate_or - A list of predicates to combine logically.

predicate_and :: Lens' Predicate (Maybe [Predicate]) Source #

A list of predicates to combine logically.

predicate_field :: Lens' Predicate (Maybe Text) Source #

The field to query.

predicate_operand :: Lens' Predicate (Maybe Text) Source #

The value to use when performing the evaluation.

predicate_operator :: Lens' Predicate (Maybe Text) Source #

The operator to use to perform the evaluation.

predicate_or :: Lens' Predicate (Maybe [Predicate]) Source #

A list of predicates to combine logically.