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

Inherits:
Struct
  • Object
show all
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

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 Days or Years.

  • 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.



15464
15465
15466
15467
15468
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 15464

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