class Aws::S3::Types::PutBucketLoggingRequest
@note When making an API call, you may pass PutBucketLoggingRequest
data as a hash: { bucket: "BucketName", # required bucket_logging_status: { # required logging_enabled: { target_bucket: "TargetBucket", # required target_grants: [ { grantee: { display_name: "DisplayName", email_address: "EmailAddress", id: "ID", type: "CanonicalUser", # required, accepts CanonicalUser, AmazonCustomerByEmail, Group uri: "URI", }, permission: "FULL_CONTROL", # accepts FULL_CONTROL, READ, WRITE }, ], target_prefix: "TargetPrefix", # required }, }, content_md5: "ContentMD5", expected_bucket_owner: "AccountId", }
@!attribute [rw] bucket
The name of the bucket for which to set the logging parameters. @return [String]
@!attribute [rw] bucket_logging_status
Container for logging status information. @return [Types::BucketLoggingStatus]
@!attribute [rw] content_md5
The MD5 hash of the `PutBucketLogging` request body. For requests made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated automatically. @return [String]
@!attribute [rw] expected_bucket_owner
The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP `403 (Access Denied)` error. @return [String]
@see docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketLoggingRequest AWS API Documentation
Constants
- SENSITIVE