libZSservicesZSamazonka-backupZSamazonka-backup
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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. Conditions are used to filter resources in a selection that is assigned to a backup plan.

See: newCondition smart constructor.

Constructors

Condition' 

Fields

  • conditionType :: ConditionType

    An operation, such as StringEquals, that is applied to a key-value pair used to filter resources in a selection.

  • conditionKey :: Text

    The key in a key-value pair. For example, in "ec2:ResourceTag/Department": "accounting", "ec2:ResourceTag/Department" is the key.

  • conditionValue :: Text

    The value in a key-value pair. For example, in "ec2:ResourceTag/Department": "accounting", "accounting" is the value.

Instances

Instances details
Eq Condition Source # 
Instance details

Defined in Amazonka.Backup.Types.Condition

Read Condition Source # 
Instance details

Defined in Amazonka.Backup.Types.Condition

Show 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 #

NFData Condition Source # 
Instance details

Defined in Amazonka.Backup.Types.Condition

Methods

rnf :: Condition -> () #

Hashable Condition Source # 
Instance details

Defined in Amazonka.Backup.Types.Condition

ToJSON Condition Source # 
Instance details

Defined in Amazonka.Backup.Types.Condition

FromJSON 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" "libZSservicesZSamazonka-backupZSamazonka-backup" '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, such as StringEquals, that is applied to a key-value pair used to filter resources in a selection.

$sel:conditionKey:Condition', condition_conditionKey - The key in a key-value pair. For example, in "ec2:ResourceTag/Department": "accounting", "ec2:ResourceTag/Department" is the key.

$sel:conditionValue:Condition', condition_conditionValue - The value in a key-value pair. For example, in "ec2:ResourceTag/Department": "accounting", "accounting" is the value.

condition_conditionType :: Lens' Condition ConditionType Source #

An operation, such as StringEquals, that is applied to a key-value pair used to filter resources in a selection.

condition_conditionKey :: Lens' Condition Text Source #

The key in a key-value pair. For example, in "ec2:ResourceTag/Department": "accounting", "ec2:ResourceTag/Department" is the key.

condition_conditionValue :: Lens' Condition Text Source #

The value in a key-value pair. For example, in "ec2:ResourceTag/Department": "accounting", "accounting" is the value.