Class: Aws::S3::Types::PutBucketLoggingRequest

Inherits:
Struct
  • Object
show all
Includes:
Aws::Structure
Defined in:
lib/aws-sdk-s3/types.rb

Overview

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",
}

Instance Attribute Summary collapse

Instance Attribute Details

#bucketString

Returns:

  • (String)


6274
6275
6276
6277
6278
6279
# File 'lib/aws-sdk-s3/types.rb', line 6274

class PutBucketLoggingRequest < Struct.new(
  :bucket,
  :bucket_logging_status,
  :content_md5)
  include Aws::Structure
end

#bucket_logging_statusTypes::BucketLoggingStatus



6274
6275
6276
6277
6278
6279
# File 'lib/aws-sdk-s3/types.rb', line 6274

class PutBucketLoggingRequest < Struct.new(
  :bucket,
  :bucket_logging_status,
  :content_md5)
  include Aws::Structure
end

#content_md5String

Returns:

  • (String)


6274
6275
6276
6277
6278
6279
# File 'lib/aws-sdk-s3/types.rb', line 6274

class PutBucketLoggingRequest < Struct.new(
  :bucket,
  :bucket_logging_status,
  :content_md5)
  include Aws::Structure
end