创建 Amazon S3 存储桶时发送通知

问题描述 投票:0回答:1

创建 Amazon S3 存储桶时如何发送通知?当我搜索时,所有示例都是关于对象创建的。你能重定向我吗?

amazon-web-services amazon-s3 notifications amazon-sns
1个回答
0
投票

为了在创建存储桶时接收通知,您必须依赖 CloudTrail API。

在 EventBridge 中,您可以创建这样的事件模式:

{
  "source": ["aws.s3"],
  "detail-type": ["AWS API Call via CloudTrail"],
  "detail": {
    "eventSource": ["s3.amazonaws.com"],
    "eventName": ["CreateBucket"]
  }
}
© www.soinside.com 2019 - 2024. All rights reserved.