Skip to content

Adds a permission to a queue for a specific principal

Description

Adds a permission to a queue for a specific principal. This allows sharing access to the queue.

When you create a queue, you have full control access rights for the queue. Only you, the owner of the queue, can grant or deny permissions to the queue. For more information about these permissions, see Allow Developers to Write Messages to a Shared Queue in the Amazon SQS Developer Guide.

Cross-account permissions don't apply to this action. For more information, see Grant cross-account permissions to a role and a username in the Amazon SQS Developer Guide.

Usage

sqs_add_permission(QueueUrl, Label, AWSAccountIds, Actions)

Arguments

Value

An empty list.

Request syntax

svc$add_permission(
  QueueUrl = "string",
  Label = "string",
  AWSAccountIds = list(
    "string"
  ),
  Actions = list(
    "string"
  )
)