aws/sqs

Definition · Catalog README · Source

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.

Documentation

This standalone extension describes Amazon Simple Queue Service configuration and canonical operation requirements. It is a repository candidate, not an AWS-published extension. Its versioned identifier follows the catalog convention and does not claim that the artifact has been published at that URL.

Core files

  • Extension definition: vocabulary, descriptions, canonical operation values, and scoped JSON Schemas.
  • Design and provenance: authoritative source, interface boundaries, permission translation, and exclusions.
  • Example profile: queue access, service access, and dead-letter queue message redrive requirements.

Condition shape

kind: aws.sqs
interface:
  type: queue
  queueType: fifo
  visibilityTimeoutSeconds: 60
  receiveMessageWaitTimeSeconds: 20
  operations:
    - name: SendMessageBatch
    - name: ReceiveMessage
    - name: DeleteMessageBatch

Configuration and queue operations are optional. Omitted fields impose no requirement and do not import AWS API defaults. operations[].name identifies required canonical service operations; there is no IAM permission selection. accessPolicy.statements[].operations uses the same canonical operation names to select authorization constraints for resolved principals.

Queue fields cover delivery delay, visibility, retention, message size, long polling, FIFO deduplication and throughput, encryption, dead-letter routing, redrive admission, access policy, and tags. Task fields identify logical source and destination queues and constrain the maximum redrive rate.

Queue references name aws.sqs / queue Conditions in the same profile. Principal, KMS key, and policy-condition bindings are logical names resolved by the adapter. No concrete queue ARN, principal identity, or key ID is embedded.

Interface type Requirement
queue Access to one logical queue, including messaging, attributes, policies, and tags
service Permission to create queues or list queues within an account and Region
message_move_task Permission to manage redrive tasks for one source dead-letter queue

Canonical operations express workload needs. Platform-supplied mapping translates them into resource-scoped authorization and any required dependent permissions. For redrive, StartMessageMoveTask and the destination reference determine destination authorization without claiming a separate SendMessage call. Configuration requirements describe desired fulfillment; they do not grant the workload permission to change those settings.

Supplied scalar settings require exact values. The task field maxMessagesPerSecond instead sets an upper bound, allowing lower positive rates. Omitted settings remain platform choices. Policy-condition references retain their platform-defined meanings; unresolved bindings prevent fulfillment.

tags and accessPolicy.statements express requirements to compose with platform controls. They do not replace all existing labels or policy statements. Platforms may add tags and controls, but conflicts must be reported without silently changing explicit requirements. Policy selectors reuse the operation vocabulary; Allow/Deny mapping must account for shared permissions and report conflicts.

The service interface declares creation and listing operations. CreateQueue attributes and tags describe the queue being created, not service-wide settings. Literal queue names, listing filters, pagination, and SDK client configuration remain outside that interface; the design document lists the excluded inputs.

AWS's SQS Smithy model is the operation authority. AWS's authorization reference can inform platform-owned operation-to-permission mapping; IAM action names are not extension vocabulary.

This folder contains no SDK mappings, language bindings, generators, maintenance automation, or integration with another extension. The definition and example were authored without running validation or end-to-end checks.

Packages

Install the package for your language to declare this extension's Conditions from your code.

Go

Package
runtimeconditions.io/x/aws/sqs
Version
0.2.0
go get runtimeconditions.io/x/aws/sqs@v0.2.0

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.

sqs.MessageMoveTask is the interface of an aws.sqs Condition.

Field Type Required Description
DestinationQueueRef *string 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.
MaxMessagesPerSecond *int64 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.
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 MessageMoveTaskOperationsName 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.
SourceQueueRef *string 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.

sqs.Queue is the interface of an aws.sqs Condition.

Field Type Required Description
AccessPolicy *AccessPolicy 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.
AccessPolicy.Statements Statements yes At least one statement. The platform may add more statements, and must not remove yours.
AccessPolicy.Statements[].ConditionRefs ConditionRefs 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.
AccessPolicy.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.
AccessPolicy.Statements[].Operations StatementsOperations 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.
AccessPolicy.Statements[].Operations[].Name StatementsOperationsName yes The name of a queue, task or CreateQueue operation. The platform decides which policy permissions it needs.
Values:
AddPermission
CancelMessageMoveTask
ChangeMessageVisibility
ChangeMessageVisibilityBatch
CreateQueue
DeleteMessage
DeleteMessageBatch
DeleteQueue
GetQueueAttributes
GetQueueUrl
ListDeadLetterSourceQueues
ListMessageMoveTasks
ListQueueTags
PurgeQueue
ReceiveMessage
RemovePermission
SendMessage
SendMessageBatch
SetQueueAttributes
StartMessageMoveTask
TagQueue
UntagQueue
AccessPolicy.Statements[].PrincipalRefs 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.
ContentBasedDeduplication *bool 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.
DeadLetterQueue *DeadLetterQueue 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.
DeadLetterQueue.MaxReceiveCount int64 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.
DeadLetterQueue.QueueRef string 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.
DeduplicationScope *DeduplicationScope 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.
DelaySeconds *int64 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 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.DataKeyReusePeriodSeconds *int64 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.KeyRef *string 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.
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.
FifoThroughputLimit *FifoThroughputLimit 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.
MaximumMessageSizeBytes *int64 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.
MessageRetentionPeriodSeconds *int64 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 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 QueueOperationsName 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.
QueueType *QueueType 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.
ReceiveMessageWaitTimeSeconds *int64 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.
RedriveAllowPolicy *RedriveAllowPolicy 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.
RedriveAllowPolicy.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.
RedriveAllowPolicy.SourceQueueRefs SourceQueueRefs 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 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.
VisibilityTimeoutSeconds *int64 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.

