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, INTELLIGENT_TIERING
        },
        noncurrent_version_transition: {
          noncurrent_days: 1,
          storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING
        },
        noncurrent_version_expiration: {
          noncurrent_days: 1,
        },
        abort_incomplete_multipart_upload: {
          days_after_initiation: 1,
        },
      },
    ],
  },
}

Instance Attribute Summary collapse

Instance Attribute Details

#bucketString

Returns:

  • (String)


6863
6864
6865
6866
6867
6868
# File 'lib/aws-sdk-s3/types.rb', line 6863

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

#content_md5String

Returns:

  • (String)


6863
6864
6865
6866
6867
6868
# File 'lib/aws-sdk-s3/types.rb', line 6863

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

#lifecycle_configurationTypes::LifecycleConfiguration



6863
6864
6865
6866
6867
6868
# File 'lib/aws-sdk-s3/types.rb', line 6863

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