public function getClient()
    {
        if ($this->_client === null) {
            try {
                $s3Client = new Aws\S3\S3Client(
                    [
                        'key' => $this->getKey(),
                        'secret' => $this->getSecret(),
                    ]
                );
            } catch (InvalidArgumentException $e) {
                throw new BuildException($e);
            }

            $this->_client = $s3Client;
        }

        return $this->_client;
    }