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 |
Creates a JSON document that specifies a set of resources to assign to a
backup plan. Resources can be included by specifying patterns for a
ListOfTags
and selected Resources
.
For example, consider the following patterns:
Resources: "arn:aws:ec2:region:account-id:volume/volume-id"
ConditionKey:"department"
ConditionValue:"finance"
ConditionType:"StringEquals"
ConditionKey:"importance"
ConditionValue:"critical"
ConditionType:"StringEquals"
Using these patterns would back up all Amazon Elastic Block Store
(Amazon EBS) volumes that are tagged as "department=finance"
,
"importance=critical"
, in addition to an EBS volume with the
specified volume ID.
Resources and conditions are additive in that all resources that match the pattern are selected. This shouldn't be confused with a logical AND, where all conditions must match. The matching patterns are logically put together using the OR operator. In other words, all patterns that match are selected for backup.
Synopsis
- data CreateBackupSelection = CreateBackupSelection' {}
- newCreateBackupSelection :: Text -> BackupSelection -> CreateBackupSelection
- createBackupSelection_creatorRequestId :: Lens' CreateBackupSelection (Maybe Text)
- createBackupSelection_backupPlanId :: Lens' CreateBackupSelection Text
- createBackupSelection_backupSelection :: Lens' CreateBackupSelection BackupSelection
- data CreateBackupSelectionResponse = CreateBackupSelectionResponse' {
- selectionId :: Maybe Text
- backupPlanId :: Maybe Text
- creationDate :: Maybe POSIX
- httpStatus :: Int
- newCreateBackupSelectionResponse :: Int -> CreateBackupSelectionResponse
- createBackupSelectionResponse_selectionId :: Lens' CreateBackupSelectionResponse (Maybe Text)
- createBackupSelectionResponse_backupPlanId :: Lens' CreateBackupSelectionResponse (Maybe Text)
- createBackupSelectionResponse_creationDate :: Lens' CreateBackupSelectionResponse (Maybe UTCTime)
- createBackupSelectionResponse_httpStatus :: Lens' CreateBackupSelectionResponse Int
Creating a Request
data CreateBackupSelection Source #
See: newCreateBackupSelection
smart constructor.
CreateBackupSelection' | |
|
Instances
newCreateBackupSelection Source #
Create a value of CreateBackupSelection
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:creatorRequestId:CreateBackupSelection'
, createBackupSelection_creatorRequestId
- A unique string that identifies the request and allows failed requests
to be retried without the risk of running the operation twice.
$sel:backupPlanId:CreateBackupSelection'
, createBackupSelection_backupPlanId
- Uniquely identifies the backup plan to be associated with the selection
of resources.
$sel:backupSelection:CreateBackupSelection'
, createBackupSelection_backupSelection
- Specifies the body of a request to assign a set of resources to a backup
plan.
Request Lenses
createBackupSelection_creatorRequestId :: Lens' CreateBackupSelection (Maybe Text) Source #
A unique string that identifies the request and allows failed requests to be retried without the risk of running the operation twice.
createBackupSelection_backupPlanId :: Lens' CreateBackupSelection Text Source #
Uniquely identifies the backup plan to be associated with the selection of resources.
createBackupSelection_backupSelection :: Lens' CreateBackupSelection BackupSelection Source #
Specifies the body of a request to assign a set of resources to a backup plan.
Destructuring the Response
data CreateBackupSelectionResponse Source #
See: newCreateBackupSelectionResponse
smart constructor.
CreateBackupSelectionResponse' | |
|
Instances
newCreateBackupSelectionResponse Source #
Create a value of CreateBackupSelectionResponse
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:selectionId:CreateBackupSelectionResponse'
, createBackupSelectionResponse_selectionId
- Uniquely identifies the body of a request to assign a set of resources
to a backup plan.
$sel:backupPlanId:CreateBackupSelection'
, createBackupSelectionResponse_backupPlanId
- Uniquely identifies a backup plan.
$sel:creationDate:CreateBackupSelectionResponse'
, createBackupSelectionResponse_creationDate
- The date and time a backup selection is created, in Unix format and
Coordinated Universal Time (UTC). The value of CreationDate
is
accurate to milliseconds. For example, the value 1516925490.087
represents Friday, January 26, 2018 12:11:30.087 AM.
$sel:httpStatus:CreateBackupSelectionResponse'
, createBackupSelectionResponse_httpStatus
- The response's http status code.
Response Lenses
createBackupSelectionResponse_selectionId :: Lens' CreateBackupSelectionResponse (Maybe Text) Source #
Uniquely identifies the body of a request to assign a set of resources to a backup plan.
createBackupSelectionResponse_backupPlanId :: Lens' CreateBackupSelectionResponse (Maybe Text) Source #
Uniquely identifies a backup plan.
createBackupSelectionResponse_creationDate :: Lens' CreateBackupSelectionResponse (Maybe UTCTime) Source #
The date and time a backup selection is created, in Unix format and
Coordinated Universal Time (UTC). The value of CreationDate
is
accurate to milliseconds. For example, the value 1516925490.087
represents Friday, January 26, 2018 12:11:30.087 AM.
createBackupSelectionResponse_httpStatus :: Lens' CreateBackupSelectionResponse Int Source #
The response's http status code.