Jhon Alexander Alvarez Casas
update logic and new method for auth_cognito
02109ec
from fastapi import UploadFile
from app.core.aws import get_session
_PATH_ENV = "s3.env"
class S3:
@staticmethod
def client(file: UploadFile):
session = get_session(_PATH_ENV, file)
return session.client("s3")