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

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

Overview

Note:

When making an API call, you may pass RetentionPeriod data as a hash:

{
  retention_period_value: 1, # required
  retention_period_unit: "DAYS", # required, accepts DAYS
}

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)


398
399
400
401
402
403
# File 'gems/aws-sdk-recyclebin/lib/aws-sdk-recyclebin/types.rb', line 398

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. The period is measured using the unit specified for RetentionPeriodUnit.

Returns:

  • (Integer)


398
399
400
401
402
403
# File 'gems/aws-sdk-recyclebin/lib/aws-sdk-recyclebin/types.rb', line 398

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