public function createDBClusterSnapshot($dbClusterIdentifier, $dbClusterSnapshotIdentifier, TagsList $tags = null)
{
$result = null;
$options = [];
if (count($tags) > 0) {
$options = $tags->getQueryArray();
}
if ($dbClusterIdentifier !== null) {
$options['DBClusterIdentifier'] = (string) $dbClusterIdentifier;
}
if ($dbClusterSnapshotIdentifier !== 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->CreateDBClusterSnapshotResult)) {
throw new RdsException(sprintf(self::UNEXPECTED, 'create DBClusterSnapshot'));
}
$result = $this->_loadDBClusterSnapshotData($sxml->CreateDBClusterSnapshotResult->DBClusterSnapshot);
}
return $result;
}