DocsAWS 101BlogServices

SNS

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

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

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

ConfirmSubscription CreatePlatformApplication CreatePlatformEndpoint CreateTopic DeleteEndpoint DeletePlatformApplication DeleteTopic GetEndpointAttributes GetSubscriptionAttributes GetTopicAttributes 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::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

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