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

<スポンサーリンク>

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

*

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