class AWS::Glacier::VaultCollection
def [] name
-
(Vault)
- Returns a vault with the given name.
Parameters:
-
name
(String
) -- The name of the vault.
def [] name Vault.new(name, :config => config, :account_id => account_id) end
def _each_item next_token, limit, options, &block
def _each_item next_token, limit, options, &block options[:limit] = limit if limit options[:marker] = next_token if next_token options[:account_id] = account_id resp = client.list_vaults(options) resp[:vault_list].each do |v| vault = Vault.new_from(:list_vaults, v, v[:vault_name], :config => config, :account_id => account_id) yield(vault) end resp[:marker] end
def create name
-
name
(String
) --
def create name options = {} options[:vault_name] = name options[:account_id] = account_id client.create_vault(options) self[name] end
def initialize options = {}
(**options)
-
:account_id
(String
) --
Parameters:
-
options
(Hash
) --
def initialize options = {} @account_id = options[:account_id] || '-' super end