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

Visibility timout #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all 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
9 changes: 5 additions & 4 deletions lib/serverless-sns-sqs-lambda.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,10 @@ Usage
* from SNS as they arrive, holding them for processing.
*
* @param {object} template the template which gets mutated
* @param {{name, prefix, maxRetryCount}} config including name of the queue,
* @param {{name, prefix, maxRetryCount, visibilityTimeout}} config including name of the queue,
* the resource prefix and the max retry count for message handler failures.
*/
addEventQueue(template, { name, prefix, maxRetryCount }) {
addEventQueue(template, { name, prefix, maxRetryCount, visibilityTimeout }) {
template.Resources[`${name}Queue`] = {
Type: "AWS::SQS::Queue",
Properties: {
Expand All @@ -224,7 +224,8 @@ Usage
"Fn::GetAtt": [`${name}DeadLetterQueue`, "Arn"]
},
maxReceiveCount: maxRetryCount
}
},
VisibilityTimeout: visibilityTimeout
}
};
}
Expand Down Expand Up @@ -266,7 +267,7 @@ Usage
* @param {{name, topicArn, filterPolicy}} config including name of the queue,
* the arn of the topic and the filter policy for the subscription
*/
addTopicSubscription(template, { name, topicArn, filterPolicy, rawMessageDelivery}) {
addTopicSubscription(template, { name, topicArn, filterPolicy, rawMessageDelivery }) {
template.Resources[`Subscribe${name}Topic`] = {
Type: "AWS::SNS::Subscription",
Properties: {
Expand Down