Advertisement
LogicDaemon

Untitled

Nov 30th, 2021
1,142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.50 KB | None | 0 0
  1. class MaintenanceParams(TypedDict):
  2.     imapi: IMAPI
  3.     user_id: int
  4.     server_id: int
  5.     reason: str
  6.  
  7. class IM_EC2Instances:
  8.     def __init__(self,
  9.                  aws_profile: str = None,
  10.                  maint: MaintenanceParams = None):
  11.         self.maint = maint
  12.  
  13.     def start_by_id(self, instance_id: str):
  14.         if self.maint is not None:
  15.             self.maint.imapi.bind_user(self.maint.user_id,
  16.                                        self.maint.server_id, self.maint.reason)
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement