Amazon.Runtime.InstanceProfileAWSCredentials.GetFirstRole C# (CSharp) Méthode

GetFirstRole() private static méthode

private static GetFirstRole ( ) : string
Résultat string
        private static string GetFirstRole()
        {
            IEnumerable<string> roles = GetAvailableRoles();
            foreach (string role in roles)
            {
                return role;
            }

            // no roles found
            throw new InvalidOperationException("No roles found");
        }