Deletes automated backups using the DbClusterResourceId value of the source DB cluster or the Amazon Resource Name (ARN) of the automated backups.
Parameters:
-
db_cluster_resource_id
(Optional[String], default:
None
)
–
The identifier for the source DB cluster, which can't be changed and which is unique to an Amazon Web Services Region.
Raises:
Source code in docs_src/capo_rds/_services/rds.py
| def delete_db_cluster_automated_backup(
self,
*,
config_overrides: Optional[RDSClientConfig] = None,
db_cluster_resource_id: Optional["capo_rds.types.string.String"] = None,
) -> "capo_rds.types.delete_db_cluster_automated_backup_result.DeleteDBClusterAutomatedBackupResult":
"""<p>Deletes automated backups using the <code>DbClusterResourceId</code> value of the source DB cluster or the Amazon Resource Name (ARN) of the automated backups.</p>
Args:
db_cluster_resource_id: <p>The identifier for the source DB cluster, which can't be changed and which is unique to an Amazon Web Services Region.</p>
Raises:
capo_rds.errors.db_cluster_automated_backup_not_found_fault.DBClusterAutomatedBackupNotFoundFault: <p>No automated backup for this DB cluster was found.</p>
capo_rds.errors.invalid_db_cluster_automated_backup_state_fault.InvalidDBClusterAutomatedBackupStateFault: <p>The automated backup is in an invalid state. For example, this automated backup is associated with an active cluster.</p>
capo_rds.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_rds.types.delete_db_cluster_automated_backup_message.DeleteDBClusterAutomatedBackupMessage]",
) -> OperationResponse[
"capo_rds.types.delete_db_cluster_automated_backup_result.DeleteDBClusterAutomatedBackupResult"
]:
import capo_rds._operations.amazon_rd_sv19.delete_db_cluster_automated_backup
output, http_response = (
capo_rds._operations.amazon_rd_sv19.delete_db_cluster_automated_backup.delete_db_cluster_automated_backup(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteDBClusterAutomatedBackup")
)
input_: capo_rds.types.delete_db_cluster_automated_backup_message.DeleteDBClusterAutomatedBackupMessage = {}
if db_cluster_resource_id is not None:
input_["db_cluster_resource_id"] = db_cluster_resource_id
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|