Copyright | (c) 2013-2016 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 |
The CopySnapshot action makes a copy of an existing snapshot.
Users or groups that have permissions to use the CopySnapshot API can create their own Amazon S3 buckets and copy snapshots to it. To control access to your snapshots, use an IAM policy to control who has the ability to use the CopySnapshot API. For more information about using IAM to control the use of ElastiCache APIs, see Exporting Snapshots and Authentication & Access Control.
Erorr Message:
Error Message: The authenticated user does not have sufficient permissions to perform the desired activity.
Solution: Contact your system administrator to get the needed permissions.
- copySnapshot :: Text -> Text -> CopySnapshot
- data CopySnapshot
- csTargetBucket :: Lens' CopySnapshot (Maybe Text)
- csSourceSnapshotName :: Lens' CopySnapshot Text
- csTargetSnapshotName :: Lens' CopySnapshot Text
- copySnapshotResponse :: Int -> CopySnapshotResponse
- data CopySnapshotResponse
- csrsSnapshot :: Lens' CopySnapshotResponse (Maybe Snapshot)
- csrsResponseStatus :: Lens' CopySnapshotResponse Int
Creating a Request
Creates a value of CopySnapshot
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CopySnapshot Source #
Represents the input of a CopySnapshotMessage action.
See: copySnapshot
smart constructor.
Request Lenses
csTargetBucket :: Lens' CopySnapshot (Maybe Text) Source #
The Amazon S3 bucket to which the snapshot will be exported. This parameter is used only when exporting a snapshot for external access.
When using this parameter to export a snapshot, be sure Amazon ElastiCache has the needed permissions to this S3 bucket. For more information, see Step 2: Grant ElastiCache Access to Your Amazon S3 Bucket in the Amazon ElastiCache User Guide.
Error Messages:
You could receive one of the following error messages.
Erorr Messages
Error Message: ElastiCache has not been granted READ permissions %s on the S3 Bucket.
Solution: Add List and Read permissions on the bucket.
Error Message: ElastiCache has not been granted WRITE permissions %s on the S3 Bucket.
Solution: Add Upload/Delete permissions on the bucket.
Error Message: ElastiCache has not been granted READ_ACP permissions %s on the S3 Bucket.
Solution: Add View Permissions permissions on the bucket.
Error Message: The S3 bucket %s is outside of the region.
Solution: Before exporting your snapshot, create a new Amazon S3 bucket in the same region as your snapshot. For more information, see Step 1: Create an Amazon S3 Bucket.
Error Message: The S3 bucket %s does not exist.
Solution: Create an Amazon S3 bucket in the same region as your snapshot. For more information, see Step 1: Create an Amazon S3 Bucket.
Error Message: The S3 bucket %s is not owned by the authenticated user.
Solution: Create an Amazon S3 bucket in the same region as your snapshot. For more information, see Step 1: Create an Amazon S3 Bucket.
Error Message: The authenticated user does not have sufficient permissions to perform the desired activity.
Solution: Contact your system administrator to get the needed permissions.
For more information, see Exporting a Snapshot in the Amazon ElastiCache User Guide.
csSourceSnapshotName :: Lens' CopySnapshot Text Source #
The name of an existing snapshot from which to make a copy.
csTargetSnapshotName :: Lens' CopySnapshot Text Source #
A name for the snapshot copy. ElastiCache does not permit overwriting a snapshot, therefore this name must be unique within its context - ElastiCache or an Amazon S3 bucket if exporting.
Error Message
Error Message: The S3 bucket %s already contains an object with key %s.
Solution: Give the TargetSnapshotName a new and unique value. If exporting a snapshot, you could alternatively create a new Amazon S3 bucket and use this same value for TargetSnapshotName.
Destructuring the Response
Creates a value of CopySnapshotResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CopySnapshotResponse Source #
See: copySnapshotResponse
smart constructor.
Response Lenses
csrsSnapshot :: Lens' CopySnapshotResponse (Maybe Snapshot) Source #
Undocumented member.
csrsResponseStatus :: Lens' CopySnapshotResponse Int Source #
The response status code.