/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Client; using namespace Aws::Utils; using namespace Aws::RolesAnywhere; namespace Aws { namespace RolesAnywhere { namespace RolesAnywhereErrorMapper { static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); AWSError GetErrorForName(const char* errorName) { int hashCode = HashingUtils::HashString(errorName); if (hashCode == TOO_MANY_TAGS_HASH) { return AWSError(static_cast(RolesAnywhereErrors::TOO_MANY_TAGS), false); } return AWSError(CoreErrors::UNKNOWN, false); } } // namespace RolesAnywhereErrorMapper } // namespace RolesAnywhere } // namespace Aws