Введение в AWS Boto на 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'
)

Публикация в тему

Отправка одиночного SMS

Публикация в тему
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'
)
Введение в AWS Boto на Python