Class: AWS::Glacier

Inherits:
Object
  • Object
show all
Includes:
Core::ServiceInterface
Defined in:
lib/aws/glacier.rb,
lib/aws/glacier/vault.rb,
lib/aws/glacier/client.rb,
lib/aws/glacier/errors.rb,
lib/aws/glacier/archive.rb,
lib/aws/glacier/request.rb,
lib/aws/glacier/resource.rb,
lib/aws/glacier/vault_collection.rb,
lib/aws/glacier/archive_collection.rb,
lib/aws/glacier/vault_notification_configuration.rb

Overview

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.

Defined Under Namespace

Modules: Errors Classes: Archive, ArchiveCollection, Client, Resource, Vault, VaultCollection, VaultNotificationConfiguration

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::ServiceInterface

#initialize, #inspect

Instance Attribute Details

#account_idString

Returns:

  • (String)


69
70
71
# File 'lib/aws/glacier.rb', line 69

def 
  @account_id
end

Instance Method Details

#intialize(options = {}) ⇒ Object

Parameters:

  • options[String] (Hash)

    a customizable set of options



63
64
65
66
# File 'lib/aws/glacier.rb', line 63

def intialize options = {}
  @account_id = options[:account_id] || '-'
  super
end

#vaultsVaultCollection

Returns a collection for working with vaults that belong to this account.

Returns:

  • (VaultCollection)

    Returns a collection for working with vaults that belong to this account.



73
74
75
# File 'lib/aws/glacier.rb', line 73

def vaults
  VaultCollection.new(:config => config, :account_id => )
end