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

Class: AWS::Glacier::Client::V20120601

Inherits:
AWS::Glacier::Client show all
Defined in:
lib/aws/glacier/client.rb

Constant Summary

Constant Summary

Constants inherited from AWS::Glacier::Client

API_VERSION

Instance Attribute Summary

Attributes inherited from Core::Client

#config

Instance Method Summary collapse

Methods inherited from Core::Client

#initialize, #log_warning, #operations, #with_http_handler, #with_options

Constructor Details

This class inherits a constructor from AWS::Core::Client

Instance Method Details

#abort_multipart_upload(options = {}) ⇒ Core::Response

Calls the DELETE AbortMultipartUpload API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :account_id - required - (String) The AccountId is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.
    • :vault_name - required - (String) The name of the vault.
    • :upload_id - required - (String) The upload ID of the multipart upload to delete.

Returns:

#complete_multipart_upload(options = {}) ⇒ Core::Response

Calls the POST CompleteMultipartUpload API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :account_id - required - (String) The AccountId is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.
    • :vault_name - required - (String) The name of the vault.
    • :upload_id - required - (String) The upload ID of the multipart upload.
    • :archive_size - (Integer) The total size, in bytes, of the entire archive. This value should be the sum of all the sizes of the individual parts that you uploaded.
    • :checksum - required - (String) The SHA256 tree hash of the entire archive. It is the tree hash of SHA256 tree hash of the individual parts. If the value you specify in the request does not match the SHA256 tree hash of the final assembled archive as computed by Amazon Glacier, Amazon Glacier returns an error and the request fails.
    • :content_sha256 - (String)

Returns:

#create_vault(options = {}) ⇒ Core::Response

Calls the PUT CreateVault API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :account_id - required - (String) The AccountId is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.
    • :vault_name - required - (String) The name of the vault.

Returns:

#delete_archive(options = {}) ⇒ Core::Response

Calls the DELETE DeleteArchive API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :account_id - required - (String) The AccountId is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.
    • :vault_name - required - (String) The name of the vault.
    • :archive_id - required - (String) The ID of the archive to delete.

Returns:

#delete_vault(options = {}) ⇒ Core::Response

Calls the DELETE DeleteVault API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :account_id - required - (String) The AccountId is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.
    • :vault_name - required - (String) The name of the vault.

Returns:

#delete_vault_notifications(options = {}) ⇒ Core::Response

Calls the DELETE DeleteVaultNotifications API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :account_id - required - (String) The AccountId is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.
    • :vault_name - required - (String) The name of the vault.

Returns:

#describe_job(options = {}) ⇒ Core::Response

Calls the GET DescribeJob API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :account_id - required - (String) The AccountId is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.
    • :vault_name - required - (String) The name of the vault.
    • :job_id - required - (String) The ID of the job to describe.

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :job_id - (String)
    • :job_description - (String)
    • :action - (String)
    • :archive_id - (String)
    • :vault_arn - (String)
    • :creation_date - (String)
    • :completed - (Boolean)
    • :status_code - (String)
    • :status_message - (String)
    • :archive_size_in_bytes - (Integer)
    • :inventory_size_in_bytes - (Integer)
    • :sns_topic - (String)
    • :completion_date - (String)
    • :sha256_tree_hash - (String)
    • :archive_sha256_tree_hash - (String)
    • :retrieval_byte_range - (String)

#describe_vault(options = {}) ⇒ Core::Response

Calls the GET DescribeVault API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :account_id - required - (String) The AccountId is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.
    • :vault_name - required - (String) The name of the vault.

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :vault_arn - (String)
    • :vault_name - (String)
    • :creation_date - (String)
    • :last_inventory_date - (String)
    • :number_of_archives - (Integer)
    • :size_in_bytes - (Integer)

#get_job_output(options = {}) ⇒ Core::Response

Calls the GET GetJobOutput API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :account_id - required - (String) The AccountId is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.
    • :vault_name - required - (String) The name of the vault.
    • :job_id - required - (String) The job ID whose data is downloaded.
    • :range - (String) The range of bytes to retrieve from the output. For example, if you want to download the first 1,048,576 bytes, specify "Range: bytes=0-1048575". By default, this operation downloads the entire output.

Returns:

