| 102 | } |
| 103 | |
| 104 | inline bool IsAlreadyExists(const Aws::Client::AWSError<Aws::S3::S3Errors>& error) { |
| 105 | const auto error_type = error.GetErrorType(); |
| 106 | return (error_type == Aws::S3::S3Errors::BUCKET_ALREADY_EXISTS || |
| 107 | error_type == Aws::S3::S3Errors::BUCKET_ALREADY_OWNED_BY_YOU); |
| 108 | } |
| 109 | |
| 110 | inline std::string S3ErrorToString(Aws::S3::S3Errors error_type) { |
| 111 | switch (error_type) { |