| 1422 | } |
| 1423 | |
| 1424 | static Result<S3Model::ObjectCannedACL> ParseACL(const std::string& v) { |
| 1425 | if (v.empty()) { |
| 1426 | return S3Model::ObjectCannedACL::NOT_SET; |
| 1427 | } |
| 1428 | auto acl = S3Model::ObjectCannedACLMapper::GetObjectCannedACLForName(ToAwsString(v)); |
| 1429 | if (acl == S3Model::ObjectCannedACL::NOT_SET) { |
| 1430 | // XXX This actually never happens, as the AWS SDK dynamically |
| 1431 | // expands the enum range using Aws::GetEnumOverflowContainer() |
| 1432 | return Status::Invalid("Invalid S3 canned ACL: '", v, "'"); |
| 1433 | } |
| 1434 | return acl; |
| 1435 | } |
| 1436 | }; |
| 1437 | |
| 1438 | template <typename ObjectRequest> |
nothing calls this directly
no test coverage detected