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

Description

 
Synopsis

Documentation

data BackupSelection Source #

Used to specify a set of resources to a backup plan.

See: newBackupSelection smart constructor.

Constructors

BackupSelection' 

Fields

  • resources :: Maybe [Text]

    An array of strings that contain Amazon Resource Names (ARNs) of resources to assign to a backup plan.

  • listOfTags :: Maybe [Condition]

    An array of conditions used to specify a set of resources to assign to a backup plan; for example, "StringEquals": {"ec2:ResourceTag/Department": "accounting". Assigns the backup plan to every resource with at least one matching tag.

  • selectionName :: Text

    The display name of a resource selection document.

  • iamRoleArn :: Text

    The ARN of the IAM role that Backup uses to authenticate when backing up the target resource; for example, arn:aws:iam::123456789012:role/S3Access.

Instances

Instances details
Eq BackupSelection Source # 
Instance details

Defined in Amazonka.Backup.Types.BackupSelection

Read BackupSelection Source # 
Instance details

Defined in Amazonka.Backup.Types.BackupSelection

Show BackupSelection Source # 
Instance details

Defined in Amazonka.Backup.Types.BackupSelection

Generic BackupSelection Source # 
Instance details

Defined in Amazonka.Backup.Types.BackupSelection

Associated Types

type Rep BackupSelection :: Type -> Type #

NFData BackupSelection Source # 
Instance details

Defined in Amazonka.Backup.Types.BackupSelection

Methods

rnf :: BackupSelection -> () #

Hashable BackupSelection Source # 
Instance details

Defined in Amazonka.Backup.Types.BackupSelection

ToJSON BackupSelection Source # 
Instance details

Defined in Amazonka.Backup.Types.BackupSelection

FromJSON BackupSelection Source # 
Instance details

Defined in Amazonka.Backup.Types.BackupSelection

type Rep BackupSelection Source # 
Instance details

Defined in Amazonka.Backup.Types.BackupSelection

type Rep BackupSelection = D1 ('MetaData "BackupSelection" "Amazonka.Backup.Types.BackupSelection" "libZSservicesZSamazonka-backupZSamazonka-backup" 'False) (C1 ('MetaCons "BackupSelection'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "resources") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "listOfTags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Condition]))) :*: (S1 ('MetaSel ('Just "selectionName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "iamRoleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newBackupSelection Source #

Create a value of BackupSelection 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:resources:BackupSelection', backupSelection_resources - An array of strings that contain Amazon Resource Names (ARNs) of resources to assign to a backup plan.

$sel:listOfTags:BackupSelection', backupSelection_listOfTags - An array of conditions used to specify a set of resources to assign to a backup plan; for example, "StringEquals": {"ec2:ResourceTag/Department": "accounting". Assigns the backup plan to every resource with at least one matching tag.

$sel:selectionName:BackupSelection', backupSelection_selectionName - The display name of a resource selection document.

$sel:iamRoleArn:BackupSelection', backupSelection_iamRoleArn - The ARN of the IAM role that Backup uses to authenticate when backing up the target resource; for example, arn:aws:iam::123456789012:role/S3Access.

backupSelection_resources :: Lens' BackupSelection (Maybe [Text]) Source #

An array of strings that contain Amazon Resource Names (ARNs) of resources to assign to a backup plan.

backupSelection_listOfTags :: Lens' BackupSelection (Maybe [Condition]) Source #

An array of conditions used to specify a set of resources to assign to a backup plan; for example, "StringEquals": {"ec2:ResourceTag/Department": "accounting". Assigns the backup plan to every resource with at least one matching tag.

backupSelection_selectionName :: Lens' BackupSelection Text Source #

The display name of a resource selection document.

backupSelection_iamRoleArn :: Lens' BackupSelection Text Source #

The ARN of the IAM role that Backup uses to authenticate when backing up the target resource; for example, arn:aws:iam::123456789012:role/S3Access.