sqs.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 ServiceOperationsName 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.

AwsSqs

sqs.AwsSqs declares a aws.sqs Condition.

Example: a worker that receives orders from a queue, and deletes each message after it has handled the order.

sqs.AwsSqs(
	sqs.Queue{
		Operations: sqs.QueueOperations{
			sqs.QueueOperationsItem{
				Name: sqs.QueueOperationsNameReceiveMessage,
			},
			sqs.QueueOperationsItem{
				Name: sqs.QueueOperationsNameDeleteMessage,
			},
		},
	},
)

The full API, with every type, field and constant documented, is in the Go package documentation.

Python

Package
runtimeconditions-aws-sqs
Version
0.2.0
pip install runtimeconditions-aws-sqs

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:
AddPermission
CancelMessageMoveTask
ChangeMessageVisibility
ChangeMessageVisibilityBatch
CreateQueue
DeleteMessage
DeleteMessageBatch
DeleteQueue
GetQueueAttributes
GetQueueUrl
ListDeadLetterSourceQueues
ListMessageMoveTasks
ListQueueTags
PurgeQueue
ReceiveMessage
RemovePermission
SendMessage
SendMessageBatch
SetQueueAttributes
StartMessageMoveTask
TagQueue
UntagQueue
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.

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),
        ],
    ),
)

Every class, field and enum member is documented in the package's docstrings.

TypeScript

Package
@runtimeconditions/aws-sqs
Version
0.2.0 Not published yet

This package version is generated but not published to its registry yet.

npm install @runtimeconditions/aws-sqs

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.
destinationQueueRef string 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.
maxMessagesPerSecond number 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.
sourceQueueRef string 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
accessPolicy AccessPolicy 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.
accessPolicy.statements Statements yes At least one statement. The platform may add more statements, and must not remove yours.
accessPolicy.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.
accessPolicy.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.
accessPolicy.statements[].operations[].name StatementsItemOperationsItemName yes The name of a queue, task or CreateQueue operation. The platform decides which policy permissions it needs.
Values:
AddPermission
CancelMessageMoveTask
ChangeMessageVisibility
ChangeMessageVisibilityBatch
CreateQueue
DeleteMessage
DeleteMessageBatch
DeleteQueue
GetQueueAttributes
GetQueueUrl
ListDeadLetterSourceQueues
ListMessageMoveTasks
ListQueueTags
PurgeQueue
ReceiveMessage
RemovePermission
SendMessage
SendMessageBatch
SetQueueAttributes
StartMessageMoveTask
TagQueue
UntagQueue
accessPolicy.statements[].principalRefs 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.
accessPolicy.statements[].conditionRefs ConditionRefs 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.
contentBasedDeduplication boolean 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.
deadLetterQueue DeadLetterQueue 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.
deadLetterQueue.maxReceiveCount number 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.
deadLetterQueue.queueRef string 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.
deduplicationScope DeduplicationScope 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.
delaySeconds number 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 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.dataKeyReusePeriodSeconds number 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.keyRef string 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.
fifoThroughputLimit FifoThroughputLimit 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.
maximumMessageSizeBytes number 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.
messageRetentionPeriodSeconds number 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 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.
queueType QueueType 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.
receiveMessageWaitTimeSeconds number 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.
redriveAllowPolicy RedriveAllowPolicy 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.
redriveAllowPolicy.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.
redriveAllowPolicy.sourceQueueRefs SourceQueueRefs 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 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.
visibilityTimeoutSeconds number 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.

awsSqs

awsSqs declares a aws.sqs Condition.

Example: a worker that receives orders from a queue, and deletes each message after it has handled the order.

import { Queue, QueueOperationsItem, QueueOperationsItemName, awsSqs } from "@runtimeconditions/aws-sqs";

