def __init__(self, event, logger):
     self.event = event
     self.params = event.get('ResourceProperties')
     self.logger = logger
     self.logger.info(self.__class__.__name__ + " Class Event")
     self.logger.info(event)
     self.peer_type = event.get('params', {}).get('PeerType')
     self.assume_role = AssumeRole()
     self.wait_time = os.environ['wait_time']
Beispiel #2
0
 def __init__(self, logger):
     self.logger = logger
     self.ssm = SSM(self.logger)
     self.kms = KMS(self.logger)
     self.assume_role = AssumeRole()
 def __init__(self, event, logger):
     self.params = event.get('ResourceProperties')
     self.logger = logger
     self.logger.info("VPC Peering Handler Event")
     self.assume_role = AssumeRole()
     self.logger.info(event)