

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

# Amazon SNS 事件目的地
<a name="sns-event-destinations"></a>

本主題列出所有事件目的地，依[application-to-application(A2A) 訊息](sns-system-to-system-messaging.md)和[application-to-person(A2P) 通知](sns-user-notifications.md)進行組織。

**注意**  
Amazon SNS 在 2020 年 10 月推出 [FIFO 主題](sns-fifo-topics.md)。目前，大多數 AWS 服務僅支援從 SNS 標準主題接收事件。Amazon SQS 支援從 SNS 標準和 FIFO 主題接收事件。

## A2A 目的地
<a name="sns-event-destinations-a2a"></a>

下表說明 Amazon SNS 如何將事件交付到各種application-to-application(A2A) 目的地，例如 、Lambda、Amazon SQS、 AWS 事件分叉管道和 HTTP/S 端點。

這些整合可讓您封存和分析資料、觸發自訂商業邏輯、促進應用程式整合，以及將事件路由到外部 Webhook，進而提升事件驅動型架構的效率和彈性。


| 事件目的地 | 搭配使用 Amazon SNS 的優點 | 
| --- | --- | 
|  [https://docs.aws.amazon.com/firehose/latest/dev/what-is-this-service.html](https://docs.aws.amazon.com/firehose/latest/dev/what-is-this-service.html)  |  將事件傳遞至交付串流，以供封存和分析之用。透過交付串流，您可以將事件傳遞至 AWS 目的地，例如 Amazon Simple Storage Service (Amazon S3)、Amazon Redshift 和 Amazon OpenSearch Service (OpenSearch Service) 或第三方目的地，如 Datadog、New Relic、MongoDB 和 Splunk。如需詳細資訊，請參閱[散發到 Firehose 交付串流](sns-firehose-as-subscriber.md)。  | 
|  [AWS Lambda](https://docs.aws.amazon.com/lambda/latest/dg/welcome.html)  |  將事件傳遞至函數，以觸發自訂商業邏輯的執行。如需詳細資訊，請參閱[向 Lambda 函數發出 Amazon SNS 通知以進行自動化處理](sns-lambda-as-subscriber.md)。  | 
|  [Amazon SQS](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/welcome.html)  |  將事件傳遞至佇列以供應用程式整合之用。如需詳細資訊，請參閱[向 Amazon SQS 佇列發出 Amazon SNS 通知以進行非同步處理 Amazon SQS](sns-sqs-as-subscriber.md)。  | 
|  AWS 事件分叉管道  |  將事件傳遞至事件備份與儲存、事件搜尋與分析，或事件重新執行管道。如需詳細資訊，請參閱[將 Amazon SNS 事件散發至 AWS 事件分叉管道](sns-fork-pipeline-as-subscriber.md)。  | 
|  HTTP/S  |  將事件傳遞給外部網路掛鉤。如需詳細資訊，請參閱[向 HTTPS 端點散發 Amazon SNS 通知](sns-http-https-endpoint-as-subscriber.md)。  | 

## A2P 目的地
<a name="sns-event-destinations-a2p"></a>

下表說明 Amazon SNS 如何透過 SMS 和原生推播通知、電子郵件收件匣、Amazon Chime 聊天室、Slack 管道，以及操作洞察，透過 PagerDuty 將application-to-person (A2P) 通知傳遞至各種目的地。

這些整合透過啟用跨多個平台和通訊管道的即時提醒和更新，來增強通訊和營運效率。


| 事件目的地 | 搭配使用 Amazon SNS 的優點 | 
| --- | --- | 
|  簡訊  |  以簡訊形式將事件傳遞至行動電話。如需詳細資訊，請參閱[使用 Amazon SNS 傳送行動簡訊](sns-mobile-phone-number-as-subscriber.md)。  | 
|  電子郵件  |  以電子郵件的形式傳遞事件至收件匣。如需詳細資訊，請參閱[Amazon SNS 電子郵件訂閱設定和管理](sns-email-notifications.md)。  | 
|  平台端點  |  將事件做為原生推送通知傳送至行動電話。如需詳細資訊，請參閱[使用 Amazon SNS 傳送行動推播通知](sns-mobile-application-as-subscriber.md)。  | 
|  [聊天應用程式中的 Amazon Q Developer](https://docs.aws.amazon.com/chatbot/latest/adminguide/what-is.html)  |  將活動傳遞至 Amazon Chime 聲聊天室或 Slack 頻道。如需詳細資訊，請參閱*聊天應用程式管理員指南中的 Amazon Q Developer 中的*下列頁面： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/sns/latest/dg/sns-event-destinations.html)  | 
|  PagerDuty  |  將營運洞察提供給待命團隊。如需詳細資訊，請參閱 *AWS 管理與治理部落格*上的[透過使用 Amazon DevOps Guru 的 PagerDuty 將以 ML 為基礎的營運深入解析提供給您的待命團隊](https://aws.amazon.com/blogs/mt/deliver-ml-powered-operational-insights-to-your-on-call-teams-via-pagerduty-with-amazon-devops-guru/)。  | 

**注意**  
您可以將原生 AWS 事件和自訂事件交付至聊天應用程式：  
**原生 AWS 事件** – 您可以在聊天應用程式中使用 Amazon Q Developer，透過 Amazon SNS 主題將原生 AWS 事件傳送至 Amazon Chime 和 Slack。支援的一組原生 AWS 事件包括來自 AWS 帳單與成本管理、 AWS Health AWS CloudFormation、Amazon CloudWatch 等的事件。如需詳細資訊，請參閱[《聊天應用程式管理員指南》中的在聊天應用程式中使用 Amazon Q 開發人員與其他 服務](https://docs.aws.amazon.com/chatbot/latest/adminguide/related-services.html)。 **
**自訂事件** - 您也可以透過 Amazon SNS 主題將自訂事件傳送至 Amazon Chime、Slack 和 Microsoft 團隊。若要執行這項操作，您可以將自訂事件發佈至 SNS 主題，該主題將事件傳遞至已訂閱的 Lambda 函數。然後 Lambda 函數會使用聊天應用程式的 webhook 將事件傳遞給收件者。如需詳細資訊，請參閱[如何使用網路掛鉤將 Amazon SNS 訊息發佈到 Amazon Chime、Slack 或 Microsoft 團隊？](https://aws.amazon.com/premiumsupport/knowledge-center/sns-lambda-webhooks-chime-slack-teams/)