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

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

Overview

Note:

When making an API call, you may pass ObjectLockRule data as a hash:

{
  default_retention: {
    mode: "GOVERNANCE", # accepts GOVERNANCE, COMPLIANCE
    days: 1,
    years: 1,
  },
}

The container element for an Object Lock rule.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#default_retentionTypes::DefaultRetention

The default retention period that you want to apply to new objects placed in the specified bucket.



8325
8326
8327
8328
8329
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 8325

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