Amazon.OpsWorksCM.AmazonOpsWorksCMClient.DeleteBackup C# (CSharp) Method

DeleteBackup() public method

Deletes a backup. You can delete both manual and automated backups.

This operation is asynchronous.

A InvalidStateException is thrown then a backup is already deleting. A ResourceNotFoundException is thrown when the backup does not exist. A ValidationException is thrown when parameters of the request are not valid.

/// The resource is in a state that does not allow you to perform a specified action. /// /// The requested resource does not exist, or access was denied. /// /// One or more of the provided request parameters are not valid. ///
public DeleteBackup ( DeleteBackupRequest request ) : DeleteBackupResponse
request Amazon.OpsWorksCM.Model.DeleteBackupRequest Container for the necessary parameters to execute the DeleteBackup service method.
return DeleteBackupResponse
        public DeleteBackupResponse DeleteBackup(DeleteBackupRequest request)
        {
            var marshaller = new DeleteBackupRequestMarshaller();
            var unmarshaller = DeleteBackupResponseUnmarshaller.Instance;

            return Invoke<DeleteBackupRequest,DeleteBackupResponse>(request, marshaller, unmarshaller);
        }