Class: Aws::S3::Types::PutBucketLifecycleRequest

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 PutBucketLifecycleRequest data as a hash:

{
  bucket: "BucketName", # required
  content_md5: "ContentMD5",
  lifecycle_configuration: {
    rules: [ # required
      {
        expiration: {
          date: Time.now,
          days: 1,
          expired_object_delete_marker: false,
        },
        id: "ID",
        prefix: "Prefix", # required
        status: "Enabled", # required, accepts Enabled, Disabled
        transition: {
          date: Time.now,
          days: 1,
          storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA
        },
        noncurrent_version_transition: {
          noncurrent_days: 1,
          storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA
        },
        noncurrent_version_expiration: {
          noncurrent_days: 1,
        },
        abort_incomplete_multipart_upload: {
          days_after_initiation: 1,
        },
      },
    ],
  },
}

Instance Attribute Summary collapse

Instance Attribute Details

#bucketString

Returns:

  • (String)


6230
6231
6232
6233
6234
6235
# File 'lib/aws-sdk-s3/types.rb', line 6230

class PutBucketLifecycleRequest < Struct.new(
  :bucket,
  :content_md5,
  :lifecycle_configuration)
  include Aws::Structure
end

#content_md5String

Returns:

  • (String)


6230
6231
6232
6233
6234
6235
# File 'lib/aws-sdk-s3/types.rb', line 6230

class PutBucketLifecycleRequest < Struct.new(
  :bucket,
  :content_md5,
  :lifecycle_configuration)
  include Aws::Structure
end

#lifecycle_configurationTypes::LifecycleConfiguration



6230
6231
6232
6233
6234
6235
# File 'lib/aws-sdk-s3/types.rb', line 6230

class PutBucketLifecycleRequest < Struct.new(
  :bucket,
  :content_md5,
  :lifecycle_configuration)
  include Aws::Structure
end