| 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 |
Network.AWS.Redshift.EnableSnapshotCopy
Description
Enables the automatic copy of snapshots from one region to another region for a specified cluster.
See: AWS API Reference for EnableSnapshotCopy.
- enableSnapshotCopy :: Text -> Text -> EnableSnapshotCopy
- data EnableSnapshotCopy
- escRetentionPeriod :: Lens' EnableSnapshotCopy (Maybe Int)
- escSnapshotCopyGrantName :: Lens' EnableSnapshotCopy (Maybe Text)
- escClusterIdentifier :: Lens' EnableSnapshotCopy Text
- escDestinationRegion :: Lens' EnableSnapshotCopy Text
- enableSnapshotCopyResponse :: Int -> EnableSnapshotCopyResponse
- data EnableSnapshotCopyResponse
- escrsCluster :: Lens' EnableSnapshotCopyResponse (Maybe Cluster)
- escrsResponseStatus :: Lens' EnableSnapshotCopyResponse Int
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> EnableSnapshotCopy |
Creates a value of EnableSnapshotCopy with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data EnableSnapshotCopy Source
See: enableSnapshotCopy smart constructor.
Instances
Request Lenses
escRetentionPeriod :: Lens' EnableSnapshotCopy (Maybe Int) Source
The number of days to retain automated snapshots in the destination region after they are copied from the source region.
Default: 7.
Constraints: Must be at least 1 and no more than 35.
escSnapshotCopyGrantName :: Lens' EnableSnapshotCopy (Maybe Text) Source
The name of the snapshot copy grant to use when snapshots of an AWS KMS-encrypted cluster are copied to the destination region.
escClusterIdentifier :: Lens' EnableSnapshotCopy Text Source
The unique identifier of the source cluster to copy snapshots from.
Constraints: Must be the valid name of an existing cluster that does not already have cross-region snapshot copy enabled.
escDestinationRegion :: Lens' EnableSnapshotCopy Text Source
The destination region that you want to copy snapshots to.
Constraints: Must be the name of a valid region. For more information, see Regions and Endpoints in the Amazon Web Services General Reference.
Destructuring the Response
enableSnapshotCopyResponse Source
Arguments
| :: Int | |
| -> EnableSnapshotCopyResponse |
Creates a value of EnableSnapshotCopyResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data EnableSnapshotCopyResponse Source
See: enableSnapshotCopyResponse smart constructor.
Response Lenses
escrsCluster :: Lens' EnableSnapshotCopyResponse (Maybe Cluster) Source
Undocumented member.
escrsResponseStatus :: Lens' EnableSnapshotCopyResponse Int Source
The response status code.