boto3 generate_presigned_post with server-side encryption

This is the sample code, I am looking for examples to generate presigned post using boto3 and sse encryption.

import logging
import boto3

s3_client = boto3.client('s3')
try:
   response = s3_client.generate_presigned_post(bucket_name,
                                                object_name,
                                                Fields=fields,
                                                Conditions=conditions,
                                                ExpiresIn=expiration)
   return response
except ClientError as e:
    logging.error(e)
    return None


Read more here: https://stackoverflow.com/questions/66270612/boto3-generate-presigned-post-with-server-side-encryption

Content Attribution

This content was originally published by TSW at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: