跳转到主内容

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

Views:
4
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>