| 70 | } |
| 71 | |
| 72 | Aws::String get_role_arn(Aws::String const& role_name) |
| 73 | { |
| 74 | using namespace Aws::IAM; |
| 75 | using namespace Aws::IAM::Model; |
| 76 | GetRoleRequest request; |
| 77 | request.WithRoleName(role_name); |
| 78 | auto outcome = m_iam_client.GetRole(request); |
| 79 | EXPECT_TRUE(outcome.IsSuccess()); |
| 80 | if (outcome.IsSuccess()) { |
| 81 | return outcome.GetResult().GetRole().GetArn(); |
| 82 | } |
| 83 | return {}; |
| 84 | } |
| 85 | |
| 86 | void create_function(Aws::String const& function_name, Aws::String const& handler_name) |
| 87 | { |
nothing calls this directly
no outgoing calls
no test coverage detected