Class: Aws::S3::Types::ObjectLockRetention
- Inherits:
-
Struct
- Object
- Struct
- Aws::S3::Types::ObjectLockRetention
- Includes:
- Aws::Structure
- Defined in:
- lib/aws-sdk-s3/types.rb
Overview
Note:
When making an API call, you may pass ObjectLockRetention data as a hash:
{
mode: "GOVERNANCE", # accepts GOVERNANCE, COMPLIANCE
retain_until_date: Time.now,
}
A Retention configuration for an object.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#mode ⇒ String
Indicates the Retention mode for the specified object.
-
#retain_until_date ⇒ Time
The date on which this Object Lock Retention will expire.
Instance Attribute Details
#mode ⇒ String
Indicates the Retention mode for the specified object.
10658 10659 10660 10661 10662 10663 |
# File 'lib/aws-sdk-s3/types.rb', line 10658 class ObjectLockRetention < Struct.new( :mode, :retain_until_date) SENSITIVE = [] include Aws::Structure end |
#retain_until_date ⇒ Time
The date on which this Object Lock Retention will expire.
10658 10659 10660 10661 10662 10663 |
# File 'lib/aws-sdk-s3/types.rb', line 10658 class ObjectLockRetention < Struct.new( :mode, :retain_until_date) SENSITIVE = [] include Aws::Structure end |