<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_property(self, name):
 """Return a named property for a resource, if available. Will raise an `AttributeError` if the property does not exist Args: name (str):
 Name of the property to return Returns: `ResourceProperty` """

        for prop in self.resource.properties:
            if prop.name == name:
                return prop

        raise AttributeError(name)