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

# Class AcpListener

Listener used to add an Access Control Policy to a request

  Aws\S3\AcpListener implements Symfony\Component\EventDispatcher\EventSubscriberInterface

Namespace: Aws\S3
Located at Aws/S3/AcpListener.php

## Methods summary

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

  An event handler for constructing ACP definitions.

## Methods detail

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

An event handler for constructing ACP definitions.

#### Parameters

$event
  ``Guzzle\Common\Event``
  $event The event to respond to.

#### Throws

``Aws\Common\Exception\InvalidArgumentException``

### Magic methods summary