class AwsInstanceProfileEC2TrustValidator {

    boolean checkAssumeRoleInActions(List<Action> actions) {
        return actions.stream().anyMatch(
                action -> SecurityTokenServiceActions.AssumeRole.getActionName().equals(action.getActionName()));
    }

}