AmazonSQSClient.AddPermission Method (AddPermissionRequest)

.NET Framework 3.5
 
 
 
Did this page help you?  Yes  No   Tell us about it...

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.

AddPermission writes an SQS-generated policy. If you want to write your own policy, use SetQueueAttributes to upload your policy. For more information about writing your own policy, see Appendix: The Access Policy Language in the Amazon SQS Developer Guide.

Namespace: Amazon.SQS
Assembly: AWSSDK.dll
Version: 2.0.0.3

Syntax

C#
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

Version Information

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