You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Glacier::Account

Inherits:
Resources::Resource show all
Defined in:
(unknown)

Instance Attribute Summary collapse

Attributes inherited from Resources::Resource

#client, #identifiers

Instance Method Summary collapse

Methods inherited from Resources::Resource

add_data_attribute, add_identifier, #data, data_attributes, #data_loaded?, identifiers, #load, #wait_until

Methods included from Resources::OperationMethods

#add_batch_operation, #add_operation, #batch_operation, #batch_operation_names, #batch_operations, #operation, #operation_names, #operations

Constructor Details

#initialize(id, options = {}) ⇒ Object #initialize(options = {}) ⇒ Object

Overloads:

  • #initialize(id, options = {}) ⇒ Object

    Parameters:

    • id (String)

    Options Hash (options):

    • :client (Client)

      When `:client is not given, the options hash is used to construct a new Client object.

  • #initialize(options = {}) ⇒ Object

    Options Hash (options):

    • :id (required, String)
    • :client (Client)

      When `:client is not given, the options hash is used to construct a new Client object.

Instance Attribute Details

#idString (readonly)

Returns:

  • (String)

Instance Method Details

#create_vault(options = {}) ⇒ Vault

Examples:

Request syntax example with placeholder values


.create_vault({
  vault_name: "string", # required
})

Basic usage

vault = .create_vault(options)
vault.name
#=> "vault-name"

Options Hash (options):

  • :vault_name (required, String)

    The name of the vault.

Returns:

See Also:

#vault(name) ⇒ Vault

Parameters:

Returns:

See Also:

#vaults(options = {}) ⇒ Collection<Vault>

Returns a Collection of Vault resources. No API requests are made until you call an enumerable method on the collection. Client#list_vaults will be called multiple times until every Vault has been yielded.

Examples:

Request syntax example with placeholder values


.vaults({
  marker: "string",
  limit: 1,
})

Enumerating Vault resources.

.vaults.each do |vault|
  # yields each vault
end

Enumerating Vault resources with a limit.

.vaults.limit(10).each do |vault|
  # yields at most 10 vaults
end

Options Hash (options):

  • :marker (String)

    A string used for pagination. The marker specifies the vault ARN after which the listing of vaults should begin.

  • :limit (Integer)

Returns:

See Also: