amazonka-backup-2.0: Amazon Backup 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.Backup.Types.Condition

Description

 
Synopsis

Documentation

data Condition Source #

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.

Constructors

Condition' 

Fields

  • conditionType :: 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 .

  • conditionKey :: Text

    The key in a key-value pair. For example, in the tag Department: Accounting, Department is the key.

  • conditionValue :: Text

    The value in a key-value pair. For example, in the tag Department: Accounting, Accounting is the value.

Instances

Instances details
FromJSON Condition Source # 
Instance details

Defined in Amazonka.Backup.Types.Condition

ToJSON Condition Source # 
Instance details

Defined in Amazonka.Backup.Types.Condition

Generic Condition Source # 
Instance details

Defined in Amazonka.Backup.Types.Condition

Associated Types

type Rep Condition :: Type -> Type #

Read Condition Source # 
Instance details

Defined in Amazonka.Backup.Types.Condition

Show Condition Source # 
Instance details

Defined in Amazonka.Backup.Types.Condition

NFData Condition Source # 
Instance details

Defined in Amazonka.Backup.Types.Condition

Methods

rnf :: Condition -> () #

Eq Condition Source # 
Instance details

Defined in Amazonka.Backup.Types.Condition

Hashable Condition Source # 
Instance details

Defined in Amazonka.Backup.Types.Condition

type Rep Condition Source # 
Instance details

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))))

newCondition Source #

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 .

condition_conditionKey :: Lens' Condition Text Source #

The key in a key-value pair. For example, in the tag Department: Accounting, Department is the key.

condition_conditionValue :: Lens' Condition Text Source #

The value in a key-value pair. For example, in the tag Department: Accounting, Accounting is the value.