Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQS Extension Supporting FIFO & Standard Queues. #8

Merged
merged 4 commits into from
Apr 29, 2020
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
110 changes: 110 additions & 0 deletions extensions/sqs/0.1.0.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@

id: sqs
type: bindings
Paul-T-AU marked this conversation as resolved.
Show resolved Hide resolved
title: SQS Extension supporting FIFO & Standard Queques
description: Defines the configuration parameters required for AWS SQS for both standard and FIFO ordered queues
version: '0.1.0'
author: Paul Taylor
definitions:

- hooks:
- 'channels.*.publish'
- 'channels.*.subscribe'
schema:
type: object
required:
- version
- queueType
- name
if:
queueType: fifo
- messageGroupId
- messageDeduplicationId
properties:
version:
type: string
const: '0.1.0'
queueType:
type: string
emum:
- fifo
- standard
name:
type: string
pattern: '^[a-zA-Z0-9\\.\\-_]+$'
if:
queueType: fifo
messageGroupId:
type: string
pattern: '^[a-zA-Z0-9\\.\\-_]+$'
messageDeduplicationId:
type: string
pattern: '^[a-zA-Z0-9\\.\\-_]+$'
receiveRequestAttemptId:
type: string
pattern: '^[a-zA-Z0-9\\.\\-_]+$'
action:
type: string
pattern: '^[a-zA-Z0-9\\.\\-_]+$'
maxNumberOfMessages:
type: integer
visibilityTimeout:
type: integer
waitTimeSeconds:
type: integer
attributeNames:
type: array
items:
type: string
- All
- ApproximateFirstReceiveTimestamp
- ApproximateReceiveCount
- AWSTraceHeader
- SenderId
- SentTimestamp
- MessageDeduplicationId
- MessageGroupId
- SequenceNumber
messageAttributeName:
type: array
items:
type: string
examples:
- description: Example configuration for both fifo & standard queues
exampleFIFOPublish:
publish:
bindings:
sqs:
version: '0.1.0'
queueType: fifo
name: 'https://sqs.ap-soautheast-2.amazonaws.com/75555555/msqs-test.fifo'
messageGroupId: 10020
messageDeduplicationId: 102
action: SendMessage
exampleFIFOSubscribe:
subscribe:
bindings:
sqs:
version: '0.1.0'
queueType: fifo
name: 'https://sqs.ap-soautheast-2.amazonaws.com/75555555/msqs-test.fifo'
attributeNames: 'MessageGroupId'
maxNumberOfMessages: 10
visibilityTimeout: 20
waitTimeSeconds: 2
receiveRequestAttemptId: 'attempt123'
messageAttributeName:
- 'myCustomAttribute1'
- 'myCustomAttribute2'
action: 'ReceiveMessage'
exampleStandardSubscribe:
subscribe:
bindings:
sqs:
subscribe:
version: '0.1.0'
queueType: standard
name: 'https://sqs.ap-soautheast-2.amazonaws.com/75555555/msqs-test'
action: 'ReceiveMessage'