株式会社ヴァンデミックシステム

Blog

<スポンサーリンク>

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

<スポンサーリンク>

コメントを残す

Allowed tags:  you may use these HTML tags and attributes: <a href="">, <strong>, <em>, <h1>, <h2>, <h3>
Please note:  all comments go through moderation.

*

日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)