airflow.providers.amazon.aws.hooks.glacier

Module Contents

Classes

GlacierHook

Interact with Amazon Glacier.

class airflow.providers.amazon.aws.hooks.glacier.GlacierHook(aws_conn_id='aws_default')[source]

Bases: airflow.providers.amazon.aws.hooks.base_aws.AwsBaseHook

Interact with Amazon Glacier.

This is a thin wrapper around boto3.client("glacier").

Additional arguments (such as aws_conn_id) may be specified and are passed down to the underlying AwsBaseHook.

retrieve_inventory(vault_name)[source]

Initiate an Amazon Glacier inventory-retrieval job.

Parameters

vault_name (str) – the Glacier vault on which job is executed

retrieve_inventory_results(vault_name, job_id)[source]

Retrieve the results of an Amazon Glacier inventory-retrieval job.

Parameters
  • vault_name (str) – the Glacier vault on which job is executed

  • job_id (str) – the job ID was returned by retrieve_inventory()

describe_job(vault_name, job_id)[source]

Retrieve the status of an Amazon S3 Glacier job.

Parameters
  • vault_name (str) – the Glacier vault on which job is executed

  • job_id (str) – the job ID was returned by retrieve_inventory()

Was this entry helpful?