Glacier
glacier.vault
- class glacier.vault
-
Discovery Example:
>>> from cloudwanderer import CloudWanderer, ServiceResourceType >>> from cloudwanderer.storage_connectors import GremlinStorageConnector >>> cloud_wanderer = CloudWanderer(storage_connectors=[ ... GremlinStorageConnector( ... endpoint_url="ws://localhost:8182", ... ) ... ]) >>> cloud_wanderer.write_resources( ... service_resource_types=[ServiceResourceType("glacier","vault")] ... )
OpenCypher Example:
How to query resources of this type using OpenCypher in Neptune.
MATCH (vault:aws_glacier_vault) RETURN *
Gremlin Example:
How to query resources of this type using Gremlin in Neptune/local Gremlin.
g.V().hasLabel('aws_glacier_vault').out().path().by(valueMap(true))
- creation_date
The Universal Coordinated Time (UTC) date when the vault was created. This value should be a string in the ISO 8601 date format, for example
2012-03-20T17:03:43.221Z
.
- last_inventory_date
The Universal Coordinated Time (UTC) date when Amazon S3 Glacier completed the last vault inventory. This value should be a string in the ISO 8601 date format, for example
2012-03-20T17:03:43.221Z
.
- number_of_archives
The number of archives in the vault as of the last inventory date. This field will return
null
if an inventory has not yet run on the vault, for example if you just created the vault.
- size_in_bytes
Total size, in bytes, of the archives in the vault as of the last inventory date. This field will return null if an inventory has not yet run on the vault, for example if you just created the vault.
- vault_arn
The Amazon Resource Name (ARN) of the vault.
- vault_name
The name of the vault.
glacier.vault.job
- class glacier.vault.job
A subresource of
glacier.vault
.Discovery Example:
>>> from cloudwanderer import CloudWanderer, ServiceResourceType >>> from cloudwanderer.storage_connectors import GremlinStorageConnector >>> cloud_wanderer = CloudWanderer(storage_connectors=[ ... GremlinStorageConnector( ... endpoint_url="ws://localhost:8182", ... ) ... ]) >>> cloud_wanderer.write_resources( ... service_resource_types=[ServiceResourceType("glacier","job")] ... )
OpenCypher Example:
How to query resources of this type using OpenCypher in Neptune.
MATCH (job:aws_glacier_job) RETURN *
Gremlin Example:
How to query resources of this type using Gremlin in Neptune/local Gremlin.
g.V().hasLabel('aws_glacier_job').out().path().by(valueMap(true))
- action
The job type. This value is either
ArchiveRetrieval
,InventoryRetrieval
, orSelect
.
- archive_id
The archive ID requested for a select job or archive retrieval. Otherwise, this field is null.
- archive_sha256_tree_hash
The SHA256 tree hash of the entire archive for an archive retrieval. For inventory retrieval or select jobs, this field is null.
- archive_size_in_bytes
For an archive retrieval job, this value is the size in bytes of the archive being requested for download. For an inventory retrieval or select job, this value is null.
- completed
The job status. When a job is completed, you get the job’s output using Get Job Output (GET output).
- completion_date
The UTC time that the job request completed. While the job is in progress, the value is null.
- creation_date
The UTC date when the job was created. This value is a string representation of ISO 8601 date format, for example
"2012-03-20T17:03:43.221Z"
.
- inventory_retrieval_parameters
Parameters used for range inventory retrieval.
- inventory_size_in_bytes
For an inventory retrieval job, this value is the size in bytes of the inventory requested for download. For an archive retrieval or select job, this value is null.
- job_description
The job description provided when initiating the job.
- job_id
An opaque string that identifies an Amazon S3 Glacier job.
- job_output_path
Contains the job output location.
- output_location
Contains the location where the data from the select job is stored.
- retrieval_byte_range
The retrieved byte range for archive retrieval jobs in the form StartByteValue -EndByteValue . If no range was specified in the archive retrieval, then the whole archive is retrieved. In this case, StartByteValue equals 0 and EndByteValue equals the size of the archive minus 1. For inventory retrieval or select jobs, this field is null.
- select_parameters
Contains the parameters used for a select.
- sha256_tree_hash
For an archive retrieval job, this value is the checksum of the archive. Otherwise, this value is null. The SHA256 tree hash value for the requested range of an archive. If the InitiateJob request for an archive specified a tree-hash aligned range, then this field returns a value. If the whole archive is retrieved, this value is the same as the ArchiveSHA256TreeHash value. This field is null for the following: * Archive retrieval jobs that specify a range that is not tree-hash aligned * Archival jobs that specify a range that is equal to the whole archive, when the job status is
InProgress
* Inventory jobs * Select jobs
- sns_topic
An Amazon SNS topic that receives notification.
- status_code
The status code can be
InProgress
,Succeeded
, orFailed
, and indicates the status of the job.
- status_message
A friendly message that describes the job status.
- tier
The tier to use for a select or an archive retrieval. Valid values are
Expedited
,Standard
, orBulk
.Standard
is the default.
- vault_arn
The Amazon Resource Name (ARN) of the vault from which an archive retrieval was requested.