AWS le permite agregar etiquetas a un depósito S3 existente, usando la consola o esta API http, por ejemplo: https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObjectTagging.html
Pero en lugar de usar la API HTTP directamente, ¿hay alguna forma de usar el AWS SDK v3 de Ruby para agregar (o eliminar) etiquetas a un objeto S3 existente?
No he sido capaz de averiguarlo.
Bien, respondiendo a mi pregunta, finalmente encontré un método en Aws::S3::Client
s3_client = Aws::S3::Client.new s3_client.put_object_tagging({ bucket: "bucket_name", key: "some/key.jpg", tagging: { tag_set: [ { key: "tag-name", value: "tag value", } ] } }) esperaba que hubiera un método en Aws::S3::Bucket o Aws::S3::Object , pero si lo hay, ¡no puedo resolverlo! Pero he verificado que este en Aws::S3::Client funciona para mí.