python/example_code/sns/README.md
Shows how to use the AWS SDK for Python (Boto3) to work with Amazon Simple Notification Service (Amazon SNS).
<!--custom.overview.start--> <!--custom.overview.end-->Amazon SNS is a web service that enables applications, end-users, and devices to instantly send and receive notifications from the cloud.
For prerequisites, see the README in the python folder.
Install the packages required by these examples by running the following in a virtual environment:
python -m pip install -r requirements.txt
Code excerpts that show you how to call individual service functions.
Code examples that show you how to accomplish a specific task by calling multiple functions within the same service.
Run this example at a command prompt with the following command.
python sns_basics.py
This example shows you how to explore Amazon Textract output through an interactive application.
<!--custom.scenario_prereqs.cross_TextractExplorer.start--> <!--custom.scenario_prereqs.cross_TextractExplorer.end--> <!--custom.scenarios.cross_TextractExplorer.start--> <!--custom.scenarios.cross_TextractExplorer.end-->This example shows you how to create and publish to a FIFO Amazon SNS topic.
<!--custom.scenario_prereqs.sns_PublishFifoTopic.start--> <!--custom.scenario_prereqs.sns_PublishFifoTopic.end-->Start the example by running the following at a command prompt:
python sns_fifo_topic.py
This example shows you how to detect people and objects in a video with Amazon Rekognition.
<!--custom.scenario_prereqs.cross_RekognitionVideoDetection.start--> <!--custom.scenario_prereqs.cross_RekognitionVideoDetection.end--> <!--custom.scenarios.cross_RekognitionVideoDetection.start--> <!--custom.scenarios.cross_RekognitionVideoDetection.end-->This example shows you how to publish SMS messages using Amazon SNS.
<!--custom.scenario_prereqs.sns_PublishTextSMS.start--> <!--custom.scenario_prereqs.sns_PublishTextSMS.end-->Start the example by running the following at a command prompt:
python sns_basics.py
This example shows you how to do the following:
Start the example by running the following at a command prompt:
python ../../cross_service/topics_and_queues/topics_and_queues_scenario.py
This example shows you how to create an AWS Lambda function invoked by Amazon API Gateway.
<!--custom.scenario_prereqs.cross_LambdaAPIGateway.start--> <!--custom.scenario_prereqs.cross_LambdaAPIGateway.end--> <!--custom.scenarios.cross_LambdaAPIGateway.start--> <!--custom.scenarios.cross_LambdaAPIGateway.end-->This example shows you how to create an AWS Lambda function invoked by an Amazon EventBridge scheduled event.
<!--custom.scenario_prereqs.cross_LambdaScheduledEvents.start--> <!--custom.scenario_prereqs.cross_LambdaScheduledEvents.end--> <!--custom.scenarios.cross_LambdaScheduledEvents.start--> <!--custom.scenarios.cross_LambdaScheduledEvents.end-->⚠ Running tests might result in charges to your AWS account.
To find instructions for running these tests, see the README
in the python folder.
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0