airflow.providers.amazon.aws.hooks.glacier

Module Contents

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

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

Hook for connection with Amazon Glacier

retrieve_inventory(self, vault_name: str)[source]

Initiate an Amazon Glacier inventory-retrieval job

Parameters

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

retrieve_inventory_results(self, vault_name: str, job_id: str)[source]

Retrieve the results of an Amazon Glacier inventory-retrieval job

Parameters
  • vault_name (string) -- the Glacier vault on which job is executed

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

describe_job(self, vault_name: str, job_id: str)[source]

Retrieve the status of an Amazon S3 Glacier job, such as an inventory-retrieval job

Parameters
  • vault_name (string) -- the Glacier vault on which job is executed

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

Was this entry helpful?