config = $config; } /** * Create and return a configured S3Client instance. * * @since 0.3.0 * * @return \Aws\S3\S3Client The configured S3 client. */ public function create(): \Aws\S3\S3Client { return new \Aws\S3\S3Client( array( 'version' => 'latest', 'region' => $this->config->get_region(), 'endpoint' => $this->config->get_host(), 'use_path_style_endpoint' => true, 'credentials' => array( 'key' => $this->config->get_key(), 'secret' => $this->config->get_secret(), ), ) ); } }