创建 Amazon S3 存储桶时如何发送通知?当我搜索时,所有示例都是关于对象创建的。你能重定向我吗?
为了在创建存储桶时接收通知,您必须依赖 CloudTrail API。
在 EventBridge 中,您可以创建这样的事件模式:
{
"source": ["aws.s3"],
"detail-type": ["AWS API Call via CloudTrail"],
"detail": {
"eventSource": ["s3.amazonaws.com"],
"eventName": ["CreateBucket"]
}
}