The RemovePermission action revokes any permissions in the queue policy that
matches the specified Label parameter. Only the owner of the queue can remove
permissions.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
|
Required |
The URL of the SQS queue to take action on. |
|
|
|
Required |
The identification of the permission to remove. This is the label added with the |
|
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
|---|---|
|
A |
Examples
Remove a named set of permissions.
// Add permissions to a queue
$sqs = new AmazonSQS();
$response = $sqs->remove_permission('example-queue', 'SDKTesting');
// Success?
var_dump($response->isOK());
Result:
bool(true)
Related Methods
Source
Method defined in services/sqs.class.php | Toggle source view (8 lines) | View on GitHub

