Amazon Simple Queue Service
API Reference (API Version 2012-11-05)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Did this page help you?  Yes | No |  Tell us about it...

RemovePermission

Description

Revokes any permissions in the queue policy that matches the specified Label parameter. Only the owner of the queue can remove permissions.

Request Parameters

For information about the common parameters that all actions use, see Common Parameters.

Label

The identification of the permission to remove. This is the label added with the AddPermission action.

Type: String

Required: Yes

QueueUrl

The URL of the Amazon SQS queue to take action on.

Type: String

Required: Yes

Examples

The following example Query request removes the testLabel permission on the queue named testQueue.

Sample Request

        
http://sqs.us-east-1.amazonaws.com/123456789012/testQueue/
?Action=RemovePermission
&Label=testLabel
&Version=2009-02-01
&SignatureMethod=HmacSHA256
&Expires=2009-04-18T22%3A52%3A43PST
&AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE
&SignatureVersion=2
&Signature=Dqlp3Sd6ljTUA9Uf6SGtEExwUQEXAMPLE

      

Sample Response

        
<RemovePermissionResponse>
    <ResponseMetadata>
        <RequestId>
            f8bdb362-6616-42c0-977a-ce9a8bcce3bb
        </RequestId>
    </ResponseMetadata>
</RemovePermissionResponse>