Skip to content

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-topic

Supported operations ​

AreaOperations
TopicsCreateTopic, DeleteTopic, ListTopics, GetTopicAttributes, SetTopicAttributes, GetDataProtectionPolicy, PutDataProtectionPolicy
SubscriptionsSubscribe, ConfirmSubscription, Unsubscribe, ListSubscriptions, ListSubscriptionsByTopic, GetSubscriptionAttributes, SetSubscriptionAttributes
PublishingPublish, PublishBatch
PermissionsAddPermission, RemovePermission
TagsTagResource, UntagResource, ListTagsForResource
Platform applicationsCreatePlatformApplication, DeletePlatformApplication, ListPlatformApplications, GetPlatformApplicationAttributes, SetPlatformApplicationAttributes, CreatePlatformEndpoint, DeleteEndpoint, GetEndpointAttributes, SetEndpointAttributes, ListEndpointsByPlatformApplication
SMSGetSMSAttributes, SetSMSAttributes, CheckIfPhoneNumberIsOptedOut, ListPhoneNumbersOptedOut, OptInPhoneNumber, ListOriginationNumbers
SMS sandboxCreateSMSSandboxPhoneNumber, VerifySMSSandboxPhoneNumber, DeleteSMSSandboxPhoneNumber, ListSMSSandboxPhoneNumbers, GetSMSSandboxAccountStatus

Behaviour ​

  • sqs, lambda, firehose and mobile-push (application) subscriptions are confirmed on creation.
  • http, https, email and email-json subscriptions stay pending until ConfirmSubscription is called with the token. HTTP(S) endpoints receive a SubscriptionConfirmation message carrying a SubscribeURL.
  • Filter policies are evaluated on fan-out, on message attributes or on the body (FilterPolicyScope=MessageBody).
  • Delivery-status logging uses the *SuccessFeedbackRoleArn and *FailureFeedbackRoleArn topic attributes.

Differences from AWS ​

NOTE

SMSMonthToDateSpentUSD and SMSSuccessRate are not emitted. They need per-country SMS pricing and carrier receipts.

Parity & Coverage ​

MetricValue
PARITY entries audited34 (34 ok)
Feature families6 (6 ok)
Known gapsnone
Structural gaps (can't be emulated)1
Deferred items1
Resource leaksclean

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
OperationWireErrorsStatePersist
CreateTopicokokokok
DeleteTopicokokokok
ListTopicsokokokok
GetTopicAttributesokokokok
SetTopicAttributesokokokok
Subscribeokokokok
ConfirmSubscriptionokokokok
Unsubscribeokokokok
ListSubscriptionsokokokok
ListSubscriptionsByTopicokokokok
GetSubscriptionAttributesokokokok
SetSubscriptionAttributesokokokok
Publishokokokok
PublishBatchfixedokokok
PublishToTargetArn (TargetArn publish)okokokn/a
PublishSMS (PhoneNumber publish)okokokn/a
CreatePlatformApplicationokokokok
GetPlatformApplicationAttributesokokokok
SetPlatformApplicationAttributesokokokok
ListPlatformApplicationsokokokok
DeletePlatformApplicationokokokok
CreatePlatformEndpointokokokok
GetEndpointAttributesokokokok
SetEndpointAttributesokokokok
ListEndpointsByPlatformApplicationokokokok
DeleteEndpointokokokok
AddPermissionokokokok
RemovePermissionokokokok
GetSMSSandboxAccountStatus/CreateSMSSandboxPhoneNumber/DeleteSMSSandboxPhoneNumber/ListSMSSandboxPhoneNumbers/VerifySMSSandboxPhoneNumberokokokok
CheckIfPhoneNumberIsOptedOut/ListPhoneNumbersOptedOut/OptInPhoneNumberokokokok
GetSMSAttributes/SetSMSAttributesokokokok
GetDataProtectionPolicy/PutDataProtectionPolicyokokokok
ListOriginationNumbersfixedokokok
TagResource/UntagResource/ListTagsForResourceokokokok

Audited Feature Families ​

Feature FamilyStatus
filter_policy_matchingok
fifo_topicsok
delivery_lambda_firehose_sms_applicationok
replay_policy_archiveok
http_https_deliveryok
error_codesok

Released under the MIT License.