in domain_function.py [0:0]
def handle_update(event, context):
logging.info('Received Update event')
domain_id = event['PhysicalResourceId']
default_user_settings = event['ResourceProperties']['DefaultUserSettings']
update_domain(domain_id, default_user_settings)
cfnresponse.send(event, context, cfnresponse.SUCCESS, {'DomainId' : domain_id},
physicalResourceId=event['PhysicalResourceId'])