public function copyDBClusterSnapshot($sourceDbClusterSnapshotIdentifier, $targetDbClusterSnapshotIdentifier, TagsList $tags = null)
{
$result = null;
$options = [];
if (count($tags) > 0) {
$options = $tags->getQueryArray();
}
if ($sourceDbClusterSnapshotIdentifier !== null) {
$options['SourceDBClusterSnapshotIdentifier'] = (string) $sourceDbClusterSnapshotIdentifier;
}
if ($targetDbClusterSnapshotIdentifier !== null) {
$options['TargetDBClusterSnapshotIdentifier'] = (string) $targetDbClusterSnapshotIdentifier;
}
$response = $this->client->call(ucfirst(__FUNCTION__), $options);
if ($response->getError() === false) {
$sxml = simplexml_load_string($response->getRawContent());
if (!$this->exist($sxml->CopyDBClusterSnapshotResult)) {
throw new RdsException(sprintf(self::UNEXPECTED, 'copy DBClusterSnapshot'));
}
$result = $this->_loadDBClusterSnapshotData($sxml->CopyDBClusterSnapshotResult->DBClusterSnapshot);
}
return $result;
}