Introducere în AWS Boto în 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'
)

Publicare pe un topic

Trimitere SMS individual

Publicare pe un 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'
)
Trimitere SMS individual
response = sns.publish(
PhoneNumber = '+13121233211',
Message = 'Body text of SMS or e-mail'
)
Introducere în AWS Boto în Python