PutBucketLogging
Last updated
Last updated
Enables and disables the mechanism for logging actions with the bucket.
Parameter | Description |
---|---|
Parameter | Description |
---|---|
To enable logging of actions with the bucket:
Element | Description |
---|---|
To disable logging of actions with the bucket:
Use only common request headers in requests.
Responses can only contain common response headers.
For a list of possible responses, see Responses.
A successful response does not contain any additional data.
bucket
Name of the bucket.
logging
Required parameter that indicates the type of operation.
BucketLoggingStatus
Root element.
TargetBucket
The name of the target bucket where the objects are saved with logs. Type: String.
TargetPrefix
Object key prefix with logs. Type: String.