Class: Aws::S3::Types::DefaultRetention

Inherits:
Struct
  • Object
show all
Includes:
Aws::Structure
Defined in:
lib/aws-sdk-s3/types.rb

Overview

The container element for optionally specifying the default Object Lock retention settings for new objects placed in the specified bucket.

<note markdown=“1”> * The ‘DefaultRetention` settings require both a mode and a period.

  • The ‘DefaultRetention` period can be either `Days` or `Years` but you must select one. You cannot specify `Days` and `Years` at the same time.

</note>

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#daysInteger

The number of days that you want to specify for the default retention period. Must be used with ‘Mode`.

Returns:

  • (Integer)


3609
3610
3611
3612
3613
3614
3615
# File 'lib/aws-sdk-s3/types.rb', line 3609

class DefaultRetention < Struct.new(
  :mode,
  :days,
  :years)
  SENSITIVE = []
  include Aws::Structure
end

#modeString

The default Object Lock retention mode you want to apply to new objects placed in the specified bucket. Must be used with either ‘Days` or `Years`.

Returns:

  • (String)


3609
3610
3611
3612
3613
3614
3615
# File 'lib/aws-sdk-s3/types.rb', line 3609

class DefaultRetention < Struct.new(
  :mode,
  :days,
  :years)
  SENSITIVE = []
  include Aws::Structure
end

#yearsInteger

The number of years that you want to specify for the default retention period. Must be used with ‘Mode`.

Returns:

  • (Integer)


3609
3610
3611
3612
3613
3614
3615
# File 'lib/aws-sdk-s3/types.rb', line 3609

class DefaultRetention < Struct.new(
  :mode,
  :days,
  :years)
  SENSITIVE = []
  include Aws::Structure
end