#get_vault_notifications(options = {}) ⇒ Core::Response

Calls the GET GetVaultNotifications API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :account_id - required - (String) The AccountId is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.
    • :vault_name - required - (String) The name of the vault.

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :sns_topic - (String)
    • :events - (Array)

#initiate_job(options = {}) ⇒ Core::Response

Calls the POST InitiateJob API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :account_id - required - (String) The AccountId is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.
    • :vault_name - required - (String) The name of the vault.
    • :job_parameters - required - (Hash) Provides options for specifying job information.
      • :format - (String) When initiating a job to retrieve a vault inventory, you can optionally add this parameter to your request to specify the output format. If you are initiating an inventory job and do not specify a Format field, JSON is the default format. Valid Values are "CSV" and "JSON".
      • :type - (String) The job type. You can initiate a job to retrieve an archive or get an inventory of a vault. Valid Values are "archive-retrieval" and "inventory-retrieval".
      • :archive_id - (String) The ID of the archive that you want to retrieve. This field is required only if Type is set to archive-retrieval. An error occurs if you specify this request parameter for an inventory retrieval job request.
      • :description - (String) The optional description for the job. The description must be less than or equal to 1,024 bytes. The allowable characters are 7-bit ASCII without control codes-specifically, ASCII values 32-126 decimal or 0x20-0x7E hexadecimal.
      • :sns_topic - (String) The Amazon SNS topic ARN to which Amazon Glacier sends a notification when the job is completed and the output is ready for you to download. The specified topic publishes the notification to its subscribers. The SNS topic must exist.
      • :retrieval_byte_range - (String) The byte range to retrieve for an archive retrieval. in the form "StartByteValue-EndByteValue" If not specified, the whole archive is retrieved. If specified, the byte range must be megabyte (1024*1024) aligned which means that StartByteValue must be divisible by 1 MB and EndByteValue plus 1 must be divisible by 1 MB or be the end of the archive specified as the archive byte size value minus 1. If RetrievalByteRange is not megabyte aligned, this operation returns a 400 response. An error occurs if you specify this field for an inventory retrieval job request.
      • :inventory_retrieval_parameters - (Hash)
        • :start_date - (String)
        • :end_date - (String)
        • :limit - (String)
        • :marker - (String)

Returns:

#initiate_multipart_upload(options = {}) ⇒ Core::Response

Calls the POST InitiateMultipartUpload API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :account_id - required - (String) The AccountId is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.
    • :vault_name - required - (String) The name of the vault.
    • :archive_description - (String) The archive description that you are uploading in parts. The part size must be a megabyte (1024 KB) multiplied by a power of 2—for example, 1048576 (1 MB), 2097152 (2 MB), 4194304 (4 MB), 8388608 (8 MB), and so on. The minimum allowable part size is 1 MB, and the maximum is 4 GB (4096 MB).
    • :part_size - (Integer) The size of each part except the last, in bytes. The last part can be smaller than this part size.

Returns:

#list_jobs(options = {}) ⇒ Core::Response

Calls the GET ListJobs API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :account_id - required - (String) The AccountId is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.
    • :vault_name - required - (String) The name of the vault.
    • :limit - (Integer) Specifies that the response be limited to the specified number of items or fewer. If not specified, the List Jobs operation returns up to 1,000 jobs.
    • :marker - (String) An opaque string used for pagination. This value specifies the job at which the listing of jobs should begin. Get the marker value from a previous List Jobs response. You need only include the marker if you are continuing the pagination of results started in a previous List Jobs request.
    • :statuscode - (String) Specifies the type of job status to return. You can specify the following values: "InProgress", "Succeeded", or "Failed".
    • :completed - (String) Specifies the state of the jobs to return. You can specify true or false .

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :job_list - (Array)
      • :job_id - (String)
      • :job_description - (String)
      • :action - (String)
      • :archive_id - (String)
      • :vault_arn - (String)
      • :creation_date - (String)
      • :completed - (Boolean)
      • :status_code - (String)
      • :status_message - (String)
      • :archive_size_in_bytes - (Integer)
      • :inventory_size_in_bytes - (Integer)
      • :sns_topic - (String)
      • :completion_date - (String)
      • :sha256_tree_hash - (String)
      • :archive_sha256_tree_hash - (String)
      • :retrieval_byte_range - (String)
    • :marker - (String)

