Class: Aws::RecycleBin::Types::RetentionPeriod

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

Overview

Information about the retention period for which the retention rule is to retain resources.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#retention_period_unitString

The unit of time in which the retention period is measured. Currently, only DAYS is supported.

Returns:

  • (String)


581
582
583
584
585
586
# File 'gems/aws-sdk-recyclebin/lib/aws-sdk-recyclebin/types.rb', line 581

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

#retention_period_valueInteger

The period value for which the retention rule is to retain resources, measured in days. The supported retention periods are:

  • EBS volumes: 1 - 7 days

  • EBS snapshots and EBS-backed AMIs: 1 - 365 days

Returns:

  • (Integer)


581
582
583
584
585
586
# File 'gems/aws-sdk-recyclebin/lib/aws-sdk-recyclebin/types.rb', line 581

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