Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
eladcon committed Jun 18, 2024
1 parent 6d8a0b8 commit 1825c70
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions wing.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ def send_email(self, **kwargs):
def send_raw_email(self, **kwargs):
return self.client.send_raw_email(**kwargs)

class Liftable(TypedDict):
liftData: dict

def try_lifted(id: str):
try:
return lifted(id)
Expand Down Expand Up @@ -215,6 +218,8 @@ def create_client(idValue: dict):
return SESEmailService_aws(idValue["props"])
elif target == "sim":
return SESEmailService_sim(create_client(idValue["children"]["store"]))
if idValue["type"] == "@winglibs.python.ILiftable":
return Liftable(idValue["props"])

def from_function_event(event):
target = os.getenv(f"WING_TARGET")
Expand Down

0 comments on commit 1825c70

Please sign in to comment.