#list_multipart_uploads(options = {}) ⇒ Core::Response

Calls the GET ListMultipartUploads API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :account_id - required - (String) The AccountId is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.
    • :vault_name - required - (String) The name of the vault.
    • :upload_id_marker - (String) An opaque string used for pagination. This value specifies the upload at which the listing of uploads should begin. Get the marker value from a previous List Uploads response. You need only include the marker if you are continuing the pagination of results started in a previous List Uploads request.
    • :limit - (Integer) Specifies the maximum number of uploads returned in the response body. If this value is not specified, the List Uploads operation returns up to 1,000 uploads.

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :uploads_list - (Array)
      • :multipart_upload_id - (String)
      • :vault_arn - (String)
      • :archive_description - (String)
      • :part_size_in_bytes - (Integer)
      • :creation_date - (String)
    • :marker - (String)

#list_parts(options = {}) ⇒ Core::Response

Calls the GET ListParts API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :account_id - required - (String) The AccountId is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.
    • :vault_name - required - (String) The name of the vault.
    • :upload_id - required - (String) The upload ID of the multipart upload.
    • :marker - (String) An opaque string used for pagination. This value specifies the part at which the listing of parts should begin. Get the marker value from the response of a previous List Parts response. You need only include the marker if you are continuing the pagination of results started in a previous List Parts request.
    • :limit - (Integer) Specifies the maximum number of parts returned in the response body. If this value is not specified, the List Parts operation returns up to 1,000 uploads.

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :multipart_upload_id - (String)
    • :vault_arn - (String)
    • :archive_description - (String)
    • :part_size_in_bytes - (Integer)
    • :creation_date - (String)
    • :parts - (Array)
      • :range_in_bytes - (String)
      • :sha256_tree_hash - (String)
    • :marker - (String)

#list_vaults(options = {}) ⇒ Core::Response

Calls the GET ListVaults API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :account_id - required - (String) The AccountId is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.
    • :marker - (String) A string used for pagination. The marker specifies the vault ARN after which the listing of vaults should begin.
    • :limit - (Integer) The maximum number of items returned in the response. If you don't specify a value, the List Vaults operation returns up to 1,000 items.

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :vault_list - (Array)
      • :vault_arn - (String)
      • :vault_name - (String)
      • :creation_date - (String)
      • :last_inventory_date - (String)
      • :number_of_archives - (Integer)
      • :size_in_bytes - (Integer)
    • :marker - (String)

#set_vault_notifications(options = {}) ⇒ Core::Response

Calls the PUT SetVaultNotifications API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :account_id - required - (String) The AccountId is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.
    • :vault_name - required - (String) The name of the vault.
    • :vault_notification_config - required - (Hash) Provides options for specifying notification configuration.
      • :sns_topic - (String) The Amazon Simple Notification Service (Amazon SNS) topic Amazon Resource Name (ARN).
      • :events - (Array<String>) A list of one or more events for which Amazon Glacier will send a notification to the specified Amazon SNS topic.
      • :member - (String)

Returns:

#upload_archive(options = {}) ⇒ Core::Response

Calls the POST UploadArchive API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :vault_name - required - (String) The name of the vault.
    • :account_id - required - (String) The AccountId is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.
    • :archive_description - (String) The optional description of the archive you are uploading.
    • :checksum - required - (String) The SHA256 checksum (a linear hash) of the payload.
    • :body - required - (IO) The data to upload.
    • :content_sha256 - (String)

Returns:

#upload_multipart_part(options = {}) ⇒ Core::Response

Calls the PUT UploadMultipartPart API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :account_id - required - (String) The AccountId is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.
    • :vault_name - required - (String) The name of the vault.
    • :upload_id - required - (String) The upload ID of the multipart upload.
    • :checksum - required - (String) The SHA256 tree hash of the data being uploaded.
    • :range - (String) Identifies the range of bytes in the assembled archive that will be uploaded in this part. Amazon Glacier uses this information to assemble the archive in the proper sequence. The format of this header follows RFC 2616. An example header is Content-Range:bytes 0-4194303/*.
    • :body - required - (IO) The data to upload.
    • :content_sha256 - (String)

Returns: