Class: Aws::S3::Types::ObjectLockRule
- Inherits:
-
Struct
- Object
- Struct
- Aws::S3::Types::ObjectLockRule
- Defined in:
- gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb
Overview
The container element for an Object Lock rule.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#default_retention ⇒ Types::DefaultRetention
The default Object Lock retention settings for new objects in this bucket.
Instance Attribute Details
#default_retention ⇒ Types::DefaultRetention
The default Object Lock retention settings for new objects in this bucket. You can specify:
A default retention period, by using
DaysorYears.A default event hold duration, by using
DefaultEventHold. This setting also uses days or years.
You can set one or both. You cannot use days and years in the same setting.
15100 15101 15102 15103 15104 |
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 15100 class ObjectLockRule < Struct.new( :default_retention) SENSITIVE = [] include Aws::Structure end |