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)


6907
6908
6909
6910
6911
6912
# File 'lib/aws-sdk-s3/types.rb', line 6907

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

#bucket_logging_statusTypes::BucketLoggingStatus



6907
6908
6909
6910
6911
6912
# File 'lib/aws-sdk-s3/types.rb', line 6907

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

#content_md5String

Returns:

  • (String)


6907
6908
6909
6910
6911
6912
# File 'lib/aws-sdk-s3/types.rb', line 6907

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