Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data Filter = Filter' {}
- newFilter :: Text -> Text -> FilterConditionString -> Filter
- filter_key :: Lens' Filter Text
- filter_value :: Lens' Filter Text
- filter_condition :: Lens' Filter FilterConditionString
Documentation
Describes a filter for choosing a subset of objects. Each filter
consists of a condition and a match statement. The condition is either
IS
or IS_NOT
, which specifies whether to include or exclude the
objects that match the statement, respectively. The match statement
consists of a key and a value.
See: newFilter
smart constructor.
Instances
ToJSON Filter Source # | |
Defined in Amazonka.Forecast.Types.Filter | |
Generic Filter Source # | |
Read Filter Source # | |
Show Filter Source # | |
NFData Filter Source # | |
Defined in Amazonka.Forecast.Types.Filter | |
Eq Filter Source # | |
Hashable Filter Source # | |
Defined in Amazonka.Forecast.Types.Filter | |
type Rep Filter Source # | |
Defined in Amazonka.Forecast.Types.Filter type Rep Filter = D1 ('MetaData "Filter" "Amazonka.Forecast.Types.Filter" "amazonka-forecast-2.0-HHvJwvxGrDPBJtUcnmLBqf" 'False) (C1 ('MetaCons "Filter'" 'PrefixI 'True) (S1 ('MetaSel ('Just "key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "condition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 FilterConditionString)))) |
:: Text | |
-> Text | |
-> FilterConditionString | |
-> Filter |
Create a value of Filter
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:key:Filter'
, filter_key
- The name of the parameter to filter on.
$sel:value:Filter'
, filter_value
- The value to match.
$sel:condition:Filter'
, filter_condition
- The condition to apply. To include the objects that match the statement,
specify IS
. To exclude matching objects, specify IS_NOT
.
filter_condition :: Lens' Filter FilterConditionString Source #
The condition to apply. To include the objects that match the statement,
specify IS
. To exclude matching objects, specify IS_NOT
.