Class: Aws::S3Control::Types::S3ObjectLockEventHoldDuration

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-s3control/lib/aws-sdk-s3control/types.rb

Overview

Contains the duration configuration for an event hold, specified in either days or years.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#daysInteger

The number of days for the event hold duration. The minimum value is 1 and the maximum value is 36,500.

Returns:

  • (Integer)


7856
7857
7858
7859
7860
7861
# File 'gems/aws-sdk-s3control/lib/aws-sdk-s3control/types.rb', line 7856

class S3ObjectLockEventHoldDuration < Struct.new(
  :days,
  :years)
  SENSITIVE = []
  include Aws::Structure
end

#yearsInteger

The number of years for the event hold duration. The minimum value is 1 and the maximum value is 100.

Returns:

  • (Integer)


7856
7857
7858
7859
7860
7861
# File 'gems/aws-sdk-s3control/lib/aws-sdk-s3control/types.rb', line 7856

class S3ObjectLockEventHoldDuration < Struct.new(
  :days,
  :years)
  SENSITIVE = []
  include Aws::Structure
end