DocsAWS 101BlogServices

SNS

Pub/sub topics with fan-out to SQS, Lambda, HTTP endpoints, and platform applications.

JSON (AWS SDK) multi-tenant 19 operations

Quick start

import boto3
sns = boto3.client("sns", endpoint_url="http://localhost:4566",
                   region_name="us-east-1",
                   aws_access_key_id="test", aws_secret_access_key="test")
topic = sns.create_topic(Name="events")["TopicArn"]
sns.publish(TopicArn=topic, Message="hello")

Supported operations

19 operations exposed by this service as of MiniStack 1.3.14. Extracted directly from the handler dispatch in the source module.

ConfirmSubscription CreatePlatformApplication CreatePlatformEndpoint CreateTopic DeleteTopic GetSubscriptionAttributes GetTopicAttributes ListSubscriptions ListSubscriptionsByTopic ListTagsForResource ListTopics Publish PublishBatch SetSubscriptionAttributes SetTopicAttributes Subscribe TagResource Unsubscribe UntagResource

CloudFormation

The CloudFormation engine provisions these resource types via this service:

AWS::SNS::Topic AWS::SNS::Subscription AWS::SNS::TopicPolicy

See CloudFormation engine for intrinsic support and lifecycle details.

Known limitations

  • SMS and mobile-push endpoints return success without sending anything.
  • HTTP/HTTPS subscriptions are not confirmed or invoked automatically.

Source

  • ministack/services/sns.py:89-149

Read the source to verify the ops list above — dispatch tables and handler functions are the ground truth.