You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::S3::Types::ObjectLockConfiguration
- Inherits:
-
Struct
- Object
- Struct
- Aws::S3::Types::ObjectLockConfiguration
- Defined in:
- (unknown)
Overview
Note:
When passing ObjectLockConfiguration as input to an Aws::Client method, you can use a vanilla Hash:
{
object_lock_enabled: "Enabled", # accepts Enabled
rule: {
default_retention: {
mode: "GOVERNANCE", # accepts GOVERNANCE, COMPLIANCE
days: 1,
years: 1,
},
},
}
The container element for Object Lock configuration parameters.
Returned by:
Instance Attribute Summary collapse
-
#object_lock_enabled ⇒ String
Indicates whether this bucket has an Object Lock configuration enabled.
-
#rule ⇒ Types::ObjectLockRule
The Object Lock rule in place for the specified object.
Instance Attribute Details
#object_lock_enabled ⇒ String
Indicates whether this bucket has an Object Lock configuration enabled.
Possible values:
- Enabled
#rule ⇒ Types::ObjectLockRule
The Object Lock rule in place for the specified object.