DocsAWS 101BlogServices

SNS

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

Query (form-encoded) multi-tenant 24 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

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

ConfirmSubscription CreatePlatformApplication CreatePlatformEndpoint CreateTopic DeleteEndpoint DeletePlatformApplication DeleteTopic GetEndpointAttributes GetSubscriptionAttributes GetTopicAttributes ListPlatformApplications ListSubscriptions ListSubscriptionsByTopic ListTagsForResource ListTopics Publish PublishBatch SetEndpointAttributes SetSubscriptionAttributes SetTopicAttributes Subscribe TagResource Unsubscribe UntagResource

CloudFormation

The CloudFormation engine provisions these resource types via this service:

AWS::SNS::Subscription AWS::SNS::Topic 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 confirmed and delivered to via real HTTP POST, but the message signature is synthetic (not verifiable against AWS signing certs).

Source

  • ministack/services/sns.py

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