Class: Aws::S3::Types::ObjectLockRule

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

Overview

The container element for an Object Lock rule.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#default_retentionTypes::DefaultRetention

The default Object Lock retention mode and period that you want to apply to new objects placed in the specified bucket. Bucket settings require both a mode and a period. The period can be either ‘Days` or `Years` but you must select one. You cannot specify `Days` and `Years` at the same time.



11931
11932
11933
11934
11935
# File 'lib/aws-sdk-s3/types.rb', line 11931

class ObjectLockRule < Struct.new(
  :default_retention)
  SENSITIVE = []
  include Aws::Structure
end