Created
July 19, 2018 02:52
-
-
Save Jimeux/a2648be4311363977a5d13fe60f11507 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
snsClient := sns.New(awsSession) | |
subject := "Test Subject" | |
message := "Test Message" | |
_, err := snsClient.Publish(&sns.PublishInput{ | |
Subject: &subject, | |
Message: &message, | |
TopicArn: &topicARN, | |
}) | |
if err != nil { | |
fmt.Errorf("メッセージを発行できませんでした") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment