Smaws_Client_DocDB.RestoreDBClusterFromSnapshotCreates a new cluster from a snapshot or cluster snapshot.
If a snapshot is specified, the target cluster is created from the source DB snapshot with a default configuration and default security group.
If a cluster snapshot is specified, the target cluster is created from the source cluster restore point with the same configuration as the original source DB cluster, except that the new cluster is created with the default security group.
val error_to_string :
[ Smaws_Lib.Protocols.AwsQuery.error
| `DBClusterAlreadyExistsFault of Types.db_cluster_already_exists_fault
| `DBClusterQuotaExceededFault of Types.db_cluster_quota_exceeded_fault
| `DBClusterSnapshotNotFoundFault of
Types.db_cluster_snapshot_not_found_fault
| `DBSnapshotNotFoundFault of Types.db_snapshot_not_found_fault
| `DBSubnetGroupNotFoundFault of Types.db_subnet_group_not_found_fault
| `InsufficientDBClusterCapacityFault of
Types.insufficient_db_cluster_capacity_fault
| `InsufficientStorageClusterCapacityFault of
Types.insufficient_storage_cluster_capacity_fault
| `InvalidDBClusterSnapshotStateFault of
Types.invalid_db_cluster_snapshot_state_fault
| `InvalidDBSnapshotStateFault of Types.invalid_db_snapshot_state_fault
| `InvalidRestoreFault of Types.invalid_restore_fault
| `InvalidSubnet of Types.invalid_subnet
| `InvalidVPCNetworkStateFault of Types.invalid_vpc_network_state_fault
| `KMSKeyNotAccessibleFault of Types.kms_key_not_accessible_fault
| `NetworkTypeNotSupported of Types.network_type_not_supported
| `StorageQuotaExceededFault of Types.storage_quota_exceeded_fault ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.restore_db_cluster_from_snapshot_message ->
(Types.restore_db_cluster_from_snapshot_result,
[> Smaws_Lib.Protocols.AwsQuery.error
| `DBClusterAlreadyExistsFault of Types.db_cluster_already_exists_fault
| `DBClusterQuotaExceededFault of Types.db_cluster_quota_exceeded_fault
| `DBClusterSnapshotNotFoundFault of
Types.db_cluster_snapshot_not_found_fault
| `DBSnapshotNotFoundFault of Types.db_snapshot_not_found_fault
| `DBSubnetGroupNotFoundFault of Types.db_subnet_group_not_found_fault
| `InsufficientDBClusterCapacityFault of
Types.insufficient_db_cluster_capacity_fault
| `InsufficientStorageClusterCapacityFault of
Types.insufficient_storage_cluster_capacity_fault
| `InvalidDBClusterSnapshotStateFault of
Types.invalid_db_cluster_snapshot_state_fault
| `InvalidDBSnapshotStateFault of Types.invalid_db_snapshot_state_fault
| `InvalidRestoreFault of Types.invalid_restore_fault
| `InvalidSubnet of Types.invalid_subnet
| `InvalidVPCNetworkStateFault of Types.invalid_vpc_network_state_fault
| `KMSKeyNotAccessibleFault of Types.kms_key_not_accessible_fault
| `NetworkTypeNotSupported of Types.network_type_not_supported
| `StorageQuotaExceededFault of Types.storage_quota_exceeded_fault ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.restore_db_cluster_from_snapshot_message ->
(Types.restore_db_cluster_from_snapshot_result Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsQuery.error
| `DBClusterAlreadyExistsFault of Types.db_cluster_already_exists_fault
| `DBClusterQuotaExceededFault of Types.db_cluster_quota_exceeded_fault
| `DBClusterSnapshotNotFoundFault of
Types.db_cluster_snapshot_not_found_fault
| `DBSnapshotNotFoundFault of Types.db_snapshot_not_found_fault
| `DBSubnetGroupNotFoundFault of Types.db_subnet_group_not_found_fault
| `InsufficientDBClusterCapacityFault of
Types.insufficient_db_cluster_capacity_fault
| `InsufficientStorageClusterCapacityFault of
Types.insufficient_storage_cluster_capacity_fault
| `InvalidDBClusterSnapshotStateFault of
Types.invalid_db_cluster_snapshot_state_fault
| `InvalidDBSnapshotStateFault of Types.invalid_db_snapshot_state_fault
| `InvalidRestoreFault of Types.invalid_restore_fault
| `InvalidSubnet of Types.invalid_subnet
| `InvalidVPCNetworkStateFault of Types.invalid_vpc_network_state_fault
| `KMSKeyNotAccessibleFault of Types.kms_key_not_accessible_fault
| `NetworkTypeNotSupported of Types.network_type_not_supported
| `StorageQuotaExceededFault of Types.storage_quota_exceeded_fault ]
* Smaws_Lib.Response.metadata)
Stdlib.result