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 |
Modifies the settings for a snapshot.
This exanmple modifies the manual retention period setting for a cluster snapshot.
Synopsis
- data ModifyClusterSnapshot = ModifyClusterSnapshot' {}
- newModifyClusterSnapshot :: Text -> ModifyClusterSnapshot
- modifyClusterSnapshot_manualSnapshotRetentionPeriod :: Lens' ModifyClusterSnapshot (Maybe Int)
- modifyClusterSnapshot_force :: Lens' ModifyClusterSnapshot (Maybe Bool)
- modifyClusterSnapshot_snapshotIdentifier :: Lens' ModifyClusterSnapshot Text
- data ModifyClusterSnapshotResponse = ModifyClusterSnapshotResponse' {
- snapshot :: Maybe Snapshot
- httpStatus :: Int
- newModifyClusterSnapshotResponse :: Int -> ModifyClusterSnapshotResponse
- modifyClusterSnapshotResponse_snapshot :: Lens' ModifyClusterSnapshotResponse (Maybe Snapshot)
- modifyClusterSnapshotResponse_httpStatus :: Lens' ModifyClusterSnapshotResponse Int
Creating a Request
data ModifyClusterSnapshot Source #
See: newModifyClusterSnapshot
smart constructor.
ModifyClusterSnapshot' | |
|
Instances
newModifyClusterSnapshot Source #
Create a value of ModifyClusterSnapshot
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:manualSnapshotRetentionPeriod:ModifyClusterSnapshot'
, modifyClusterSnapshot_manualSnapshotRetentionPeriod
- The number of days that a manual snapshot is retained. If the value is
-1, the manual snapshot is retained indefinitely.
If the manual snapshot falls outside of the new retention period, you can specify the force option to immediately delete the snapshot.
The value must be either -1 or an integer between 1 and 3,653.
$sel:force:ModifyClusterSnapshot'
, modifyClusterSnapshot_force
- A Boolean option to override an exception if the retention period has
already passed.
$sel:snapshotIdentifier:ModifyClusterSnapshot'
, modifyClusterSnapshot_snapshotIdentifier
- The identifier of the snapshot whose setting you want to modify.
Request Lenses
modifyClusterSnapshot_manualSnapshotRetentionPeriod :: Lens' ModifyClusterSnapshot (Maybe Int) Source #
The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely.
If the manual snapshot falls outside of the new retention period, you can specify the force option to immediately delete the snapshot.
The value must be either -1 or an integer between 1 and 3,653.
modifyClusterSnapshot_force :: Lens' ModifyClusterSnapshot (Maybe Bool) Source #
A Boolean option to override an exception if the retention period has already passed.
modifyClusterSnapshot_snapshotIdentifier :: Lens' ModifyClusterSnapshot Text Source #
The identifier of the snapshot whose setting you want to modify.
Destructuring the Response
data ModifyClusterSnapshotResponse Source #
See: newModifyClusterSnapshotResponse
smart constructor.
ModifyClusterSnapshotResponse' | |
|
Instances
newModifyClusterSnapshotResponse Source #
Create a value of ModifyClusterSnapshotResponse
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:snapshot:ModifyClusterSnapshotResponse'
, modifyClusterSnapshotResponse_snapshot
- Undocumented member.
$sel:httpStatus:ModifyClusterSnapshotResponse'
, modifyClusterSnapshotResponse_httpStatus
- The response's http status code.
Response Lenses
modifyClusterSnapshotResponse_snapshot :: Lens' ModifyClusterSnapshotResponse (Maybe Snapshot) Source #
Undocumented member.
modifyClusterSnapshotResponse_httpStatus :: Lens' ModifyClusterSnapshotResponse Int Source #
The response's http status code.