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

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-s3/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
}

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)


7280
7281
7282
7283
7284
7285
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 7280

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)


7280
7281
7282
7283
7284
7285
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 7280

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)


7280
7281
7282
7283
7284
7285
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 7280

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