Class: Aws::S3::Types::ObjectLockRetention

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 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

Instance Attribute Details

#modeString

Indicates the Retention mode for the specified object.

Returns:

  • (String)


9149
9150
9151
9152
9153
9154
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 9149

class ObjectLockRetention < Struct.new(
  :mode,
  :retain_until_date)
  SENSITIVE = []
  include Aws::Structure
end

#retain_until_dateTime

The date on which this Object Lock Retention will expire.

Returns:

  • (Time)


9149
9150
9151
9152
9153
9154
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 9149

class ObjectLockRetention < Struct.new(
  :mode,
  :retain_until_date)
  SENSITIVE = []
  include Aws::Structure
end