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
Documentation
Contains an array of triplets made up of a condition type (such as
StringEquals
), a key, and a value. Used to filter resources using
their tags and assign them to a backup plan. Case sensitive.
See: newCondition
smart constructor.
Condition' | |
|
Instances
FromJSON Condition Source # | |
ToJSON Condition Source # | |
Defined in Amazonka.Backup.Types.Condition | |
Generic Condition Source # | |
Read Condition Source # | |
Show Condition Source # | |
NFData Condition Source # | |
Defined in Amazonka.Backup.Types.Condition | |
Eq Condition Source # | |
Hashable Condition Source # | |
Defined in Amazonka.Backup.Types.Condition | |
type Rep Condition Source # | |
Defined in Amazonka.Backup.Types.Condition type Rep Condition = D1 ('MetaData "Condition" "Amazonka.Backup.Types.Condition" "amazonka-backup-2.0-LovIt41tphM6jvgQJhTyRf" 'False) (C1 ('MetaCons "Condition'" 'PrefixI 'True) (S1 ('MetaSel ('Just "conditionType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ConditionType) :*: (S1 ('MetaSel ('Just "conditionKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "conditionValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))) |
:: ConditionType | |
-> Text | |
-> Text | |
-> Condition |
Create a value of Condition
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:conditionType:Condition'
, condition_conditionType
- An operation applied to a key-value pair used to assign resources to
your backup plan. Condition only supports StringEquals
. For more
flexible assignment options, including StringLike
and the ability to
exclude resources from your backup plan, use Conditions
(with an "s"
on the end) for your
BackupSelection
.
$sel:conditionKey:Condition'
, condition_conditionKey
- The key in a key-value pair. For example, in the tag
Department: Accounting
, Department
is the key.
$sel:conditionValue:Condition'
, condition_conditionValue
- The value in a key-value pair. For example, in the tag
Department: Accounting
, Accounting
is the value.
condition_conditionType :: Lens' Condition ConditionType Source #
An operation applied to a key-value pair used to assign resources to
your backup plan. Condition only supports StringEquals
. For more
flexible assignment options, including StringLike
and the ability to
exclude resources from your backup plan, use Conditions
(with an "s"
on the end) for your
BackupSelection
.