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 |
Copies the specified automated cluster snapshot to a new manual cluster snapshot. The source must be an automated snapshot and it must be in the available state.
When you delete a cluster, Amazon Redshift deletes any automated snapshots of the cluster. Also, when the retention period of the snapshot expires, Amazon Redshift automatically deletes it. If you want to keep an automated snapshot for a longer period, you can make a manual copy of the snapshot. Manual snapshots are retained until you delete them.
For more information about working with snapshots, go to Amazon Redshift Snapshots in the Amazon Redshift Cluster Management Guide.
See: AWS API Reference for CopyClusterSnapshot.
- copyClusterSnapshot :: Text -> Text -> CopyClusterSnapshot
- data CopyClusterSnapshot
- ccsSourceSnapshotClusterIdentifier :: Lens' CopyClusterSnapshot (Maybe Text)
- ccsSourceSnapshotIdentifier :: Lens' CopyClusterSnapshot Text
- ccsTargetSnapshotIdentifier :: Lens' CopyClusterSnapshot Text
- copyClusterSnapshotResponse :: Int -> CopyClusterSnapshotResponse
- data CopyClusterSnapshotResponse
- ccsrsSnapshot :: Lens' CopyClusterSnapshotResponse (Maybe Snapshot)
- ccsrsResponseStatus :: Lens' CopyClusterSnapshotResponse Int
Creating a Request
Creates a value of CopyClusterSnapshot
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CopyClusterSnapshot Source
See: copyClusterSnapshot
smart constructor.
Request Lenses
ccsSourceSnapshotClusterIdentifier :: Lens' CopyClusterSnapshot (Maybe Text) Source
The identifier of the cluster the source snapshot was created from. This parameter is required if your IAM user has a policy containing a snapshot resource element that specifies anything other than * for the cluster name.
Constraints:
- Must be the identifier for a valid cluster.
ccsSourceSnapshotIdentifier :: Lens' CopyClusterSnapshot Text Source
The identifier for the source snapshot.
Constraints:
- Must be the identifier for a valid automated snapshot whose state is
available
.
ccsTargetSnapshotIdentifier :: Lens' CopyClusterSnapshot Text Source
The identifier given to the new manual snapshot.
Constraints:
- Cannot be null, empty, or blank.
- Must contain from 1 to 255 alphanumeric characters or hyphens.
- First character must be a letter.
- Cannot end with a hyphen or contain two consecutive hyphens.
- Must be unique for the AWS account that is making the request.
Destructuring the Response
copyClusterSnapshotResponse Source
Creates a value of CopyClusterSnapshotResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CopyClusterSnapshotResponse Source
See: copyClusterSnapshotResponse
smart constructor.
Response Lenses
ccsrsSnapshot :: Lens' CopyClusterSnapshotResponse (Maybe Snapshot) Source
Undocumented member.
ccsrsResponseStatus :: Lens' CopyClusterSnapshotResponse Int Source
The response status code.