You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::S3::Types::ObjectLockRule
- Inherits:
-
Struct
- Object
- Struct
- Aws::S3::Types::ObjectLockRule
- Defined in:
- (unknown)
Overview
Note:
When passing ObjectLockRule as input to an Aws::Client method, you can use a vanilla Hash:
{
default_retention: {
mode: "GOVERNANCE", # accepts GOVERNANCE, COMPLIANCE
days: 1,
years: 1,
},
}
The container element for an Object Lock rule.
Returned by:
Instance Attribute Summary collapse
-
#default_retention ⇒ Types::DefaultRetention
The default retention period that you want to apply to new objects placed in the specified bucket.
Instance Attribute Details
#default_retention ⇒ Types::DefaultRetention
The default retention period that you want to apply to new objects placed in the specified bucket.