Pengantar AWS Boto di 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'
)

Terbitkan ke topik

Kirim satu SMS

Terbitkan ke topik
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'
)
Kirim satu SMS
response = sns.publish(
PhoneNumber = '+13121233211',
Message = 'Body text of SMS or e-mail'
)
Pengantar AWS Boto di Python