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.Redshift.BatchModifyClusterSnapshots
Description
Modifies the settings for a set of cluster snapshots.
Synopsis
- data BatchModifyClusterSnapshots = BatchModifyClusterSnapshots' {}
- newBatchModifyClusterSnapshots :: BatchModifyClusterSnapshots
- batchModifyClusterSnapshots_force :: Lens' BatchModifyClusterSnapshots (Maybe Bool)
- batchModifyClusterSnapshots_manualSnapshotRetentionPeriod :: Lens' BatchModifyClusterSnapshots (Maybe Int)
- batchModifyClusterSnapshots_snapshotIdentifierList :: Lens' BatchModifyClusterSnapshots [Text]
- data BatchModifyClusterSnapshotsResponse = BatchModifyClusterSnapshotsResponse' {
- errors :: Maybe [SnapshotErrorMessage]
- resources :: Maybe [Text]
- httpStatus :: Int
- newBatchModifyClusterSnapshotsResponse :: Int -> BatchModifyClusterSnapshotsResponse
- batchModifyClusterSnapshotsResponse_errors :: Lens' BatchModifyClusterSnapshotsResponse (Maybe [SnapshotErrorMessage])
- batchModifyClusterSnapshotsResponse_resources :: Lens' BatchModifyClusterSnapshotsResponse (Maybe [Text])
- batchModifyClusterSnapshotsResponse_httpStatus :: Lens' BatchModifyClusterSnapshotsResponse Int
Creating a Request
data BatchModifyClusterSnapshots Source #
See: newBatchModifyClusterSnapshots
smart constructor.
Constructors
BatchModifyClusterSnapshots' | |
Fields
|
Instances
newBatchModifyClusterSnapshots :: BatchModifyClusterSnapshots Source #
Create a value of BatchModifyClusterSnapshots
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:force:BatchModifyClusterSnapshots'
, batchModifyClusterSnapshots_force
- A boolean value indicating whether to override an exception if the
retention period has passed.
BatchModifyClusterSnapshots
, batchModifyClusterSnapshots_manualSnapshotRetentionPeriod
- The number of days that a manual snapshot is retained. If you specify
the value -1, the manual snapshot is retained indefinitely.
The number must be either -1 or an integer between 1 and 3,653.
If you decrease the manual snapshot retention period from its current value, existing manual snapshots that fall outside of the new retention period will return an error. If you want to suppress the errors and delete the snapshots, use the force option.
$sel:snapshotIdentifierList:BatchModifyClusterSnapshots'
, batchModifyClusterSnapshots_snapshotIdentifierList
- A list of snapshot identifiers you want to modify.
Request Lenses
batchModifyClusterSnapshots_force :: Lens' BatchModifyClusterSnapshots (Maybe Bool) Source #
A boolean value indicating whether to override an exception if the retention period has passed.
batchModifyClusterSnapshots_manualSnapshotRetentionPeriod :: Lens' BatchModifyClusterSnapshots (Maybe Int) Source #
The number of days that a manual snapshot is retained. If you specify the value -1, the manual snapshot is retained indefinitely.
The number must be either -1 or an integer between 1 and 3,653.
If you decrease the manual snapshot retention period from its current value, existing manual snapshots that fall outside of the new retention period will return an error. If you want to suppress the errors and delete the snapshots, use the force option.
batchModifyClusterSnapshots_snapshotIdentifierList :: Lens' BatchModifyClusterSnapshots [Text] Source #
A list of snapshot identifiers you want to modify.
Destructuring the Response
data BatchModifyClusterSnapshotsResponse Source #
See: newBatchModifyClusterSnapshotsResponse
smart constructor.
Constructors
BatchModifyClusterSnapshotsResponse' | |
Fields
|
Instances
newBatchModifyClusterSnapshotsResponse Source #
Arguments
:: Int | |
-> BatchModifyClusterSnapshotsResponse |
Create a value of BatchModifyClusterSnapshotsResponse
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:errors:BatchModifyClusterSnapshotsResponse'
, batchModifyClusterSnapshotsResponse_errors
- A list of any errors returned.
$sel:resources:BatchModifyClusterSnapshotsResponse'
, batchModifyClusterSnapshotsResponse_resources
- A list of the snapshots that were modified.
$sel:httpStatus:BatchModifyClusterSnapshotsResponse'
, batchModifyClusterSnapshotsResponse_httpStatus
- The response's http status code.
Response Lenses
batchModifyClusterSnapshotsResponse_errors :: Lens' BatchModifyClusterSnapshotsResponse (Maybe [SnapshotErrorMessage]) Source #
A list of any errors returned.
batchModifyClusterSnapshotsResponse_resources :: Lens' BatchModifyClusterSnapshotsResponse (Maybe [Text]) Source #
A list of the snapshots that were modified.
batchModifyClusterSnapshotsResponse_httpStatus :: Lens' BatchModifyClusterSnapshotsResponse Int Source #
The response's http status code.