NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Class PredictEndpointListener

Listener used to change the endpoint to the Predict Endpoint

  Aws\MachineLearning\PredictEndpointListener implements Symfony\Component\EventDispatcher\EventSubscriberInterface

Namespace: Aws\MachineLearning
Located at Aws/MachineLearning/PredictEndpointListener.php

## Methods summary

- `public static` `getSubscribedEvents ( )`
- `public` `onCommandBeforeSend ( Guzzle\Common\Event $event )`

  Updates the request URL to use the Predict Endpoint

## Methods detail

# `public static`
`getSubscribedEvents( )`
# `public`
`onCommandBeforeSend( `Guzzle\Common\Event` $event )`

Updates the request URL to use the Predict Endpoint

#### Parameters

$event
  ``Guzzle\Common\Event``
  $event Event emitted

### Magic methods summary