Introduction to AWS Boto in Python
Maksim Pecherskiy
Data engineer
response = sns.publish(
TopicArn = 'arn:aws:sns:us-east-1:320333787981:city_alerts',
Message = 'Body text of SMS or e-mail',
Subject = 'Subject Line for Email'
)
num_of_reports = 137
response = client.publish(
TopicArn = 'arn:aws:sns:us-east-1:320333787981:city_alerts',
Message = 'There are {} reports outstanding'.format(num_of_reports),
Subject = 'Subject Line for Email'
)
response = sns.publish(
PhoneNumber = '+13121233211',
Message = 'Body text of SMS or e-mail'
)
Publish to a topic
Send a single SMS
Publish to a topic
response = sns.publish(
TopicArn = 'arn:aws:sns:us-east-1:320333787981:city_alerts',
Message = 'Body text of SMS or e-mail',
Subject = 'Subject Line for Email'
)
Send a single SMS
response = sns.publish(
PhoneNumber = '+13121233211',
Message = 'Body text of SMS or e-mail'
)
Introduction to AWS Boto in Python