You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::Glacier::Types::DataRetrievalRule

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

Overview

Note:

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

{
  strategy: "string",
  bytes_per_hour: 1,
}

Data retrieval policy rule.

Instance Attribute Summary collapse

Instance Attribute Details

#bytes_per_hourInteger

The maximum number of bytes that can be retrieved in an hour.

This field is required only if the value of the Strategy field is BytesPerHour. Your PUT operation will be rejected if the Strategy field is not set to BytesPerHour and you set this field.

Returns:

  • (Integer)


339
340
341
342
343
# File 'gems/aws-sdk-glacier/lib/aws-sdk-glacier/types.rb', line 339

class DataRetrievalRule < Struct.new(
  :strategy,
  :bytes_per_hour)
  include Aws::Structure
end

#strategyString

The type of data retrieval policy to set.

Valid values: BytesPerHour|FreeTier|None

Returns:

  • (String)


339
340
341
342
343
# File 'gems/aws-sdk-glacier/lib/aws-sdk-glacier/types.rb', line 339

class DataRetrievalRule < Struct.new(
  :strategy,
  :bytes_per_hour)
  include Aws::Structure
end