Module Smaws_Client_ElastiCache.CopySnapshot

Makes a copy of an existing snapshot.

This operation is valid for Valkey or Redis OSS only.

Users or groups that have permissions to use the CopySnapshot operation 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 operation. For more information about using IAM to control the use of ElastiCache operations, see Exporting Snapshots and Authentication & Access Control.

You could receive the following error messages.

Error Messages

val error_to_string : [ Smaws_Lib.Protocols.AwsQuery.error | `InvalidParameterCombinationException of Types.invalid_parameter_combination_exception | `InvalidParameterValueException of Types.invalid_parameter_value_exception | `InvalidSnapshotStateFault of Types.invalid_snapshot_state_fault | `SnapshotAlreadyExistsFault of Types.snapshot_already_exists_fault | `SnapshotNotFoundFault of Types.snapshot_not_found_fault | `SnapshotQuotaExceededFault of Types.snapshot_quota_exceeded_fault | `TagQuotaPerResourceExceeded of Types.tag_quota_per_resource_exceeded ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.copy_snapshot_message -> (Types.copy_snapshot_result, [> Smaws_Lib.Protocols.AwsQuery.error | `InvalidParameterCombinationException of Types.invalid_parameter_combination_exception | `InvalidParameterValueException of Types.invalid_parameter_value_exception | `InvalidSnapshotStateFault of Types.invalid_snapshot_state_fault | `SnapshotAlreadyExistsFault of Types.snapshot_already_exists_fault | `SnapshotNotFoundFault of Types.snapshot_not_found_fault | `SnapshotQuotaExceededFault of Types.snapshot_quota_exceeded_fault | `TagQuotaPerResourceExceeded of Types.tag_quota_per_resource_exceeded ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.copy_snapshot_message -> (Types.copy_snapshot_result Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsQuery.error | `InvalidParameterCombinationException of Types.invalid_parameter_combination_exception | `InvalidParameterValueException of Types.invalid_parameter_value_exception | `InvalidSnapshotStateFault of Types.invalid_snapshot_state_fault | `SnapshotAlreadyExistsFault of Types.snapshot_already_exists_fault | `SnapshotNotFoundFault of Types.snapshot_not_found_fault | `SnapshotQuotaExceededFault of Types.snapshot_quota_exceeded_fault | `TagQuotaPerResourceExceeded of Types.tag_quota_per_resource_exceeded ] * Smaws_Lib.Response.metadata) Stdlib.result