Skip to content

Commit

Permalink
Update title, fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
djfarrelly committed Dec 7, 2023
1 parent 7e59a3b commit afb0ebb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pages/docs/guides/aws-sns-notifications.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Using SNS to trigger functions
# Using Amazon SNS to trigger functions

Amazon's [Simple Notification Service (SNS)](https://aws.amazon.com/sns/) is a pub/sub service that allows you to send messages to a topic and have them delivered to subscribers. In this example, we'll use SNS to trigger an Inngest function when a new file is uploaded to an S3 bucket.

Expand Down Expand Up @@ -34,7 +34,7 @@ function transform(evt, headers = {}, queryParams = {}) {
} catch(e) {
// If the fails, push the entire SNS notification through:
return {
id: evt.MessageId, // used for deduplication
id: evt.MessageId,
name: `aws.sns/${evt.Notification}`,
data: evt,
};
Expand All @@ -57,7 +57,7 @@ function transform(evt, headers = {}, queryParams = {}) {
} catch(e) {/* noop */}

return {
id: e.MessageId, // used for deduplication
id: evt.MessageId, // used for deduplication
name: `sns/${evt.Notification}`,
data: { ...evt, Message },
};
Expand Down
2 changes: 1 addition & 1 deletion shared/Docs/navigationStructure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const sectionGuides = [
href: `/docs/guides/user-defined-workflows`,
},
{
title: "Using SNS to trigger functions",
title: "Using Amazon SNS to trigger functions",
href: `/docs/guides/aws-sns-notifications`,
},
{
Expand Down

0 comments on commit afb0ebb

Please sign in to comment.