awsSqs(
  new Queue({
    operations: [
      new QueueOperationsItem({ name: QueueOperationsItemName.ReceiveMessage }),
      new QueueOperationsItem({ name: QueueOperationsItemName.DeleteMessage }),
    ],
  }),
);

Every class, field and enum member is documented in the package's type declarations.

Java

Package
io.runtimeconditions.bindings:runtimeconditions-aws-sqs
Version
0.2.0
<dependency>
  <groupId>io.runtimeconditions.bindings</groupId>
  <artifactId>runtimeconditions-aws-sqs</artifactId>
  <version>0.2.0</version>
</dependency>

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.
destinationQueueRef String 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.
maxMessagesPerSecond Long 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.
sourceQueueRef String 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
accessPolicy AccessPolicy 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.
accessPolicy.statements Statements yes At least one statement. The platform may add more statements, and must not remove yours.
accessPolicy.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.
accessPolicy.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.
accessPolicy.statements[].operations[].name StatementsItemOperationsItemName yes The name of a queue, task or CreateQueue operation. The platform decides which policy permissions it needs.
Values:
AddPermission
CancelMessageMoveTask
ChangeMessageVisibility
ChangeMessageVisibilityBatch
CreateQueue
DeleteMessage
DeleteMessageBatch
DeleteQueue
GetQueueAttributes
GetQueueUrl
ListDeadLetterSourceQueues
ListMessageMoveTasks
ListQueueTags
PurgeQueue
ReceiveMessage
RemovePermission
SendMessage
SendMessageBatch
SetQueueAttributes
StartMessageMoveTask
TagQueue
UntagQueue
accessPolicy.statements[].principalRefs 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.
accessPolicy.statements[].conditionRefs ConditionRefs 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.
contentBasedDeduplication Boolean 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.
deadLetterQueue DeadLetterQueue 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.
deadLetterQueue.maxReceiveCount Long 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.
deadLetterQueue.queueRef String 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.
deduplicationScope DeduplicationScope 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.
delaySeconds Long 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 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.dataKeyReusePeriodSeconds Long 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.keyRef String 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.
fifoThroughputLimit FifoThroughputLimit 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.
maximumMessageSizeBytes Long 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.
messageRetentionPeriodSeconds Long 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 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.
queueType QueueType 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.
receiveMessageWaitTimeSeconds Long 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.
redriveAllowPolicy RedriveAllowPolicy 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.
redriveAllowPolicy.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.
redriveAllowPolicy.sourceQueueRefs SourceQueueRefs 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 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.
visibilityTimeoutSeconds Long 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.

Bindings.awsSqs

Bindings.awsSqs declares a aws.sqs Condition.

Example: a worker that receives orders from a queue, and deletes each message after it has handled the order.

import io.runtimeconditions.bindings.awssqs.Bindings;
import io.runtimeconditions.bindings.awssqs.Queue;
import io.runtimeconditions.bindings.awssqs.QueueOperations;
import io.runtimeconditions.bindings.awssqs.QueueOperationsItem;
import io.runtimeconditions.bindings.awssqs.QueueOperationsItemName;
import java.util.List;

Bindings.awsSqs(
    new Queue(
        null,
        null,
        null,
        null,
        null,
        null,
        null,
        null,
        null,
        new QueueOperations(
            List.of(
                new QueueOperationsItem(QueueOperationsItemName.RECEIVE_MESSAGE),
                new QueueOperationsItem(QueueOperationsItemName.DELETE_MESSAGE))),
        null,
        null,
        null,
        null,
        null));

Every record, component and enum constant is documented in the Javadoc.

Kinds

aws.sqs

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.

kind: aws.sqs
interface:
  type: queue
  operations:
    - name: ReceiveMessage
    - name: DeleteMessage

Interface types

Interface types

queue aws.sqs

Your workload uses one SQS queue. It sends or receives messages, or it manages the queue.

Example: a FIFO queue that is encrypted with keys that SQS manages. A message that fails five times goes to the queue Condition named orders-dead-letter.

kind: aws.sqs
interface:
  type: queue
  queueType: fifo
  contentBasedDeduplication: true
  visibilityTimeoutSeconds: 60
  encryption:
    mode: sqs_managed
  deadLetterQueue:
    queueRef: orders-dead-letter
    maxReceiveCount: 5
  operations:
    - name: SendMessage

Fields

interface.operations

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.

interface.queueType

The kind of queue that your workload needs, standard or fifo. Leave it out if either kind works.

interface.visibilityTimeoutSeconds

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.

interface.messageRetentionPeriodSeconds

How long the queue keeps a message that nobody deletes. The queue must use exactly this value. A longer time does not count.

interface.delaySeconds

How long a new message waits before receivers can see it. The queue must use exactly this value.

