Class: Aws::FSx::Types::RetentionPeriod

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-fsx/types.rb

Overview

Specifies the retention period of an FSx for ONTAP SnapLock volume. After it is set, it can’t be changed. Files can’t be deleted or modified during the retention period.

For more information, see [Working with the retention period in SnapLock].

[1]: docs.aws.amazon.com/fsx/latest/ONTAPGuide/snaplock-retention.html

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#typeString

Defines the type of time for the retention period of an FSx for ONTAP SnapLock volume. Set it to one of the valid types. If you set it to ‘INFINITE`, the files are retained forever. If you set it to `UNSPECIFIED`, the files are retained until you set an explicit retention period.

Returns:

  • (String)


7756
7757
7758
7759
7760
7761
# File 'lib/aws-sdk-fsx/types.rb', line 7756

class RetentionPeriod < Struct.new(
  :type,
  :value)
  SENSITIVE = []
  include Aws::Structure
end

#valueInteger

Defines the amount of time for the retention period of an FSx for ONTAP SnapLock volume. You can’t set a value for ‘INFINITE` or `UNSPECIFIED`. For all other options, the following ranges are valid:

  • ‘Seconds`: 0 - 65,535

  • ‘Minutes`: 0 - 65,535

  • ‘Hours`: 0 - 24

  • ‘Days`: 0 - 365

  • ‘Months`: 0 - 12

  • ‘Years`: 0 - 100

Returns:

  • (Integer)


7756
7757
7758
7759
7760
7761
# File 'lib/aws-sdk-fsx/types.rb', line 7756

class RetentionPeriod < Struct.new(
  :type,
  :value)
  SENSITIVE = []
  include Aws::Structure
end