It would be helpful to show a CloudFormation script in both JSON and YAML that would produce the event bridge built in the console in this example.
Thank you for your comment. We'll review and update the Knowledge Center article as needed.
I have one question trying this approach: what if I want to monitor events only for a subfolder of the specified bucket in step 5? is it permitted to write 'buket-name/folder-name' as specific bucket?
Thank you for your comment. We'll review and update the Knowledge Center article as needed.
Hello, If you would like to monitor events specific to a subfolder in the S3 bucket, the event pattern can be modified to include a prefix matching for the "object" field. Here is a sample event pattern to achieve the use case:
{
"source": ["aws.s3"],
"detail-type": ["Object Created"],
"detail": {
"bucket": {
"name": ["bucket-name"]
},
"object": {
"key": [{
"prefix": "folder-name"
}]
}
}
}
Thank you for your comment. We'll review and update the Knowledge Center article as needed.
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor 3 Jahren
- AWS OFFICIALAktualisiert vor einem Jahr
- AWS OFFICIALAktualisiert vor 8 Monaten
- AWS OFFICIALAktualisiert vor 2 Jahren