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

asked 2 years ago163 views
1 Answer
0
Accepted Answer

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"
            }
        )
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions