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.
Label
parameter. Only the owner of the queue can remove permissions.
Namespace: Amazon.SQS.Model
Assembly: AWSSDK.dll
Version: (assembly version)
public class RemovePermissionRequest : AmazonSQSRequest IRequestEvents
The RemovePermissionRequest type exposes the following members
Name | Description | |
---|---|---|
RemovePermissionRequest() | Empty constructor used to set properties independently even when a simple constructor is available | |
RemovePermissionRequest(string, string) | Instantiates RemovePermissionRequest with the parameterized properties |
Name | Type | Description | |
---|---|---|---|
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. |
|
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.
var client = new AmazonSQSClient(); var request = new RemovePermissionRequest { Label = "JohnDoeCanAccessQueues", QueueUrl = "https://sqs.us-east-1.amazonaws.com/80398EXAMPLE/MyTestQueue" }; client.RemovePermission(request);
.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