SNS
Parity grade: A · SDK aws-sdk-go-v2/service/sns@v1.47.5 · last audited 2026-10-07 (a72029cb1)
Category: Messaging & Integration · View PARITY.md on GitHub · All Services
In-memory SNS with standard and FIFO topics, subscriptions, filter policies, platform applications and the SMS sandbox.
Quick start
bash
export AWS_ENDPOINT_URL=http://localhost:8000
aws sns create-topic --name my-topic
aws sns subscribe \
--topic-arn arn:aws:sns:us-east-1:000000000000:my-topic \
--protocol sqs \
--notification-endpoint arn:aws:sqs:us-east-1:000000000000:my-queue
aws sns publish \
--topic-arn arn:aws:sns:us-east-1:000000000000:my-topic \
--subject "Test" --message "Event payload" \
--message-attributes '{"EventType":{"DataType":"String","StringValue":"OrderPlaced"}}'
aws sns list-subscriptions-by-topic \
--topic-arn arn:aws:sns:us-east-1:000000000000:my-topicSupported operations
| Area | Operations |
|---|---|
| Topics | CreateTopic, DeleteTopic, ListTopics, GetTopicAttributes, SetTopicAttributes, GetDataProtectionPolicy, PutDataProtectionPolicy |
| Subscriptions | Subscribe, ConfirmSubscription, Unsubscribe, ListSubscriptions, ListSubscriptionsByTopic, GetSubscriptionAttributes, SetSubscriptionAttributes |
| Publishing | Publish, PublishBatch |
| Permissions | AddPermission, RemovePermission |
| Tags | TagResource, UntagResource, ListTagsForResource |
| Platform applications | CreatePlatformApplication, DeletePlatformApplication, ListPlatformApplications, GetPlatformApplicationAttributes, SetPlatformApplicationAttributes, CreatePlatformEndpoint, DeleteEndpoint, GetEndpointAttributes, SetEndpointAttributes, ListEndpointsByPlatformApplication |
| SMS | GetSMSAttributes, SetSMSAttributes, CheckIfPhoneNumberIsOptedOut, ListPhoneNumbersOptedOut, OptInPhoneNumber, ListOriginationNumbers |
| SMS sandbox | CreateSMSSandboxPhoneNumber, VerifySMSSandboxPhoneNumber, DeleteSMSSandboxPhoneNumber, ListSMSSandboxPhoneNumbers, GetSMSSandboxAccountStatus |
Behaviour
sqs,lambda,firehoseand mobile-push (application) subscriptions are confirmed on creation.http,https,emailandemail-jsonsubscriptions stay pending untilConfirmSubscriptionis called with the token. HTTP(S) endpoints receive aSubscriptionConfirmationmessage carrying aSubscribeURL.- Filter policies are evaluated on fan-out, on message attributes or on the body (
FilterPolicyScope=MessageBody). - Delivery-status logging uses the
*SuccessFeedbackRoleArnand*FailureFeedbackRoleArntopic attributes.
Differences from AWS
NOTE
SMSMonthToDateSpentUSD and SMSSuccessRate are not emitted. They need per-country SMS pricing and carrier receipts.
Parity & Coverage
| Metric | Value |
|---|---|
| PARITY entries audited | 34 (34 ok) |
| Feature families | 6 (6 ok) |
| Known gaps | none |
| Structural gaps (can't be emulated) | 1 |
| Deferred items | 1 |
| Resource leaks | clean |
Structural Gaps
These do not block an A grade — no implementation could produce real data here because the underlying data source cannot exist in an emulator.
- SMSMonthToDateSpentUSD and SMSSuccessRate are not emitted: they need per-country SMS pricing and carrier delivery receipts, which an emulator does not have.
Deferred Items
- PutDataProtectionPolicy: the policy statement grammar (DataIdentifier ARNs, Operation/Audit/De-identify/Deny shapes, Principal formats) is not validated — only the top-level document shape (JSON object, <=30,720 chars, Name/Version/Statement present). Amazon SNS message data protection is also no longer available to new customers as of 2026-04-30 per docs.aws.amazon.com/sns/latest/dg/sns-message-data-protection-availability-change.html (existing customers may continue using it); implementing the full grammar is disproportionate feature work for a frozen/legacy feature and was explicitly out of scope this pass (bd gopherstack-4wtz).
Audited Operations
34 audited operations
| Operation | Wire | Errors | State | Persist |
|---|---|---|---|---|
CreateTopic | ok | ok | ok | ok |
DeleteTopic | ok | ok | ok | ok |
ListTopics | ok | ok | ok | ok |
GetTopicAttributes | ok | ok | ok | ok |
SetTopicAttributes | ok | ok | ok | ok |
Subscribe | ok | ok | ok | ok |
ConfirmSubscription | ok | ok | ok | ok |
Unsubscribe | ok | ok | ok | ok |
ListSubscriptions | ok | ok | ok | ok |
ListSubscriptionsByTopic | ok | ok | ok | ok |
GetSubscriptionAttributes | ok | ok | ok | ok |
SetSubscriptionAttributes | ok | ok | ok | ok |
Publish | ok | ok | ok | ok |
PublishBatch | fixed | ok | ok | ok |
PublishToTargetArn (TargetArn publish) | ok | ok | ok | n/a |
PublishSMS (PhoneNumber publish) | ok | ok | ok | n/a |
CreatePlatformApplication | ok | ok | ok | ok |
GetPlatformApplicationAttributes | ok | ok | ok | ok |
SetPlatformApplicationAttributes | ok | ok | ok | ok |
ListPlatformApplications | ok | ok | ok | ok |
DeletePlatformApplication | ok | ok | ok | ok |
CreatePlatformEndpoint | ok | ok | ok | ok |
GetEndpointAttributes | ok | ok | ok | ok |
SetEndpointAttributes | ok | ok | ok | ok |
ListEndpointsByPlatformApplication | ok | ok | ok | ok |
DeleteEndpoint | ok | ok | ok | ok |
AddPermission | ok | ok | ok | ok |
RemovePermission | ok | ok | ok | ok |
GetSMSSandboxAccountStatus/CreateSMSSandboxPhoneNumber/DeleteSMSSandboxPhoneNumber/ListSMSSandboxPhoneNumbers/VerifySMSSandboxPhoneNumber | ok | ok | ok | ok |
CheckIfPhoneNumberIsOptedOut/ListPhoneNumbersOptedOut/OptInPhoneNumber | ok | ok | ok | ok |
GetSMSAttributes/SetSMSAttributes | ok | ok | ok | ok |
GetDataProtectionPolicy/PutDataProtectionPolicy | ok | ok | ok | ok |
ListOriginationNumbers | fixed | ok | ok | ok |
TagResource/UntagResource/ListTagsForResource | ok | ok | ok | ok |
Audited Feature Families
| Feature Family | Status |
|---|---|
filter_policy_matching | ok |
fifo_topics | ok |
delivery_lambda_firehose_sms_application | ok |
replay_policy_archive | ok |
http_https_delivery | ok |
error_codes | ok |
