airflow.providers.amazon.aws.operators.glacier

Module Contents

Classes

GlacierCreateJobOperator

Initiate an Amazon Glacier inventory-retrieval job.

GlacierUploadArchiveOperator

This operator add an archive to an Amazon S3 Glacier vault.

class airflow.providers.amazon.aws.operators.glacier.GlacierCreateJobOperator(*, vault_name, **kwargs)[source]

Bases: airflow.providers.amazon.aws.operators.base_aws.AwsBaseOperator[airflow.providers.amazon.aws.hooks.glacier.GlacierHook]

Initiate an Amazon Glacier inventory-retrieval job.

See also

For more information on how to use this operator, take a look at the guide: Create an Amazon Glacier job

Parameters
  • aws_conn_id – The reference to the AWS connection details

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

aws_hook_class[source]
template_fields: Sequence[str][source]
execute(context)[source]

Derive when creating an operator.

Context is the same dictionary used as when rendering jinja templates.

Refer to get_template_context for more context.

class airflow.providers.amazon.aws.operators.glacier.GlacierUploadArchiveOperator(*, vault_name, body, checksum=None, archive_description=None, account_id=None, **kwargs)[source]

Bases: airflow.providers.amazon.aws.operators.base_aws.AwsBaseOperator[airflow.providers.amazon.aws.hooks.glacier.GlacierHook]

This operator add an archive to an Amazon S3 Glacier vault.

See also

For more information on how to use this operator, take a look at the guide: Upload archive to an Amazon Glacier

Parameters
  • vault_name (str) – The name of the vault

  • body (object) – A bytes or seekable file-like object. The data to upload.

  • checksum (str | None) – The SHA256 tree hash of the data being uploaded. This parameter is automatically populated if it is not provided

  • archive_description (str | None) – The description of the archive you are uploading

  • account_id (str | None) – (Optional) AWS account ID of the account that owns the vault. Defaults to the credentials used to sign the request

  • aws_conn_id – The reference to the AWS connection details

aws_hook_class[source]
template_fields: Sequence[str][source]
execute(context)[source]

Derive when creating an operator.

Context is the same dictionary used as when rendering jinja templates.

Refer to get_template_context for more context.

Was this entry helpful?