

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 使用 AWS SDKs的 Amazon SNS 動作
<a name="service_code_examples_actions"></a>

下列程式碼範例示範如何使用 AWS SDKs 執行個別 Amazon SNS 動作。每個範例均包含 GitHub 的連結，您可以在連結中找到設定和執行程式碼的相關說明。

這些摘錄會呼叫 Amazon SNS API，是必須在內容中執行之大型程式的程式碼摘錄。您可以在 [使用 AWS SDKs Amazon SNS 案例](service_code_examples_scenarios.md) 中查看內容中的動作。

 下列範例僅包含最常使用的動作。如需完整的列表，請參閱 [Amazon Simple Notification Service API 參考資料](https://docs.aws.amazon.com/sns/latest/api/welcome.html)。

**Topics**
+ [`CheckIfPhoneNumberIsOptedOut`](example_sns_CheckIfPhoneNumberIsOptedOut_section.md)
+ [`ConfirmSubscription`](example_sns_ConfirmSubscription_section.md)
+ [`CreateTopic`](example_sns_CreateTopic_section.md)
+ [`DeleteTopic`](example_sns_DeleteTopic_section.md)
+ [`GetSMSAttributes`](example_sns_GetSMSAttributes_section.md)
+ [`GetTopicAttributes`](example_sns_GetTopicAttributes_section.md)
+ [`ListPhoneNumbersOptedOut`](example_sns_ListPhoneNumbersOptedOut_section.md)
+ [`ListSubscriptions`](example_sns_ListSubscriptions_section.md)
+ [`ListTopics`](example_sns_ListTopics_section.md)
+ [`Publish`](example_sns_Publish_section.md)
+ [`SetSMSAttributes`](example_sns_SetSMSAttributes_section.md)
+ [`SetSubscriptionAttributes`](example_sns_SetSubscriptionAttributes_section.md)
+ [`SetSubscriptionAttributesRedrivePolicy`](example_sns_SetSubscriptionAttributesRedrivePolicy_section.md)
+ [`SetTopicAttributes`](example_sns_SetTopicAttributes_section.md)
+ [`Subscribe`](example_sns_Subscribe_section.md)
+ [`TagResource`](example_sns_TagResource_section.md)
+ [`Unsubscribe`](example_sns_Unsubscribe_section.md)