func (role *IAMRole) CanBeAssumedFrom() []string {
	allowances := []string{}
	for _, statement := range role.AssumeRolePolicy.Statement {
		if statement.Action == "sts:AssumeRole" || statement.Action == "sts:AssumeRoleWithSAML" {
			for key, value := range statement.Principal {
				allowance := fmt.Sprintf("%s: %s", key, value)
				allowances = append(allowances, allowance)
			}
		}
	}
	return allowances
}
// CanBeAssumedFrom returns information about the assumerole policy
CanBeAssumedFrom returns information about the assumerole policy
// CanBeAssumedFrom returns information about the assumerole policy
func (role *IAMRole) CanBeAssumedFrom() []string {
	allowances := []string{}
	for _, statement := range role.AssumeRolePolicy.Statement {
		if statement.Action == "sts:AssumeRole" || statement.Action == "sts:AssumeRoleWithSAML" {
			for key, value := range statement.Principal {
				allowance := fmt.Sprintf("%s: %s", key, value)
				allowances = append(allowances, allowance)
			}
		}
	}
	return allowances
}
func ( role * IAMRole ) CanBeAssumedFrom ( ) [ ] string { allowances := [ ] string { } for _ , statement := range role . AssumeRolePolicy . Statement { if statement . Action == " " || statement . Action == " " { for key , value := range statement . Principal { allowance := fmt . Sprintf ( " " , key , value ) allowances = append ( allowances , allowance ) } } } return allowances }
CanBeAssumedFrom returns information about the assumerole policy
CanBeAssumedFrom returns information about the assumerole policy