/** * @throws \Aws\S3\Exception\BucketAlreadyOwnedByYouException * @throws \Aws\S3\Exception\OperationAbortedException */ protected function _createBucket() { $options = array('Bucket' => $this->_bucket); $region = $this->_client->getRegion(); if ($region != 'us-east-1') { $options['LocationConstraint'] = $region; } $this->_client->createBucket($options); }