Amazon Simple Storage Service
API Reference (API Version 2006-03-01)

PutBucketNotification

No longer used, see the PutBucketNotificationConfiguration operation.

Request Syntax

PUT /?notification HTTP/1.1 Host: Bucket.s3.amazonaws.com Content-MD5: ContentMD5 <?xml version="1.0" encoding="UTF-8"?> <NotificationConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> <TopicConfiguration> <Event>string</Event> <Event>string</Event> ... <Id>string</Id> <Topic>string</Topic> </TopicConfiguration> <QueueConfiguration> <Event>string</Event> <Event>string</Event> ... <Id>string</Id> <Queue>string</Queue> </QueueConfiguration> <CloudFunctionConfiguration> <CloudFunction>string</CloudFunction> <Event>string</Event> <Event>string</Event> ... <Id>string</Id> <InvocationRole>string</InvocationRole> </CloudFunctionConfiguration> </NotificationConfiguration>

URI Request Parameters

The request requires the following URI parameters.

Bucket

The name of the bucket.

Content-MD5

The MD5 hash of the PutPublicAccessBlock request body.

Request Body

The request accepts the following data in XML format.

NotificationConfiguration

Root level tag for the NotificationConfiguration parameters.

Required: Yes

CloudFunctionConfiguration

Container for specifying the AWS Lambda notification configuration.

Type: CloudFunctionConfiguration data type

Required: No

QueueConfiguration

This data type is deprecated. This data type specifies the configuration for publishing messages to an Amazon Simple Queue Service (Amazon SQS) queue when Amazon S3 detects specified events.

Type: QueueConfigurationDeprecated data type

Required: No

TopicConfiguration

This data type is deperecated. A container for specifying the configuration for publication of messages to an Amazon Simple Notification Service (Amazon SNS) topic when Amazon S3 detects specified events.

Type: TopicConfigurationDeprecated data type

Required: No

Response Syntax

HTTP/1.1 200

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: