Class: Aws::S3::Types::DefaultRetention
- Inherits:
-
Struct
- Object
- Struct
- Aws::S3::Types::DefaultRetention
- Includes:
- Aws::Structure
- Defined in:
- lib/aws-sdk-s3/types.rb
Overview
Note:
When making an API call, you may pass DefaultRetention data as a hash:
{
mode: "GOVERNANCE", # accepts GOVERNANCE, COMPLIANCE
days: 1,
years: 1,
}
The container element for specifying the default Object Lock retention settings for new objects placed in the specified bucket.
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.
1629 1630 1631 1632 1633 1634 |
# File 'lib/aws-sdk-s3/types.rb', line 1629 class DefaultRetention < Struct.new( :mode, :days, :years) include Aws::Structure end |
#mode ⇒ String
The default Object Lock retention mode you want to apply to new objects placed in the specified bucket.
1629 1630 1631 1632 1633 1634 |
# File 'lib/aws-sdk-s3/types.rb', line 1629 class DefaultRetention < Struct.new( :mode, :days, :years) include Aws::Structure end |
#years ⇒ Integer
The number of years that you want to specify for the default retention period.
1629 1630 1631 1632 1633 1634 |
# File 'lib/aws-sdk-s3/types.rb', line 1629 class DefaultRetention < Struct.new( :mode, :days, :years) include Aws::Structure end |