Class: AWS::Glacier
- Inherits:
-
Object
- Object
- AWS::Glacier
- 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
- #intialize(options = {}) ⇒ Object
-
#vaults ⇒ VaultCollection
Returns a collection for working with vaults that belong to this account.
Methods included from Core::ServiceInterface
Instance Attribute Details
#account_id ⇒ String
69 70 71 |
# File 'lib/aws/glacier.rb', line 69 def account_id @account_id end |
Instance Method Details
#intialize(options = {}) ⇒ Object
63 64 65 66 |
# File 'lib/aws/glacier.rb', line 63 def intialize = {} @account_id = [:account_id] || '-' super end |
#vaults ⇒ 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 => account_id) end |