Class: Aws::S3::Types::ObjectLockConfiguration
- Inherits:
-
Struct
- Object
- Struct
- Aws::S3::Types::ObjectLockConfiguration
- Includes:
- Aws::Structure
- Defined in:
- lib/aws-sdk-s3/types.rb
Overview
Note:
When making an API call, you may pass ObjectLockConfiguration data as a 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.
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.
6060 6061 6062 6063 6064 |
# File 'lib/aws-sdk-s3/types.rb', line 6060 class ObjectLockConfiguration < Struct.new( :object_lock_enabled, :rule) include Aws::Structure end |
#rule ⇒ Types::ObjectLockRule
The Object Lock rule in place for the specified object.
6060 6061 6062 6063 6064 |
# File 'lib/aws-sdk-s3/types.rb', line 6060 class ObjectLockConfiguration < Struct.new( :object_lock_enabled, :rule) include Aws::Structure end |