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 |
Returns selection metadata and a document in JSON format that specifies a list of resources that are associated with a backup plan.
Synopsis
- data GetBackupSelection = GetBackupSelection' {
- backupPlanId :: Text
- selectionId :: Text
- newGetBackupSelection :: Text -> Text -> GetBackupSelection
- getBackupSelection_backupPlanId :: Lens' GetBackupSelection Text
- getBackupSelection_selectionId :: Lens' GetBackupSelection Text
- data GetBackupSelectionResponse = GetBackupSelectionResponse' {}
- newGetBackupSelectionResponse :: Int -> GetBackupSelectionResponse
- getBackupSelectionResponse_selectionId :: Lens' GetBackupSelectionResponse (Maybe Text)
- getBackupSelectionResponse_backupPlanId :: Lens' GetBackupSelectionResponse (Maybe Text)
- getBackupSelectionResponse_creatorRequestId :: Lens' GetBackupSelectionResponse (Maybe Text)
- getBackupSelectionResponse_creationDate :: Lens' GetBackupSelectionResponse (Maybe UTCTime)
- getBackupSelectionResponse_backupSelection :: Lens' GetBackupSelectionResponse (Maybe BackupSelection)
- getBackupSelectionResponse_httpStatus :: Lens' GetBackupSelectionResponse Int
Creating a Request
data GetBackupSelection Source #
See: newGetBackupSelection
smart constructor.
GetBackupSelection' | |
|
Instances
newGetBackupSelection Source #
:: Text | |
-> Text | |
-> GetBackupSelection |
Create a value of GetBackupSelection
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:backupPlanId:GetBackupSelection'
, getBackupSelection_backupPlanId
- Uniquely identifies a backup plan.
$sel:selectionId:GetBackupSelection'
, getBackupSelection_selectionId
- Uniquely identifies the body of a request to assign a set of resources
to a backup plan.
Request Lenses
getBackupSelection_backupPlanId :: Lens' GetBackupSelection Text Source #
Uniquely identifies a backup plan.
getBackupSelection_selectionId :: Lens' GetBackupSelection Text Source #
Uniquely identifies the body of a request to assign a set of resources to a backup plan.
Destructuring the Response
data GetBackupSelectionResponse Source #
See: newGetBackupSelectionResponse
smart constructor.
GetBackupSelectionResponse' | |
|
Instances
newGetBackupSelectionResponse Source #
Create a value of GetBackupSelectionResponse
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:GetBackupSelection'
, getBackupSelectionResponse_selectionId
- Uniquely identifies the body of a request to assign a set of resources
to a backup plan.
$sel:backupPlanId:GetBackupSelection'
, getBackupSelectionResponse_backupPlanId
- Uniquely identifies a backup plan.
$sel:creatorRequestId:GetBackupSelectionResponse'
, getBackupSelectionResponse_creatorRequestId
- A unique string that identifies the request and allows failed requests
to be retried without the risk of running the operation twice.
$sel:creationDate:GetBackupSelectionResponse'
, getBackupSelectionResponse_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:backupSelection:GetBackupSelectionResponse'
, getBackupSelectionResponse_backupSelection
- Specifies the body of a request to assign a set of resources to a backup
plan.
$sel:httpStatus:GetBackupSelectionResponse'
, getBackupSelectionResponse_httpStatus
- The response's http status code.
Response Lenses
getBackupSelectionResponse_selectionId :: Lens' GetBackupSelectionResponse (Maybe Text) Source #
Uniquely identifies the body of a request to assign a set of resources to a backup plan.
getBackupSelectionResponse_backupPlanId :: Lens' GetBackupSelectionResponse (Maybe Text) Source #
Uniquely identifies a backup plan.
getBackupSelectionResponse_creatorRequestId :: Lens' GetBackupSelectionResponse (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.
getBackupSelectionResponse_creationDate :: Lens' GetBackupSelectionResponse (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.
getBackupSelectionResponse_backupSelection :: Lens' GetBackupSelectionResponse (Maybe BackupSelection) Source #
Specifies the body of a request to assign a set of resources to a backup plan.
getBackupSelectionResponse_httpStatus :: Lens' GetBackupSelectionResponse Int Source #
The response's http status code.