Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

AWS Simple Notification Service (SNS)

Schemessns://
Cargo featureservice-sns
Servicehttps://aws.amazon.com/sns/
Body formatstext (first is the default)
Attachmentsno
Title lengthno title (merged into the body)
Body length160 characters
Body linesunlimited
Request throttle2500 ms between requests
Vendor URLs acceptedno

URL formats

{schema}://{token}@{access_key_id}/{secret_access_key}/{region}/{targets}
{schema}://{access_key_id}/{secret_access_key}/{region}/{targets}

{schema} is one of sns://.

URL tokens

TokenMeaningTypeRequiredDefaultNotes
{access_key_id}Access Key IDstringyessecret
{region}Regionstringyesmust match ^[a-z]{2}-[a-z-]+?-[0-9]+$
{secret_access_key}Secret Access Keystringyessecret
{target_phone_no}Target Phone Nostringnomust match ^[0-9\s)(+-]+$
{target_topic}Target Topicstringnoprefix #; must match ^[A-Za-z0-9_-]+$
{targets}Targetslistyesany of target_phone_no, target_topic; separated by /
{token}Session Tokenstringnosecret

Query parameters

ParameterMeaningTypeDefaultNotes
accessAccess Key IDstringsets {access_key_id}
keyAccess Key IDstringsets {access_key_id}
modeModechoicesms (usually; depends on the URL)one of sms, topic
regionRegionstringsets {region}
secretSecret Access Keystringsets {secret_access_key}
toTargetslistsets {targets}
tokenSession Tokenstringsets {token}

The common URL parameters (format, overflow, verify, redirect, cto, rto, retry, wait, store, tag, tz, user, password, port, optional, emojis) apply as well.

Examples

Accepted URLs (tokens are fake):

sns://T1JJ3T3L2/A1BRTD4JD/TIiajkdnlazkcevi7FQ/us-west-2/12223334444
sns://T1JJ3T3L2/A1BRTD4JD/TIiajkdnlazkcevi7FQ/us-east-1/MyTopic/12223334444
sns://SESSIONTOKEN@T1JJ3T3L2/A1BRTD4JD/TIiajkdnlazkcevi7FQ/us-east-1/12223334444
sns://T1JJ3T3L2/A1BRTD4JD/TIiajkdnlazkcevi7FQ/us-east-1/MyTopic/12223334444?mode=t
sns://T1JJ3T3L2/A1BRTD4JD/TIiajkdnlazkcevi7FQ/us-east-1/MyTopic?mode=sms
sns://OTHER@T1JJ3T3L2/A1BRTD4JD/TIiajkdnlazkcevi7FQ/us-east-1/12223334444?token=TOK%2Bx%3D
sns://?key=T1JJ3T3L2&secret=A1BRTD4JD/TIiajkdnlazkcevi7FQ&region=US-WEST-2&to=12223334444
sns://?access=T1JJ3T3L2&secret=A1BRTD4JD/TIiajkdnlazkcevi7FQ&region=us-west-2&to=12223334444

Rejected URLs:

sns://
sns://T1JJ3T3L2
sns://T1JJ3TD4JD/TIiajkdnlazk7FQ/
sns://T1JJ3T3L2/A1BRTD4JD/TIiajkdnlazkcevi7FQ/us-east-1/12223334444?region=useast

Send one from the command line:

mercurio -t 'Backup' -b 'Finished in 42s' 'sns://T1JJ3T3L2/A1BRTD4JD/TIiajkdnlazkcevi7FQ/us-west-2/12223334444'

Notes

AWS Simple Notification Service (sns://): SMS and topic messages through AWS SNS.

Requests are signed with AWS Signature Version 4 when they are sent.