Registry / cloud / aws-aws-sdk-go-v2-service-sns

aws-aws-sdk-go-v2-service-sns

JSON →
library1.33.6gogounverified

The AWS SDK for Go v2 service client for Amazon Simple Notification Service (SNS), enabling push notification messaging.

go get github.com/aws/aws-sdk-go-v2/service/sns
INSTALL
IMPORT
SIG · AWS-AWS-SDK-GO-V2-
A
aws-aws-sdk-go-v2-service-sns
cloudgov1.33.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

sns
github.com/aws/aws-sdk-go-v2/service/sns

List all SNS topics using the AWS SDK v2.

package main import ( "context" "github.com/aws/aws-sdk-go-v2/config" "github.com/aws/aws-sdk-go-v2/service/sns" ) func main() { cfg, err := config.LoadDefaultConfig(context.TODO()) if err != nil { panic(err) } client := sns.NewFromConfig(cfg) result, err := client.ListTopics(context.TODO(), &sns.ListTopicsInput{}) if err != nil { panic(err) } for _, topic := range result.Topics { println(*topic.TopicArn) } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.33.6latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
37 hits · last 30 days
node
35
Resources
aws-aws-sdk-go-v2-service-sns — go get aws-aws-sdk-go-v2-service-sns · libregistry