class AWS::Glacier
This class is the starting point for working with Amazon Glacier
.
To use Amazon Glacier
you must first [sign up here](aws.amazon.com/glacier/).
For more information about Amazon Glacier:
-
[Amazon Glacier](aws.amazon.com/glacier/)
-
[Amazon
Glacier
Documentation](aws.amazon.com/documentation/glacier/)
# 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 Class Methods
new(options = {})
click to toggle source
@option options :account_id ('-')
Calls superclass method
AWS::Core::ServiceInterface::new
# File lib/aws/glacier.rb, line 64 def initialize options = {} @account_id = options[:account_id] || '-' super end
Public Instance Methods
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 74 def vaults VaultCollection.new(:config => config, :account_id => account_id) end