runtimeconditions-aws-sqs
Use this extension when your workload uses Amazon SQS, the message queue service from AWS.
A queue holds messages. One part of a system sends messages to the queue. Another part receives them later, and deletes each message when it has finished with it. This lets the two parts work at their own speed.
There are three interface types:
- queue: your workload uses one queue. It can send, receive or delete messages, or manage the queue. You can also ask for queue settings, such as FIFO order, encryption or a dead-letter queue.
- service: your workload creates new queues, or lists the queues that exist. It does not need a queue to exist first.
- message_move_task: your workload moves failed messages out of a dead-letter queue, for example back to the queue they came from.
List the operations that your workload calls, by their SQS API names, such as SendMessage or ReceiveMessage. The platform turns them into the right AWS permissions, and finds or creates the queues.
Every setting is optional. If you leave a setting out, the platform chooses. If you write a setting, the queue must have exactly that value, and a bigger or smaller value does not count. The one exception is maxMessagesPerSecond, which is an upper limit.
Tags and access policy statements are added to the ones that the platform already uses. If they conflict, the platform reports the problem. It does not quietly change what you asked for.
pip install runtimeconditions-aws-sqs
Runtime Conditions extension: https://runtimeconditions.io/extensions/aws/sqs/0.2.0/runtimeconditions.extension.yaml
Conditions
Every Condition part this package defines, with the fields you can set. Select a line to open it.
aws.sqs · message_move_task: Your workload moves messages out of one dead-letter queue, for example back to the queue they came from.
MessageMoveTask is the interface of an aws.sqs Condition.
| Field | Type | Required | Description |
|---|---|---|---|
operations |
MessageMoveTaskOperations |
yes | The operations that your workload uses to manage moves out of the dead-letter queue. The platform works out the other AWS permissions that they need. The operations that your workload uses to manage the move. List at least one, each one once. The platform works out the AWS permissions. |
operations[].name |
MessageMoveTaskOperationsItemName |
yes | CancelMessageMoveTask, ListMessageMoveTasks or StartMessageMoveTask. Values: CancelMessageMoveTask: Stop a move that is running. The platform decides which permission this needs.ListMessageMoveTasks: See the recent moves out of the dead-letter queue.StartMessageMoveTask: Start moving messages. The platform works out the permissions needed on both queues, and does not add other operations for the workload. |
destination_queue_ref |
str | None |
no | The name of the queue Condition to move messages to. If you leave it out, the platform, or the person who runs the move, decides. The name of the queue Condition to move messages to. It needs StartMessageMoveTask, and both queues must be the same kind. If you leave it out, any destination is fine. |
max_messages_per_second |
int | None |
no | The highest speed that the move may run at, in messages each second. A slower speed is fine. If you leave it out, the platform decides. The highest speed in messages each second, from 1 to 500. Any slower speed is fine. It needs StartMessageMoveTask, and the platform decides how to keep to it. |
source_queue_ref |
str | None |
no | The name of the queue Condition for the dead-letter queue to move messages from. If you leave it out, the platform picks the one dead-letter queue for this task. The name of the queue Condition for the dead-letter queue. If you leave it out, the platform picks the one dead-letter queue for this task. It does not mean access to every queue in the account. |
aws.sqs · queue: Your workload uses one SQS queue.
Queue is the interface of an aws.sqs Condition.
| Field | Type | Required | Description |
|---|---|---|---|
access_policy |
AccessPolicy | None |
no | Statements that must be in the access policy of the queue. They use names that the platform turns into real values, not real account IDs. The platform keeps its own statements and reports any conflict. Statements that must be in the access policy of the queue. The platform keeps its own rules too. If both cannot be true together, the platform cannot provide the queue. |
access_policy.statements |
Statements |
yes | At least one statement. The platform may add more statements, and must not remove yours. |
access_policy.statements[].effect |
Effect |
yes | Allow or Deny. A Deny works like a normal IAM deny. Values: Allow: The listed principals must be allowed to call the listed operations, under the listed conditions.Deny: The listed principals must not be allowed to call the listed operations. This must not quietly block other operations that the workload needs. |
access_policy.statements[].operations |
StatementsItemOperations |
yes | The operations that this statement covers, each one once. If operations share a permission, the platform reports the conflict. It must not quietly make a Deny cover more operations. |
access_policy.statements[].operations[].name |
StatementsItemOperationsItemName |
yes | The name of a queue, task or CreateQueue operation. The platform decides which policy permissions it needs. Values: AddPermissionCancelMessageMoveTaskChangeMessageVisibilityChangeMessageVisibilityBatchCreateQueueDeleteMessageDeleteMessageBatchDeleteQueueGetQueueAttributesGetQueueUrlListDeadLetterSourceQueuesListMessageMoveTasksListQueueTagsPurgeQueueReceiveMessageRemovePermissionSendMessageSendMessageBatchSetQueueAttributesStartMessageMoveTaskTagQueueUntagQueue |
access_policy.statements[].principal_refs |
PrincipalRefs |
yes | Names for the principals, such as other AWS accounts or roles. The platform turns them into real identities, and follows the SQS rules for other accounts. |
access_policy.statements[].condition_refs |
ConditionRefs | None |
no | Names for policy conditions that the platform owns. They all apply to this statement. If a name cannot be turned into a real value, the platform cannot provide the queue. A name alone does not promise any level of security. |
content_based_deduplication |
bool | None |
no | For a FIFO queue, whether SQS finds duplicate messages by looking at the message body, so the sender does not have to give each message an ID. true or false. This is only for FIFO queues, so queueType must be fifo. |
dead_letter_queue |
DeadLetterQueue | None |
no | Where failed messages go. Give the name of another queue Condition in this profile, and how many times a message can be received before SQS moves it there. The dead-letter queue, and how many tries a message gets. The platform checks that both queues are the same kind. |
dead_letter_queue.max_receive_count |
int |
yes | How many times a message can be received before SQS moves it to the dead-letter queue, from 1 to 1000. The queue must use exactly this number. A bigger number does not count. |
dead_letter_queue.queue_ref |
str |
yes | The name of the queue Condition for the dead-letter queue. The platform checks that it exists, that it is the same kind of queue, and that the queues do not point at each other in a loop. |
deduplication_scope |
DeduplicationScope | None |
no | For a FIFO queue, where SQS looks for duplicate messages, in the whole queue or inside each message group. queue or messageGroup. This is only for FIFO queues, so queueType must be fifo. Values: messageGroup: Look for duplicates inside each message group.queue: Look for duplicates in the whole queue. |
delay_seconds |
int | None |
no | How long a new message waits before receivers can see it. The queue must use exactly this value. The wait for new messages in seconds, from 0 to 900 (15 minutes). The queue must use exactly this value. |
encryption |
Encryption | None |
no | How the messages in the queue are encrypted when they are stored. You can also name the KMS key to use, and say how long SQS reuses a data key. How the queue is encrypted. mode is required. keyRef and dataKeyReusePeriodSeconds work only with mode kms. |
encryption.mode |
EncryptionMode |
yes | none, sqs_managed or kms. Leave out the whole encryption field if any encryption is fine. Values: kms: Messages are encrypted with a key from AWS KMS. The platform picks the key, unless you set keyRef.none: Messages are not encrypted when they are stored.sqs_managed: Messages are encrypted with keys that SQS owns and manages. |
encryption.data_key_reuse_period_seconds |
int | None |
no | How long SQS reuses a data key from KMS, in seconds, from 60 to 86400 (24 hours). The queue must use exactly this value. |
encryption.key_ref |
str | None |
no | A name for the KMS key, which the platform turns into a real key. It is not a key ID or ARN, and it does not give any KMS permission. |
fifo_throughput_limit |
FifoThroughputLimit | None |
no | For a FIFO queue, whether the speed limit applies to the whole queue or to each message group. perQueue or perMessageGroupId. perMessageGroupId needs deduplicationScope set to messageGroup. Values: perMessageGroupId: The speed limit applies to each message group. This needs deduplicationScope set to messageGroup.perQueue: The speed limit applies to the whole queue. |
maximum_message_size_bytes |
int | None |
no | The size limit that the queue sets for each message, in bytes. The queue must use exactly this limit. It is not a promise that bigger messages fit. The size limit for each message in bytes, from 1024 to 1048576 (1 MiB). The queue must use exactly this value. |
message_retention_period_seconds |
int | None |
no | How long the queue keeps a message that nobody deletes. The queue must use exactly this value. A longer time does not count. How long messages are kept, in seconds, from 60 to 1209600 (14 days). The queue must use exactly this value. A longer or shorter time does not count. |
operations |
QueueOperations | None |
no | The SQS operations that your workload calls on this queue. A single operation and its batch version are different, so list both if your workload uses both, for example SendMessage and SendMessageBatch. The SQS operations that your workload calls on this queue. List at least one, each one once. Use the operation names, not IAM action names. |
operations[].name |
QueueOperationsItemName |
yes | The operation name. A single operation and its batch version have different names. Values: AddPermission: Give another AWS account permission to use the queue.ChangeMessageVisibility: Change how long one received message stays hidden.ChangeMessageVisibilityBatch: Change how long several received messages stay hidden, in one call.DeleteMessage: Delete one message after it was received.DeleteMessageBatch: Delete several received messages in one call.DeleteQueue: Delete the queue and all its messages.GetQueueAttributes: Read the queue settings.GetQueueUrl: Find the URL of a queue that already exists.ListDeadLetterSourceQueues: List the queues that use this queue as their dead-letter queue.ListQueueTags: Read the queue tags.PurgeQueue: Delete all messages in the queue.ReceiveMessage: Receive messages from the queue.RemovePermission: Take away a permission that AddPermission gave.SendMessage: Send one message.SendMessageBatch: Send several messages in one call.SetQueueAttributes: Change the queue settings or its access policy.TagQueue: Add tags to the queue, or change them.UntagQueue: Remove tags from the queue. |
queue_type |
QueueType | None |
no | The kind of queue that your workload needs, standard or fifo. Leave it out if either kind works. standard or fifo. Leave it out if either kind works. Values: fifo: A FIFO queue. Messages in the same message group arrive in order, and duplicates are removed.standard: A Standard queue. Each message arrives at least once, and the order is not guaranteed. |
receive_message_wait_time_seconds |
int | None |
no | How long a receive call waits for a message to arrive before it returns with nothing. The queue must use exactly this value. How long a receive call waits, in seconds, from 0 to 20. The queue must use exactly this value. |
redrive_allow_policy |
RedriveAllowPolicy | None |
no | Which other queues may use this queue as their dead-letter queue. Which queues may use this queue as their dead-letter queue. sourceQueueRefs is needed with byQueue, and is not allowed with the other modes. |
redrive_allow_policy.mode |
RedriveAllowPolicyMode |
yes | allowAll, denyAll or byQueue. allowAll only covers queues in the same AWS account and Region. Values: allowAll: Any queue in the same AWS account and Region may use this queue as its dead-letter queue.byQueue: Only the queues named in sourceQueueRefs may use this queue as their dead-letter queue.denyAll: No queue may use this queue as its dead-letter queue. |
redrive_allow_policy.source_queue_refs |
SourceQueueRefs | None |
no | The names of the queue Conditions that may use this queue as their dead-letter queue. List 1 to 10 names, each name once. |
tags |
Tags | None |
no | Tags that the queue must have. The platform may add its own tags. If a tag has a different value, the platform reports the conflict instead of replacing your value. Tags that the queue must have. The platform may add more tags. If a tag has a different value, the platform cannot provide the queue. The AWS rules for tag characters also apply, and AWS suggests fewer than 50 tags on a queue. |
visibility_timeout_seconds |
int | None |
no | How long a message stays hidden from other receivers after one receiver gets it. If the receiver does not delete the message in this time, the message comes back. The queue must use exactly this value. The visibility timeout in seconds, from 0 to 43200 (12 hours). The queue must use exactly this value. |
aws.sqs · service: Your workload creates queues, or lists the queues in its AWS account and Region.
Service is the interface of an aws.sqs Condition.
| Field | Type | Required | Description |
|---|---|---|---|
operations |
ServiceOperations |
yes | The operations that your workload uses to create or list queues. The platform works out the AWS permissions that they need. The operations that your workload uses to create or list queues. List at least one, each one once. Patterns are not allowed. |
operations[].name |
ServiceOperationsItemName |
yes | CreateQueue or ListQueues. Values: CreateQueue: Create new queues. This alone does not ask for a queue that already exists.ListQueues: List the queues in the AWS account and Region. |
aws_sqs
aws_sqs declares a aws.sqs Condition.
Your workload needs Amazon SQS, with the settings and operations listed in the Condition.
Example: a worker that receives orders from a queue, and deletes each message after it has handled the order.
from runtimeconditions_aws_sqs import (
Queue,
QueueOperationsItem,
QueueOperationsItemName,
aws_sqs,
)
aws_sqs(
Queue(
operations=[
QueueOperationsItem(name=QueueOperationsItemName.RECEIVE_MESSAGE),
QueueOperationsItem(name=QueueOperationsItemName.DELETE_MESSAGE),
],
),
)
In a Profile, this declares:
kind: aws.sqs
interface:
type: queue
operations:
- name: ReceiveMessage
- name: DeleteMessage
Every class, field and enum member is documented in the package's docstrings.
Metadata
Release files for runtimeconditions-aws-sqs 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| runtimeconditions_aws_sqs-0.2.0.tar.gz | 44.6 kB | With provenance | Details for runtimeconditions_aws_sqs-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| runtimeconditions_aws_sqs-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for runtimeconditions_aws_sqs-0.2.0-py3-none-any.whl |
Total release size: 90.1 kB
Release files / runtimeconditions_aws_sqs-0.2.0.tar.gz
| Download URL | runtimeconditions_aws_sqs-0.2.0.tar.gz |
|---|---|
| Size | 44.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d46307f3d35c84f9bbbba9ca28555da33330b77d4a3fb1a800973479c7117d3b
|
|
BLAKE2b-256 checksum How to use checksums |
052b7c48b5998369dd7175ab5db1902c8aa39d80fe2687b2d0dc8458832e0a38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logRelease files / runtimeconditions_aws_sqs-0.2.0-py3-none-any.whl
| Download URL | runtimeconditions_aws_sqs-0.2.0-py3-none-any.whl |
|---|---|
| Size | 45.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f63e69a8711de256f60bb1acf55b8ed6acf388eba0177ae82944896d2d128a9
|
|
BLAKE2b-256 checksum How to use checksums |
607b02a2640252e3b3a5aea63b9be2f7db12bb02f10539f0ed299df92b995ace
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logSecurity for runtimeconditions-aws-sqs 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for runtimeconditions_aws_sqs-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.