AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 4.5
Container for the parameters to the RemovePermission operation. Revokes any permissions in the queue policy that matches the specified Label parameter. Only the owner of the queue can remove permissions.

Inheritance Hierarchy


Namespace: Amazon.SQS.Model
Assembly: AWSSDK.dll
Version: (assembly version)


public class RemovePermissionRequest : AmazonSQSRequest

The RemovePermissionRequest type exposes the following members


Public Method RemovePermissionRequest() Empty constructor used to set properties independently even when a simple constructor is available
Public Method RemovePermissionRequest(string, string) Instantiates RemovePermissionRequest with the parameterized properties


Public Property Label System.String Gets and sets the property Label.

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

Public Property QueueUrl System.String Gets and sets the property QueueUrl.

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


This example shows how to remove a permission.

Remove permission example

var client = new AmazonSQSClient();

var request = new RemovePermissionRequest
  Label = "JohnDoeCanAccessQueues",
  QueueUrl = ""


Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

.NET for Windows Store apps:
Supported in: Windows 8.1, Windows 8

.NET for Windows Phone:
Supported in: Windows Phone 8.1, Windows Phone 8