Skip to content

Instantly share code, notes, and snippets.

@aws-john
aws-john / test-transactional-sns.py
Created May 29, 2020 01:19
Send transactional SMS via Amazon SNS
# Adapted from https://docs.aws.amazon.com/sns/latest/dg/sms_publish-to-phone.html#sms_publish_sdk
# Disclaimer: this is sample code for demonstration purposes only
import boto3
from botocore.exceptions import ClientError
# The AWS Region that you want to use to send the message. For a list of
# AWS Regions where the Amazon Pinpoint API is available, see
# https://docs.aws.amazon.com/pinpoint/latest/apireference/
region = "us-west-2"
@aws-john
aws-john / test-transactional-pinpoint.py
Created May 29, 2020 01:19
Send transactional SMS via Amazon PinPoint
# Adapted from https://docs.aws.amazon.com/pinpoint/latest/developerguide/send-messages-sms.html
# Disclaimer: this is sample code for demonstration purposes only
import boto3
from botocore.exceptions import ClientError
# The AWS Region that you want to use to send the message. For a list of
# AWS Regions where the Amazon Pinpoint API is available, see
# https://docs.aws.amazon.com/pinpoint/latest/apireference/
region = "us-west-2"
@aws-john
aws-john / aws-on-so.md
Last active March 11, 2021 19:32
AWS on StackOverflow: Useful resources