Python เบื้องต้นสำหรับ AWS Boto
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'
)

เผยแพร่ไปยัง Topic

ส่ง SMS เดี่ยว

เผยแพร่ไปยัง 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'
)
ส่ง SMS เดี่ยว
response = sns.publish(
PhoneNumber = '+13121233211',
Message = 'Body text of SMS or e-mail'
)
Python เบื้องต้นสำหรับ AWS Boto