Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MaintenanceParams(TypedDict):
- imapi: IMAPI
- user_id: int
- server_id: int
- reason: str
- class IM_EC2Instances:
- def __init__(self,
- aws_profile: str = None,
- maint: MaintenanceParams = None):
- self.maint = maint
- def start_by_id(self, instance_id: str):
- if self.maint is not None:
- self.maint.imapi.bind_user(self.maint.user_id,
- self.maint.server_id, self.maint.reason)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement