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
- #account_id ⇒ String
-
#client ⇒ Client
readonly
The low-level Glacier client object.
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
71 72 73 |
# File 'lib/aws/glacier.rb', line 71 def account_id @account_id end |
#client ⇒ Client (readonly)
Returns the low-level Glacier client object.
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/aws/glacier.rb', line 48 class Glacier AWS.register_autoloads(self, 'aws/glacier') do autoload :Archive, 'archive' autoload :ArchiveCollection, 'archive_collection' autoload :Client, 'client' autoload :Errors, 'errors' autoload :Request, 'request' autoload :Resource, 'resource' autoload :Vault, 'vault' autoload :VaultCollection, 'vault_collection' autoload :VaultNotificationConfiguration, 'vault_notification_configuration' end include Core::ServiceInterface # @option options[String] :account_id ('-') def intialize = {} @account_id = [:account_id] || '-' super end # @return [String] attr_accessor :account_id # @return [VaultCollection] Returns a collection for working with # vaults that belong to this account. def vaults VaultCollection.new(:config => config, :account_id => account_id) end end |
Instance Method Details
#intialize(options = {}) ⇒ Object
65 66 67 68 |
# File 'lib/aws/glacier.rb', line 65 def intialize = {} @account_id = [:account_id] || '-' super end |
#vaults ⇒ VaultCollection
Returns a collection for working with vaults that belong to this account.
75 76 77 |
# File 'lib/aws/glacier.rb', line 75 def vaults VaultCollection.new(:config => config, :account_id => account_id) end |