Use GetBucketNotification
with a CLI
The following code examples show how to use GetBucketNotification
.
- AWS CLI
-
The following command retrieves the notification configuration for a bucket named
my-bucket
:aws s3api get-bucket-notification --bucket
my-bucket
Output:
{ "TopicConfiguration": { "Topic": "arn:aws:sns:us-west-2:123456789012:my-notification-topic", "Id": "YmQzMmEwM2EjZWVlI0NGItNzVtZjI1MC00ZjgyLWZDBiZWNl", "Event": "s3:ObjectCreated:*", "Events": [ "s3:ObjectCreated:*" ] } }
-
For API details, see GetBucketNotification
in AWS CLI Command Reference.
-
For a complete list of AWS SDK developer guides and code examples, see Developing with Amazon S3 using the AWS SDKs. This topic also includes information about getting started and details about previous SDK versions.