Notification
Topics, subscriptions, and push notifications
Notification
SDK-compat status: Portable Go API only. Real
aws-sdk-go-v2/service/sns, Notification Hubs ARM, and FCM REST clients can't talk to cloudemu yet — notification SDK-compat handlers will ship in lockstep across all 3 providers in a future phase. Topics, subscriptions, fan-out, and message-attribute filtering are already available through the Portable Go API below.
Emulates notification services: SNS (AWS), NotificationHubs (Azure), FCM (GCP).
Provider Mapping
| Provider | Service | Access |
|---|---|---|
| AWS | SNS | aws.SNS |
| Azure | Notification Hubs | azure.NotificationHubs |
| GCP | FCM | gcp.FCM |
Key Operations
Topics and Subscriptions
import notifdriver "github.com/stackshy/cloudemu/notification/driver"
topic, _ := aws.SNS.CreateTopic(ctx, notifdriver.TopicConfig{
Name: "order-events",
})
sub, _ := aws.SNS.Subscribe(ctx, notifdriver.SubscriptionConfig{
TopicID: topic.ID,
Protocol: "email",
Endpoint: "team@example.com",
})Publishing
aws.SNS.Publish(ctx, notifdriver.PublishInput{
TopicID: topic.ID,
Message: "New order received",
Attributes: map[string]string{"orderType": "express"},
})