Class: Aws::S3::Types::Transition

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 Transition data as a hash:

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

Instance Attribute Summary collapse

Instance Attribute Details

#dateTime

Indicates at what date the object is to be moved or deleted. Should be in GMT ISO 8601 Format.

Returns:

  • (Time)


8433
8434
8435
8436
8437
8438
# File 'lib/aws-sdk-s3/types.rb', line 8433

class Transition < Struct.new(
  :date,
  :days,
  :storage_class)
  include Aws::Structure
end

#daysInteger

Indicates the lifetime, in days, of the objects that are subject to the rule. The value must be a non-zero positive integer.

Returns:

  • (Integer)


8433
8434
8435
8436
8437
8438
# File 'lib/aws-sdk-s3/types.rb', line 8433

class Transition < Struct.new(
  :date,
  :days,
  :storage_class)
  include Aws::Structure
end

#storage_classString

The class of storage used to store the object.

Returns:

  • (String)


8433
8434
8435
8436
8437
8438
# File 'lib/aws-sdk-s3/types.rb', line 8433

class Transition < Struct.new(
  :date,
  :days,
  :storage_class)
  include Aws::Structure
end