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 |
Amazonka.Backup.CreateBackupSelection
Description
Creates a JSON document that specifies a set of resources to assign to a backup plan. For examples, see Assigning resources programmatically.
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' {
- backupPlanId :: Maybe Text
- creationDate :: Maybe POSIX
- selectionId :: Maybe Text
- httpStatus :: Int
- newCreateBackupSelectionResponse :: Int -> CreateBackupSelectionResponse
- createBackupSelectionResponse_backupPlanId :: Lens' CreateBackupSelectionResponse (Maybe Text)
- createBackupSelectionResponse_creationDate :: Lens' CreateBackupSelectionResponse (Maybe UTCTime)
- createBackupSelectionResponse_selectionId :: Lens' CreateBackupSelectionResponse (Maybe Text)
- createBackupSelectionResponse_httpStatus :: Lens' CreateBackupSelectionResponse Int
Creating a Request
data CreateBackupSelection Source #
See: newCreateBackupSelection
smart constructor.
Constructors
CreateBackupSelection' | |
Fields
|
Instances
newCreateBackupSelection Source #
Arguments
:: Text | |
-> BackupSelection | |
-> CreateBackupSelection |
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:
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. This
parameter is optional.
If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
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. This parameter is optional.
If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
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.
Constructors
CreateBackupSelectionResponse' | |
Fields
|
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:
CreateBackupSelection
, createBackupSelectionResponse_backupPlanId
- Uniquely identifies a backup plan.
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.
CreateBackupSelectionResponse
, createBackupSelectionResponse_selectionId
- Uniquely identifies the body of a request to assign a set of resources
to a backup plan.
$sel:httpStatus:CreateBackupSelectionResponse'
, createBackupSelectionResponse_httpStatus
- The response's http status code.
Response Lenses
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_selectionId :: Lens' CreateBackupSelectionResponse (Maybe Text) Source #
Uniquely identifies the body of a request to assign a set of resources to a backup plan.
createBackupSelectionResponse_httpStatus :: Lens' CreateBackupSelectionResponse Int Source #
The response's http status code.