| 132 | } |
| 133 | |
| 134 | bool S3WrapperBase::deleteObject(const std::string& bucket, const std::string& object_key, const std::string& version) { |
| 135 | Aws::S3::Model::DeleteObjectRequest request; |
| 136 | request.SetBucket(bucket); |
| 137 | request.SetKey(object_key); |
| 138 | if (!version.empty()) { |
| 139 | request.SetVersionId(version); |
| 140 | } |
| 141 | return sendDeleteObjectRequest(request); |
| 142 | } |
| 143 | |
| 144 | int64_t S3WrapperBase::writeFetchedBody(Aws::IOStream& source, const int64_t data_size, const std::shared_ptr<io::BaseStream>& output) { |
| 145 | static const uint64_t BUFFER_SIZE = 4096; |