interface.maximumMessageSizeBytes

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.

interface.receiveMessageWaitTimeSeconds

How long a receive call waits for a message to arrive before it returns with nothing. The queue must use exactly this value.

interface.contentBasedDeduplication

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.

interface.deduplicationScope

For a FIFO queue, where SQS looks for duplicate messages, in the whole queue or inside each message group.

interface.fifoThroughputLimit

For a FIFO queue, whether the speed limit applies to the whole queue or to each message group.

interface.encryption

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.

interface.deadLetterQueue

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.

interface.redriveAllowPolicy

Which other queues may use this queue as their dead-letter queue.

interface.accessPolicy

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.

interface.tags

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.

Allowed values for interface.operations[].name
ValueDescription
AddPermissionGive another AWS account permission to use the queue.
ChangeMessageVisibilityChange how long one received message stays hidden.
ChangeMessageVisibilityBatchChange how long several received messages stay hidden, in one call.
DeleteMessageDelete one message after it was received.
DeleteMessageBatchDelete several received messages in one call.
DeleteQueueDelete the queue and all its messages.
GetQueueAttributesRead the queue settings.
GetQueueUrlFind the URL of a queue that already exists.
ListDeadLetterSourceQueuesList the queues that use this queue as their dead-letter queue.
ListQueueTagsRead the queue tags.
PurgeQueueDelete all messages in the queue.
ReceiveMessageReceive messages from the queue.
RemovePermissionTake away a permission that AddPermission gave.
SendMessageSend one message.
SendMessageBatchSend several messages in one call.
SetQueueAttributesChange the queue settings or its access policy.
TagQueueAdd tags to the queue, or change them.
UntagQueueRemove tags from the queue.
Allowed values for interface.queueType
ValueDescription
standardA Standard queue. Each message arrives at least once, and the order is not guaranteed.
fifoA FIFO queue. Messages in the same message group arrive in order, and duplicates are removed.
Allowed values for interface.deduplicationScope
ValueDescription
queueLook for duplicates in the whole queue.
messageGroupLook for duplicates inside each message group.
Allowed values for interface.fifoThroughputLimit
ValueDescription
perQueueThe speed limit applies to the whole queue.
perMessageGroupIdThe speed limit applies to each message group. This needs deduplicationScope set to messageGroup.
Allowed values for interface.encryption.mode
ValueDescription
noneMessages are not encrypted when they are stored.
sqs_managedMessages are encrypted with keys that SQS owns and manages.
kmsMessages are encrypted with a key from AWS KMS. The platform picks the key, unless you set keyRef.
Allowed values for interface.redriveAllowPolicy.mode
ValueDescription
allowAllAny queue in the same AWS account and Region may use this queue as its dead-letter queue.
denyAllNo queue may use this queue as its dead-letter queue.
byQueueOnly the queues named in sourceQueueRefs may use this queue as their dead-letter queue.
Allowed values for interface.accessPolicy.statements[].effect
ValueDescription
AllowThe listed principals must be allowed to call the listed operations, under the listed conditions.
DenyThe listed principals must not be allowed to call the listed operations. This must not quietly block other operations that the workload needs.

service aws.sqs

Your workload creates queues, or lists the queues in its AWS account and Region. It does not need a queue to exist first.

Example: a workload that creates its own queues while it runs.

kind: aws.sqs
interface:
  type: service
  operations:
    - name: CreateQueue

Fields

interface.operations

The operations that your workload uses to create or list queues. The platform works out the AWS permissions that they need.

Allowed values for interface.operations[].name
ValueDescription
CreateQueueCreate new queues. This alone does not ask for a queue that already exists.
ListQueuesList the queues in the AWS account and Region.

message_move_task aws.sqs

Your workload moves messages out of one dead-letter queue, for example back to the queue they came from. AWS calls this a redrive. AWS gives each move a task ID only while the workload runs, so the task ID is not part of the Condition.

Example: an operations tool that moves failed messages from the orders-dead-letter queue back to the orders queue, at most 50 messages each second.

kind: aws.sqs
interface:
  type: message_move_task
  sourceQueueRef: orders-dead-letter
  destinationQueueRef: orders
  maxMessagesPerSecond: 50
  operations:
    - name: StartMessageMoveTask
    - name: ListMessageMoveTasks

Fields

interface.operations

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.

interface.sourceQueueRef

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.

interface.destinationQueueRef

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.

interface.maxMessagesPerSecond

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.

Allowed values for interface.operations[].name
ValueDescription
CancelMessageMoveTaskStop a move that is running. The platform decides which permission this needs.
ListMessageMoveTasksSee the recent moves out of the dead-letter queue.
StartMessageMoveTaskStart moving messages. The platform works out the permissions needed on both queues, and does not add other operations for the workload.