Last chance! 50% off unlimited learning
Sale ends in
# NOT RUN {
# The following example sets notification configuration on a bucket to
# publish the object created events to an SNS topic.
# }
# NOT RUN {
svc$put_bucket_notification_configuration(
Bucket = "examplebucket",
NotificationConfiguration = list(
TopicConfigurations = list(
list(
Events = list(
"s3:ObjectCreated:*"
),
TopicArn = "arn:aws:sns:us-west-2:123456789012:s3-notification-topic"
)
)
)
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab