The AddPermission action adds a permission to a queue for a specific principal. This allows for sharing access to the queue.
When you create a queue, you have full control access rights for the queue. Only you (as owner of the queue) can grant or deny permissions to the queue. For more information about these permissions, see Shared Queues in the Amazon SQS Developer Guide.
Namespace: Amazon.SQS
Assembly: AWSSDK.dll
Version: 2.0.0.3
Syntax
public virtual AddPermissionResponse AddPermission( AddPermissionRequest addPermissionRequest )
Parameters
- addPermissionRequest
-
Type: Amazon.SQS.Model.AddPermissionRequest
Container for the necessary parameters to execute the AddPermission service method on AmazonSQS.
Exceptions
| Exception | Condition |
|---|---|
| Amazon.SQS.Model.OverLimitException |
Version Information
.NET Framework:
Supported in: 4.5, 4.0, 3.5