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

Class: Aws::S3Control::Types::Transition

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing Transition as input to an Aws::Client method, you can use a vanilla Hash:

{
  date: Time.now,
  days: 1,
  storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
}

Specifies when an object transitions to a specified storage class. For more information about Amazon S3 Lifecycle configuration rules, see Transitioning objects using Amazon S3 Lifecycle in the Amazon Simple Storage Service Developer Guide.

Instance Attribute Summary collapse

Instance Attribute Details

#dateTime

Indicates when objects are transitioned to the specified storage class. The date value must be in ISO 8601 format. The time is always midnight UTC.

Returns:

  • (Time)

    Indicates when objects are transitioned to the specified storage class.

#daysInteger

Indicates the number of days after creation when objects are transitioned to the specified storage class. The value must be a positive integer.

Returns:

  • (Integer)

    Indicates the number of days after creation when objects are transitioned to the specified storage class.

#storage_classString

The storage class to which you want the object to transition.

Possible values:

  • GLACIER
  • STANDARD_IA
  • ONEZONE_IA
  • INTELLIGENT_TIERING
  • DEEP_ARCHIVE

Returns:

  • (String)

    The storage class to which you want the object to transition.