跳转到主内容

是否可以指定包含两个主题的桶 SNS ?

Views:
12
Visibility:
Public
Votes:
0
Category:
storagegrid
Specialty:
sgrid
Last Updated:

适用于

  • StorageGRID
  • 简单存储服务( S3 )

解答

是,但需要筛选器。一条简单通知服务( SNS )消息只能发送到一个 SNS 主题。

其他信息

配置事件通知

Amazon SNS 常见问题解答

 

使用 2 个主题进行配置

示例:

<NotificationConfiguration>
   <TopicConfiguration>
       <Id>Objects-created</Id>
       <Filter>
           <S3Key>
               <FilterRule>
                   <Name>prefix</Name>
                   <Value>testprefix/</Value>
               </FilterRule>
           </S3Key>
       </Filter>
       <Topic>urn:mysite:sns:region::snstopic</Topic>
       <Event>s3:ObjectCreated:*</Event>
   </TopicConfiguration>
   <TopicConfiguration>
       <Id>Objects-created2</Id>
       <Filter>
           <S3Key>
               <FilterRule>
                   <Name>prefix</Name>
                   <Value>testprefix2/</Value>
               </FilterRule>
           </S3Key>
       </Filter>
       <Topic>urn:mysite:sns:region::snstopic2</Topic>
       <Event>s3:ObjectCreated:*</Event>
   </TopicConfiguration>
</NotificationConfiguration>

 

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.
Scan to view the article on your device