Class: Aws::S3::Types::DefaultRetention
- Inherits:
-
Struct
- Object
- Struct
- Aws::S3::Types::DefaultRetention
- Defined in:
- gems/aws-sdk-s3/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.
DefaultRetention
settings require both a mode and a period.
- The
DefaultRetention
period can be eitherDays
orYears
but you must select one. You cannot specifyDays
andYears
at the same time.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#days ⇒ Integer
The number of days that you want to specify for the default retention period.
-
#mode ⇒ String
The default Object Lock retention mode you want to apply to new objects placed in the specified bucket.
-
#years ⇒ Integer
The number of years that you want to specify for the default retention period.
Instance Attribute Details
#days ⇒ Integer
The number of days that you want to specify for the default
retention period. Must be used with Mode
.
3701 3702 3703 3704 3705 3706 3707 |
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 3701 class DefaultRetention < Struct.new( :mode, :days, :years) SENSITIVE = [] include Aws::Structure end |
#mode ⇒ String
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
.
3701 3702 3703 3704 3705 3706 3707 |
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 3701 class DefaultRetention < Struct.new( :mode, :days, :years) SENSITIVE = [] include Aws::Structure end |
#years ⇒ Integer
The number of years that you want to specify for the default
retention period. Must be used with Mode
.
3701 3702 3703 3704 3705 3706 3707 |
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 3701 class DefaultRetention < Struct.new( :mode, :days, :years) SENSITIVE = [] include Aws::Structure end |