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(*, aws_conn_id='aws_default', vault_name, **kwargs)[source]

Bases: airflow.models.BaseOperator

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

template_fields: Sequence[str] = ('vault_name',)[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, aws_conn_id='aws_default', **kwargs)[source]

Bases: airflow.models.BaseOperator

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

template_fields: Sequence[str] = ('vault_name',)[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?