| Copyright | (c) 2013-2021 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
Amazonka.Backup.Types.BackupSelection
Description
Synopsis
- data BackupSelection = BackupSelection' {
- resources :: Maybe [Text]
- listOfTags :: Maybe [Condition]
- selectionName :: Text
- iamRoleArn :: Text
- newBackupSelection :: Text -> Text -> BackupSelection
- backupSelection_resources :: Lens' BackupSelection (Maybe [Text])
- backupSelection_listOfTags :: Lens' BackupSelection (Maybe [Condition])
- backupSelection_selectionName :: Lens' BackupSelection Text
- backupSelection_iamRoleArn :: Lens' BackupSelection Text
Documentation
data BackupSelection Source #
Used to specify a set of resources to a backup plan.
See: newBackupSelection smart constructor.
Constructors
| BackupSelection' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> BackupSelection |
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.