S3PutBucketTaggingOperator

Amazon

This operator puts tagging for an S3 bucket.

View Source

Last Updated: Feb. 28, 2021

Access Instructions

Install the Amazon provider package into your Airflow environment.

Import the module into your DAG file and instantiate it with your desired params.

Parameters

bucket_namestrThe name of the bucket to add tags to.
keystrThe key portion of the key/value pair for a tag to be added. If a key is provided, a value must be provided as well.
valueThe value portion of the key/value pair for a tag to be added. If a value is provided, a key must be provided as well.
tag_setList[Dict[str, str]]A List of key/value pairs.
aws_conn_idOptional[str]The Airflow connection used for AWS credentials. If this is None or empty then the default boto3 behaviour is used. If running Airflow in a distributed manner and aws_conn_id is None or empty, then the default boto3 configuration would be used (and must be maintained on each worker node).

Documentation

This operator puts tagging for an S3 bucket.

See also

For more information on how to use this operator, take a look at the guide: Using Amazon S3 Bucket Tagging

Example DAGs

Was this page helpful?