How to write meta data in S3ExportTaskDefinition

0

Hi there,

I am trying to write meta data to a file and upload it to s3

here is what i have. I am not sure what is the correct format for the user_metadata

class MediaMeta(BaseModel):
        data:str

s3_export_task_definition = S3ExportTaskDefinition(input_url=self.src_file_path,
                                                           bucket=self.bucket_name,
                                                           key=self.key_to_file,
                                                           user_metadata=meta_data.dict())

thanks for your help

preguntada hace 2 años184 visualizaciones
1 Respuesta
0
Respuesta aceptada

Here is an example of adding meta data:

        s3_task = S3ExportTaskDefinition(
            input_url = self.src_file_path,
            bucket = "foo",
            key = "bar",
            user_metadata = {
                "key": "value",
                "foo": "bar"
            }
        )
respondido hace 2 años
  • Hmmm that is what i did, i will double check thanks

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas