aws sns

Create topics and subscriptions, send and receive messages, and monitor events and logs for the Amazon Simple Notification Service. More information: https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sns/index.html.

aws sns list-{{origination-numbers|phone-numbers-opted-out|platform-applications|sms-sandbox-phone-numbers|subscriptions|topics}}

aws sns create-topic --name {{name}}

aws sns subscribe --topic-arn {{topic_ARN}} --protocol email --notification-endpoint {{email}}

aws sns publish {{--topic-arn "arn:aws:sns:us-west-2:123456789012:topic-name"||--phone-number +1-555-555-0100}} --message file://{{path/to/file}}

aws sns unsubscribe --subscription-arn {{subscription_ARN}}

aws sns create-platform-endpoint --platform-application-arn {{platform_application_ARN}} --token {{token}}

aws sns add-permission --topic-arn {{topic_ARN}} --label {{topic_label}} --aws-account-id {{account_id}} --action-name {{AddPermission|CreatePlatformApplication|DeleteEndpoint|GetDataProtectionPolicy|GetEndpointAttributes|Subscribe|...}}

aws sns tag-resource --resource-arn {{topic_ARN}} --tags {{Key=tag1_key Key=tag2_key,Value=tag2_value ...}}