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
- data BackupSelection = BackupSelection' {
- conditions :: Maybe Conditions
- listOfTags :: Maybe [Condition]
- notResources :: Maybe [Text]
- resources :: Maybe [Text]
- selectionName :: Text
- iamRoleArn :: Text
- newBackupSelection :: Text -> Text -> BackupSelection
- backupSelection_conditions :: Lens' BackupSelection (Maybe Conditions)
- backupSelection_listOfTags :: Lens' BackupSelection (Maybe [Condition])
- backupSelection_notResources :: Lens' BackupSelection (Maybe [Text])
- backupSelection_resources :: Lens' BackupSelection (Maybe [Text])
- 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.
Specifying your desired Conditions
, ListOfTags
, NotResources
,
and/or Resources
is recommended. If none of these are specified,
Backup will attempt to select all supported and opted-in storage
resources, which could have unintended cost implications.
See: newBackupSelection
smart constructor.
BackupSelection' | |
|
Instances
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:conditions:BackupSelection'
, backupSelection_conditions
- A list of conditions that you define to assign resources to your backup
plans using tags. For example,
"StringEquals": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "true" },
.
Condition operators are case sensitive.
Conditions
differs from ListOfTags
as follows:
- When you specify more than one condition, you only assign the resources that match ALL conditions (using AND logic).
Conditions
supportsStringEquals
,StringLike
,StringNotEquals
, andStringNotLike
.ListOfTags
only supportsStringEquals
.
$sel:listOfTags:BackupSelection'
, backupSelection_listOfTags
- A list of conditions that you define to assign resources to your backup
plans using tags. For example,
"StringEquals": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "true" },
.
Condition operators are case sensitive.
ListOfTags
differs from Conditions
as follows:
- When you specify more than one condition, you assign all resources that match AT LEAST ONE condition (using OR logic).
ListOfTags
only supportsStringEquals
.Conditions
supportsStringEquals
,StringLike
,StringNotEquals
, andStringNotLike
.
$sel:notResources:BackupSelection'
, backupSelection_notResources
- A list of Amazon Resource Names (ARNs) to exclude from a backup plan.
The maximum number of ARNs is 500 without wildcards, or 30 ARNs with
wildcards.
If you need to exclude many resources from a backup plan, consider a different resource selection strategy, such as assigning only one or a few resource types or refining your resource selection using tags.
$sel:resources:BackupSelection'
, backupSelection_resources
- A list of Amazon Resource Names (ARNs) to assign to a backup plan. The
maximum number of ARNs is 500 without wildcards, or 30 ARNs with
wildcards.
If you need to assign many resources to a backup plan, consider a different resource selection strategy, such as assigning all resources of a resource type or refining your resource selection using tags.
$sel:selectionName:BackupSelection'
, backupSelection_selectionName
- The display name of a resource selection document. Must contain 1 to 50
alphanumeric or '-_.' characters.
$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_conditions :: Lens' BackupSelection (Maybe Conditions) Source #
A list of conditions that you define to assign resources to your backup
plans using tags. For example,
"StringEquals": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "true" },
.
Condition operators are case sensitive.
Conditions
differs from ListOfTags
as follows:
- When you specify more than one condition, you only assign the resources that match ALL conditions (using AND logic).
Conditions
supportsStringEquals
,StringLike
,StringNotEquals
, andStringNotLike
.ListOfTags
only supportsStringEquals
.
backupSelection_listOfTags :: Lens' BackupSelection (Maybe [Condition]) Source #
A list of conditions that you define to assign resources to your backup
plans using tags. For example,
"StringEquals": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "true" },
.
Condition operators are case sensitive.
ListOfTags
differs from Conditions
as follows:
- When you specify more than one condition, you assign all resources that match AT LEAST ONE condition (using OR logic).
ListOfTags
only supportsStringEquals
.Conditions
supportsStringEquals
,StringLike
,StringNotEquals
, andStringNotLike
.
backupSelection_notResources :: Lens' BackupSelection (Maybe [Text]) Source #
A list of Amazon Resource Names (ARNs) to exclude from a backup plan. The maximum number of ARNs is 500 without wildcards, or 30 ARNs with wildcards.
If you need to exclude many resources from a backup plan, consider a different resource selection strategy, such as assigning only one or a few resource types or refining your resource selection using tags.
backupSelection_resources :: Lens' BackupSelection (Maybe [Text]) Source #
A list of Amazon Resource Names (ARNs) to assign to a backup plan. The maximum number of ARNs is 500 without wildcards, or 30 ARNs with wildcards.
If you need to assign many resources to a backup plan, consider a different resource selection strategy, such as assigning all resources of a resource type or refining your resource selection using tags.
backupSelection_selectionName :: Lens' BackupSelection Text Source #
The display name of a resource selection document. Must contain 1 to 50 alphanumeric or '-_.' characters.
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
.