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 |
Updates an existing backup plan identified by its backupPlanId
with
the input document in JSON format. The new version is uniquely
identified by a VersionId
.
Synopsis
- data UpdateBackupPlan = UpdateBackupPlan' {}
- newUpdateBackupPlan :: Text -> BackupPlanInput -> UpdateBackupPlan
- updateBackupPlan_backupPlanId :: Lens' UpdateBackupPlan Text
- updateBackupPlan_backupPlan :: Lens' UpdateBackupPlan BackupPlanInput
- data UpdateBackupPlanResponse = UpdateBackupPlanResponse' {}
- newUpdateBackupPlanResponse :: Int -> UpdateBackupPlanResponse
- updateBackupPlanResponse_versionId :: Lens' UpdateBackupPlanResponse (Maybe Text)
- updateBackupPlanResponse_advancedBackupSettings :: Lens' UpdateBackupPlanResponse (Maybe [AdvancedBackupSetting])
- updateBackupPlanResponse_backupPlanId :: Lens' UpdateBackupPlanResponse (Maybe Text)
- updateBackupPlanResponse_backupPlanArn :: Lens' UpdateBackupPlanResponse (Maybe Text)
- updateBackupPlanResponse_creationDate :: Lens' UpdateBackupPlanResponse (Maybe UTCTime)
- updateBackupPlanResponse_httpStatus :: Lens' UpdateBackupPlanResponse Int
Creating a Request
data UpdateBackupPlan Source #
See: newUpdateBackupPlan
smart constructor.
UpdateBackupPlan' | |
|
Instances
:: Text | |
-> BackupPlanInput | |
-> UpdateBackupPlan |
Create a value of UpdateBackupPlan
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:UpdateBackupPlan'
, updateBackupPlan_backupPlanId
- Uniquely identifies a backup plan.
$sel:backupPlan:UpdateBackupPlan'
, updateBackupPlan_backupPlan
- Specifies the body of a backup plan. Includes a BackupPlanName
and one
or more sets of Rules
.
Request Lenses
updateBackupPlan_backupPlanId :: Lens' UpdateBackupPlan Text Source #
Uniquely identifies a backup plan.
updateBackupPlan_backupPlan :: Lens' UpdateBackupPlan BackupPlanInput Source #
Specifies the body of a backup plan. Includes a BackupPlanName
and one
or more sets of Rules
.
Destructuring the Response
data UpdateBackupPlanResponse Source #
See: newUpdateBackupPlanResponse
smart constructor.
UpdateBackupPlanResponse' | |
|
Instances
newUpdateBackupPlanResponse Source #
Create a value of UpdateBackupPlanResponse
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:versionId:UpdateBackupPlanResponse'
, updateBackupPlanResponse_versionId
- Unique, randomly generated, Unicode, UTF-8 encoded strings that are at
most 1,024 bytes long. Version Ids cannot be edited.
$sel:advancedBackupSettings:UpdateBackupPlanResponse'
, updateBackupPlanResponse_advancedBackupSettings
- Contains a list of BackupOptions
for each resource type.
$sel:backupPlanId:UpdateBackupPlan'
, updateBackupPlanResponse_backupPlanId
- Uniquely identifies a backup plan.
$sel:backupPlanArn:UpdateBackupPlanResponse'
, updateBackupPlanResponse_backupPlanArn
- An Amazon Resource Name (ARN) that uniquely identifies a backup plan;
for example,
arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50
.
$sel:creationDate:UpdateBackupPlanResponse'
, updateBackupPlanResponse_creationDate
- The date and time a backup plan 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:UpdateBackupPlanResponse'
, updateBackupPlanResponse_httpStatus
- The response's http status code.
Response Lenses
updateBackupPlanResponse_versionId :: Lens' UpdateBackupPlanResponse (Maybe Text) Source #
Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. Version Ids cannot be edited.
updateBackupPlanResponse_advancedBackupSettings :: Lens' UpdateBackupPlanResponse (Maybe [AdvancedBackupSetting]) Source #
Contains a list of BackupOptions
for each resource type.
updateBackupPlanResponse_backupPlanId :: Lens' UpdateBackupPlanResponse (Maybe Text) Source #
Uniquely identifies a backup plan.
updateBackupPlanResponse_backupPlanArn :: Lens' UpdateBackupPlanResponse (Maybe Text) Source #
An Amazon Resource Name (ARN) that uniquely identifies a backup plan;
for example,
arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50
.
updateBackupPlanResponse_creationDate :: Lens' UpdateBackupPlanResponse (Maybe UTCTime) Source #
The date and time a backup plan 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.
updateBackupPlanResponse_httpStatus :: Lens' UpdateBackupPlanResponse Int Source #
The response's http status code.