Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Modifies the number of days to retain automated snapshots in the destination region after they are copied from the source region.
See: AWS API Reference for ModifySnapshotCopyRetentionPeriod.
- modifySnapshotCopyRetentionPeriod :: Text -> Int -> ModifySnapshotCopyRetentionPeriod
- data ModifySnapshotCopyRetentionPeriod
- mscrpClusterIdentifier :: Lens' ModifySnapshotCopyRetentionPeriod Text
- mscrpRetentionPeriod :: Lens' ModifySnapshotCopyRetentionPeriod Int
- modifySnapshotCopyRetentionPeriodResponse :: Int -> ModifySnapshotCopyRetentionPeriodResponse
- data ModifySnapshotCopyRetentionPeriodResponse
- mscrprsCluster :: Lens' ModifySnapshotCopyRetentionPeriodResponse (Maybe Cluster)
- mscrprsResponseStatus :: Lens' ModifySnapshotCopyRetentionPeriodResponse Int
Creating a Request
modifySnapshotCopyRetentionPeriod Source
Creates a value of ModifySnapshotCopyRetentionPeriod
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ModifySnapshotCopyRetentionPeriod Source
See: modifySnapshotCopyRetentionPeriod
smart constructor.
Request Lenses
mscrpClusterIdentifier :: Lens' ModifySnapshotCopyRetentionPeriod Text Source
The unique identifier of the cluster for which you want to change the retention period for automated snapshots that are copied to a destination region.
Constraints: Must be the valid name of an existing cluster that has cross-region snapshot copy enabled.
mscrpRetentionPeriod :: Lens' ModifySnapshotCopyRetentionPeriod Int Source
The number of days to retain automated snapshots in the destination region after they are copied from the source region.
If you decrease the retention period for automated snapshots that are copied to a destination region, Amazon Redshift will delete any existing automated snapshots that were copied to the destination region and that fall outside of the new retention period.
Constraints: Must be at least 1 and no more than 35.
Destructuring the Response
modifySnapshotCopyRetentionPeriodResponse Source
Creates a value of ModifySnapshotCopyRetentionPeriodResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ModifySnapshotCopyRetentionPeriodResponse Source
See: modifySnapshotCopyRetentionPeriodResponse
smart constructor.
Response Lenses
mscrprsCluster :: Lens' ModifySnapshotCopyRetentionPeriodResponse (Maybe Cluster) Source
Undocumented member.
mscrprsResponseStatus :: Lens' ModifySnapshotCopyRetentionPeriodResponse Int Source
The response status code.