You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-s3/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
        },
        noncurrent_version_transition: {
          noncurrent_days: 1,
          storage_class: "GLACIER", # accepts GLACIER, STANDARD_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)


6144
6145
6146
6147
6148
6149
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 6144

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

#content_md5String

Returns:

  • (String)


6144
6145
6146
6147
6148
6149
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 6144

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

#lifecycle_configurationTypes::LifecycleConfiguration



6144
6145
6146
6147
6148
6149
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 6144

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