MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / get_role_arn

Method get_role_arn

tests/runtime_tests.cpp:72–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected