import boto3
client = boto3.client('s3')
res = client.put_object_tagging(
Bucket="s3-replication-send-test",
Key='344711202_1810168032711095_5946421521077983627_n.jpg',
Tagging={
'TagSet': [
{
'Key': 'string',
'Value': 'aiueo'
},
]
},
)
参考
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3/client/put_object_tagging.html
