class AWS::Glacier

This class is the starting point for working with Amazon Glacier.

To use Amazon Glacier you must first sign up here.

For more information about AWS Data Pipeline:

Credentials

You can setup default credentials for all AWS services via AWS.config:

AWS.config(
  :access_key_id => 'YOUR_ACCESS_KEY_ID',
  :secret_access_key => 'YOUR_SECRET_ACCESS_KEY')

Or you can set them directly on the AWS::Glacier interface:

glacier = AWS::Glacier.new(
  :access_key_id => 'YOUR_ACCESS_KEY_ID',
  :secret_access_key => 'YOUR_SECRET_ACCESS_KEY')

See {Client} for documentation on all of the supported API operations.

@!attribute [r] client

@return [Client] the low-level Glacier client object

Attributes

account_id[RW]

@return [String]

Public Instance Methods

intialize(options = {}) click to toggle source

@option options :account_id (‘-’)

Calls superclass method
# File lib/aws/glacier.rb, line 65
def intialize options = {}
  @account_id = options[:account_id] || '-'
  super
end
vaults() click to toggle source

@return [VaultCollection] Returns a collection for working with

vaults that belong to this account.
# File lib/aws/glacier.rb, line 75
def vaults
  VaultCollection.new(:config => config, :account_id => account_id)
end