'Creates a read-only property for identifier attributes.'

def _create_identifier(factory_self, identifier, resource_name):

    def get_identifier(self):
        return getattr(self, ('_' + identifier.name), None)
    get_identifier.__name__ = str(identifier.name)
    get_identifier.__doc__ = docstring.IdentifierDocstring(resource_name=resource_name, identifier_model=identifier, include_signature=False)
    return property(get_identifier)
