private function getClient()
{
if ($this->client === null) {
$params = ['key' => $this->params['key'], 'secret' => $this->params['secret']];
if ($this->params['region']) {
$params['region'] = $this->params['region'];
}
$this->client = S3Client::factory($params);
}
return $this->client;
}