Smaws_Client_Neptune.DeleteDBInstanceThe DeleteDBInstance action deletes a previously provisioned DB instance. When you delete a DB instance, all automated backups for that instance are deleted and can't be recovered. Manual DB snapshots of the DB instance to be deleted by DeleteDBInstance are not deleted.
If you request a final DB snapshot the status of the Amazon Neptune DB instance is deleting until the DB snapshot is created. The API action DescribeDBInstance is used to monitor the status of this operation. The action can't be canceled or reverted once submitted.
Note that when a DB instance is in a failure state and has a status of failed, incompatible-restore, or incompatible-network, you can only delete it when the SkipFinalSnapshot parameter is set to true.
You can't delete a DB instance if it is the only instance in the DB cluster, or if it has deletion protection enabled.
val error_to_string :
[ Smaws_Lib.Protocols.AwsQuery.error
| `DBInstanceNotFoundFault of Types.db_instance_not_found_fault
| `DBSnapshotAlreadyExistsFault of Types.db_snapshot_already_exists_fault
| `InvalidDBClusterStateFault of Types.invalid_db_cluster_state_fault
| `InvalidDBInstanceStateFault of Types.invalid_db_instance_state_fault
| `SnapshotQuotaExceededFault of Types.snapshot_quota_exceeded_fault ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.delete_db_instance_message ->
(Types.delete_db_instance_result,
[> Smaws_Lib.Protocols.AwsQuery.error
| `DBInstanceNotFoundFault of Types.db_instance_not_found_fault
| `DBSnapshotAlreadyExistsFault of Types.db_snapshot_already_exists_fault
| `InvalidDBClusterStateFault of Types.invalid_db_cluster_state_fault
| `InvalidDBInstanceStateFault of Types.invalid_db_instance_state_fault
| `SnapshotQuotaExceededFault of Types.snapshot_quota_exceeded_fault ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.delete_db_instance_message ->
(Types.delete_db_instance_result Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsQuery.error
| `DBInstanceNotFoundFault of Types.db_instance_not_found_fault
| `DBSnapshotAlreadyExistsFault of Types.db_snapshot_already_exists_fault
| `InvalidDBClusterStateFault of Types.invalid_db_cluster_state_fault
| `InvalidDBInstanceStateFault of Types.invalid_db_instance_state_fault
| `SnapshotQuotaExceededFault of Types.snapshot_quota_exceeded_fault ]
* Smaws_Lib.Response.metadata)
Stdlib.result