Class: Aws::S3Control::Types::PutBucketLifecycleConfigurationRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-s3control/lib/aws-sdk-s3control/types.rb

Overview

Note:

When making an API call, you may pass PutBucketLifecycleConfigurationRequest data as a hash:

{
  account_id: "AccountId", # required
  bucket: "BucketName", # required
  lifecycle_configuration: {
    rules: [
      {
        expiration: {
          date: Time.now,
          days: 1,
          expired_object_delete_marker: false,
        },
        id: "ID",
        filter: {
          prefix: "Prefix",
          tag: {
            key: "TagKeyString", # required
            value: "TagValueString", # required
          },
          and: {
            prefix: "Prefix",
            tags: [
              {
                key: "TagKeyString", # required
                value: "TagValueString", # required
              },
            ],
          },
        },
        status: "Enabled", # required, accepts Enabled, Disabled
        transitions: [
          {
            date: Time.now,
            days: 1,
            storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
          },
        ],
        noncurrent_version_transitions: [
          {
            noncurrent_days: 1,
            storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
          },
        ],
        noncurrent_version_expiration: {
          noncurrent_days: 1,
        },
        abort_incomplete_multipart_upload: {
          days_after_initiation: 1,
        },
      },
    ],
  },
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#account_idString

The Amazon Web Services account ID of the Outposts bucket.

Returns:

  • (String)


4652
4653
4654
4655
4656
4657
4658
# File 'gems/aws-sdk-s3control/lib/aws-sdk-s3control/types.rb', line 4652

class PutBucketLifecycleConfigurationRequest < Struct.new(
  :account_id,
  :bucket,
  :lifecycle_configuration)
  SENSITIVE = []
  include Aws::Structure
end

#bucketString

The name of the bucket for which to set the configuration.

Returns:

  • (String)


4652
4653
4654
4655
4656
4657
4658
# File 'gems/aws-sdk-s3control/lib/aws-sdk-s3control/types.rb', line 4652

class PutBucketLifecycleConfigurationRequest < Struct.new(
  :account_id,
  :bucket,
  :lifecycle_configuration)
  SENSITIVE = []
  include Aws::Structure
end

#lifecycle_configurationTypes::LifecycleConfiguration

Container for lifecycle rules. You can add as many as 1,000 rules.



4652
4653
4654
4655
4656
4657
4658
# File 'gems/aws-sdk-s3control/lib/aws-sdk-s3control/types.rb', line 4652

class PutBucketLifecycleConfigurationRequest < Struct.new(
  :account_id,
  :bucket,
  :lifecycle_configuration)
  SENSITIVE = []
  include Aws::Structure
end