def METHOD_NAME(
    self,
    schema: s_schema.Schema,
    context: sd.CommandContext,
) -> None:
    name = self.get_attribute_value('name')
    if len(str(name)) > s_def.MAX_NAME_LENGTH:
        source_context = self.get_attribute_source_context('name')
        raise errors.SchemaDefinitionError(
            f'Role names longer than {s_def.MAX_NAME_LENGTH} '
            f'characters are not supported',
            context=source_context,
        )