Actions, resources, and condition keys for Amazon SQS
Amazon SQS (service prefix: sqs) provides the following
service-specific operations, resources, actions, and condition keys for use in IAM permission
policies.
References:
-
Learn how to configure this service.
-
View a list of the API operations available for this service.
-
Learn how to secure this service and its resources by using IAM permission policies.
-
View the programmatic service authorization reference
for this service.
Topics
API operations defined by Amazon SQS
The following table maps API operations to the IAM actions they authorize. Only condition keys that have static values for the given API and action are listed; for the full set of condition keys supported by each action, see the Actions table.
| Operation | IAM action | Condition key | Possible value(s) | Access level |
|---|---|---|---|---|
|
AddPermission |
Permissions management, Write |
|||
|
CancelMessageMoveTask |
Write |
|||
Write |
||||
Read |
||||
Read |
||||
|
ChangeMessageVisibility |
Write |
|||
|
ChangeMessageVisibilityBatch |
Write |
|||
|
CreateQueue |
Write |
|||
Tagging, Write |
||||
|
DeleteMessage |
Write |
|||
|
DeleteMessageBatch |
Write |
|||
|
DeleteQueue |
Write |
|||
|
GetQueueAttributes |
Read |
|||
|
GetQueueUrl |
Read |
|||
|
ListDeadLetterSourceQueues |
Read |
|||
|
ListMessageMoveTasks |
Read |
|||
Read |
||||
|
ListQueueTags |
Read |
|||
|
ListQueues |
Read |
|||
|
PurgeQueue |
Write |
|||
|
ReceiveMessage |
Read |
|||
|
RemovePermission |
Permissions management, Write |
|||
|
SendMessage |
Write |
|||
|
SendMessageBatch |
Write |
|||
|
SetQueueAttributes |
Permissions management, Write |
|||
|
StartMessageMoveTask |
Write |
|||
Read |
||||
Read |
||||
Write |
||||
Write |
||||
|
TagQueue |
Tagging, Write |
|||
|
UntagQueue |
Tagging, Write |
Actions defined by Amazon SQS
You can specify the following actions in the Action element of an IAM
policy statement. Use policies to grant permissions to perform an operation in Amazon. When
you use an action in a policy, you usually allow or deny access to the API operation or CLI
command with the same name. However, in some cases, a single action controls access to more
than one operation. Alternatively, some operations require several different actions.
| Actions | Description | Resource types (*required) | Condition keys | Access level |
|---|---|---|---|---|
Grants permission to a queue for a specific principal |
Permissions management, Write |
|||
Grants permission to cancel an in progress message move task |
Write |
|||
Grants permission to change the visibility timeout of a specified message in a queue to a new value |
Write |
|||
Grants permission to create a new queue, or returns the URL of an existing one |
Write |
|||
Grants permission to delete the specified message from the specified queue |
Write |
|||
Grants permission to delete the queue specified by the queue URL, regardless of whether the queue is empty |
Write |
|||
Grants permission to get attributes for the specified queue |
Read |
|||
Grants permission to return the URL of an existing queue |
Read |
|||
Grants permission to return a list of your queues that have the RedrivePolicy queue attribute configured with a dead letter queue |
Read |
|||
Grants permission to list message move tasks |
Read |
|||
Grants permission to list tags added to an SQS queue |
Read |
|||
Grants permission to return a list of your queues |
Read |
|||
Grants permission to delete the messages in a queue specified by the queue URL |
Write |
|||
Grants permission to retrieve one or more messages, with a maximum limit of 10 messages, from the specified queue |
Read |
|||
Grants permission to revoke any permissions in the queue policy that matches the specified Label parameter |
Permissions management, Write |
|||
Grants permission to deliver a message to the specified queue |
Write |
|||
Grants permission to set the value of one or more queue attributes |
Permissions management, Write |
|||
Grants permission to start a message move task |
Write |
|||
Grants permission to add tags to the specified SQS queue |
Tagging, Write |
|||
Grants permission to remove tags from the specified SQS queue |
Tagging, Write |
Resource types defined by Amazon SQS
The following resource types are defined by this service and can be used in the
Resource element of IAM permission policy statements.
| Resource types | ARN | Condition keys |
|---|---|---|
arn:${Partition}:sqs:${Region}:${Account}:${QueueName} |
Condition keys for Amazon SQS
Amazon SQS defines the following condition keys that can be used in the
Condition element of an IAM policy.
| Condition keys | Description | Type |
|---|---|---|
Filters access by the tags that are passed in the request |
String |
|
Filters access by the tags associated with the resource |
String |
|
Filters access by the tag keys that are passed in the request |
ArrayOfString |