Smaws_Client_ElastiCache.CreateSnapshotCreates a copy of an entire cluster or replication group at a specific moment in time.
This operation is valid for Valkey or Redis OSS only.
val error_to_string :
[ Smaws_Lib.Protocols.AwsQuery.error
| `CacheClusterNotFoundFault of Types.cache_cluster_not_found_fault
| `InvalidCacheClusterStateFault of Types.invalid_cache_cluster_state_fault
| `InvalidParameterCombinationException of
Types.invalid_parameter_combination_exception
| `InvalidParameterValueException of Types.invalid_parameter_value_exception
| `InvalidReplicationGroupStateFault of
Types.invalid_replication_group_state_fault
| `ReplicationGroupNotFoundFault of Types.replication_group_not_found_fault
| `SnapshotAlreadyExistsFault of Types.snapshot_already_exists_fault
| `SnapshotFeatureNotSupportedFault of
Types.snapshot_feature_not_supported_fault
| `SnapshotQuotaExceededFault of Types.snapshot_quota_exceeded_fault
| `TagQuotaPerResourceExceeded of Types.tag_quota_per_resource_exceeded ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.create_snapshot_message ->
(Types.create_snapshot_result,
[> Smaws_Lib.Protocols.AwsQuery.error
| `CacheClusterNotFoundFault of Types.cache_cluster_not_found_fault
| `InvalidCacheClusterStateFault of Types.invalid_cache_cluster_state_fault
| `InvalidParameterCombinationException of
Types.invalid_parameter_combination_exception
| `InvalidParameterValueException of
Types.invalid_parameter_value_exception
| `InvalidReplicationGroupStateFault of
Types.invalid_replication_group_state_fault
| `ReplicationGroupNotFoundFault of Types.replication_group_not_found_fault
| `SnapshotAlreadyExistsFault of Types.snapshot_already_exists_fault
| `SnapshotFeatureNotSupportedFault of
Types.snapshot_feature_not_supported_fault
| `SnapshotQuotaExceededFault of Types.snapshot_quota_exceeded_fault
| `TagQuotaPerResourceExceeded of Types.tag_quota_per_resource_exceeded ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.create_snapshot_message ->
(Types.create_snapshot_result Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsQuery.error
| `CacheClusterNotFoundFault of Types.cache_cluster_not_found_fault
| `InvalidCacheClusterStateFault of Types.invalid_cache_cluster_state_fault
| `InvalidParameterCombinationException of
Types.invalid_parameter_combination_exception
| `InvalidParameterValueException of
Types.invalid_parameter_value_exception
| `InvalidReplicationGroupStateFault of
Types.invalid_replication_group_state_fault
| `ReplicationGroupNotFoundFault of Types.replication_group_not_found_fault
| `SnapshotAlreadyExistsFault of Types.snapshot_already_exists_fault
| `SnapshotFeatureNotSupportedFault of
Types.snapshot_feature_not_supported_fault
| `SnapshotQuotaExceededFault of Types.snapshot_quota_exceeded_fault
| `TagQuotaPerResourceExceeded of Types.tag_quota_per_resource_exceeded ]
* Smaws_Lib.Response.metadata)
Stdlib.result