in awsglue/blueprint/workflow.py [0:0]
def validate(self):
'''
Ensure all required fields are present and each entity is valid.
An Exception will be thrown at the first occurrence of an invalid
entity.
'''
fields_present = all(field in self.__dict__ for field, required in self._validator.items() if required[1])
if not fields_present:
raise TypeError('Required Workflow Fields were missing: {}'.format(self._getMissingFields()))
entities_valid = self.Entities.validate()
return fields_present and entities_valid