class Aws::S3::Types::PutBucketLifecycleConfigurationRequest

@note When making an API call, you may pass PutBucketLifecycleConfigurationRequest

data as a hash:

    {
      bucket: "BucketName", # required
      lifecycle_configuration: {
        rules: [ # required
          {
            expiration: {
              date: Time.now,
              days: 1,
              expired_object_delete_marker: false,
            },
            id: "ID",
            prefix: "Prefix",
            filter: {
              prefix: "Prefix",
              tag: {
                key: "ObjectKey", # required
                value: "Value", # required
              },
              and: {
                prefix: "Prefix",
                tags: [
                  {
                    key: "ObjectKey", # required
                    value: "Value", # 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,
            },
          },
        ],
      },
      expected_bucket_owner: "AccountId",
    }

@!attribute [rw] bucket

The name of the bucket for which to set the configuration.
@return [String]

@!attribute [rw] lifecycle_configuration

Container for lifecycle rules. You can add as many as 1,000 rules.
@return [Types::BucketLifecycleConfiguration]

@!attribute [rw] expected_bucket_owner

The account ID of the expected bucket owner. If the bucket is owned
by a different account, the request will fail with an HTTP `403
(Access Denied)` error.
@return [String]

@see docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketLifecycleConfigurationRequest AWS API Documentation

Constants

SENSITIVE