Scalr\Service\Aws\Rds\V20141031\RdsApi::deleteDBClusterSnapshot PHP Метод

deleteDBClusterSnapshot() публичный Метод

Deletes a DB cluster snapshot. If the snapshot is being copied, the copy operation is terminated. The DB cluster snapshot must be in the available state to be deleted.
public deleteDBClusterSnapshot ( string $dbClusterSnapshotIdentifier ) : Scalr\Service\Aws\Rds\DataType\DBClusterSnapshotData
$dbClusterSnapshotIdentifier string The identifier of the DB cluster snapshot to delete.
Результат Scalr\Service\Aws\Rds\DataType\DBClusterSnapshotData Returns deleted DB Cluster Snapshot
    public function deleteDBClusterSnapshot($dbClusterSnapshotIdentifier)
    {
        $result = null;
        $options = ['DBClusterSnapshotIdentifier' => (string) $dbClusterSnapshotIdentifier];
        $response = $this->client->call(ucfirst(__FUNCTION__), $options);
        if ($response->getError() === false) {
            $sxml = simplexml_load_string($response->getRawContent());
            if (!$this->exist($sxml->DeleteDBClusterSnapshotResult)) {
                throw new RdsException(sprintf(self::UNEXPECTED, 'delete DBClusterSnapshot'));
            }
            $result = $this->_loadDBClusterSnapshotData($sxml->DeleteDBClusterSnapshotResult->DBClusterSnapshot);
        }
        return $result;
    }
RdsApi